import * as core from "@terrascript/core"; export interface PolicyAttachmentArgs extends core.ResourceArgs { groups?: core.Array | core.ArrayOut; /** * The name of the attachment. */ name: string | core.StringOut; policyArn: string | core.StringOut; roles?: core.Array | core.ArrayOut; users?: core.Array | core.ArrayOut; } export class PolicyAttachment extends core.Resource { @core.attr(String, { kind: "array" }) public groups?: core.Array | core.ArrayOut; /** * The policy's ID. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The name of the attachment. */ @core.attr(String) public name!: string | core.StringOut; @core.attr(String) public policyArn!: string | core.StringOut; @core.attr(String, { kind: "array" }) public roles?: core.Array | core.ArrayOut; @core.attr(String, { kind: "array" }) public users?: core.Array | core.ArrayOut; constructor(name: string, args?: PolicyAttachmentArgs) { super(name, "aws_iam_policy_attachment", args); } public override getNamespace(): string { return "aws_iam"; } }