Class LaunchConfigurationConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.launch_configuration.LaunchConfigurationConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<LaunchConfigurationConfig>
- Enclosing interface:
- LaunchConfigurationConfig
@Stability(Stable) public static final class LaunchConfigurationConfig.Builder extends Object implements software.amazon.jsii.Builder<LaunchConfigurationConfig>
A builder forLaunchConfigurationConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
imageId
@Stability(Stable) public LaunchConfigurationConfig.Builder imageId(String imageId)
Sets the value ofLaunchConfigurationConfig.getImageId()- Parameters:
imageId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_configuration#image_id LaunchConfiguration#image_id}. This parameter is required.- Returns:
this
-
instanceType
@Stability(Stable) public LaunchConfigurationConfig.Builder instanceType(String instanceType)
Sets the value ofLaunchConfigurationConfig.getInstanceType()- Parameters:
instanceType- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_configuration#instance_type LaunchConfiguration#instance_type}. This parameter is required.- Returns:
this
-
associatePublicIpAddress
@Stability(Stable) public LaunchConfigurationConfig.Builder associatePublicIpAddress(Boolean associatePublicIpAddress)
Sets the value ofLaunchConfigurationConfig.getAssociatePublicIpAddress()- Parameters:
associatePublicIpAddress- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_configuration#associate_public_ip_address LaunchConfiguration#associate_public_ip_address}.- Returns:
this
-
associatePublicIpAddress
@Stability(Stable) public LaunchConfigurationConfig.Builder associatePublicIpAddress(com.hashicorp.cdktf.IResolvable associatePublicIpAddress)
Sets the value ofLaunchConfigurationConfig.getAssociatePublicIpAddress()- Parameters:
associatePublicIpAddress- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_configuration#associate_public_ip_address LaunchConfiguration#associate_public_ip_address}.- Returns:
this
-
ebsBlockDevice
@Stability(Stable) public LaunchConfigurationConfig.Builder ebsBlockDevice(com.hashicorp.cdktf.IResolvable ebsBlockDevice)
Sets the value ofLaunchConfigurationConfig.getEbsBlockDevice()- Parameters:
ebsBlockDevice- ebs_block_device block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_configuration#ebs_block_device LaunchConfiguration#ebs_block_device}- Returns:
this
-
ebsBlockDevice
@Stability(Stable) public LaunchConfigurationConfig.Builder ebsBlockDevice(List<? extends LaunchConfigurationEbsBlockDevice> ebsBlockDevice)
Sets the value ofLaunchConfigurationConfig.getEbsBlockDevice()- Parameters:
ebsBlockDevice- ebs_block_device block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_configuration#ebs_block_device LaunchConfiguration#ebs_block_device}- Returns:
this
-
ebsOptimized
@Stability(Stable) public LaunchConfigurationConfig.Builder ebsOptimized(Boolean ebsOptimized)
Sets the value ofLaunchConfigurationConfig.getEbsOptimized()- Parameters:
ebsOptimized- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_configuration#ebs_optimized LaunchConfiguration#ebs_optimized}.- Returns:
this
-
ebsOptimized
@Stability(Stable) public LaunchConfigurationConfig.Builder ebsOptimized(com.hashicorp.cdktf.IResolvable ebsOptimized)
Sets the value ofLaunchConfigurationConfig.getEbsOptimized()- Parameters:
ebsOptimized- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_configuration#ebs_optimized LaunchConfiguration#ebs_optimized}.- Returns:
this
-
enableMonitoring
@Stability(Stable) public LaunchConfigurationConfig.Builder enableMonitoring(Boolean enableMonitoring)
Sets the value ofLaunchConfigurationConfig.getEnableMonitoring()- Parameters:
enableMonitoring- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_configuration#enable_monitoring LaunchConfiguration#enable_monitoring}.- Returns:
this
-
enableMonitoring
@Stability(Stable) public LaunchConfigurationConfig.Builder enableMonitoring(com.hashicorp.cdktf.IResolvable enableMonitoring)
Sets the value ofLaunchConfigurationConfig.getEnableMonitoring()- Parameters:
enableMonitoring- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_configuration#enable_monitoring LaunchConfiguration#enable_monitoring}.- Returns:
this
-
ephemeralBlockDevice
@Stability(Stable) public LaunchConfigurationConfig.Builder ephemeralBlockDevice(com.hashicorp.cdktf.IResolvable ephemeralBlockDevice)
Sets the value ofLaunchConfigurationConfig.getEphemeralBlockDevice()- Parameters:
ephemeralBlockDevice- ephemeral_block_device block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_configuration#ephemeral_block_device LaunchConfiguration#ephemeral_block_device}- Returns:
this
-
ephemeralBlockDevice
@Stability(Stable) public LaunchConfigurationConfig.Builder ephemeralBlockDevice(List<? extends LaunchConfigurationEphemeralBlockDevice> ephemeralBlockDevice)
Sets the value ofLaunchConfigurationConfig.getEphemeralBlockDevice()- Parameters:
ephemeralBlockDevice- ephemeral_block_device block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_configuration#ephemeral_block_device LaunchConfiguration#ephemeral_block_device}- Returns:
this
-
iamInstanceProfile
@Stability(Stable) public LaunchConfigurationConfig.Builder iamInstanceProfile(String iamInstanceProfile)
Sets the value ofLaunchConfigurationConfig.getIamInstanceProfile()- Parameters:
iamInstanceProfile- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_configuration#iam_instance_profile LaunchConfiguration#iam_instance_profile}.- Returns:
this
-
id
@Stability(Stable) public LaunchConfigurationConfig.Builder id(String id)
Sets the value ofLaunchConfigurationConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_configuration#id LaunchConfiguration#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.- Returns:
this
-
keyName
@Stability(Stable) public LaunchConfigurationConfig.Builder keyName(String keyName)
Sets the value ofLaunchConfigurationConfig.getKeyName()- Parameters:
keyName- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_configuration#key_name LaunchConfiguration#key_name}.- Returns:
this
-
metadataOptions
@Stability(Stable) public LaunchConfigurationConfig.Builder metadataOptions(LaunchConfigurationMetadataOptions metadataOptions)
Sets the value ofLaunchConfigurationConfig.getMetadataOptions()- Parameters:
metadataOptions- metadata_options block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_configuration#metadata_options LaunchConfiguration#metadata_options}- Returns:
this
-
name
@Stability(Stable) public LaunchConfigurationConfig.Builder name(String name)
Sets the value ofLaunchConfigurationConfig.getName()- Parameters:
name- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_configuration#name LaunchConfiguration#name}.- Returns:
this
-
namePrefix
@Stability(Stable) public LaunchConfigurationConfig.Builder namePrefix(String namePrefix)
Sets the value ofLaunchConfigurationConfig.getNamePrefix()- Parameters:
namePrefix- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_configuration#name_prefix LaunchConfiguration#name_prefix}.- Returns:
this
-
placementTenancy
@Stability(Stable) public LaunchConfigurationConfig.Builder placementTenancy(String placementTenancy)
Sets the value ofLaunchConfigurationConfig.getPlacementTenancy()- Parameters:
placementTenancy- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_configuration#placement_tenancy LaunchConfiguration#placement_tenancy}.- Returns:
this
-
rootBlockDevice
@Stability(Stable) public LaunchConfigurationConfig.Builder rootBlockDevice(LaunchConfigurationRootBlockDevice rootBlockDevice)
Sets the value ofLaunchConfigurationConfig.getRootBlockDevice()- Parameters:
rootBlockDevice- root_block_device block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_configuration#root_block_device LaunchConfiguration#root_block_device}- Returns:
this
-
securityGroups
@Stability(Stable) public LaunchConfigurationConfig.Builder securityGroups(List<String> securityGroups)
Sets the value ofLaunchConfigurationConfig.getSecurityGroups()- Parameters:
securityGroups- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_configuration#security_groups LaunchConfiguration#security_groups}.- Returns:
this
-
spotPrice
@Stability(Stable) public LaunchConfigurationConfig.Builder spotPrice(String spotPrice)
Sets the value ofLaunchConfigurationConfig.getSpotPrice()- Parameters:
spotPrice- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_configuration#spot_price LaunchConfiguration#spot_price}.- Returns:
this
-
userData
@Stability(Stable) public LaunchConfigurationConfig.Builder userData(String userData)
Sets the value ofLaunchConfigurationConfig.getUserData()- Parameters:
userData- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_configuration#user_data LaunchConfiguration#user_data}.- Returns:
this
-
userDataBase64
@Stability(Stable) public LaunchConfigurationConfig.Builder userDataBase64(String userDataBase64)
Sets the value ofLaunchConfigurationConfig.getUserDataBase64()- Parameters:
userDataBase64- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_configuration#user_data_base64 LaunchConfiguration#user_data_base64}.- Returns:
this
-
connection
@Stability(Experimental) public LaunchConfigurationConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public LaunchConfigurationConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public LaunchConfigurationConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public LaunchConfigurationConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public LaunchConfigurationConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public LaunchConfigurationConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public LaunchConfigurationConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public LaunchConfigurationConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public LaunchConfigurationConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public LaunchConfigurationConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LaunchConfigurationConfig>- Returns:
- a new instance of
LaunchConfigurationConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-