import * as core from "@terrascript/core"; export interface QueuePolicyArgs extends core.ResourceArgs { /** * (Required) The JSON policy for the SQS queue. For more information about building AWS IAM policy doc * uments with Terraform, see the [AWS IAM Policy Document Guide](https://learn.hashicorp.com/terraform * /aws/iam-policy). */ policy: string | core.StringOut; /** * (Required) The URL of the SQS Queue to which to attach the policy */ queueUrl: string | core.StringOut; } export class QueuePolicy extends core.Resource { @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The JSON policy for the SQS queue. For more information about building AWS IAM policy doc * uments with Terraform, see the [AWS IAM Policy Document Guide](https://learn.hashicorp.com/terraform * /aws/iam-policy). */ @core.attr(String) public policy!: string | core.StringOut; /** * (Required) The URL of the SQS Queue to which to attach the policy */ @core.attr(String) public queueUrl!: string | core.StringOut; constructor(name: string, args?: QueuePolicyArgs) { super(name, "aws_sqs_queue_policy", args); } public override getNamespace(): string { return "aws_sqs"; } }