// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Identity and Access Management */ export interface DataAwsIamUsersConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/iam_users.html#name_regex DataAwsIamUsers#name_regex} */ readonly nameRegex?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/iam_users.html#path_prefix DataAwsIamUsers#path_prefix} */ readonly pathPrefix?: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/iam_users.html aws_iam_users} */ export class DataAwsIamUsers extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_iam_users"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/iam_users.html aws_iam_users} 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 DataAwsIamUsersConfig = {} */ public constructor(scope: Construct, id: string, config: DataAwsIamUsersConfig = {}) { super(scope, id, { terraformResourceType: 'aws_iam_users', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._nameRegex = config.nameRegex; this._pathPrefix = config.pathPrefix; } // ========== // ATTRIBUTES // ========== // arns - computed: true, optional: false, required: false public get arns() { return this.getListAttribute('arns'); } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // name_regex - computed: false, optional: true, required: false private _nameRegex?: string; public get nameRegex() { return this.getStringAttribute('name_regex'); } public set nameRegex(value: string) { this._nameRegex = value; } public resetNameRegex() { this._nameRegex = undefined; } // Temporarily expose input value. Use with caution. public get nameRegexInput() { return this._nameRegex; } // names - computed: true, optional: false, required: false public get names() { return this.getListAttribute('names'); } // path_prefix - computed: false, optional: true, required: false private _pathPrefix?: string; public get pathPrefix() { return this.getStringAttribute('path_prefix'); } public set pathPrefix(value: string) { this._pathPrefix = value; } public resetPathPrefix() { this._pathPrefix = undefined; } // Temporarily expose input value. Use with caution. public get pathPrefixInput() { return this._pathPrefix; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { name_regex: cdktf.stringToTerraform(this._nameRegex), path_prefix: cdktf.stringToTerraform(this._pathPrefix), }; } }