"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.QueuePolicy=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),sqs_generated_1=require("./sqs.generated"),aws_iam_1=require("../../aws-iam"),core_1=require("../../core");class QueuePolicy extends core_1.Resource{constructor(scope,id,props){super(scope,id),this.document=new aws_iam_1.PolicyDocument;try{jsiiDeprecationWarnings.aws_cdk_lib_aws_sqs_QueuePolicyProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,QueuePolicy),error}new sqs_generated_1.CfnQueuePolicy(this,"Resource",{policyDocument:this.document,queues:props.queues.map(q=>q.queueUrl)})}get queuePolicyId(){throw new Error("QueuePolicy.queuePolicyId has been removed from CloudFormation")}}exports.QueuePolicy=QueuePolicy,_a=JSII_RTTI_SYMBOL_1,QueuePolicy[_a]={fqn:"aws-cdk-lib.aws_sqs.QueuePolicy",version:"2.96.1"};
