"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.DedicatedIpPool=exports.ScalingMode=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var ses_generated_1=()=>{var tmp=require("./ses.generated");return ses_generated_1=()=>tmp,tmp},core_1=()=>{var tmp=require("../../core");return core_1=()=>tmp,tmp},ScalingMode;(function(ScalingMode2){ScalingMode2.STANDARD="STANDARD",ScalingMode2.MANAGED="MANAGED"})(ScalingMode||(exports.ScalingMode=ScalingMode={}));class DedicatedIpPool extends core_1().Resource{static fromDedicatedIpPoolName(scope,id,dedicatedIpPoolName){class Import extends core_1().Resource{constructor(){super(...arguments),this.dedicatedIpPoolName=dedicatedIpPoolName}}return new Import(scope,id)}constructor(scope,id,props={}){super(scope,id,{physicalName:props.dedicatedIpPoolName});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_ses_DedicatedIpPoolProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,DedicatedIpPool),error}if(props.dedicatedIpPoolName&&!/^[a-z0-9_-]{0,64}$/.test(props.dedicatedIpPoolName))throw new Error(`Invalid dedicatedIpPoolName "${props.dedicatedIpPoolName}". The name must only include lowercase letters, numbers, underscores, hyphens, and must not exceed 64 characters.`);const pool=new(ses_generated_1()).CfnDedicatedIpPool(this,"Resource",{poolName:this.physicalName,scalingMode:props.scalingMode});this.dedicatedIpPoolName=pool.ref}}exports.DedicatedIpPool=DedicatedIpPool,_a=JSII_RTTI_SYMBOL_1,DedicatedIpPool[_a]={fqn:"aws-cdk-lib.aws_ses.DedicatedIpPool",version:"2.148.1"};
