// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Identity and Access Management */ export interface IamUserSshKeyConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/iam_user_ssh_key.html#encoding IamUserSshKey#encoding} */ readonly encoding: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/iam_user_ssh_key.html#public_key IamUserSshKey#public_key} */ readonly publicKey: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/iam_user_ssh_key.html#status IamUserSshKey#status} */ readonly status?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/iam_user_ssh_key.html#username IamUserSshKey#username} */ readonly username: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/iam_user_ssh_key.html aws_iam_user_ssh_key} */ export class IamUserSshKey extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_iam_user_ssh_key"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/iam_user_ssh_key.html aws_iam_user_ssh_key} 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 IamUserSshKeyConfig */ public constructor(scope: Construct, id: string, config: IamUserSshKeyConfig) { super(scope, id, { terraformResourceType: 'aws_iam_user_ssh_key', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._encoding = config.encoding; this._publicKey = config.publicKey; this._status = config.status; this._username = config.username; } // ========== // ATTRIBUTES // ========== // encoding - computed: false, optional: false, required: true private _encoding?: string; public get encoding() { return this.getStringAttribute('encoding'); } public set encoding(value: string) { this._encoding = value; } // Temporarily expose input value. Use with caution. public get encodingInput() { return this._encoding; } // fingerprint - computed: true, optional: false, required: false public get fingerprint() { return this.getStringAttribute('fingerprint'); } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // public_key - computed: false, optional: false, required: true private _publicKey?: string; public get publicKey() { return this.getStringAttribute('public_key'); } public set publicKey(value: string) { this._publicKey = value; } // Temporarily expose input value. Use with caution. public get publicKeyInput() { return this._publicKey; } // ssh_public_key_id - computed: true, optional: false, required: false public get sshPublicKeyId() { return this.getStringAttribute('ssh_public_key_id'); } // status - computed: true, optional: true, required: false private _status?: string; public get status() { return this.getStringAttribute('status'); } public set status(value: string) { this._status = value; } public resetStatus() { this._status = undefined; } // Temporarily expose input value. Use with caution. public get statusInput() { return this._status; } // username - computed: false, optional: false, required: true private _username?: string; public get username() { return this.getStringAttribute('username'); } 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 { encoding: cdktf.stringToTerraform(this._encoding), public_key: cdktf.stringToTerraform(this._publicKey), status: cdktf.stringToTerraform(this._status), username: cdktf.stringToTerraform(this._username), }; } }