1. Packages
  2. RedisCloud
  3. API Docs
  4. AclUser
Redis Cloud v1.3.5 published on Wednesday, Dec 20, 2023 by RedisLabs

rediscloud.AclUser

Explore with Pulumi AI

Creates a User in your Redis Enterprise Cloud Account.

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Rediscloud = RedisLabs.Rediscloud;

return await Deployment.RunAsync(() => 
{
    var user_resource = new Rediscloud.AclUser("user-resource", new()
    {
        Role = rediscloud_acl_role.Role_resource.Name,
        Password = "mY.passw0rd",
    });

});
Copy
package main

import (
	"github.com/RedisLabs/pulumi-rediscloud/sdk/go/rediscloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := rediscloud.NewAclUser(ctx, "user-resource", &rediscloud.AclUserArgs{
			Role:     pulumi.Any(rediscloud_acl_role.RoleResource.Name),
			Password: pulumi.String("mY.passw0rd"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.rediscloud.AclUser;
import com.pulumi.rediscloud.AclUserArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var user_resource = new AclUser("user-resource", AclUserArgs.builder()        
            .role(rediscloud_acl_role.role-resource().name())
            .password("mY.passw0rd")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as rediscloud from "@rediscloud/pulumi-rediscloud";

const user_resource = new rediscloud.AclUser("user-resource", {
    role: rediscloud_acl_role["role-resource"].name,
    password: "mY.passw0rd",
});
Copy
import pulumi
import pulumi_rediscloud as rediscloud

user_resource = rediscloud.AclUser("user-resource",
    role=rediscloud_acl_role["role-resource"]["name"],
    password="mY.passw0rd")
Copy
resources:
  user-resource:
    type: rediscloud:AclUser
    properties:
      role: ${rediscloud_acl_role"role-resource"[%!s(MISSING)].name}
      password: mY.passw0rd
Copy

Create AclUser Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new AclUser(name: string, args: AclUserArgs, opts?: CustomResourceOptions);
@overload
def AclUser(resource_name: str,
            args: AclUserArgs,
            opts: Optional[ResourceOptions] = None)

@overload
def AclUser(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            password: Optional[str] = None,
            role: Optional[str] = None,
            name: Optional[str] = None)
func NewAclUser(ctx *Context, name string, args AclUserArgs, opts ...ResourceOption) (*AclUser, error)
public AclUser(string name, AclUserArgs args, CustomResourceOptions? opts = null)
public AclUser(String name, AclUserArgs args)
public AclUser(String name, AclUserArgs args, CustomResourceOptions options)
type: rediscloud:AclUser
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AclUserArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AclUserArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AclUserArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AclUserArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AclUserArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var aclUserResource = new Rediscloud.AclUser("aclUserResource", new()
{
    Password = "string",
    Role = "string",
    Name = "string",
});
Copy
example, err := rediscloud.NewAclUser(ctx, "aclUserResource", &rediscloud.AclUserArgs{
	Password: pulumi.String("string"),
	Role:     pulumi.String("string"),
	Name:     pulumi.String("string"),
})
Copy
var aclUserResource = new AclUser("aclUserResource", AclUserArgs.builder()
    .password("string")
    .role("string")
    .name("string")
    .build());
Copy
acl_user_resource = rediscloud.AclUser("aclUserResource",
    password="string",
    role="string",
    name="string")
Copy
const aclUserResource = new rediscloud.AclUser("aclUserResource", {
    password: "string",
    role: "string",
    name: "string",
});
Copy
type: rediscloud:AclUser
properties:
    name: string
    password: string
    role: string
Copy

AclUser Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The AclUser resource accepts the following input properties:

Password
This property is required.
Changes to this property will trigger replacement.
string
The password for this ACL User. Must contain a lower-case letter, a upper-case letter, a number and a special character.
Role This property is required. string
The name of the Role held by the User.
Name Changes to this property will trigger replacement. string
A meaningful name for the User. Must be unique.
Password
This property is required.
Changes to this property will trigger replacement.
string
The password for this ACL User. Must contain a lower-case letter, a upper-case letter, a number and a special character.
Role This property is required. string
The name of the Role held by the User.
Name Changes to this property will trigger replacement. string
A meaningful name for the User. Must be unique.
password
This property is required.
Changes to this property will trigger replacement.
String
The password for this ACL User. Must contain a lower-case letter, a upper-case letter, a number and a special character.
role This property is required. String
The name of the Role held by the User.
name Changes to this property will trigger replacement. String
A meaningful name for the User. Must be unique.
password
This property is required.
Changes to this property will trigger replacement.
string
The password for this ACL User. Must contain a lower-case letter, a upper-case letter, a number and a special character.
role This property is required. string
The name of the Role held by the User.
name Changes to this property will trigger replacement. string
A meaningful name for the User. Must be unique.
password
This property is required.
Changes to this property will trigger replacement.
str
The password for this ACL User. Must contain a lower-case letter, a upper-case letter, a number and a special character.
role This property is required. str
The name of the Role held by the User.
name Changes to this property will trigger replacement. str
A meaningful name for the User. Must be unique.
password
This property is required.
Changes to this property will trigger replacement.
String
The password for this ACL User. Must contain a lower-case letter, a upper-case letter, a number and a special character.
role This property is required. String
The name of the Role held by the User.
name Changes to this property will trigger replacement. String
A meaningful name for the User. Must be unique.

Outputs

All input properties are implicitly available as output properties. Additionally, the AclUser resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing AclUser Resource

Get an existing AclUser resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AclUserState, opts?: CustomResourceOptions): AclUser
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        name: Optional[str] = None,
        password: Optional[str] = None,
        role: Optional[str] = None) -> AclUser
func GetAclUser(ctx *Context, name string, id IDInput, state *AclUserState, opts ...ResourceOption) (*AclUser, error)
public static AclUser Get(string name, Input<string> id, AclUserState? state, CustomResourceOptions? opts = null)
public static AclUser get(String name, Output<String> id, AclUserState state, CustomResourceOptions options)
resources:  _:    type: rediscloud:AclUser    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Name Changes to this property will trigger replacement. string
A meaningful name for the User. Must be unique.
Password Changes to this property will trigger replacement. string
The password for this ACL User. Must contain a lower-case letter, a upper-case letter, a number and a special character.
Role string
The name of the Role held by the User.
Name Changes to this property will trigger replacement. string
A meaningful name for the User. Must be unique.
Password Changes to this property will trigger replacement. string
The password for this ACL User. Must contain a lower-case letter, a upper-case letter, a number and a special character.
Role string
The name of the Role held by the User.
name Changes to this property will trigger replacement. String
A meaningful name for the User. Must be unique.
password Changes to this property will trigger replacement. String
The password for this ACL User. Must contain a lower-case letter, a upper-case letter, a number and a special character.
role String
The name of the Role held by the User.
name Changes to this property will trigger replacement. string
A meaningful name for the User. Must be unique.
password Changes to this property will trigger replacement. string
The password for this ACL User. Must contain a lower-case letter, a upper-case letter, a number and a special character.
role string
The name of the Role held by the User.
name Changes to this property will trigger replacement. str
A meaningful name for the User. Must be unique.
password Changes to this property will trigger replacement. str
The password for this ACL User. Must contain a lower-case letter, a upper-case letter, a number and a special character.
role str
The name of the Role held by the User.
name Changes to this property will trigger replacement. String
A meaningful name for the User. Must be unique.
password Changes to this property will trigger replacement. String
The password for this ACL User. Must contain a lower-case letter, a upper-case letter, a number and a special character.
role String
The name of the Role held by the User.

Import

rediscloud_acl_user can be imported using the Identifier of the User, e.g.

 $ pulumi import rediscloud:index/aclUser:AclUser user-resource 123456
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
rediscloud RedisLabs/pulumi-rediscloud
License
Apache-2.0
Notes
This Pulumi package is based on the rediscloud Terraform Provider.