"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.EmailSubscription=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),sns=require("../../aws-sns");class EmailSubscription{constructor(emailAddress,props={}){this.emailAddress=emailAddress,this.props=props,jsiiDeprecationWarnings.aws_cdk_lib_aws_sns_subscriptions_EmailSubscriptionProps(props)}bind(_topic){return jsiiDeprecationWarnings.aws_cdk_lib_aws_sns_ITopic(_topic),{subscriberId:this.emailAddress,endpoint:this.emailAddress,protocol:this.props.json?sns.SubscriptionProtocol.EMAIL_JSON:sns.SubscriptionProtocol.EMAIL,filterPolicy:this.props.filterPolicy,deadLetterQueue:this.props.deadLetterQueue}}}exports.EmailSubscription=EmailSubscription,_a=JSII_RTTI_SYMBOL_1,EmailSubscription[_a]={fqn:"aws-cdk-lib.aws_sns_subscriptions.EmailSubscription",version:"2.13.0"};
//# sourceMappingURL=email.js.map
