"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.EmailSubscription=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var sns=()=>{var tmp=require("../../aws-sns");return sns=()=>tmp,tmp};class EmailSubscription{constructor(emailAddress,props={}){this.emailAddress=emailAddress,this.props=props;try{jsiiDeprecationWarnings().aws_cdk_lib_aws_sns_subscriptions_EmailSubscriptionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,EmailSubscription),error}}bind(_topic){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_sns_ITopic(_topic)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}return{subscriberId:this.emailAddress,endpoint:this.emailAddress,protocol:this.props.json?sns().SubscriptionProtocol.EMAIL_JSON:sns().SubscriptionProtocol.EMAIL,filterPolicy:this.props.filterPolicy,filterPolicyWithMessageBody:this.props.filterPolicyWithMessageBody,deadLetterQueue:this.props.deadLetterQueue}}}exports.EmailSubscription=EmailSubscription,_a=JSII_RTTI_SYMBOL_1,EmailSubscription[_a]={fqn:"aws-cdk-lib.aws_sns_subscriptions.EmailSubscription",version:"2.148.1"};
