"use strict";var _a,_b;Object.defineProperty(exports,"__esModule",{value:!0}),exports.AmazonLinux2023ImageSsmParameter=exports.AmazonLinux2023Kernel=void 0;const jsiiDeprecationWarnings=require("../../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),common_1=require("./common");class AmazonLinux2023Kernel{constructor(version){this.version=version}toString(){return`kernel-${this.version}`}}exports.AmazonLinux2023Kernel=AmazonLinux2023Kernel,_a=JSII_RTTI_SYMBOL_1,AmazonLinux2023Kernel[_a]={fqn:"aws-cdk-lib.aws_ec2.AmazonLinux2023Kernel",version:"2.96.1"},AmazonLinux2023Kernel.CDK_LATEST=new AmazonLinux2023Kernel("6.1"),AmazonLinux2023Kernel.DEFAULT=new AmazonLinux2023Kernel("default"),AmazonLinux2023Kernel.KERNEL_6_1=new AmazonLinux2023Kernel("6.1");class AmazonLinux2023ImageSsmParameter extends common_1.AmazonLinuxImageSsmParameterBase{static ssmParameterName(props){try{jsiiDeprecationWarnings.aws_cdk_lib_aws_ec2_AmazonLinux2023ImageSsmParameterProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.ssmParameterName),error}const edition=props&&props.edition||common_1.AmazonLinuxEdition.STANDARD;return"/aws/service/ami-amazon-linux-latest/"+[common_1.AmazonLinuxGeneration.AMAZON_LINUX_2023,"ami",edition!==common_1.AmazonLinuxEdition.STANDARD?edition:void 0,(props.kernel??AmazonLinux2023Kernel.DEFAULT)?.toString(),props.cpuType??common_1.AmazonLinuxCpuType.X86_64].filter(x=>!!x).join("-")}constructor(props={}){super({parameterName:AmazonLinux2023ImageSsmParameter.ssmParameterName(props),cachedInContext:props.cachedInContext,userData:props.userData});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_ec2_AmazonLinux2023ImageSsmParameterProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,AmazonLinux2023ImageSsmParameter),error}}}exports.AmazonLinux2023ImageSsmParameter=AmazonLinux2023ImageSsmParameter,_b=JSII_RTTI_SYMBOL_1,AmazonLinux2023ImageSsmParameter[_b]={fqn:"aws-cdk-lib.aws_ec2.AmazonLinux2023ImageSsmParameter",version:"2.96.1"};
