// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Identity and Access Management */ export interface IamGroupMembershipConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/iam_group_membership.html#group IamGroupMembership#group} */ readonly group: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/iam_group_membership.html#name IamGroupMembership#name} */ readonly name: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/iam_group_membership.html#users IamGroupMembership#users} */ readonly users: string[]; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/iam_group_membership.html aws_iam_group_membership} */ export class IamGroupMembership extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_iam_group_membership"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/iam_group_membership.html aws_iam_group_membership} 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 IamGroupMembershipConfig */ public constructor(scope: Construct, id: string, config: IamGroupMembershipConfig) { super(scope, id, { terraformResourceType: 'aws_iam_group_membership', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._group = config.group; this._name = config.name; this._users = config.users; } // ========== // ATTRIBUTES // ========== // group - computed: false, optional: false, required: true private _group?: string; public get group() { return this.getStringAttribute('group'); } public set group(value: string) { this._group = value; } // Temporarily expose input value. Use with caution. public get groupInput() { return this._group; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // name - computed: false, optional: false, required: true private _name?: string; public get name() { return this.getStringAttribute('name'); } public set name(value: string) { this._name = value; } // Temporarily expose input value. Use with caution. public get nameInput() { return this._name; } // users - computed: false, optional: false, required: true private _users?: string[]; public get users() { return this.getListAttribute('users'); } public set users(value: string[]) { this._users = value; } // Temporarily expose input value. Use with caution. public get usersInput() { return this._users; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { group: cdktf.stringToTerraform(this._group), name: cdktf.stringToTerraform(this._name), users: cdktf.listMapper(cdktf.stringToTerraform)(this._users), }; } }