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