Class LaunchTemplate.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.launch_template.LaunchTemplate.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<LaunchTemplate>
- Enclosing class:
- LaunchTemplate
@Stability(Stable) public static final class LaunchTemplate.Builder extends Object implements software.amazon.jsii.Builder<LaunchTemplate>
A fluent builder forLaunchTemplate.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LaunchTemplate.BuilderblockDeviceMappings(com.hashicorp.cdktf.IResolvable blockDeviceMappings)block_device_mappings block.LaunchTemplate.BuilderblockDeviceMappings(List<? extends LaunchTemplateBlockDeviceMappings> blockDeviceMappings)block_device_mappings block.LaunchTemplatebuild()LaunchTemplate.BuildercapacityReservationSpecification(LaunchTemplateCapacityReservationSpecification capacityReservationSpecification)capacity_reservation_specification block.LaunchTemplate.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)LaunchTemplate.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)LaunchTemplate.Buildercount(com.hashicorp.cdktf.TerraformCount count)LaunchTemplate.Buildercount(Number count)LaunchTemplate.BuildercpuOptions(LaunchTemplateCpuOptions cpuOptions)cpu_options block.static LaunchTemplate.Buildercreate(software.constructs.Construct scope, String id)LaunchTemplate.BuildercreditSpecification(LaunchTemplateCreditSpecification creditSpecification)credit_specification block.LaunchTemplate.BuilderdefaultVersion(Number defaultVersion)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#default_version LaunchTemplate#default_version}.LaunchTemplate.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)LaunchTemplate.Builderdescription(String description)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#description LaunchTemplate#description}.LaunchTemplate.BuilderdisableApiStop(com.hashicorp.cdktf.IResolvable disableApiStop)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#disable_api_stop LaunchTemplate#disable_api_stop}.LaunchTemplate.BuilderdisableApiStop(Boolean disableApiStop)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#disable_api_stop LaunchTemplate#disable_api_stop}.LaunchTemplate.BuilderdisableApiTermination(com.hashicorp.cdktf.IResolvable disableApiTermination)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#disable_api_termination LaunchTemplate#disable_api_termination}.LaunchTemplate.BuilderdisableApiTermination(Boolean disableApiTermination)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#disable_api_termination LaunchTemplate#disable_api_termination}.LaunchTemplate.BuilderebsOptimized(String ebsOptimized)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#ebs_optimized LaunchTemplate#ebs_optimized}.LaunchTemplate.BuilderelasticGpuSpecifications(com.hashicorp.cdktf.IResolvable elasticGpuSpecifications)elastic_gpu_specifications block.LaunchTemplate.BuilderelasticGpuSpecifications(List<? extends LaunchTemplateElasticGpuSpecifications> elasticGpuSpecifications)elastic_gpu_specifications block.LaunchTemplate.BuilderelasticInferenceAccelerator(LaunchTemplateElasticInferenceAccelerator elasticInferenceAccelerator)elastic_inference_accelerator block.LaunchTemplate.BuilderenclaveOptions(LaunchTemplateEnclaveOptions enclaveOptions)enclave_options block.LaunchTemplate.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)LaunchTemplate.BuilderhibernationOptions(LaunchTemplateHibernationOptions hibernationOptions)hibernation_options block.LaunchTemplate.BuilderiamInstanceProfile(LaunchTemplateIamInstanceProfile iamInstanceProfile)iam_instance_profile block.LaunchTemplate.Builderid(String id)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#id LaunchTemplate#id}.LaunchTemplate.BuilderimageId(String imageId)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#image_id LaunchTemplate#image_id}.LaunchTemplate.BuilderinstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#instance_initiated_shutdown_behavior LaunchTemplate#instance_initiated_shutdown_behavior}.LaunchTemplate.BuilderinstanceMarketOptions(LaunchTemplateInstanceMarketOptions instanceMarketOptions)instance_market_options block.LaunchTemplate.BuilderinstanceRequirements(LaunchTemplateInstanceRequirements instanceRequirements)instance_requirements block.LaunchTemplate.BuilderinstanceType(String instanceType)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#instance_type LaunchTemplate#instance_type}.LaunchTemplate.BuilderkernelId(String kernelId)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#kernel_id LaunchTemplate#kernel_id}.LaunchTemplate.BuilderkeyName(String keyName)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#key_name LaunchTemplate#key_name}.LaunchTemplate.BuilderlicenseSpecification(com.hashicorp.cdktf.IResolvable licenseSpecification)license_specification block.LaunchTemplate.BuilderlicenseSpecification(List<? extends LaunchTemplateLicenseSpecification> licenseSpecification)license_specification block.LaunchTemplate.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)LaunchTemplate.BuildermaintenanceOptions(LaunchTemplateMaintenanceOptions maintenanceOptions)maintenance_options block.LaunchTemplate.BuildermetadataOptions(LaunchTemplateMetadataOptions metadataOptions)metadata_options block.LaunchTemplate.Buildermonitoring(LaunchTemplateMonitoring monitoring)monitoring block.LaunchTemplate.Buildername(String name)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#name LaunchTemplate#name}.LaunchTemplate.BuildernamePrefix(String namePrefix)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#name_prefix LaunchTemplate#name_prefix}.LaunchTemplate.BuildernetworkInterfaces(com.hashicorp.cdktf.IResolvable networkInterfaces)network_interfaces block.LaunchTemplate.BuildernetworkInterfaces(List<? extends LaunchTemplateNetworkInterfaces> networkInterfaces)network_interfaces block.LaunchTemplate.Builderplacement(LaunchTemplatePlacement placement)placement block.LaunchTemplate.BuilderprivateDnsNameOptions(LaunchTemplatePrivateDnsNameOptions privateDnsNameOptions)private_dns_name_options block.LaunchTemplate.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)LaunchTemplate.Builderprovisioners(List<? extends Object> provisioners)LaunchTemplate.BuilderramDiskId(String ramDiskId)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#ram_disk_id LaunchTemplate#ram_disk_id}.LaunchTemplate.BuildersecurityGroupNames(List<String> securityGroupNames)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#security_group_names LaunchTemplate#security_group_names}.LaunchTemplate.Buildertags(Map<String,String> tags)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#tags LaunchTemplate#tags}.LaunchTemplate.BuildertagsAll(Map<String,String> tagsAll)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#tags_all LaunchTemplate#tags_all}.LaunchTemplate.BuildertagSpecifications(com.hashicorp.cdktf.IResolvable tagSpecifications)tag_specifications block.LaunchTemplate.BuildertagSpecifications(List<? extends LaunchTemplateTagSpecifications> tagSpecifications)tag_specifications block.LaunchTemplate.BuilderupdateDefaultVersion(com.hashicorp.cdktf.IResolvable updateDefaultVersion)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#update_default_version LaunchTemplate#update_default_version}.LaunchTemplate.BuilderupdateDefaultVersion(Boolean updateDefaultVersion)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#update_default_version LaunchTemplate#update_default_version}.LaunchTemplate.BuilderuserData(String userData)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#user_data LaunchTemplate#user_data}.LaunchTemplate.BuildervpcSecurityGroupIds(List<String> vpcSecurityGroupIds)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#vpc_security_group_ids LaunchTemplate#vpc_security_group_ids}.
-
-
-
Method Detail
-
create
@Stability(Stable) public static LaunchTemplate.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope- The scope in which to define this construct. This parameter is required.id- The scoped construct ID. This parameter is required.- Returns:
- a new instance of
LaunchTemplate.Builder.
-
connection
@Stability(Experimental) public LaunchTemplate.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
connection
@Stability(Experimental) public LaunchTemplate.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public LaunchTemplate.Builder count(Number count)
- Parameters:
count- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public LaunchTemplate.Builder count(com.hashicorp.cdktf.TerraformCount count)
- Parameters:
count- This parameter is required.- Returns:
this
-
dependsOn
@Stability(Experimental) public LaunchTemplate.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
- Parameters:
dependsOn- This parameter is required.- Returns:
this
-
forEach
@Stability(Experimental) public LaunchTemplate.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
- Parameters:
forEach- This parameter is required.- Returns:
this
-
lifecycle
@Stability(Experimental) public LaunchTemplate.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
- Parameters:
lifecycle- This parameter is required.- Returns:
this
-
provider
@Stability(Experimental) public LaunchTemplate.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
- Parameters:
provider- This parameter is required.- Returns:
this
-
provisioners
@Stability(Experimental) public LaunchTemplate.Builder provisioners(List<? extends Object> provisioners)
- Parameters:
provisioners- This parameter is required.- Returns:
this
-
blockDeviceMappings
@Stability(Stable) public LaunchTemplate.Builder blockDeviceMappings(com.hashicorp.cdktf.IResolvable blockDeviceMappings)
block_device_mappings block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#block_device_mappings LaunchTemplate#block_device_mappings}
- Parameters:
blockDeviceMappings- block_device_mappings block. This parameter is required.- Returns:
this
-
blockDeviceMappings
@Stability(Stable) public LaunchTemplate.Builder blockDeviceMappings(List<? extends LaunchTemplateBlockDeviceMappings> blockDeviceMappings)
block_device_mappings block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#block_device_mappings LaunchTemplate#block_device_mappings}
- Parameters:
blockDeviceMappings- block_device_mappings block. This parameter is required.- Returns:
this
-
capacityReservationSpecification
@Stability(Stable) public LaunchTemplate.Builder capacityReservationSpecification(LaunchTemplateCapacityReservationSpecification capacityReservationSpecification)
capacity_reservation_specification block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#capacity_reservation_specification LaunchTemplate#capacity_reservation_specification}
- Parameters:
capacityReservationSpecification- capacity_reservation_specification block. This parameter is required.- Returns:
this
-
cpuOptions
@Stability(Stable) public LaunchTemplate.Builder cpuOptions(LaunchTemplateCpuOptions cpuOptions)
cpu_options block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#cpu_options LaunchTemplate#cpu_options}
- Parameters:
cpuOptions- cpu_options block. This parameter is required.- Returns:
this
-
creditSpecification
@Stability(Stable) public LaunchTemplate.Builder creditSpecification(LaunchTemplateCreditSpecification creditSpecification)
credit_specification block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#credit_specification LaunchTemplate#credit_specification}
- Parameters:
creditSpecification- credit_specification block. This parameter is required.- Returns:
this
-
defaultVersion
@Stability(Stable) public LaunchTemplate.Builder defaultVersion(Number defaultVersion)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#default_version LaunchTemplate#default_version}.- Parameters:
defaultVersion- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#default_version LaunchTemplate#default_version}. This parameter is required.- Returns:
this
-
description
@Stability(Stable) public LaunchTemplate.Builder description(String description)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#description LaunchTemplate#description}.- Parameters:
description- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#description LaunchTemplate#description}. This parameter is required.- Returns:
this
-
disableApiStop
@Stability(Stable) public LaunchTemplate.Builder disableApiStop(Boolean disableApiStop)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#disable_api_stop LaunchTemplate#disable_api_stop}.- Parameters:
disableApiStop- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#disable_api_stop LaunchTemplate#disable_api_stop}. This parameter is required.- Returns:
this
-
disableApiStop
@Stability(Stable) public LaunchTemplate.Builder disableApiStop(com.hashicorp.cdktf.IResolvable disableApiStop)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#disable_api_stop LaunchTemplate#disable_api_stop}.- Parameters:
disableApiStop- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#disable_api_stop LaunchTemplate#disable_api_stop}. This parameter is required.- Returns:
this
-
disableApiTermination
@Stability(Stable) public LaunchTemplate.Builder disableApiTermination(Boolean disableApiTermination)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#disable_api_termination LaunchTemplate#disable_api_termination}.- Parameters:
disableApiTermination- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#disable_api_termination LaunchTemplate#disable_api_termination}. This parameter is required.- Returns:
this
-
disableApiTermination
@Stability(Stable) public LaunchTemplate.Builder disableApiTermination(com.hashicorp.cdktf.IResolvable disableApiTermination)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#disable_api_termination LaunchTemplate#disable_api_termination}.- Parameters:
disableApiTermination- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#disable_api_termination LaunchTemplate#disable_api_termination}. This parameter is required.- Returns:
this
-
ebsOptimized
@Stability(Stable) public LaunchTemplate.Builder ebsOptimized(String ebsOptimized)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#ebs_optimized LaunchTemplate#ebs_optimized}.- Parameters:
ebsOptimized- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#ebs_optimized LaunchTemplate#ebs_optimized}. This parameter is required.- Returns:
this
-
elasticGpuSpecifications
@Stability(Stable) public LaunchTemplate.Builder elasticGpuSpecifications(com.hashicorp.cdktf.IResolvable elasticGpuSpecifications)
elastic_gpu_specifications block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#elastic_gpu_specifications LaunchTemplate#elastic_gpu_specifications}
- Parameters:
elasticGpuSpecifications- elastic_gpu_specifications block. This parameter is required.- Returns:
this
-
elasticGpuSpecifications
@Stability(Stable) public LaunchTemplate.Builder elasticGpuSpecifications(List<? extends LaunchTemplateElasticGpuSpecifications> elasticGpuSpecifications)
elastic_gpu_specifications block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#elastic_gpu_specifications LaunchTemplate#elastic_gpu_specifications}
- Parameters:
elasticGpuSpecifications- elastic_gpu_specifications block. This parameter is required.- Returns:
this
-
elasticInferenceAccelerator
@Stability(Stable) public LaunchTemplate.Builder elasticInferenceAccelerator(LaunchTemplateElasticInferenceAccelerator elasticInferenceAccelerator)
elastic_inference_accelerator block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#elastic_inference_accelerator LaunchTemplate#elastic_inference_accelerator}
- Parameters:
elasticInferenceAccelerator- elastic_inference_accelerator block. This parameter is required.- Returns:
this
-
enclaveOptions
@Stability(Stable) public LaunchTemplate.Builder enclaveOptions(LaunchTemplateEnclaveOptions enclaveOptions)
enclave_options block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#enclave_options LaunchTemplate#enclave_options}
- Parameters:
enclaveOptions- enclave_options block. This parameter is required.- Returns:
this
-
hibernationOptions
@Stability(Stable) public LaunchTemplate.Builder hibernationOptions(LaunchTemplateHibernationOptions hibernationOptions)
hibernation_options block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#hibernation_options LaunchTemplate#hibernation_options}
- Parameters:
hibernationOptions- hibernation_options block. This parameter is required.- Returns:
this
-
iamInstanceProfile
@Stability(Stable) public LaunchTemplate.Builder iamInstanceProfile(LaunchTemplateIamInstanceProfile iamInstanceProfile)
iam_instance_profile block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#iam_instance_profile LaunchTemplate#iam_instance_profile}
- Parameters:
iamInstanceProfile- iam_instance_profile block. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public LaunchTemplate.Builder id(String id)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#id LaunchTemplate#id}.Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#id LaunchTemplate#id}. This parameter is required.- Returns:
this
-
imageId
@Stability(Stable) public LaunchTemplate.Builder imageId(String imageId)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#image_id LaunchTemplate#image_id}.- Parameters:
imageId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#image_id LaunchTemplate#image_id}. This parameter is required.- Returns:
this
-
instanceInitiatedShutdownBehavior
@Stability(Stable) public LaunchTemplate.Builder instanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#instance_initiated_shutdown_behavior LaunchTemplate#instance_initiated_shutdown_behavior}.- Parameters:
instanceInitiatedShutdownBehavior- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#instance_initiated_shutdown_behavior LaunchTemplate#instance_initiated_shutdown_behavior}. This parameter is required.- Returns:
this
-
instanceMarketOptions
@Stability(Stable) public LaunchTemplate.Builder instanceMarketOptions(LaunchTemplateInstanceMarketOptions instanceMarketOptions)
instance_market_options block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#instance_market_options LaunchTemplate#instance_market_options}
- Parameters:
instanceMarketOptions- instance_market_options block. This parameter is required.- Returns:
this
-
instanceRequirements
@Stability(Stable) public LaunchTemplate.Builder instanceRequirements(LaunchTemplateInstanceRequirements instanceRequirements)
instance_requirements block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#instance_requirements LaunchTemplate#instance_requirements}
- Parameters:
instanceRequirements- instance_requirements block. This parameter is required.- Returns:
this
-
instanceType
@Stability(Stable) public LaunchTemplate.Builder instanceType(String instanceType)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#instance_type LaunchTemplate#instance_type}.- Parameters:
instanceType- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#instance_type LaunchTemplate#instance_type}. This parameter is required.- Returns:
this
-
kernelId
@Stability(Stable) public LaunchTemplate.Builder kernelId(String kernelId)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#kernel_id LaunchTemplate#kernel_id}.- Parameters:
kernelId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#kernel_id LaunchTemplate#kernel_id}. This parameter is required.- Returns:
this
-
keyName
@Stability(Stable) public LaunchTemplate.Builder keyName(String keyName)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#key_name LaunchTemplate#key_name}.- Parameters:
keyName- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#key_name LaunchTemplate#key_name}. This parameter is required.- Returns:
this
-
licenseSpecification
@Stability(Stable) public LaunchTemplate.Builder licenseSpecification(com.hashicorp.cdktf.IResolvable licenseSpecification)
license_specification block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#license_specification LaunchTemplate#license_specification}
- Parameters:
licenseSpecification- license_specification block. This parameter is required.- Returns:
this
-
licenseSpecification
@Stability(Stable) public LaunchTemplate.Builder licenseSpecification(List<? extends LaunchTemplateLicenseSpecification> licenseSpecification)
license_specification block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#license_specification LaunchTemplate#license_specification}
- Parameters:
licenseSpecification- license_specification block. This parameter is required.- Returns:
this
-
maintenanceOptions
@Stability(Stable) public LaunchTemplate.Builder maintenanceOptions(LaunchTemplateMaintenanceOptions maintenanceOptions)
maintenance_options block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#maintenance_options LaunchTemplate#maintenance_options}
- Parameters:
maintenanceOptions- maintenance_options block. This parameter is required.- Returns:
this
-
metadataOptions
@Stability(Stable) public LaunchTemplate.Builder metadataOptions(LaunchTemplateMetadataOptions metadataOptions)
metadata_options block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#metadata_options LaunchTemplate#metadata_options}
- Parameters:
metadataOptions- metadata_options block. This parameter is required.- Returns:
this
-
monitoring
@Stability(Stable) public LaunchTemplate.Builder monitoring(LaunchTemplateMonitoring monitoring)
monitoring block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#monitoring LaunchTemplate#monitoring}
- Parameters:
monitoring- monitoring block. This parameter is required.- Returns:
this
-
name
@Stability(Stable) public LaunchTemplate.Builder name(String name)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#name LaunchTemplate#name}.- Parameters:
name- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#name LaunchTemplate#name}. This parameter is required.- Returns:
this
-
namePrefix
@Stability(Stable) public LaunchTemplate.Builder namePrefix(String namePrefix)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#name_prefix LaunchTemplate#name_prefix}.- Parameters:
namePrefix- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#name_prefix LaunchTemplate#name_prefix}. This parameter is required.- Returns:
this
-
networkInterfaces
@Stability(Stable) public LaunchTemplate.Builder networkInterfaces(com.hashicorp.cdktf.IResolvable networkInterfaces)
network_interfaces block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#network_interfaces LaunchTemplate#network_interfaces}
- Parameters:
networkInterfaces- network_interfaces block. This parameter is required.- Returns:
this
-
networkInterfaces
@Stability(Stable) public LaunchTemplate.Builder networkInterfaces(List<? extends LaunchTemplateNetworkInterfaces> networkInterfaces)
network_interfaces block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#network_interfaces LaunchTemplate#network_interfaces}
- Parameters:
networkInterfaces- network_interfaces block. This parameter is required.- Returns:
this
-
placement
@Stability(Stable) public LaunchTemplate.Builder placement(LaunchTemplatePlacement placement)
placement block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#placement LaunchTemplate#placement}
- Parameters:
placement- placement block. This parameter is required.- Returns:
this
-
privateDnsNameOptions
@Stability(Stable) public LaunchTemplate.Builder privateDnsNameOptions(LaunchTemplatePrivateDnsNameOptions privateDnsNameOptions)
private_dns_name_options block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#private_dns_name_options LaunchTemplate#private_dns_name_options}
- Parameters:
privateDnsNameOptions- private_dns_name_options block. This parameter is required.- Returns:
this
-
ramDiskId
@Stability(Stable) public LaunchTemplate.Builder ramDiskId(String ramDiskId)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#ram_disk_id LaunchTemplate#ram_disk_id}.- Parameters:
ramDiskId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#ram_disk_id LaunchTemplate#ram_disk_id}. This parameter is required.- Returns:
this
-
securityGroupNames
@Stability(Stable) public LaunchTemplate.Builder securityGroupNames(List<String> securityGroupNames)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#security_group_names LaunchTemplate#security_group_names}.- Parameters:
securityGroupNames- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#security_group_names LaunchTemplate#security_group_names}. This parameter is required.- Returns:
this
-
tags
@Stability(Stable) public LaunchTemplate.Builder tags(Map<String,String> tags)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#tags LaunchTemplate#tags}.- Parameters:
tags- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#tags LaunchTemplate#tags}. This parameter is required.- Returns:
this
-
tagsAll
@Stability(Stable) public LaunchTemplate.Builder tagsAll(Map<String,String> tagsAll)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#tags_all LaunchTemplate#tags_all}.- Parameters:
tagsAll- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#tags_all LaunchTemplate#tags_all}. This parameter is required.- Returns:
this
-
tagSpecifications
@Stability(Stable) public LaunchTemplate.Builder tagSpecifications(com.hashicorp.cdktf.IResolvable tagSpecifications)
tag_specifications block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#tag_specifications LaunchTemplate#tag_specifications}
- Parameters:
tagSpecifications- tag_specifications block. This parameter is required.- Returns:
this
-
tagSpecifications
@Stability(Stable) public LaunchTemplate.Builder tagSpecifications(List<? extends LaunchTemplateTagSpecifications> tagSpecifications)
tag_specifications block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#tag_specifications LaunchTemplate#tag_specifications}
- Parameters:
tagSpecifications- tag_specifications block. This parameter is required.- Returns:
this
-
updateDefaultVersion
@Stability(Stable) public LaunchTemplate.Builder updateDefaultVersion(Boolean updateDefaultVersion)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#update_default_version LaunchTemplate#update_default_version}.- Parameters:
updateDefaultVersion- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#update_default_version LaunchTemplate#update_default_version}. This parameter is required.- Returns:
this
-
updateDefaultVersion
@Stability(Stable) public LaunchTemplate.Builder updateDefaultVersion(com.hashicorp.cdktf.IResolvable updateDefaultVersion)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#update_default_version LaunchTemplate#update_default_version}.- Parameters:
updateDefaultVersion- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#update_default_version LaunchTemplate#update_default_version}. This parameter is required.- Returns:
this
-
userData
@Stability(Stable) public LaunchTemplate.Builder userData(String userData)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#user_data LaunchTemplate#user_data}.- Parameters:
userData- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#user_data LaunchTemplate#user_data}. This parameter is required.- Returns:
this
-
vpcSecurityGroupIds
@Stability(Stable) public LaunchTemplate.Builder vpcSecurityGroupIds(List<String> vpcSecurityGroupIds)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#vpc_security_group_ids LaunchTemplate#vpc_security_group_ids}.- Parameters:
vpcSecurityGroupIds- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#vpc_security_group_ids LaunchTemplate#vpc_security_group_ids}. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public LaunchTemplate build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LaunchTemplate>- Returns:
- a newly built instance of
LaunchTemplate.
-
-