"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.SmsSubscription=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),sns=require("../../aws-sns");class SmsSubscription{constructor(phoneNumber,props={}){this.phoneNumber=phoneNumber,this.props=props;try{jsiiDeprecationWarnings.aws_cdk_lib_aws_sns_subscriptions_SmsSubscriptionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,SmsSubscription),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.phoneNumber,endpoint:this.phoneNumber,protocol:sns.SubscriptionProtocol.SMS,filterPolicy:this.props.filterPolicy,filterPolicyWithMessageBody:this.props.filterPolicyWithMessageBody}}}exports.SmsSubscription=SmsSubscription,_a=JSII_RTTI_SYMBOL_1,SmsSubscription[_a]={fqn:"aws-cdk-lib.aws_sns_subscriptions.SmsSubscription",version:"2.96.1"};
