"use strict";var _a,_b;Object.defineProperty(exports,"__esModule",{value:!0}),exports.Bounce=exports.BounceTemplate=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");class BounceTemplate{constructor(props){this.props=props;try{jsiiDeprecationWarnings().aws_cdk_lib_aws_ses_actions_BounceTemplateProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,BounceTemplate),error}}}exports.BounceTemplate=BounceTemplate,_a=JSII_RTTI_SYMBOL_1,BounceTemplate[_a]={fqn:"aws-cdk-lib.aws_ses_actions.BounceTemplate",version:"2.148.1"},BounceTemplate.MAILBOX_DOES_NOT_EXIST=new BounceTemplate({message:"Mailbox does not exist",smtpReplyCode:"550",statusCode:"5.1.1"}),BounceTemplate.MESSAGE_TOO_LARGE=new BounceTemplate({message:"Message too large",smtpReplyCode:"552",statusCode:"5.3.4"}),BounceTemplate.MAILBOX_FULL=new BounceTemplate({message:"Mailbox full",smtpReplyCode:"552",statusCode:"5.2.2"}),BounceTemplate.MESSAGE_CONTENT_REJECTED=new BounceTemplate({message:"Message content rejected",smtpReplyCode:"500",statusCode:"5.6.1"}),BounceTemplate.TEMPORARY_FAILURE=new BounceTemplate({message:"Temporary failure",smtpReplyCode:"450",statusCode:"4.0.0"});class Bounce{constructor(props){this.props=props;try{jsiiDeprecationWarnings().aws_cdk_lib_aws_ses_actions_BounceProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,Bounce),error}}bind(_rule){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_ses_IReceiptRule(_rule)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}return{bounceAction:{sender:this.props.sender,smtpReplyCode:this.props.template.props.smtpReplyCode,message:this.props.template.props.message,topicArn:this.props.topic?.topicArn,statusCode:this.props.template.props.statusCode}}}}exports.Bounce=Bounce,_b=JSII_RTTI_SYMBOL_1,Bounce[_b]={fqn:"aws-cdk-lib.aws_ses_actions.Bounce",version:"2.148.1"};
