"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.AddHeader=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");class AddHeader{constructor(props){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_ses_actions_AddHeaderProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,AddHeader),error}if(!/^[a-zA-Z0-9-]{1,50}$/.test(props.name))throw new Error("Header `name` must be between 1 and 50 characters, inclusive, and consist of alphanumeric (a-z, A-Z, 0-9) characters and dashes only.");if(!/^[^\n\r]{0,2047}$/.test(props.value))throw new Error('Header `value` must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").');this.name=props.name,this.value=props.value}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{addHeaderAction:{headerName:this.name,headerValue:this.value}}}}exports.AddHeader=AddHeader,_a=JSII_RTTI_SYMBOL_1,AddHeader[_a]={fqn:"aws-cdk-lib.aws_ses_actions.AddHeader",version:"2.148.1"};
