// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS ElastiCache */ export interface ElasticacheUserConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/elasticache_user.html#access_string ElasticacheUser#access_string} */ readonly accessString: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/elasticache_user.html#engine ElasticacheUser#engine} */ readonly engine: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/elasticache_user.html#no_password_required ElasticacheUser#no_password_required} */ readonly noPasswordRequired?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/elasticache_user.html#passwords ElasticacheUser#passwords} */ readonly passwords?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/elasticache_user.html#tags ElasticacheUser#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/elasticache_user.html#tags_all ElasticacheUser#tags_all} */ readonly tagsAll?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/elasticache_user.html#user_id ElasticacheUser#user_id} */ readonly userId: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/elasticache_user.html#user_name ElasticacheUser#user_name} */ readonly userName: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/elasticache_user.html aws_elasticache_user} */ export class ElasticacheUser extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_elasticache_user"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/elasticache_user.html aws_elasticache_user} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options ElasticacheUserConfig */ public constructor(scope: Construct, id: string, config: ElasticacheUserConfig) { super(scope, id, { terraformResourceType: 'aws_elasticache_user', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._accessString = config.accessString; this._engine = config.engine; this._noPasswordRequired = config.noPasswordRequired; this._passwords = config.passwords; this._tags = config.tags; this._tagsAll = config.tagsAll; this._userId = config.userId; this._userName = config.userName; } // ========== // ATTRIBUTES // ========== // access_string - computed: false, optional: false, required: true private _accessString?: string; public get accessString() { return this.getStringAttribute('access_string'); } public set accessString(value: string) { this._accessString = value; } // Temporarily expose input value. Use with caution. public get accessStringInput() { return this._accessString; } // arn - computed: true, optional: true, required: false public get arn() { return this.getStringAttribute('arn'); } // engine - computed: false, optional: false, required: true private _engine?: string; public get engine() { return this.getStringAttribute('engine'); } public set engine(value: string) { this._engine = value; } // Temporarily expose input value. Use with caution. public get engineInput() { return this._engine; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // no_password_required - computed: false, optional: true, required: false private _noPasswordRequired?: boolean | cdktf.IResolvable; public get noPasswordRequired() { return this.getBooleanAttribute('no_password_required') as any; } public set noPasswordRequired(value: boolean | cdktf.IResolvable) { this._noPasswordRequired = value; } public resetNoPasswordRequired() { this._noPasswordRequired = undefined; } // Temporarily expose input value. Use with caution. public get noPasswordRequiredInput() { return this._noPasswordRequired; } // passwords - computed: false, optional: true, required: false private _passwords?: string[]; public get passwords() { return this.getListAttribute('passwords'); } public set passwords(value: string[]) { this._passwords = value; } public resetPasswords() { this._passwords = undefined; } // Temporarily expose input value. Use with caution. public get passwordsInput() { return this._passwords; } // tags - computed: false, optional: true, required: false private _tags?: { [key: string]: string } | cdktf.IResolvable; public get tags() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags') as any; } public set tags(value: { [key: string]: string } | cdktf.IResolvable) { this._tags = value; } public resetTags() { this._tags = undefined; } // Temporarily expose input value. Use with caution. public get tagsInput() { return this._tags; } // tags_all - computed: true, optional: true, required: false private _tagsAll?: { [key: string]: string } | cdktf.IResolvable; public get tagsAll() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags_all') as any; } public set tagsAll(value: { [key: string]: string } | cdktf.IResolvable) { this._tagsAll = value; } public resetTagsAll() { this._tagsAll = undefined; } // Temporarily expose input value. Use with caution. public get tagsAllInput() { return this._tagsAll; } // user_id - computed: false, optional: false, required: true private _userId?: string; public get userId() { return this.getStringAttribute('user_id'); } public set userId(value: string) { this._userId = value; } // Temporarily expose input value. Use with caution. public get userIdInput() { return this._userId; } // user_name - computed: false, optional: false, required: true private _userName?: string; public get userName() { return this.getStringAttribute('user_name'); } public set userName(value: string) { this._userName = value; } // Temporarily expose input value. Use with caution. public get userNameInput() { return this._userName; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { access_string: cdktf.stringToTerraform(this._accessString), engine: cdktf.stringToTerraform(this._engine), no_password_required: cdktf.booleanToTerraform(this._noPasswordRequired), passwords: cdktf.listMapper(cdktf.stringToTerraform)(this._passwords), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), tags_all: cdktf.hashMapper(cdktf.anyToTerraform)(this._tagsAll), user_id: cdktf.stringToTerraform(this._userId), user_name: cdktf.stringToTerraform(this._userName), }; } }