"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.SnsDestination=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");class SnsDestination{constructor(topic){this.topic=topic,jsiiDeprecationWarnings.aws_cdk_lib_aws_sns_ITopic(topic)}bind(_scope,fn,_options){return jsiiDeprecationWarnings.aws_cdk_lib_aws_lambda_IFunction(fn),jsiiDeprecationWarnings.aws_cdk_lib_aws_lambda_DestinationOptions(_options),this.topic.grantPublish(fn),{destination:this.topic.topicArn}}}exports.SnsDestination=SnsDestination,_a=JSII_RTTI_SYMBOL_1,SnsDestination[_a]={fqn:"aws-cdk-lib.aws_lambda_destinations.SnsDestination",version:"2.13.0"};
//# sourceMappingURL=sns.js.map
