import * as core from "@terrascript/core"; export interface PolicyAttachmentArgs extends core.ResourceArgs { /** * (Required) The name of the policy to attach. */ policy: string | core.StringOut; /** * (Required) The identity to which the policy is attached. */ target: string | core.StringOut; } export class PolicyAttachment extends core.Resource { @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The name of the policy to attach. */ @core.attr(String) public policy!: string | core.StringOut; /** * (Required) The identity to which the policy is attached. */ @core.attr(String) public target!: string | core.StringOut; constructor(name: string, args?: PolicyAttachmentArgs) { super(name, "aws_iot_policy_attachment", args); } public override getNamespace(): string { return "aws_iot"; } }