// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Identity and Access Management */ export interface DataAwsIamUserConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/iam_user.html#tags DataAwsIamUser#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/iam_user.html#user_name DataAwsIamUser#user_name} */ readonly userName: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/iam_user.html aws_iam_user} */ export class DataAwsIamUser extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_iam_user"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/iam_user.html aws_iam_user} Data Source * * @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 DataAwsIamUserConfig */ public constructor(scope: Construct, id: string, config: DataAwsIamUserConfig) { super(scope, id, { terraformResourceType: 'aws_iam_user', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._tags = config.tags; this._userName = config.userName; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // path - computed: true, optional: false, required: false public get path() { return this.getStringAttribute('path'); } // permissions_boundary - computed: true, optional: false, required: false public get permissionsBoundary() { return this.getStringAttribute('permissions_boundary'); } // tags - computed: true, 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; } // user_id - computed: true, optional: false, required: false public get userId() { return this.getStringAttribute('user_id'); } // 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 { tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), user_name: cdktf.stringToTerraform(this._userName), }; } }