User

class User : KotlinCustomResource

Provides a MemoryDB User. More information about users and ACL-s can be found in the MemoryDB User Guide.

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.random.RandomPassword;
import com.pulumi.random.RandomPasswordArgs;
import com.pulumi.aws.memorydb.User;
import com.pulumi.aws.memorydb.UserArgs;
import com.pulumi.aws.memorydb.inputs.UserAuthenticationModeArgs;
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 exampleRandomPassword = new RandomPassword("exampleRandomPassword", RandomPasswordArgs.builder()
.length(16)
.build());
var exampleUser = new User("exampleUser", UserArgs.builder()
.userName("my-user")
.accessString("on ~* &* +@all")
.authenticationMode(UserAuthenticationModeArgs.builder()
.type("password")
.passwords(exampleRandomPassword.result())
.build())
.build());
}
}

Import

Use the user_name to import a user. For example

$ pulumi import aws:memorydb/user:User example my-user

The passwords are not available for imported resources, as this information cannot be read back from the MemoryDB API.

Properties

Link copied to clipboard
val accessString: Output<String>

The access permissions string used for this user.

Link copied to clipboard
val arn: Output<String>

The ARN of the user.

Link copied to clipboard

Denotes the user's authentication properties. Detailed below.

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

The minimum engine version supported for the 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 map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

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

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val userName: Output<String>

Name of the MemoryDB user. Up to 40 characters. The following arguments are optional: