User

class User : KotlinCustomResource

Provides an ElastiCache user resource.

Note: All arguments including the username and passwords will be stored in the raw state as plain-text.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.elasticache.User;
import com.pulumi.aws.elasticache.UserArgs;
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 test = new User("test", UserArgs.builder()
.accessString("on ~app::* -@all +@read +@hash +@bitmap +@geo -setbit -bitfield -hset -hsetnx -hmset -hincrby -hincrbyfloat -hdel -bitop -geoadd -georadius -georadiusbymember")
.engine("REDIS")
.passwords("password123456789")
.userId("testUserId")
.userName("testUserName")
.build());
}
}

Import

ElastiCache users can be imported using the user_id, e.g.,

$ pulumi import aws:elasticache/user:User my_user userId1

Properties

Link copied to clipboard
val accessString: Output<String>

Access permissions string used for this user. See Specifying Permissions Using an Access String for more details.

Link copied to clipboard
val arn: Output<String>

The ARN of the created ElastiCache User.

Link copied to clipboard

Denotes the user's authentication properties. Detailed below.

Link copied to clipboard
val engine: Output<String>

The current supported value is REDIS.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

Indicates a password is not required for this user.

Link copied to clipboard
val passwords: Output<List<String>>?

Passwords used for this user. You can create up to two passwords for each user.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Output<Map<String, String>>?

A list of tags to be added to this resource. A tag is a key-value pair.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>
Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val userId: Output<String>

The ID of the user.

Link copied to clipboard
val userName: Output<String>

The username of the user. The following arguments are optional: