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