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