import * as core from "@terrascript/core"; export interface DsPolicyArgs { /** * (Optional) The ARN of the IAM policy. */ arn?: string | core.StringOut; /** * (Optional) The name of the IAM policy. */ name?: string | core.StringOut; /** * (Optional) The prefix of the path to the IAM policy. */ pathPrefix?: string | core.StringOut; /** * Key-value mapping of tags for the IAM Policy. */ tags?: core.Map | core.MapOut; } export class DsPolicy extends core.Data { /** * (Optional) The ARN of the IAM policy. */ @core.attr(String, { computed: true }) public arn?: string | core.StringOut; /** * The description of the policy. */ @core.attr(String, { computed: true }) public description!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) The name of the IAM policy. */ @core.attr(String, { computed: true }) public name?: string | core.StringOut; /** * The path to the policy. */ @core.attr(String, { computed: true }) public path!: string | core.StringOut; /** * (Optional) The prefix of the path to the IAM policy. */ @core.attr(String) public pathPrefix?: string | core.StringOut; /** * The policy document of the policy. */ @core.attr(String, { computed: true }) public policy!: string | core.StringOut; /** * The policy's ID. */ @core.attr(String, { computed: true }) public policyId!: string | core.StringOut; /** * Key-value mapping of tags for the IAM Policy. */ @core.attr(String, { computed: true, kind: "map" }) public tags?: core.Map | core.MapOut; constructor(name: string, args?: DsPolicyArgs) { super(name, "aws_iam_policy", args); } public override getNamespace(): string { return "aws_iam"; } }