We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
Resource Type definition for AWS::ElastiCache::User
Create User Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new User(name: string, args: UserArgs, opts?: CustomResourceOptions);@overload
def User(resource_name: str,
args: UserArgs,
opts: Optional[ResourceOptions] = None)
@overload
def User(resource_name: str,
opts: Optional[ResourceOptions] = None,
engine: Optional[UserEngine] = None,
user_id: Optional[str] = None,
access_string: Optional[str] = None,
authentication_mode: Optional[AuthenticationModePropertiesArgs] = None,
no_password_required: Optional[bool] = None,
passwords: Optional[Sequence[str]] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None,
user_name: Optional[str] = None)func NewUser(ctx *Context, name string, args UserArgs, opts ...ResourceOption) (*User, error)public User(string name, UserArgs args, CustomResourceOptions? opts = null)type: aws-native:elasticache:User
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_elasticache_user" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args UserArgs
- 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 UserArgs
- 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 UserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
User 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 User resource accepts the following input properties:
- Engine
Pulumi.
Aws Native. Elasti Cache. User Engine - The target cache engine for the user.
- User
Id string - The ID of the user.
- Access
String string - Access permissions string used for this user account.
- Authentication
Mode Pulumi.Aws Native. Elasti Cache. Inputs. Authentication Mode Properties - Specifies the authentication mode to use. Below is an example of the possible JSON values:
{ Passwords: ["*****", "******"] // If Type is password. } - No
Password boolRequired - Indicates a password is not required for this user account.
- Passwords List<string>
- Passwords used for this user account. You can create up to two passwords for each user.
-
List<Pulumi.
Aws Native. Inputs. Tag> - An array of key-value pairs to apply to this user.
- User
Name string - The username of the user.
- Engine
User
Engine - The target cache engine for the user.
- User
Id string - The ID of the user.
- Access
String string - Access permissions string used for this user account.
- Authentication
Mode AuthenticationMode Properties Args - Specifies the authentication mode to use. Below is an example of the possible JSON values:
{ Passwords: ["*****", "******"] // If Type is password. } - No
Password boolRequired - Indicates a password is not required for this user account.
- Passwords []string
- Passwords used for this user account. You can create up to two passwords for each user.
-
Tag
Args - An array of key-value pairs to apply to this user.
- User
Name string - The username of the user.
- engine "redis" | "valkey"
- The target cache engine for the user.
- user_
id string - The ID of the user.
- access_
string string - Access permissions string used for this user account.
- authentication_
mode object - Specifies the authentication mode to use. Below is an example of the possible JSON values:
{ Passwords: ["*****", "******"] // If Type is password. } - no_
password_ boolrequired - Indicates a password is not required for this user account.
- passwords list(string)
- Passwords used for this user account. You can create up to two passwords for each user.
- list(object)
- An array of key-value pairs to apply to this user.
- user_
name string - The username of the user.
- engine
User
Engine - The target cache engine for the user.
- user
Id String - The ID of the user.
- access
String String - Access permissions string used for this user account.
- authentication
Mode AuthenticationMode Properties - Specifies the authentication mode to use. Below is an example of the possible JSON values:
{ Passwords: ["*****", "******"] // If Type is password. } - no
Password BooleanRequired - Indicates a password is not required for this user account.
- passwords List<String>
- Passwords used for this user account. You can create up to two passwords for each user.
- List<Tag>
- An array of key-value pairs to apply to this user.
- user
Name String - The username of the user.
- engine
User
Engine - The target cache engine for the user.
- user
Id string - The ID of the user.
- access
String string - Access permissions string used for this user account.
- authentication
Mode AuthenticationMode Properties - Specifies the authentication mode to use. Below is an example of the possible JSON values:
{ Passwords: ["*****", "******"] // If Type is password. } - no
Password booleanRequired - Indicates a password is not required for this user account.
- passwords string[]
- Passwords used for this user account. You can create up to two passwords for each user.
- Tag[]
- An array of key-value pairs to apply to this user.
- user
Name string - The username of the user.
- engine
User
Engine - The target cache engine for the user.
- user_
id str - The ID of the user.
- access_
string str - Access permissions string used for this user account.
- authentication_
mode AuthenticationMode Properties Args - Specifies the authentication mode to use. Below is an example of the possible JSON values:
{ Passwords: ["*****", "******"] // If Type is password. } - no_
password_ boolrequired - Indicates a password is not required for this user account.
- passwords Sequence[str]
- Passwords used for this user account. You can create up to two passwords for each user.
-
Sequence[Tag
Args] - An array of key-value pairs to apply to this user.
- user_
name str - The username of the user.
- engine "redis" | "valkey"
- The target cache engine for the user.
- user
Id String - The ID of the user.
- access
String String - Access permissions string used for this user account.
- authentication
Mode Property Map - Specifies the authentication mode to use. Below is an example of the possible JSON values:
{ Passwords: ["*****", "******"] // If Type is password. } - no
Password BooleanRequired - Indicates a password is not required for this user account.
- passwords List<String>
- Passwords used for this user account. You can create up to two passwords for each user.
- List<Property Map>
- An array of key-value pairs to apply to this user.
- user
Name String - The username of the user.
Outputs
All input properties are implicitly available as output properties. Additionally, the User resource produces the following output properties:
Look up Existing User Resource
Get an existing User 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>, opts?: CustomResourceOptions): User@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> Userfunc GetUser(ctx *Context, name string, id IDInput, state *UserState, opts ...ResourceOption) (*User, error)public static User Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static User get(String name, Output<String> id, CustomResourceOptions options)resources: existingUser: type: aws-native:elasticache:User get: id: ${id}import {
to = aws-native_elasticache_user.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state UserState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
AuthenticationModeProperties, AuthenticationModePropertiesArgs
Specifies the authentication mode to use. Below is an example of the possible JSON values:
{ Passwords: ["*****", "******"] // If Type is password.
}
- Type
Pulumi.
Aws Native. Elasti Cache. User Authentication Mode Properties Type - Authentication Type
- Passwords List<string>
- Passwords used for this user account. You can create up to two passwords for each user.
- Type
User
Authentication Mode Properties Type - Authentication Type
- Passwords []string
- Passwords used for this user account. You can create up to two passwords for each user.
- type "password" | "no-password-required" | "iam"
- Authentication Type
- passwords list(string)
- Passwords used for this user account. You can create up to two passwords for each user.
- type
User
Authentication Mode Properties Type - Authentication Type
- passwords List<String>
- Passwords used for this user account. You can create up to two passwords for each user.
- type
User
Authentication Mode Properties Type - Authentication Type
- passwords string[]
- Passwords used for this user account. You can create up to two passwords for each user.
- type
User
Authentication Mode Properties Type - Authentication Type
- passwords Sequence[str]
- Passwords used for this user account. You can create up to two passwords for each user.
- type "password" | "no-password-required" | "iam"
- Authentication Type
- passwords List<String>
- Passwords used for this user account. You can create up to two passwords for each user.
Tag, TagArgs
A set of tags to apply to the resource.
UserAuthenticationModePropertiesType
Authentication Type
| Name | Value |
|---|---|
| Password | password |
| No | no-password-required |
| Iam | iam |
| Name | Value |
|---|---|
| User | password |
| User | no-password-required |
| User | iam |
| Value |
|---|
password |
no-password-required |
iam |
| Name | Value |
|---|---|
| Password | password |
| No | no-password-required |
| Iam | iam |
| Name | Value |
|---|---|
| Password | password |
| No | no-password-required |
| Iam | iam |
| Name | Value |
|---|---|
| PASSWORD | password |
| NO_PASSWORD_REQUIRED | no-password-required |
| IAM | iam |
| Value |
|---|
password |
no-password-required |
iam |
UserEngine
The target cache engine for the user.
| Name | Value |
|---|---|
| Redis | redis |
| Valkey | valkey |
| Name | Value |
|---|---|
| User | redis |
| User | valkey |
| Value |
|---|
redis |
valkey |
| Name | Value |
|---|---|
| Redis | redis |
| Valkey | valkey |
| Name | Value |
|---|---|
| Redis | redis |
| Valkey | valkey |
| Name | Value |
|---|---|
| REDIS | redis |
| VALKEY | valkey |
| Value |
|---|
redis |
valkey |
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi