@Stability(value=Stable) public static final class CfnLaunchConfigurationProps.Builder extends Object implements software.amazon.jsii.Builder<CfnLaunchConfigurationProps>
CfnLaunchConfigurationProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnLaunchConfigurationProps.Builder imageId(String imageId)
CfnLaunchConfigurationProps.getImageId()imageId - Provides the unique ID of the Amazon Machine Image (AMI) that was assigned during registration. This parameter is required.
For more information, see Finding a Linux AMI in the Amazon EC2 User Guide for Linux Instances .this@Stability(value=Stable) public CfnLaunchConfigurationProps.Builder instanceType(String instanceType)
CfnLaunchConfigurationProps.getInstanceType()instanceType - Specifies the instance type of the EC2 instance. This parameter is required.
For information about available instance types, see Available instance types in the Amazon EC2 User Guide for Linux Instances .this@Stability(value=Stable) public CfnLaunchConfigurationProps.Builder associatePublicIpAddress(Boolean associatePublicIpAddress)
CfnLaunchConfigurationProps.getAssociatePublicIpAddress()associatePublicIpAddress - For Auto Scaling groups that are running in a virtual private cloud (VPC), specifies whether to assign a public IP address to the group's instances.
If you specify true , each instance in the Auto Scaling group receives a unique public IP address. For more information, see Launching Auto Scaling instances in a VPC in the Amazon EC2 Auto Scaling User Guide .
If an instance receives a public IP address and is also in a VPC that is defined in the same stack template, you must use the DependsOn attribute to declare a dependency on the VPC-gateway attachment .
If the instance is launched into a default subnet, the default is to assign a public IP address, unless you disabled the option to assign a public IP address on the subnet. If the instance is launched into a nondefault subnet, the default is not to assign a public IP address, unless you enabled the option to assign a public IP address on the subnet.
this@Stability(value=Stable) public CfnLaunchConfigurationProps.Builder associatePublicIpAddress(IResolvable associatePublicIpAddress)
CfnLaunchConfigurationProps.getAssociatePublicIpAddress()associatePublicIpAddress - For Auto Scaling groups that are running in a virtual private cloud (VPC), specifies whether to assign a public IP address to the group's instances.
If you specify true , each instance in the Auto Scaling group receives a unique public IP address. For more information, see Launching Auto Scaling instances in a VPC in the Amazon EC2 Auto Scaling User Guide .
If an instance receives a public IP address and is also in a VPC that is defined in the same stack template, you must use the DependsOn attribute to declare a dependency on the VPC-gateway attachment .
If the instance is launched into a default subnet, the default is to assign a public IP address, unless you disabled the option to assign a public IP address on the subnet. If the instance is launched into a nondefault subnet, the default is not to assign a public IP address, unless you enabled the option to assign a public IP address on the subnet.
this@Stability(value=Stable) public CfnLaunchConfigurationProps.Builder blockDeviceMappings(IResolvable blockDeviceMappings)
CfnLaunchConfigurationProps.getBlockDeviceMappings()blockDeviceMappings - Specifies how block devices are exposed to the instance.
You can specify virtual devices and EBS volumes.this@Stability(value=Stable) public CfnLaunchConfigurationProps.Builder blockDeviceMappings(List<? extends Object> blockDeviceMappings)
CfnLaunchConfigurationProps.getBlockDeviceMappings()blockDeviceMappings - Specifies how block devices are exposed to the instance.
You can specify virtual devices and EBS volumes.this@Stability(value=Stable) public CfnLaunchConfigurationProps.Builder classicLinkVpcId(String classicLinkVpcId)
CfnLaunchConfigurationProps.getClassicLinkVpcId()classicLinkVpcId - The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.
For more information, see ClassicLink in the Amazon EC2 User Guide for Linux Instances and Linking EC2-Classic instances to a VPC in the Amazon EC2 Auto Scaling User Guide .
This property can only be used if you are launching EC2-Classic instances.
this@Stability(value=Stable) public CfnLaunchConfigurationProps.Builder classicLinkVpcSecurityGroups(List<String> classicLinkVpcSecurityGroups)
CfnLaunchConfigurationProps.getClassicLinkVpcSecurityGroups()classicLinkVpcSecurityGroups - The IDs of one or more security groups for the VPC that you specified in the `ClassicLinkVPCId` property.
If you specify the ClassicLinkVPCId property, you must specify this property.this@Stability(value=Stable) public CfnLaunchConfigurationProps.Builder ebsOptimized(Boolean ebsOptimized)
CfnLaunchConfigurationProps.getEbsOptimized()ebsOptimized - Specifies whether the launch configuration is optimized for EBS I/O ( `true` ) or not ( `false` ).
This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. Additional fees are incurred when you enable EBS optimization for an instance type that is not EBS-optimized by default. For more information, see Amazon EBS–optimized instances in the Amazon EC2 User Guide for Linux Instances .
The default value is false .
this@Stability(value=Stable) public CfnLaunchConfigurationProps.Builder ebsOptimized(IResolvable ebsOptimized)
CfnLaunchConfigurationProps.getEbsOptimized()ebsOptimized - Specifies whether the launch configuration is optimized for EBS I/O ( `true` ) or not ( `false` ).
This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. Additional fees are incurred when you enable EBS optimization for an instance type that is not EBS-optimized by default. For more information, see Amazon EBS–optimized instances in the Amazon EC2 User Guide for Linux Instances .
The default value is false .
this@Stability(value=Stable) public CfnLaunchConfigurationProps.Builder iamInstanceProfile(String iamInstanceProfile)
CfnLaunchConfigurationProps.getIamInstanceProfile()iamInstanceProfile - Provides the name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.
The instance profile contains the IAM role.
For more information, see IAM role for applications that run on Amazon EC2 instances in the Amazon EC2 Auto Scaling User Guide .
this@Stability(value=Stable) public CfnLaunchConfigurationProps.Builder instanceId(String instanceId)
CfnLaunchConfigurationProps.getInstanceId()instanceId - The ID of the Amazon EC2 instance you want to use to create the launch configuration.
Use this property if you want the launch configuration to use settings from an existing Amazon EC2 instance. When you use an instance to create a launch configuration, all properties are derived from the instance with the exception of BlockDeviceMapping and AssociatePublicIpAddress . You can override any properties from the instance by specifying them in the launch configuration.this@Stability(value=Stable) public CfnLaunchConfigurationProps.Builder instanceMonitoring(Boolean instanceMonitoring)
CfnLaunchConfigurationProps.getInstanceMonitoring()instanceMonitoring - Controls whether instances in this group are launched with detailed ( `true` ) or basic ( `false` ) monitoring.
The default value is true (enabled).
When detailed monitoring is enabled, Amazon CloudWatch generates metrics every minute and your account is charged a fee. When you disable detailed monitoring, CloudWatch generates metrics every 5 minutes. For more information, see Configure monitoring for Auto Scaling instances in the Amazon EC2 Auto Scaling User Guide .
this@Stability(value=Stable) public CfnLaunchConfigurationProps.Builder instanceMonitoring(IResolvable instanceMonitoring)
CfnLaunchConfigurationProps.getInstanceMonitoring()instanceMonitoring - Controls whether instances in this group are launched with detailed ( `true` ) or basic ( `false` ) monitoring.
The default value is true (enabled).
When detailed monitoring is enabled, Amazon CloudWatch generates metrics every minute and your account is charged a fee. When you disable detailed monitoring, CloudWatch generates metrics every 5 minutes. For more information, see Configure monitoring for Auto Scaling instances in the Amazon EC2 Auto Scaling User Guide .
this@Stability(value=Stable) public CfnLaunchConfigurationProps.Builder kernelId(String kernelId)
CfnLaunchConfigurationProps.getKernelId()kernelId - Provides the ID of the kernel associated with the EC2 AMI.
We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User provided kernels in the Amazon EC2 User Guide for Linux Instances .
this@Stability(value=Stable) public CfnLaunchConfigurationProps.Builder keyName(String keyName)
CfnLaunchConfigurationProps.getKeyName()keyName - Provides the name of the EC2 key pair.
If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in. For information on creating a key pair, see Amazon EC2 key pairs and Linux instances in the Amazon EC2 User Guide for Linux Instances .
this@Stability(value=Stable) public CfnLaunchConfigurationProps.Builder launchConfigurationName(String launchConfigurationName)
CfnLaunchConfigurationProps.getLaunchConfigurationName()launchConfigurationName - The name of the launch configuration.
This name must be unique per Region per account.this@Stability(value=Stable) public CfnLaunchConfigurationProps.Builder metadataOptions(CfnLaunchConfiguration.MetadataOptionsProperty metadataOptions)
CfnLaunchConfigurationProps.getMetadataOptions()metadataOptions - The metadata options for the instances.
For more information, see Configuring the Instance Metadata Options in the Amazon EC2 Auto Scaling User Guide .this@Stability(value=Stable) public CfnLaunchConfigurationProps.Builder metadataOptions(IResolvable metadataOptions)
CfnLaunchConfigurationProps.getMetadataOptions()metadataOptions - The metadata options for the instances.
For more information, see Configuring the Instance Metadata Options in the Amazon EC2 Auto Scaling User Guide .this@Stability(value=Stable) public CfnLaunchConfigurationProps.Builder placementTenancy(String placementTenancy)
CfnLaunchConfigurationProps.getPlacementTenancy()placementTenancy - The tenancy of the instance, either `default` or `dedicated` .
An instance with dedicated tenancy runs on isolated, single-tenant hardware and can only be launched into a VPC. You must set the value of this property to dedicated if want to launch dedicated instances in a shared tenancy VPC (a VPC with the instance placement tenancy attribute set to default).
If you specify this property, you must specify at least one subnet in the VPCZoneIdentifier property of the AWS::AutoScaling::AutoScalingGroup resource.
For more information, see Configuring instance tenancy with Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide .
this@Stability(value=Stable) public CfnLaunchConfigurationProps.Builder ramDiskId(String ramDiskId)
CfnLaunchConfigurationProps.getRamDiskId()ramDiskId - The ID of the RAM disk to select.
We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User provided kernels in the Amazon EC2 User Guide for Linux Instances .
this@Stability(value=Stable) public CfnLaunchConfigurationProps.Builder securityGroups(List<String> securityGroups)
CfnLaunchConfigurationProps.getSecurityGroups()securityGroups - A list that contains the security groups to assign to the instances in the Auto Scaling group.
The list can contain both the IDs of existing security groups and references to SecurityGroup resources created in the template.
For more information, see Security groups for your VPC in the Amazon Virtual Private Cloud User Guide .
this@Stability(value=Stable) public CfnLaunchConfigurationProps.Builder spotPrice(String spotPrice)
CfnLaunchConfigurationProps.getSpotPrice()spotPrice - The maximum hourly price you are willing to pay for any Spot Instances launched to fulfill the request.
Spot Instances are launched when the price you specify exceeds the current Spot price. For more information, see Requesting Spot Instances for fault-tolerant and flexible applications in the Amazon EC2 Auto Scaling User Guide .
When you change your maximum price by creating a new launch configuration, running instances will continue to run as long as the maximum price for those running instances is higher than the current Spot price.
Valid Range: Minimum value of 0.001
this@Stability(value=Stable) public CfnLaunchConfigurationProps.Builder userData(String userData)
CfnLaunchConfigurationProps.getUserData()userData - The Base64-encoded user data to make available to the launched EC2 instances.
For more information, see Instance metadata and user data in the Amazon EC2 User Guide for Linux Instances .this@Stability(value=Stable) public CfnLaunchConfigurationProps build()
build in interface software.amazon.jsii.Builder<CfnLaunchConfigurationProps>CfnLaunchConfigurationPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.