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",
});
});
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
})
}
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());
}
}
import pulumi
import pulumi_rediscloud as rediscloud
user_resource = rediscloud.AclUser("user-resource",
role=rediscloud_acl_role["role-resource"]["name"],
password="mY.passw0rd")
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",
});
resources:
user-resource:
type: rediscloud:AclUser
properties:
role: ${rediscloud_acl_role"role-resource"[%!s(MISSING)].name}
password: mY.passw0rd
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 string
- The unique name of the resource.
- args AclUserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args AclUserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AclUserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
example, err := rediscloud.NewAclUser(ctx, "aclUserResource", &rediscloud.AclUserArgs{
Password: pulumi.String("string"),
Role: pulumi.String("string"),
Name: pulumi.String("string"),
})
var aclUserResource = new AclUser("aclUserResource", AclUserArgs.builder()
.password("string")
.role("string")
.name("string")
.build());
acl_user_resource = rediscloud.AclUser("aclUserResource",
password="string",
role="string",
name="string")
const aclUserResource = new rediscloud.AclUser("aclUserResource", {
password: "string",
role: "string",
name: "string",
});
type: rediscloud:AclUser
properties:
name: string
password: string
role: string
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
The AclUser resource accepts the following input properties:
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)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
Import
rediscloud_acl_user
can be imported using the Identifier of the User, e.g.
$ pulumi import rediscloud:index/aclUser:AclUser user-resource 123456
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.