import * as core from "@terrascript/core"; export interface AuthenticationModeArgs extends core.SchemaArgs { passwordCount: number | core.NumberOut; passwords: core.Array | core.ArrayOut; type: string | core.StringOut; } export class AuthenticationMode extends core.Schema { @core.attr(Number, { computed: true }) public passwordCount!: number | core.NumberOut; @core.attr(String, { kind: "array" }) public passwords!: core.Array | core.ArrayOut; @core.attr(String) public type!: string | core.StringOut; } export interface UserArgs extends core.ResourceArgs { /** * (Required) The access permissions string used for this user. */ accessString: string | core.StringOut; /** * (Required) Denotes the user's authentication properties. Detailed below. */ authenticationMode: AuthenticationMode; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; /** * (Required, Forces new resource) Name of the MemoryDB user. Up to 40 characters. */ userName: string | core.StringOut; } export class User extends core.Resource { /** * (Required) The access permissions string used for this user. */ @core.attr(String) public accessString!: string | core.StringOut; /** * The ARN of the user. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Required) Denotes the user's authentication properties. Detailed below. */ @core.attr(AuthenticationMode) public authenticationMode!: AuthenticationMode; /** * Same as `user_name`. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The minimum engine version supported for the user. */ @core.attr(String, { computed: true }) public minimumEngineVersion!: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; /** * (Required, Forces new resource) Name of the MemoryDB user. Up to 40 characters. */ @core.attr(String) public userName!: string | core.StringOut; constructor(name: string, args?: UserArgs) { super(name, "aws_memorydb_user", args); } public override getNamespace(): string { return "aws_memorydb"; } }