// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Identity and Access Management */ export interface DataAwsIamGroupConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/iam_group.html#group_name DataAwsIamGroup#group_name} */ readonly groupName: string; } export class DataAwsIamGroupUsers extends cdktf.ComplexComputedList { // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // path - computed: true, optional: false, required: false public get path() { return this.getStringAttribute('path'); } // user_id - computed: true, optional: false, required: false public get userId() { return this.getStringAttribute('user_id'); } // user_name - computed: true, optional: false, required: false public get userName() { return this.getStringAttribute('user_name'); } } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/iam_group.html aws_iam_group} */ export class DataAwsIamGroup extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_iam_group"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/iam_group.html aws_iam_group} 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 DataAwsIamGroupConfig */ public constructor(scope: Construct, id: string, config: DataAwsIamGroupConfig) { super(scope, id, { terraformResourceType: 'aws_iam_group', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._groupName = config.groupName; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // group_id - computed: true, optional: false, required: false public get groupId() { return this.getStringAttribute('group_id'); } // group_name - computed: false, optional: false, required: true private _groupName?: string; public get groupName() { return this.getStringAttribute('group_name'); } public set groupName(value: string) { this._groupName = value; } // Temporarily expose input value. Use with caution. public get groupNameInput() { return this._groupName; } // 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'); } // users - computed: true, optional: false, required: false public users(index: string) { return new DataAwsIamGroupUsers(this, 'users', index); } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { group_name: cdktf.stringToTerraform(this._groupName), }; } }