// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS EC2 */ export interface LaunchTemplateConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#default_version LaunchTemplate#default_version} */ readonly defaultVersion?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#description LaunchTemplate#description} */ readonly description?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#disable_api_termination LaunchTemplate#disable_api_termination} */ readonly disableApiTermination?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#ebs_optimized LaunchTemplate#ebs_optimized} */ readonly ebsOptimized?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#image_id LaunchTemplate#image_id} */ readonly imageId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#instance_initiated_shutdown_behavior LaunchTemplate#instance_initiated_shutdown_behavior} */ readonly instanceInitiatedShutdownBehavior?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#instance_type LaunchTemplate#instance_type} */ readonly instanceType?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#kernel_id LaunchTemplate#kernel_id} */ readonly kernelId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#key_name LaunchTemplate#key_name} */ readonly keyName?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#name LaunchTemplate#name} */ readonly name?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#name_prefix LaunchTemplate#name_prefix} */ readonly namePrefix?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#ram_disk_id LaunchTemplate#ram_disk_id} */ readonly ramDiskId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#security_group_names LaunchTemplate#security_group_names} */ readonly securityGroupNames?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#tags LaunchTemplate#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#tags_all LaunchTemplate#tags_all} */ readonly tagsAll?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#update_default_version LaunchTemplate#update_default_version} */ readonly updateDefaultVersion?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#user_data LaunchTemplate#user_data} */ readonly userData?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#vpc_security_group_ids LaunchTemplate#vpc_security_group_ids} */ readonly vpcSecurityGroupIds?: string[]; /** * block_device_mappings block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#block_device_mappings LaunchTemplate#block_device_mappings} */ readonly blockDeviceMappings?: LaunchTemplateBlockDeviceMappings[]; /** * capacity_reservation_specification block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#capacity_reservation_specification LaunchTemplate#capacity_reservation_specification} */ readonly capacityReservationSpecification?: LaunchTemplateCapacityReservationSpecification; /** * cpu_options block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#cpu_options LaunchTemplate#cpu_options} */ readonly cpuOptions?: LaunchTemplateCpuOptions; /** * credit_specification block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#credit_specification LaunchTemplate#credit_specification} */ readonly creditSpecification?: LaunchTemplateCreditSpecification; /** * elastic_gpu_specifications block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#elastic_gpu_specifications LaunchTemplate#elastic_gpu_specifications} */ readonly elasticGpuSpecifications?: LaunchTemplateElasticGpuSpecifications[]; /** * elastic_inference_accelerator block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#elastic_inference_accelerator LaunchTemplate#elastic_inference_accelerator} */ readonly elasticInferenceAccelerator?: LaunchTemplateElasticInferenceAccelerator; /** * enclave_options block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#enclave_options LaunchTemplate#enclave_options} */ readonly enclaveOptions?: LaunchTemplateEnclaveOptions; /** * hibernation_options block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#hibernation_options LaunchTemplate#hibernation_options} */ readonly hibernationOptions?: LaunchTemplateHibernationOptions; /** * iam_instance_profile block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#iam_instance_profile LaunchTemplate#iam_instance_profile} */ readonly iamInstanceProfile?: LaunchTemplateIamInstanceProfile; /** * instance_market_options block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#instance_market_options LaunchTemplate#instance_market_options} */ readonly instanceMarketOptions?: LaunchTemplateInstanceMarketOptions; /** * license_specification block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#license_specification LaunchTemplate#license_specification} */ readonly licenseSpecification?: LaunchTemplateLicenseSpecification[]; /** * metadata_options block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#metadata_options LaunchTemplate#metadata_options} */ readonly metadataOptions?: LaunchTemplateMetadataOptions; /** * monitoring block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#monitoring LaunchTemplate#monitoring} */ readonly monitoring?: LaunchTemplateMonitoring; /** * network_interfaces block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#network_interfaces LaunchTemplate#network_interfaces} */ readonly networkInterfaces?: LaunchTemplateNetworkInterfaces[]; /** * placement block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#placement LaunchTemplate#placement} */ readonly placement?: LaunchTemplatePlacement; /** * tag_specifications block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#tag_specifications LaunchTemplate#tag_specifications} */ readonly tagSpecifications?: LaunchTemplateTagSpecifications[]; } export interface LaunchTemplateBlockDeviceMappingsEbs { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#delete_on_termination LaunchTemplate#delete_on_termination} */ readonly deleteOnTermination?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#encrypted LaunchTemplate#encrypted} */ readonly encrypted?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#iops LaunchTemplate#iops} */ readonly iops?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#kms_key_id LaunchTemplate#kms_key_id} */ readonly kmsKeyId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#snapshot_id LaunchTemplate#snapshot_id} */ readonly snapshotId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#throughput LaunchTemplate#throughput} */ readonly throughput?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#volume_size LaunchTemplate#volume_size} */ readonly volumeSize?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#volume_type LaunchTemplate#volume_type} */ readonly volumeType?: string; } export function launchTemplateBlockDeviceMappingsEbsToTerraform(struct?: LaunchTemplateBlockDeviceMappingsEbsOutputReference | LaunchTemplateBlockDeviceMappingsEbs): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { delete_on_termination: cdktf.stringToTerraform(struct!.deleteOnTermination), encrypted: cdktf.stringToTerraform(struct!.encrypted), iops: cdktf.numberToTerraform(struct!.iops), kms_key_id: cdktf.stringToTerraform(struct!.kmsKeyId), snapshot_id: cdktf.stringToTerraform(struct!.snapshotId), throughput: cdktf.numberToTerraform(struct!.throughput), volume_size: cdktf.numberToTerraform(struct!.volumeSize), volume_type: cdktf.stringToTerraform(struct!.volumeType), } } export class LaunchTemplateBlockDeviceMappingsEbsOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): LaunchTemplateBlockDeviceMappingsEbs | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._deleteOnTermination !== undefined) { hasAnyValues = true; internalValueResult.deleteOnTermination = this._deleteOnTermination; } if (this._encrypted !== undefined) { hasAnyValues = true; internalValueResult.encrypted = this._encrypted; } if (this._iops !== undefined) { hasAnyValues = true; internalValueResult.iops = this._iops; } if (this._kmsKeyId !== undefined) { hasAnyValues = true; internalValueResult.kmsKeyId = this._kmsKeyId; } if (this._snapshotId !== undefined) { hasAnyValues = true; internalValueResult.snapshotId = this._snapshotId; } if (this._throughput !== undefined) { hasAnyValues = true; internalValueResult.throughput = this._throughput; } if (this._volumeSize !== undefined) { hasAnyValues = true; internalValueResult.volumeSize = this._volumeSize; } if (this._volumeType !== undefined) { hasAnyValues = true; internalValueResult.volumeType = this._volumeType; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: LaunchTemplateBlockDeviceMappingsEbs | undefined) { if (value === undefined) { this.isEmptyObject = false; this._deleteOnTermination = undefined; this._encrypted = undefined; this._iops = undefined; this._kmsKeyId = undefined; this._snapshotId = undefined; this._throughput = undefined; this._volumeSize = undefined; this._volumeType = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._deleteOnTermination = value.deleteOnTermination; this._encrypted = value.encrypted; this._iops = value.iops; this._kmsKeyId = value.kmsKeyId; this._snapshotId = value.snapshotId; this._throughput = value.throughput; this._volumeSize = value.volumeSize; this._volumeType = value.volumeType; } } // delete_on_termination - computed: false, optional: true, required: false private _deleteOnTermination?: string; public get deleteOnTermination() { return this.getStringAttribute('delete_on_termination'); } public set deleteOnTermination(value: string) { this._deleteOnTermination = value; } public resetDeleteOnTermination() { this._deleteOnTermination = undefined; } // Temporarily expose input value. Use with caution. public get deleteOnTerminationInput() { return this._deleteOnTermination; } // encrypted - computed: false, optional: true, required: false private _encrypted?: string; public get encrypted() { return this.getStringAttribute('encrypted'); } public set encrypted(value: string) { this._encrypted = value; } public resetEncrypted() { this._encrypted = undefined; } // Temporarily expose input value. Use with caution. public get encryptedInput() { return this._encrypted; } // iops - computed: true, optional: true, required: false private _iops?: number; public get iops() { return this.getNumberAttribute('iops'); } public set iops(value: number) { this._iops = value; } public resetIops() { this._iops = undefined; } // Temporarily expose input value. Use with caution. public get iopsInput() { return this._iops; } // kms_key_id - computed: false, optional: true, required: false private _kmsKeyId?: string; public get kmsKeyId() { return this.getStringAttribute('kms_key_id'); } public set kmsKeyId(value: string) { this._kmsKeyId = value; } public resetKmsKeyId() { this._kmsKeyId = undefined; } // Temporarily expose input value. Use with caution. public get kmsKeyIdInput() { return this._kmsKeyId; } // snapshot_id - computed: false, optional: true, required: false private _snapshotId?: string; public get snapshotId() { return this.getStringAttribute('snapshot_id'); } public set snapshotId(value: string) { this._snapshotId = value; } public resetSnapshotId() { this._snapshotId = undefined; } // Temporarily expose input value. Use with caution. public get snapshotIdInput() { return this._snapshotId; } // throughput - computed: true, optional: true, required: false private _throughput?: number; public get throughput() { return this.getNumberAttribute('throughput'); } public set throughput(value: number) { this._throughput = value; } public resetThroughput() { this._throughput = undefined; } // Temporarily expose input value. Use with caution. public get throughputInput() { return this._throughput; } // volume_size - computed: true, optional: true, required: false private _volumeSize?: number; public get volumeSize() { return this.getNumberAttribute('volume_size'); } public set volumeSize(value: number) { this._volumeSize = value; } public resetVolumeSize() { this._volumeSize = undefined; } // Temporarily expose input value. Use with caution. public get volumeSizeInput() { return this._volumeSize; } // volume_type - computed: true, optional: true, required: false private _volumeType?: string; public get volumeType() { return this.getStringAttribute('volume_type'); } public set volumeType(value: string) { this._volumeType = value; } public resetVolumeType() { this._volumeType = undefined; } // Temporarily expose input value. Use with caution. public get volumeTypeInput() { return this._volumeType; } } export interface LaunchTemplateBlockDeviceMappings { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#device_name LaunchTemplate#device_name} */ readonly deviceName?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#no_device LaunchTemplate#no_device} */ readonly noDevice?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#virtual_name LaunchTemplate#virtual_name} */ readonly virtualName?: string; /** * ebs block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#ebs LaunchTemplate#ebs} */ readonly ebs?: LaunchTemplateBlockDeviceMappingsEbs; } export function launchTemplateBlockDeviceMappingsToTerraform(struct?: LaunchTemplateBlockDeviceMappings): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { device_name: cdktf.stringToTerraform(struct!.deviceName), no_device: cdktf.stringToTerraform(struct!.noDevice), virtual_name: cdktf.stringToTerraform(struct!.virtualName), ebs: launchTemplateBlockDeviceMappingsEbsToTerraform(struct!.ebs), } } export interface LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#capacity_reservation_id LaunchTemplate#capacity_reservation_id} */ readonly capacityReservationId?: string; } export function launchTemplateCapacityReservationSpecificationCapacityReservationTargetToTerraform(struct?: LaunchTemplateCapacityReservationSpecificationCapacityReservationTargetOutputReference | LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { capacity_reservation_id: cdktf.stringToTerraform(struct!.capacityReservationId), } } export class LaunchTemplateCapacityReservationSpecificationCapacityReservationTargetOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._capacityReservationId !== undefined) { hasAnyValues = true; internalValueResult.capacityReservationId = this._capacityReservationId; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget | undefined) { if (value === undefined) { this.isEmptyObject = false; this._capacityReservationId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._capacityReservationId = value.capacityReservationId; } } // capacity_reservation_id - computed: false, optional: true, required: false private _capacityReservationId?: string; public get capacityReservationId() { return this.getStringAttribute('capacity_reservation_id'); } public set capacityReservationId(value: string) { this._capacityReservationId = value; } public resetCapacityReservationId() { this._capacityReservationId = undefined; } // Temporarily expose input value. Use with caution. public get capacityReservationIdInput() { return this._capacityReservationId; } } export interface LaunchTemplateCapacityReservationSpecification { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#capacity_reservation_preference LaunchTemplate#capacity_reservation_preference} */ readonly capacityReservationPreference?: string; /** * capacity_reservation_target block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#capacity_reservation_target LaunchTemplate#capacity_reservation_target} */ readonly capacityReservationTarget?: LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget; } export function launchTemplateCapacityReservationSpecificationToTerraform(struct?: LaunchTemplateCapacityReservationSpecificationOutputReference | LaunchTemplateCapacityReservationSpecification): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { capacity_reservation_preference: cdktf.stringToTerraform(struct!.capacityReservationPreference), capacity_reservation_target: launchTemplateCapacityReservationSpecificationCapacityReservationTargetToTerraform(struct!.capacityReservationTarget), } } export class LaunchTemplateCapacityReservationSpecificationOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): LaunchTemplateCapacityReservationSpecification | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._capacityReservationPreference !== undefined) { hasAnyValues = true; internalValueResult.capacityReservationPreference = this._capacityReservationPreference; } if (this._capacityReservationTarget?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.capacityReservationTarget = this._capacityReservationTarget?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: LaunchTemplateCapacityReservationSpecification | undefined) { if (value === undefined) { this.isEmptyObject = false; this._capacityReservationPreference = undefined; this._capacityReservationTarget.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._capacityReservationPreference = value.capacityReservationPreference; this._capacityReservationTarget.internalValue = value.capacityReservationTarget; } } // capacity_reservation_preference - computed: false, optional: true, required: false private _capacityReservationPreference?: string; public get capacityReservationPreference() { return this.getStringAttribute('capacity_reservation_preference'); } public set capacityReservationPreference(value: string) { this._capacityReservationPreference = value; } public resetCapacityReservationPreference() { this._capacityReservationPreference = undefined; } // Temporarily expose input value. Use with caution. public get capacityReservationPreferenceInput() { return this._capacityReservationPreference; } // capacity_reservation_target - computed: false, optional: true, required: false private _capacityReservationTarget = new LaunchTemplateCapacityReservationSpecificationCapacityReservationTargetOutputReference(this as any, "capacity_reservation_target", true); public get capacityReservationTarget() { return this._capacityReservationTarget; } public putCapacityReservationTarget(value: LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget) { this._capacityReservationTarget.internalValue = value; } public resetCapacityReservationTarget() { this._capacityReservationTarget.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get capacityReservationTargetInput() { return this._capacityReservationTarget.internalValue; } } export interface LaunchTemplateCpuOptions { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#core_count LaunchTemplate#core_count} */ readonly coreCount?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#threads_per_core LaunchTemplate#threads_per_core} */ readonly threadsPerCore?: number; } export function launchTemplateCpuOptionsToTerraform(struct?: LaunchTemplateCpuOptionsOutputReference | LaunchTemplateCpuOptions): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { core_count: cdktf.numberToTerraform(struct!.coreCount), threads_per_core: cdktf.numberToTerraform(struct!.threadsPerCore), } } export class LaunchTemplateCpuOptionsOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): LaunchTemplateCpuOptions | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._coreCount !== undefined) { hasAnyValues = true; internalValueResult.coreCount = this._coreCount; } if (this._threadsPerCore !== undefined) { hasAnyValues = true; internalValueResult.threadsPerCore = this._threadsPerCore; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: LaunchTemplateCpuOptions | undefined) { if (value === undefined) { this.isEmptyObject = false; this._coreCount = undefined; this._threadsPerCore = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._coreCount = value.coreCount; this._threadsPerCore = value.threadsPerCore; } } // core_count - computed: false, optional: true, required: false private _coreCount?: number; public get coreCount() { return this.getNumberAttribute('core_count'); } public set coreCount(value: number) { this._coreCount = value; } public resetCoreCount() { this._coreCount = undefined; } // Temporarily expose input value. Use with caution. public get coreCountInput() { return this._coreCount; } // threads_per_core - computed: false, optional: true, required: false private _threadsPerCore?: number; public get threadsPerCore() { return this.getNumberAttribute('threads_per_core'); } public set threadsPerCore(value: number) { this._threadsPerCore = value; } public resetThreadsPerCore() { this._threadsPerCore = undefined; } // Temporarily expose input value. Use with caution. public get threadsPerCoreInput() { return this._threadsPerCore; } } export interface LaunchTemplateCreditSpecification { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#cpu_credits LaunchTemplate#cpu_credits} */ readonly cpuCredits?: string; } export function launchTemplateCreditSpecificationToTerraform(struct?: LaunchTemplateCreditSpecificationOutputReference | LaunchTemplateCreditSpecification): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { cpu_credits: cdktf.stringToTerraform(struct!.cpuCredits), } } export class LaunchTemplateCreditSpecificationOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): LaunchTemplateCreditSpecification | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._cpuCredits !== undefined) { hasAnyValues = true; internalValueResult.cpuCredits = this._cpuCredits; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: LaunchTemplateCreditSpecification | undefined) { if (value === undefined) { this.isEmptyObject = false; this._cpuCredits = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._cpuCredits = value.cpuCredits; } } // cpu_credits - computed: false, optional: true, required: false private _cpuCredits?: string; public get cpuCredits() { return this.getStringAttribute('cpu_credits'); } public set cpuCredits(value: string) { this._cpuCredits = value; } public resetCpuCredits() { this._cpuCredits = undefined; } // Temporarily expose input value. Use with caution. public get cpuCreditsInput() { return this._cpuCredits; } } export interface LaunchTemplateElasticGpuSpecifications { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#type LaunchTemplate#type} */ readonly type: string; } export function launchTemplateElasticGpuSpecificationsToTerraform(struct?: LaunchTemplateElasticGpuSpecifications): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { type: cdktf.stringToTerraform(struct!.type), } } export interface LaunchTemplateElasticInferenceAccelerator { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#type LaunchTemplate#type} */ readonly type: string; } export function launchTemplateElasticInferenceAcceleratorToTerraform(struct?: LaunchTemplateElasticInferenceAcceleratorOutputReference | LaunchTemplateElasticInferenceAccelerator): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { type: cdktf.stringToTerraform(struct!.type), } } export class LaunchTemplateElasticInferenceAcceleratorOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): LaunchTemplateElasticInferenceAccelerator | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: LaunchTemplateElasticInferenceAccelerator | undefined) { if (value === undefined) { this.isEmptyObject = false; this._type = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._type = value.type; } } // type - computed: false, optional: false, required: true private _type?: string; public get type() { return this.getStringAttribute('type'); } public set type(value: string) { this._type = value; } // Temporarily expose input value. Use with caution. public get typeInput() { return this._type; } } export interface LaunchTemplateEnclaveOptions { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#enabled LaunchTemplate#enabled} */ readonly enabled?: boolean | cdktf.IResolvable; } export function launchTemplateEnclaveOptionsToTerraform(struct?: LaunchTemplateEnclaveOptionsOutputReference | LaunchTemplateEnclaveOptions): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { enabled: cdktf.booleanToTerraform(struct!.enabled), } } export class LaunchTemplateEnclaveOptionsOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): LaunchTemplateEnclaveOptions | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._enabled !== undefined) { hasAnyValues = true; internalValueResult.enabled = this._enabled; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: LaunchTemplateEnclaveOptions | undefined) { if (value === undefined) { this.isEmptyObject = false; this._enabled = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._enabled = value.enabled; } } // enabled - computed: false, optional: true, required: false private _enabled?: boolean | cdktf.IResolvable; public get enabled() { return this.getBooleanAttribute('enabled') as any; } public set enabled(value: boolean | cdktf.IResolvable) { this._enabled = value; } public resetEnabled() { this._enabled = undefined; } // Temporarily expose input value. Use with caution. public get enabledInput() { return this._enabled; } } export interface LaunchTemplateHibernationOptions { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#configured LaunchTemplate#configured} */ readonly configured: boolean | cdktf.IResolvable; } export function launchTemplateHibernationOptionsToTerraform(struct?: LaunchTemplateHibernationOptionsOutputReference | LaunchTemplateHibernationOptions): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { configured: cdktf.booleanToTerraform(struct!.configured), } } export class LaunchTemplateHibernationOptionsOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): LaunchTemplateHibernationOptions | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._configured !== undefined) { hasAnyValues = true; internalValueResult.configured = this._configured; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: LaunchTemplateHibernationOptions | undefined) { if (value === undefined) { this.isEmptyObject = false; this._configured = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._configured = value.configured; } } // configured - computed: false, optional: false, required: true private _configured?: boolean | cdktf.IResolvable; public get configured() { return this.getBooleanAttribute('configured') as any; } public set configured(value: boolean | cdktf.IResolvable) { this._configured = value; } // Temporarily expose input value. Use with caution. public get configuredInput() { return this._configured; } } export interface LaunchTemplateIamInstanceProfile { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#arn LaunchTemplate#arn} */ readonly arn?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#name LaunchTemplate#name} */ readonly name?: string; } export function launchTemplateIamInstanceProfileToTerraform(struct?: LaunchTemplateIamInstanceProfileOutputReference | LaunchTemplateIamInstanceProfile): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { arn: cdktf.stringToTerraform(struct!.arn), name: cdktf.stringToTerraform(struct!.name), } } export class LaunchTemplateIamInstanceProfileOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): LaunchTemplateIamInstanceProfile | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._arn !== undefined) { hasAnyValues = true; internalValueResult.arn = this._arn; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: LaunchTemplateIamInstanceProfile | undefined) { if (value === undefined) { this.isEmptyObject = false; this._arn = undefined; this._name = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._arn = value.arn; this._name = value.name; } } // arn - computed: false, optional: true, required: false private _arn?: string; public get arn() { return this.getStringAttribute('arn'); } public set arn(value: string) { this._arn = value; } public resetArn() { this._arn = undefined; } // Temporarily expose input value. Use with caution. public get arnInput() { return this._arn; } // name - computed: false, optional: true, required: false private _name?: string; public get name() { return this.getStringAttribute('name'); } public set name(value: string) { this._name = value; } public resetName() { this._name = undefined; } // Temporarily expose input value. Use with caution. public get nameInput() { return this._name; } } export interface LaunchTemplateInstanceMarketOptionsSpotOptions { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#block_duration_minutes LaunchTemplate#block_duration_minutes} */ readonly blockDurationMinutes?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#instance_interruption_behavior LaunchTemplate#instance_interruption_behavior} */ readonly instanceInterruptionBehavior?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#max_price LaunchTemplate#max_price} */ readonly maxPrice?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#spot_instance_type LaunchTemplate#spot_instance_type} */ readonly spotInstanceType?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#valid_until LaunchTemplate#valid_until} */ readonly validUntil?: string; } export function launchTemplateInstanceMarketOptionsSpotOptionsToTerraform(struct?: LaunchTemplateInstanceMarketOptionsSpotOptionsOutputReference | LaunchTemplateInstanceMarketOptionsSpotOptions): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { block_duration_minutes: cdktf.numberToTerraform(struct!.blockDurationMinutes), instance_interruption_behavior: cdktf.stringToTerraform(struct!.instanceInterruptionBehavior), max_price: cdktf.stringToTerraform(struct!.maxPrice), spot_instance_type: cdktf.stringToTerraform(struct!.spotInstanceType), valid_until: cdktf.stringToTerraform(struct!.validUntil), } } export class LaunchTemplateInstanceMarketOptionsSpotOptionsOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): LaunchTemplateInstanceMarketOptionsSpotOptions | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._blockDurationMinutes !== undefined) { hasAnyValues = true; internalValueResult.blockDurationMinutes = this._blockDurationMinutes; } if (this._instanceInterruptionBehavior !== undefined) { hasAnyValues = true; internalValueResult.instanceInterruptionBehavior = this._instanceInterruptionBehavior; } if (this._maxPrice !== undefined) { hasAnyValues = true; internalValueResult.maxPrice = this._maxPrice; } if (this._spotInstanceType !== undefined) { hasAnyValues = true; internalValueResult.spotInstanceType = this._spotInstanceType; } if (this._validUntil !== undefined) { hasAnyValues = true; internalValueResult.validUntil = this._validUntil; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: LaunchTemplateInstanceMarketOptionsSpotOptions | undefined) { if (value === undefined) { this.isEmptyObject = false; this._blockDurationMinutes = undefined; this._instanceInterruptionBehavior = undefined; this._maxPrice = undefined; this._spotInstanceType = undefined; this._validUntil = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._blockDurationMinutes = value.blockDurationMinutes; this._instanceInterruptionBehavior = value.instanceInterruptionBehavior; this._maxPrice = value.maxPrice; this._spotInstanceType = value.spotInstanceType; this._validUntil = value.validUntil; } } // block_duration_minutes - computed: false, optional: true, required: false private _blockDurationMinutes?: number; public get blockDurationMinutes() { return this.getNumberAttribute('block_duration_minutes'); } public set blockDurationMinutes(value: number) { this._blockDurationMinutes = value; } public resetBlockDurationMinutes() { this._blockDurationMinutes = undefined; } // Temporarily expose input value. Use with caution. public get blockDurationMinutesInput() { return this._blockDurationMinutes; } // instance_interruption_behavior - computed: false, optional: true, required: false private _instanceInterruptionBehavior?: string; public get instanceInterruptionBehavior() { return this.getStringAttribute('instance_interruption_behavior'); } public set instanceInterruptionBehavior(value: string) { this._instanceInterruptionBehavior = value; } public resetInstanceInterruptionBehavior() { this._instanceInterruptionBehavior = undefined; } // Temporarily expose input value. Use with caution. public get instanceInterruptionBehaviorInput() { return this._instanceInterruptionBehavior; } // max_price - computed: false, optional: true, required: false private _maxPrice?: string; public get maxPrice() { return this.getStringAttribute('max_price'); } public set maxPrice(value: string) { this._maxPrice = value; } public resetMaxPrice() { this._maxPrice = undefined; } // Temporarily expose input value. Use with caution. public get maxPriceInput() { return this._maxPrice; } // spot_instance_type - computed: false, optional: true, required: false private _spotInstanceType?: string; public get spotInstanceType() { return this.getStringAttribute('spot_instance_type'); } public set spotInstanceType(value: string) { this._spotInstanceType = value; } public resetSpotInstanceType() { this._spotInstanceType = undefined; } // Temporarily expose input value. Use with caution. public get spotInstanceTypeInput() { return this._spotInstanceType; } // valid_until - computed: true, optional: true, required: false private _validUntil?: string; public get validUntil() { return this.getStringAttribute('valid_until'); } public set validUntil(value: string) { this._validUntil = value; } public resetValidUntil() { this._validUntil = undefined; } // Temporarily expose input value. Use with caution. public get validUntilInput() { return this._validUntil; } } export interface LaunchTemplateInstanceMarketOptions { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#market_type LaunchTemplate#market_type} */ readonly marketType?: string; /** * spot_options block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#spot_options LaunchTemplate#spot_options} */ readonly spotOptions?: LaunchTemplateInstanceMarketOptionsSpotOptions; } export function launchTemplateInstanceMarketOptionsToTerraform(struct?: LaunchTemplateInstanceMarketOptionsOutputReference | LaunchTemplateInstanceMarketOptions): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { market_type: cdktf.stringToTerraform(struct!.marketType), spot_options: launchTemplateInstanceMarketOptionsSpotOptionsToTerraform(struct!.spotOptions), } } export class LaunchTemplateInstanceMarketOptionsOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): LaunchTemplateInstanceMarketOptions | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._marketType !== undefined) { hasAnyValues = true; internalValueResult.marketType = this._marketType; } if (this._spotOptions?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.spotOptions = this._spotOptions?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: LaunchTemplateInstanceMarketOptions | undefined) { if (value === undefined) { this.isEmptyObject = false; this._marketType = undefined; this._spotOptions.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._marketType = value.marketType; this._spotOptions.internalValue = value.spotOptions; } } // market_type - computed: false, optional: true, required: false private _marketType?: string; public get marketType() { return this.getStringAttribute('market_type'); } public set marketType(value: string) { this._marketType = value; } public resetMarketType() { this._marketType = undefined; } // Temporarily expose input value. Use with caution. public get marketTypeInput() { return this._marketType; } // spot_options - computed: false, optional: true, required: false private _spotOptions = new LaunchTemplateInstanceMarketOptionsSpotOptionsOutputReference(this as any, "spot_options", true); public get spotOptions() { return this._spotOptions; } public putSpotOptions(value: LaunchTemplateInstanceMarketOptionsSpotOptions) { this._spotOptions.internalValue = value; } public resetSpotOptions() { this._spotOptions.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get spotOptionsInput() { return this._spotOptions.internalValue; } } export interface LaunchTemplateLicenseSpecification { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#license_configuration_arn LaunchTemplate#license_configuration_arn} */ readonly licenseConfigurationArn: string; } export function launchTemplateLicenseSpecificationToTerraform(struct?: LaunchTemplateLicenseSpecification): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { license_configuration_arn: cdktf.stringToTerraform(struct!.licenseConfigurationArn), } } export interface LaunchTemplateMetadataOptions { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#http_endpoint LaunchTemplate#http_endpoint} */ readonly httpEndpoint?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#http_protocol_ipv6 LaunchTemplate#http_protocol_ipv6} */ readonly httpProtocolIpv6?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#http_put_response_hop_limit LaunchTemplate#http_put_response_hop_limit} */ readonly httpPutResponseHopLimit?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#http_tokens LaunchTemplate#http_tokens} */ readonly httpTokens?: string; } export function launchTemplateMetadataOptionsToTerraform(struct?: LaunchTemplateMetadataOptionsOutputReference | LaunchTemplateMetadataOptions): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { http_endpoint: cdktf.stringToTerraform(struct!.httpEndpoint), http_protocol_ipv6: cdktf.stringToTerraform(struct!.httpProtocolIpv6), http_put_response_hop_limit: cdktf.numberToTerraform(struct!.httpPutResponseHopLimit), http_tokens: cdktf.stringToTerraform(struct!.httpTokens), } } export class LaunchTemplateMetadataOptionsOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): LaunchTemplateMetadataOptions | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._httpEndpoint !== undefined) { hasAnyValues = true; internalValueResult.httpEndpoint = this._httpEndpoint; } if (this._httpProtocolIpv6 !== undefined) { hasAnyValues = true; internalValueResult.httpProtocolIpv6 = this._httpProtocolIpv6; } if (this._httpPutResponseHopLimit !== undefined) { hasAnyValues = true; internalValueResult.httpPutResponseHopLimit = this._httpPutResponseHopLimit; } if (this._httpTokens !== undefined) { hasAnyValues = true; internalValueResult.httpTokens = this._httpTokens; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: LaunchTemplateMetadataOptions | undefined) { if (value === undefined) { this.isEmptyObject = false; this._httpEndpoint = undefined; this._httpProtocolIpv6 = undefined; this._httpPutResponseHopLimit = undefined; this._httpTokens = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._httpEndpoint = value.httpEndpoint; this._httpProtocolIpv6 = value.httpProtocolIpv6; this._httpPutResponseHopLimit = value.httpPutResponseHopLimit; this._httpTokens = value.httpTokens; } } // http_endpoint - computed: true, optional: true, required: false private _httpEndpoint?: string; public get httpEndpoint() { return this.getStringAttribute('http_endpoint'); } public set httpEndpoint(value: string) { this._httpEndpoint = value; } public resetHttpEndpoint() { this._httpEndpoint = undefined; } // Temporarily expose input value. Use with caution. public get httpEndpointInput() { return this._httpEndpoint; } // http_protocol_ipv6 - computed: false, optional: true, required: false private _httpProtocolIpv6?: string; public get httpProtocolIpv6() { return this.getStringAttribute('http_protocol_ipv6'); } public set httpProtocolIpv6(value: string) { this._httpProtocolIpv6 = value; } public resetHttpProtocolIpv6() { this._httpProtocolIpv6 = undefined; } // Temporarily expose input value. Use with caution. public get httpProtocolIpv6Input() { return this._httpProtocolIpv6; } // http_put_response_hop_limit - computed: true, optional: true, required: false private _httpPutResponseHopLimit?: number; public get httpPutResponseHopLimit() { return this.getNumberAttribute('http_put_response_hop_limit'); } public set httpPutResponseHopLimit(value: number) { this._httpPutResponseHopLimit = value; } public resetHttpPutResponseHopLimit() { this._httpPutResponseHopLimit = undefined; } // Temporarily expose input value. Use with caution. public get httpPutResponseHopLimitInput() { return this._httpPutResponseHopLimit; } // http_tokens - computed: true, optional: true, required: false private _httpTokens?: string; public get httpTokens() { return this.getStringAttribute('http_tokens'); } public set httpTokens(value: string) { this._httpTokens = value; } public resetHttpTokens() { this._httpTokens = undefined; } // Temporarily expose input value. Use with caution. public get httpTokensInput() { return this._httpTokens; } } export interface LaunchTemplateMonitoring { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#enabled LaunchTemplate#enabled} */ readonly enabled?: boolean | cdktf.IResolvable; } export function launchTemplateMonitoringToTerraform(struct?: LaunchTemplateMonitoringOutputReference | LaunchTemplateMonitoring): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { enabled: cdktf.booleanToTerraform(struct!.enabled), } } export class LaunchTemplateMonitoringOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): LaunchTemplateMonitoring | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._enabled !== undefined) { hasAnyValues = true; internalValueResult.enabled = this._enabled; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: LaunchTemplateMonitoring | undefined) { if (value === undefined) { this.isEmptyObject = false; this._enabled = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._enabled = value.enabled; } } // enabled - computed: false, optional: true, required: false private _enabled?: boolean | cdktf.IResolvable; public get enabled() { return this.getBooleanAttribute('enabled') as any; } public set enabled(value: boolean | cdktf.IResolvable) { this._enabled = value; } public resetEnabled() { this._enabled = undefined; } // Temporarily expose input value. Use with caution. public get enabledInput() { return this._enabled; } } export interface LaunchTemplateNetworkInterfaces { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#associate_carrier_ip_address LaunchTemplate#associate_carrier_ip_address} */ readonly associateCarrierIpAddress?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#associate_public_ip_address LaunchTemplate#associate_public_ip_address} */ readonly associatePublicIpAddress?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#delete_on_termination LaunchTemplate#delete_on_termination} */ readonly deleteOnTermination?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#description LaunchTemplate#description} */ readonly description?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#device_index LaunchTemplate#device_index} */ readonly deviceIndex?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#interface_type LaunchTemplate#interface_type} */ readonly interfaceType?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#ipv4_address_count LaunchTemplate#ipv4_address_count} */ readonly ipv4AddressCount?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#ipv4_addresses LaunchTemplate#ipv4_addresses} */ readonly ipv4Addresses?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#ipv6_address_count LaunchTemplate#ipv6_address_count} */ readonly ipv6AddressCount?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#ipv6_addresses LaunchTemplate#ipv6_addresses} */ readonly ipv6Addresses?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#network_card_index LaunchTemplate#network_card_index} */ readonly networkCardIndex?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#network_interface_id LaunchTemplate#network_interface_id} */ readonly networkInterfaceId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#private_ip_address LaunchTemplate#private_ip_address} */ readonly privateIpAddress?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#security_groups LaunchTemplate#security_groups} */ readonly securityGroups?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#subnet_id LaunchTemplate#subnet_id} */ readonly subnetId?: string; } export function launchTemplateNetworkInterfacesToTerraform(struct?: LaunchTemplateNetworkInterfaces): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { associate_carrier_ip_address: cdktf.stringToTerraform(struct!.associateCarrierIpAddress), associate_public_ip_address: cdktf.stringToTerraform(struct!.associatePublicIpAddress), delete_on_termination: cdktf.stringToTerraform(struct!.deleteOnTermination), description: cdktf.stringToTerraform(struct!.description), device_index: cdktf.numberToTerraform(struct!.deviceIndex), interface_type: cdktf.stringToTerraform(struct!.interfaceType), ipv4_address_count: cdktf.numberToTerraform(struct!.ipv4AddressCount), ipv4_addresses: cdktf.listMapper(cdktf.stringToTerraform)(struct!.ipv4Addresses), ipv6_address_count: cdktf.numberToTerraform(struct!.ipv6AddressCount), ipv6_addresses: cdktf.listMapper(cdktf.stringToTerraform)(struct!.ipv6Addresses), network_card_index: cdktf.numberToTerraform(struct!.networkCardIndex), network_interface_id: cdktf.stringToTerraform(struct!.networkInterfaceId), private_ip_address: cdktf.stringToTerraform(struct!.privateIpAddress), security_groups: cdktf.listMapper(cdktf.stringToTerraform)(struct!.securityGroups), subnet_id: cdktf.stringToTerraform(struct!.subnetId), } } export interface LaunchTemplatePlacement { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#affinity LaunchTemplate#affinity} */ readonly affinity?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#availability_zone LaunchTemplate#availability_zone} */ readonly availabilityZone?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#group_name LaunchTemplate#group_name} */ readonly groupName?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#host_id LaunchTemplate#host_id} */ readonly hostId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#host_resource_group_arn LaunchTemplate#host_resource_group_arn} */ readonly hostResourceGroupArn?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#partition_number LaunchTemplate#partition_number} */ readonly partitionNumber?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#spread_domain LaunchTemplate#spread_domain} */ readonly spreadDomain?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#tenancy LaunchTemplate#tenancy} */ readonly tenancy?: string; } export function launchTemplatePlacementToTerraform(struct?: LaunchTemplatePlacementOutputReference | LaunchTemplatePlacement): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { affinity: cdktf.stringToTerraform(struct!.affinity), availability_zone: cdktf.stringToTerraform(struct!.availabilityZone), group_name: cdktf.stringToTerraform(struct!.groupName), host_id: cdktf.stringToTerraform(struct!.hostId), host_resource_group_arn: cdktf.stringToTerraform(struct!.hostResourceGroupArn), partition_number: cdktf.numberToTerraform(struct!.partitionNumber), spread_domain: cdktf.stringToTerraform(struct!.spreadDomain), tenancy: cdktf.stringToTerraform(struct!.tenancy), } } export class LaunchTemplatePlacementOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): LaunchTemplatePlacement | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._affinity !== undefined) { hasAnyValues = true; internalValueResult.affinity = this._affinity; } if (this._availabilityZone !== undefined) { hasAnyValues = true; internalValueResult.availabilityZone = this._availabilityZone; } if (this._groupName !== undefined) { hasAnyValues = true; internalValueResult.groupName = this._groupName; } if (this._hostId !== undefined) { hasAnyValues = true; internalValueResult.hostId = this._hostId; } if (this._hostResourceGroupArn !== undefined) { hasAnyValues = true; internalValueResult.hostResourceGroupArn = this._hostResourceGroupArn; } if (this._partitionNumber !== undefined) { hasAnyValues = true; internalValueResult.partitionNumber = this._partitionNumber; } if (this._spreadDomain !== undefined) { hasAnyValues = true; internalValueResult.spreadDomain = this._spreadDomain; } if (this._tenancy !== undefined) { hasAnyValues = true; internalValueResult.tenancy = this._tenancy; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: LaunchTemplatePlacement | undefined) { if (value === undefined) { this.isEmptyObject = false; this._affinity = undefined; this._availabilityZone = undefined; this._groupName = undefined; this._hostId = undefined; this._hostResourceGroupArn = undefined; this._partitionNumber = undefined; this._spreadDomain = undefined; this._tenancy = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._affinity = value.affinity; this._availabilityZone = value.availabilityZone; this._groupName = value.groupName; this._hostId = value.hostId; this._hostResourceGroupArn = value.hostResourceGroupArn; this._partitionNumber = value.partitionNumber; this._spreadDomain = value.spreadDomain; this._tenancy = value.tenancy; } } // affinity - computed: false, optional: true, required: false private _affinity?: string; public get affinity() { return this.getStringAttribute('affinity'); } public set affinity(value: string) { this._affinity = value; } public resetAffinity() { this._affinity = undefined; } // Temporarily expose input value. Use with caution. public get affinityInput() { return this._affinity; } // availability_zone - computed: false, optional: true, required: false private _availabilityZone?: string; public get availabilityZone() { return this.getStringAttribute('availability_zone'); } public set availabilityZone(value: string) { this._availabilityZone = value; } public resetAvailabilityZone() { this._availabilityZone = undefined; } // Temporarily expose input value. Use with caution. public get availabilityZoneInput() { return this._availabilityZone; } // group_name - computed: false, optional: true, required: false private _groupName?: string; public get groupName() { return this.getStringAttribute('group_name'); } public set groupName(value: string) { this._groupName = value; } public resetGroupName() { this._groupName = undefined; } // Temporarily expose input value. Use with caution. public get groupNameInput() { return this._groupName; } // host_id - computed: false, optional: true, required: false private _hostId?: string; public get hostId() { return this.getStringAttribute('host_id'); } public set hostId(value: string) { this._hostId = value; } public resetHostId() { this._hostId = undefined; } // Temporarily expose input value. Use with caution. public get hostIdInput() { return this._hostId; } // host_resource_group_arn - computed: false, optional: true, required: false private _hostResourceGroupArn?: string; public get hostResourceGroupArn() { return this.getStringAttribute('host_resource_group_arn'); } public set hostResourceGroupArn(value: string) { this._hostResourceGroupArn = value; } public resetHostResourceGroupArn() { this._hostResourceGroupArn = undefined; } // Temporarily expose input value. Use with caution. public get hostResourceGroupArnInput() { return this._hostResourceGroupArn; } // partition_number - computed: false, optional: true, required: false private _partitionNumber?: number; public get partitionNumber() { return this.getNumberAttribute('partition_number'); } public set partitionNumber(value: number) { this._partitionNumber = value; } public resetPartitionNumber() { this._partitionNumber = undefined; } // Temporarily expose input value. Use with caution. public get partitionNumberInput() { return this._partitionNumber; } // spread_domain - computed: false, optional: true, required: false private _spreadDomain?: string; public get spreadDomain() { return this.getStringAttribute('spread_domain'); } public set spreadDomain(value: string) { this._spreadDomain = value; } public resetSpreadDomain() { this._spreadDomain = undefined; } // Temporarily expose input value. Use with caution. public get spreadDomainInput() { return this._spreadDomain; } // tenancy - computed: false, optional: true, required: false private _tenancy?: string; public get tenancy() { return this.getStringAttribute('tenancy'); } public set tenancy(value: string) { this._tenancy = value; } public resetTenancy() { this._tenancy = undefined; } // Temporarily expose input value. Use with caution. public get tenancyInput() { return this._tenancy; } } export interface LaunchTemplateTagSpecifications { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#resource_type LaunchTemplate#resource_type} */ readonly resourceType?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html#tags LaunchTemplate#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; } export function launchTemplateTagSpecificationsToTerraform(struct?: LaunchTemplateTagSpecifications): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { resource_type: cdktf.stringToTerraform(struct!.resourceType), tags: cdktf.hashMapper(cdktf.anyToTerraform)(struct!.tags), } } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html aws_launch_template} */ export class LaunchTemplate extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_launch_template"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/launch_template.html aws_launch_template} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options LaunchTemplateConfig = {} */ public constructor(scope: Construct, id: string, config: LaunchTemplateConfig = {}) { super(scope, id, { terraformResourceType: 'aws_launch_template', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._defaultVersion = config.defaultVersion; this._description = config.description; this._disableApiTermination = config.disableApiTermination; this._ebsOptimized = config.ebsOptimized; this._imageId = config.imageId; this._instanceInitiatedShutdownBehavior = config.instanceInitiatedShutdownBehavior; this._instanceType = config.instanceType; this._kernelId = config.kernelId; this._keyName = config.keyName; this._name = config.name; this._namePrefix = config.namePrefix; this._ramDiskId = config.ramDiskId; this._securityGroupNames = config.securityGroupNames; this._tags = config.tags; this._tagsAll = config.tagsAll; this._updateDefaultVersion = config.updateDefaultVersion; this._userData = config.userData; this._vpcSecurityGroupIds = config.vpcSecurityGroupIds; this._blockDeviceMappings = config.blockDeviceMappings; this._capacityReservationSpecification.internalValue = config.capacityReservationSpecification; this._cpuOptions.internalValue = config.cpuOptions; this._creditSpecification.internalValue = config.creditSpecification; this._elasticGpuSpecifications = config.elasticGpuSpecifications; this._elasticInferenceAccelerator.internalValue = config.elasticInferenceAccelerator; this._enclaveOptions.internalValue = config.enclaveOptions; this._hibernationOptions.internalValue = config.hibernationOptions; this._iamInstanceProfile.internalValue = config.iamInstanceProfile; this._instanceMarketOptions.internalValue = config.instanceMarketOptions; this._licenseSpecification = config.licenseSpecification; this._metadataOptions.internalValue = config.metadataOptions; this._monitoring.internalValue = config.monitoring; this._networkInterfaces = config.networkInterfaces; this._placement.internalValue = config.placement; this._tagSpecifications = config.tagSpecifications; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // default_version - computed: true, optional: true, required: false private _defaultVersion?: number; public get defaultVersion() { return this.getNumberAttribute('default_version'); } public set defaultVersion(value: number) { this._defaultVersion = value; } public resetDefaultVersion() { this._defaultVersion = undefined; } // Temporarily expose input value. Use with caution. public get defaultVersionInput() { return this._defaultVersion; } // description - computed: false, optional: true, required: false private _description?: string; public get description() { return this.getStringAttribute('description'); } public set description(value: string) { this._description = value; } public resetDescription() { this._description = undefined; } // Temporarily expose input value. Use with caution. public get descriptionInput() { return this._description; } // disable_api_termination - computed: false, optional: true, required: false private _disableApiTermination?: boolean | cdktf.IResolvable; public get disableApiTermination() { return this.getBooleanAttribute('disable_api_termination') as any; } public set disableApiTermination(value: boolean | cdktf.IResolvable) { this._disableApiTermination = value; } public resetDisableApiTermination() { this._disableApiTermination = undefined; } // Temporarily expose input value. Use with caution. public get disableApiTerminationInput() { return this._disableApiTermination; } // ebs_optimized - computed: false, optional: true, required: false private _ebsOptimized?: string; public get ebsOptimized() { return this.getStringAttribute('ebs_optimized'); } public set ebsOptimized(value: string) { this._ebsOptimized = value; } public resetEbsOptimized() { this._ebsOptimized = undefined; } // Temporarily expose input value. Use with caution. public get ebsOptimizedInput() { return this._ebsOptimized; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // image_id - computed: false, optional: true, required: false private _imageId?: string; public get imageId() { return this.getStringAttribute('image_id'); } public set imageId(value: string) { this._imageId = value; } public resetImageId() { this._imageId = undefined; } // Temporarily expose input value. Use with caution. public get imageIdInput() { return this._imageId; } // instance_initiated_shutdown_behavior - computed: false, optional: true, required: false private _instanceInitiatedShutdownBehavior?: string; public get instanceInitiatedShutdownBehavior() { return this.getStringAttribute('instance_initiated_shutdown_behavior'); } public set instanceInitiatedShutdownBehavior(value: string) { this._instanceInitiatedShutdownBehavior = value; } public resetInstanceInitiatedShutdownBehavior() { this._instanceInitiatedShutdownBehavior = undefined; } // Temporarily expose input value. Use with caution. public get instanceInitiatedShutdownBehaviorInput() { return this._instanceInitiatedShutdownBehavior; } // instance_type - computed: false, optional: true, required: false private _instanceType?: string; public get instanceType() { return this.getStringAttribute('instance_type'); } public set instanceType(value: string) { this._instanceType = value; } public resetInstanceType() { this._instanceType = undefined; } // Temporarily expose input value. Use with caution. public get instanceTypeInput() { return this._instanceType; } // kernel_id - computed: false, optional: true, required: false private _kernelId?: string; public get kernelId() { return this.getStringAttribute('kernel_id'); } public set kernelId(value: string) { this._kernelId = value; } public resetKernelId() { this._kernelId = undefined; } // Temporarily expose input value. Use with caution. public get kernelIdInput() { return this._kernelId; } // key_name - computed: false, optional: true, required: false private _keyName?: string; public get keyName() { return this.getStringAttribute('key_name'); } public set keyName(value: string) { this._keyName = value; } public resetKeyName() { this._keyName = undefined; } // Temporarily expose input value. Use with caution. public get keyNameInput() { return this._keyName; } // latest_version - computed: true, optional: false, required: false public get latestVersion() { return this.getNumberAttribute('latest_version'); } // name - computed: true, optional: true, required: false private _name?: string; public get name() { return this.getStringAttribute('name'); } public set name(value: string) { this._name = value; } public resetName() { this._name = undefined; } // Temporarily expose input value. Use with caution. public get nameInput() { return this._name; } // name_prefix - computed: true, optional: true, required: false private _namePrefix?: string; public get namePrefix() { return this.getStringAttribute('name_prefix'); } public set namePrefix(value: string) { this._namePrefix = value; } public resetNamePrefix() { this._namePrefix = undefined; } // Temporarily expose input value. Use with caution. public get namePrefixInput() { return this._namePrefix; } // ram_disk_id - computed: false, optional: true, required: false private _ramDiskId?: string; public get ramDiskId() { return this.getStringAttribute('ram_disk_id'); } public set ramDiskId(value: string) { this._ramDiskId = value; } public resetRamDiskId() { this._ramDiskId = undefined; } // Temporarily expose input value. Use with caution. public get ramDiskIdInput() { return this._ramDiskId; } // security_group_names - computed: false, optional: true, required: false private _securityGroupNames?: string[]; public get securityGroupNames() { return this.getListAttribute('security_group_names'); } public set securityGroupNames(value: string[]) { this._securityGroupNames = value; } public resetSecurityGroupNames() { this._securityGroupNames = undefined; } // Temporarily expose input value. Use with caution. public get securityGroupNamesInput() { return this._securityGroupNames; } // tags - computed: false, optional: true, required: false private _tags?: { [key: string]: string } | cdktf.IResolvable; public get tags() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags') as any; } public set tags(value: { [key: string]: string } | cdktf.IResolvable) { this._tags = value; } public resetTags() { this._tags = undefined; } // Temporarily expose input value. Use with caution. public get tagsInput() { return this._tags; } // tags_all - computed: true, optional: true, required: false private _tagsAll?: { [key: string]: string } | cdktf.IResolvable; public get tagsAll() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags_all') as any; } public set tagsAll(value: { [key: string]: string } | cdktf.IResolvable) { this._tagsAll = value; } public resetTagsAll() { this._tagsAll = undefined; } // Temporarily expose input value. Use with caution. public get tagsAllInput() { return this._tagsAll; } // update_default_version - computed: false, optional: true, required: false private _updateDefaultVersion?: boolean | cdktf.IResolvable; public get updateDefaultVersion() { return this.getBooleanAttribute('update_default_version') as any; } public set updateDefaultVersion(value: boolean | cdktf.IResolvable) { this._updateDefaultVersion = value; } public resetUpdateDefaultVersion() { this._updateDefaultVersion = undefined; } // Temporarily expose input value. Use with caution. public get updateDefaultVersionInput() { return this._updateDefaultVersion; } // user_data - computed: false, optional: true, required: false private _userData?: string; public get userData() { return this.getStringAttribute('user_data'); } public set userData(value: string) { this._userData = value; } public resetUserData() { this._userData = undefined; } // Temporarily expose input value. Use with caution. public get userDataInput() { return this._userData; } // vpc_security_group_ids - computed: false, optional: true, required: false private _vpcSecurityGroupIds?: string[]; public get vpcSecurityGroupIds() { return this.getListAttribute('vpc_security_group_ids'); } public set vpcSecurityGroupIds(value: string[]) { this._vpcSecurityGroupIds = value; } public resetVpcSecurityGroupIds() { this._vpcSecurityGroupIds = undefined; } // Temporarily expose input value. Use with caution. public get vpcSecurityGroupIdsInput() { return this._vpcSecurityGroupIds; } // block_device_mappings - computed: false, optional: true, required: false private _blockDeviceMappings?: LaunchTemplateBlockDeviceMappings[]; public get blockDeviceMappings() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('block_device_mappings') as any; } public set blockDeviceMappings(value: LaunchTemplateBlockDeviceMappings[]) { this._blockDeviceMappings = value; } public resetBlockDeviceMappings() { this._blockDeviceMappings = undefined; } // Temporarily expose input value. Use with caution. public get blockDeviceMappingsInput() { return this._blockDeviceMappings; } // capacity_reservation_specification - computed: false, optional: true, required: false private _capacityReservationSpecification = new LaunchTemplateCapacityReservationSpecificationOutputReference(this as any, "capacity_reservation_specification", true); public get capacityReservationSpecification() { return this._capacityReservationSpecification; } public putCapacityReservationSpecification(value: LaunchTemplateCapacityReservationSpecification) { this._capacityReservationSpecification.internalValue = value; } public resetCapacityReservationSpecification() { this._capacityReservationSpecification.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get capacityReservationSpecificationInput() { return this._capacityReservationSpecification.internalValue; } // cpu_options - computed: false, optional: true, required: false private _cpuOptions = new LaunchTemplateCpuOptionsOutputReference(this as any, "cpu_options", true); public get cpuOptions() { return this._cpuOptions; } public putCpuOptions(value: LaunchTemplateCpuOptions) { this._cpuOptions.internalValue = value; } public resetCpuOptions() { this._cpuOptions.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get cpuOptionsInput() { return this._cpuOptions.internalValue; } // credit_specification - computed: false, optional: true, required: false private _creditSpecification = new LaunchTemplateCreditSpecificationOutputReference(this as any, "credit_specification", true); public get creditSpecification() { return this._creditSpecification; } public putCreditSpecification(value: LaunchTemplateCreditSpecification) { this._creditSpecification.internalValue = value; } public resetCreditSpecification() { this._creditSpecification.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get creditSpecificationInput() { return this._creditSpecification.internalValue; } // elastic_gpu_specifications - computed: false, optional: true, required: false private _elasticGpuSpecifications?: LaunchTemplateElasticGpuSpecifications[]; public get elasticGpuSpecifications() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('elastic_gpu_specifications') as any; } public set elasticGpuSpecifications(value: LaunchTemplateElasticGpuSpecifications[]) { this._elasticGpuSpecifications = value; } public resetElasticGpuSpecifications() { this._elasticGpuSpecifications = undefined; } // Temporarily expose input value. Use with caution. public get elasticGpuSpecificationsInput() { return this._elasticGpuSpecifications; } // elastic_inference_accelerator - computed: false, optional: true, required: false private _elasticInferenceAccelerator = new LaunchTemplateElasticInferenceAcceleratorOutputReference(this as any, "elastic_inference_accelerator", true); public get elasticInferenceAccelerator() { return this._elasticInferenceAccelerator; } public putElasticInferenceAccelerator(value: LaunchTemplateElasticInferenceAccelerator) { this._elasticInferenceAccelerator.internalValue = value; } public resetElasticInferenceAccelerator() { this._elasticInferenceAccelerator.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get elasticInferenceAcceleratorInput() { return this._elasticInferenceAccelerator.internalValue; } // enclave_options - computed: false, optional: true, required: false private _enclaveOptions = new LaunchTemplateEnclaveOptionsOutputReference(this as any, "enclave_options", true); public get enclaveOptions() { return this._enclaveOptions; } public putEnclaveOptions(value: LaunchTemplateEnclaveOptions) { this._enclaveOptions.internalValue = value; } public resetEnclaveOptions() { this._enclaveOptions.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get enclaveOptionsInput() { return this._enclaveOptions.internalValue; } // hibernation_options - computed: false, optional: true, required: false private _hibernationOptions = new LaunchTemplateHibernationOptionsOutputReference(this as any, "hibernation_options", true); public get hibernationOptions() { return this._hibernationOptions; } public putHibernationOptions(value: LaunchTemplateHibernationOptions) { this._hibernationOptions.internalValue = value; } public resetHibernationOptions() { this._hibernationOptions.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get hibernationOptionsInput() { return this._hibernationOptions.internalValue; } // iam_instance_profile - computed: false, optional: true, required: false private _iamInstanceProfile = new LaunchTemplateIamInstanceProfileOutputReference(this as any, "iam_instance_profile", true); public get iamInstanceProfile() { return this._iamInstanceProfile; } public putIamInstanceProfile(value: LaunchTemplateIamInstanceProfile) { this._iamInstanceProfile.internalValue = value; } public resetIamInstanceProfile() { this._iamInstanceProfile.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get iamInstanceProfileInput() { return this._iamInstanceProfile.internalValue; } // instance_market_options - computed: false, optional: true, required: false private _instanceMarketOptions = new LaunchTemplateInstanceMarketOptionsOutputReference(this as any, "instance_market_options", true); public get instanceMarketOptions() { return this._instanceMarketOptions; } public putInstanceMarketOptions(value: LaunchTemplateInstanceMarketOptions) { this._instanceMarketOptions.internalValue = value; } public resetInstanceMarketOptions() { this._instanceMarketOptions.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get instanceMarketOptionsInput() { return this._instanceMarketOptions.internalValue; } // license_specification - computed: false, optional: true, required: false private _licenseSpecification?: LaunchTemplateLicenseSpecification[]; public get licenseSpecification() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('license_specification') as any; } public set licenseSpecification(value: LaunchTemplateLicenseSpecification[]) { this._licenseSpecification = value; } public resetLicenseSpecification() { this._licenseSpecification = undefined; } // Temporarily expose input value. Use with caution. public get licenseSpecificationInput() { return this._licenseSpecification; } // metadata_options - computed: false, optional: true, required: false private _metadataOptions = new LaunchTemplateMetadataOptionsOutputReference(this as any, "metadata_options", true); public get metadataOptions() { return this._metadataOptions; } public putMetadataOptions(value: LaunchTemplateMetadataOptions) { this._metadataOptions.internalValue = value; } public resetMetadataOptions() { this._metadataOptions.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get metadataOptionsInput() { return this._metadataOptions.internalValue; } // monitoring - computed: false, optional: true, required: false private _monitoring = new LaunchTemplateMonitoringOutputReference(this as any, "monitoring", true); public get monitoring() { return this._monitoring; } public putMonitoring(value: LaunchTemplateMonitoring) { this._monitoring.internalValue = value; } public resetMonitoring() { this._monitoring.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get monitoringInput() { return this._monitoring.internalValue; } // network_interfaces - computed: false, optional: true, required: false private _networkInterfaces?: LaunchTemplateNetworkInterfaces[]; public get networkInterfaces() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('network_interfaces') as any; } public set networkInterfaces(value: LaunchTemplateNetworkInterfaces[]) { this._networkInterfaces = value; } public resetNetworkInterfaces() { this._networkInterfaces = undefined; } // Temporarily expose input value. Use with caution. public get networkInterfacesInput() { return this._networkInterfaces; } // placement - computed: false, optional: true, required: false private _placement = new LaunchTemplatePlacementOutputReference(this as any, "placement", true); public get placement() { return this._placement; } public putPlacement(value: LaunchTemplatePlacement) { this._placement.internalValue = value; } public resetPlacement() { this._placement.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get placementInput() { return this._placement.internalValue; } // tag_specifications - computed: false, optional: true, required: false private _tagSpecifications?: LaunchTemplateTagSpecifications[]; public get tagSpecifications() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tag_specifications') as any; } public set tagSpecifications(value: LaunchTemplateTagSpecifications[]) { this._tagSpecifications = value; } public resetTagSpecifications() { this._tagSpecifications = undefined; } // Temporarily expose input value. Use with caution. public get tagSpecificationsInput() { return this._tagSpecifications; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { default_version: cdktf.numberToTerraform(this._defaultVersion), description: cdktf.stringToTerraform(this._description), disable_api_termination: cdktf.booleanToTerraform(this._disableApiTermination), ebs_optimized: cdktf.stringToTerraform(this._ebsOptimized), image_id: cdktf.stringToTerraform(this._imageId), instance_initiated_shutdown_behavior: cdktf.stringToTerraform(this._instanceInitiatedShutdownBehavior), instance_type: cdktf.stringToTerraform(this._instanceType), kernel_id: cdktf.stringToTerraform(this._kernelId), key_name: cdktf.stringToTerraform(this._keyName), name: cdktf.stringToTerraform(this._name), name_prefix: cdktf.stringToTerraform(this._namePrefix), ram_disk_id: cdktf.stringToTerraform(this._ramDiskId), security_group_names: cdktf.listMapper(cdktf.stringToTerraform)(this._securityGroupNames), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), tags_all: cdktf.hashMapper(cdktf.anyToTerraform)(this._tagsAll), update_default_version: cdktf.booleanToTerraform(this._updateDefaultVersion), user_data: cdktf.stringToTerraform(this._userData), vpc_security_group_ids: cdktf.listMapper(cdktf.stringToTerraform)(this._vpcSecurityGroupIds), block_device_mappings: cdktf.listMapper(launchTemplateBlockDeviceMappingsToTerraform)(this._blockDeviceMappings), capacity_reservation_specification: launchTemplateCapacityReservationSpecificationToTerraform(this._capacityReservationSpecification.internalValue), cpu_options: launchTemplateCpuOptionsToTerraform(this._cpuOptions.internalValue), credit_specification: launchTemplateCreditSpecificationToTerraform(this._creditSpecification.internalValue), elastic_gpu_specifications: cdktf.listMapper(launchTemplateElasticGpuSpecificationsToTerraform)(this._elasticGpuSpecifications), elastic_inference_accelerator: launchTemplateElasticInferenceAcceleratorToTerraform(this._elasticInferenceAccelerator.internalValue), enclave_options: launchTemplateEnclaveOptionsToTerraform(this._enclaveOptions.internalValue), hibernation_options: launchTemplateHibernationOptionsToTerraform(this._hibernationOptions.internalValue), iam_instance_profile: launchTemplateIamInstanceProfileToTerraform(this._iamInstanceProfile.internalValue), instance_market_options: launchTemplateInstanceMarketOptionsToTerraform(this._instanceMarketOptions.internalValue), license_specification: cdktf.listMapper(launchTemplateLicenseSpecificationToTerraform)(this._licenseSpecification), metadata_options: launchTemplateMetadataOptionsToTerraform(this._metadataOptions.internalValue), monitoring: launchTemplateMonitoringToTerraform(this._monitoring.internalValue), network_interfaces: cdktf.listMapper(launchTemplateNetworkInterfacesToTerraform)(this._networkInterfaces), placement: launchTemplatePlacementToTerraform(this._placement.internalValue), tag_specifications: cdktf.listMapper(launchTemplateTagSpecificationsToTerraform)(this._tagSpecifications), }; } }