"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.ResourcePolicy=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),iam=require("../../aws-iam"),core_1=require("../../core"),secretsmanager_generated_1=require("./secretsmanager.generated");class ResourcePolicy extends core_1.Resource{constructor(scope,id,props){super(scope,id),this.document=new iam.PolicyDocument;try{jsiiDeprecationWarnings.aws_cdk_lib_aws_secretsmanager_ResourcePolicyProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.constructor),error}new secretsmanager_generated_1.CfnResourcePolicy(this,"Resource",{resourcePolicy:this.document,secretId:props.secret.secretArn})}}exports.ResourcePolicy=ResourcePolicy,_a=JSII_RTTI_SYMBOL_1,ResourcePolicy[_a]={fqn:"aws-cdk-lib.aws_secretsmanager.ResourcePolicy",version:"2.24.1"};
//# sourceMappingURL=policy.js.map
