@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LaunchConfiguration extends Object implements Serializable, Cloneable
Describes a launch configuration.
Constructor and Description |
---|
LaunchConfiguration() |
Modifier and Type | Method and Description |
---|---|
LaunchConfiguration |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAssociatePublicIpAddress()
For Auto Scaling groups that are running in a VPC, specifies whether to assign a public IP address to the group's
instances.
|
List<BlockDeviceMapping> |
getBlockDeviceMappings()
A block device mapping, which specifies the block devices for the instance.
|
String |
getClassicLinkVPCId()
EC2-Classic retires on August 15, 2022.
|
List<String> |
getClassicLinkVPCSecurityGroups()
EC2-Classic retires on August 15, 2022.
|
Date |
getCreatedTime()
The creation date and time for the launch configuration.
|
Boolean |
getEbsOptimized()
Specifies whether the launch configuration is optimized for EBS I/O (
true ) or not (
false ). |
String |
getIamInstanceProfile()
The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.
|
String |
getImageId()
The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances.
|
InstanceMonitoring |
getInstanceMonitoring()
Controls whether instances in this group are launched with detailed (
true ) or basic (
false ) monitoring. |
String |
getInstanceType()
The instance type for the instances.
|
String |
getKernelId()
The ID of the kernel associated with the AMI.
|
String |
getKeyName()
The name of the key pair.
|
String |
getLaunchConfigurationARN()
The Amazon Resource Name (ARN) of the launch configuration.
|
String |
getLaunchConfigurationName()
The name of the launch configuration.
|
InstanceMetadataOptions |
getMetadataOptions()
The metadata options for the instances.
|
String |
getPlacementTenancy()
The tenancy of the instance, either
default or dedicated . |
String |
getRamdiskId()
The ID of the RAM disk associated with the AMI.
|
List<String> |
getSecurityGroups()
A list that contains the security groups to assign to the instances in the Auto Scaling group.
|
String |
getSpotPrice()
The maximum hourly price to be paid for any Spot Instance launched to fulfill the request.
|
String |
getUserData()
The user data to make available to the launched EC2 instances.
|
int |
hashCode() |
Boolean |
isAssociatePublicIpAddress()
For Auto Scaling groups that are running in a VPC, specifies whether to assign a public IP address to the group's
instances.
|
Boolean |
isEbsOptimized()
Specifies whether the launch configuration is optimized for EBS I/O (
true ) or not (
false ). |
void |
setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
For Auto Scaling groups that are running in a VPC, specifies whether to assign a public IP address to the group's
instances.
|
void |
setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
A block device mapping, which specifies the block devices for the instance.
|
void |
setClassicLinkVPCId(String classicLinkVPCId)
EC2-Classic retires on August 15, 2022.
|
void |
setClassicLinkVPCSecurityGroups(Collection<String> classicLinkVPCSecurityGroups)
EC2-Classic retires on August 15, 2022.
|
void |
setCreatedTime(Date createdTime)
The creation date and time for the launch configuration.
|
void |
setEbsOptimized(Boolean ebsOptimized)
Specifies whether the launch configuration is optimized for EBS I/O (
true ) or not (
false ). |
void |
setIamInstanceProfile(String iamInstanceProfile)
The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.
|
void |
setImageId(String imageId)
The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances.
|
void |
setInstanceMonitoring(InstanceMonitoring instanceMonitoring)
Controls whether instances in this group are launched with detailed (
true ) or basic (
false ) monitoring. |
void |
setInstanceType(String instanceType)
The instance type for the instances.
|
void |
setKernelId(String kernelId)
The ID of the kernel associated with the AMI.
|
void |
setKeyName(String keyName)
The name of the key pair.
|
void |
setLaunchConfigurationARN(String launchConfigurationARN)
The Amazon Resource Name (ARN) of the launch configuration.
|
void |
setLaunchConfigurationName(String launchConfigurationName)
The name of the launch configuration.
|
void |
setMetadataOptions(InstanceMetadataOptions metadataOptions)
The metadata options for the instances.
|
void |
setPlacementTenancy(String placementTenancy)
The tenancy of the instance, either
default or dedicated . |
void |
setRamdiskId(String ramdiskId)
The ID of the RAM disk associated with the AMI.
|
void |
setSecurityGroups(Collection<String> securityGroups)
A list that contains the security groups to assign to the instances in the Auto Scaling group.
|
void |
setSpotPrice(String spotPrice)
The maximum hourly price to be paid for any Spot Instance launched to fulfill the request.
|
void |
setUserData(String userData)
The user data to make available to the launched EC2 instances.
|
String |
toString()
Returns a string representation of this object.
|
LaunchConfiguration |
withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
For Auto Scaling groups that are running in a VPC, specifies whether to assign a public IP address to the group's
instances.
|
LaunchConfiguration |
withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
A block device mapping, which specifies the block devices for the instance.
|
LaunchConfiguration |
withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
A block device mapping, which specifies the block devices for the instance.
|
LaunchConfiguration |
withClassicLinkVPCId(String classicLinkVPCId)
EC2-Classic retires on August 15, 2022.
|
LaunchConfiguration |
withClassicLinkVPCSecurityGroups(Collection<String> classicLinkVPCSecurityGroups)
EC2-Classic retires on August 15, 2022.
|
LaunchConfiguration |
withClassicLinkVPCSecurityGroups(String... classicLinkVPCSecurityGroups)
EC2-Classic retires on August 15, 2022.
|
LaunchConfiguration |
withCreatedTime(Date createdTime)
The creation date and time for the launch configuration.
|
LaunchConfiguration |
withEbsOptimized(Boolean ebsOptimized)
Specifies whether the launch configuration is optimized for EBS I/O (
true ) or not (
false ). |
LaunchConfiguration |
withIamInstanceProfile(String iamInstanceProfile)
The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.
|
LaunchConfiguration |
withImageId(String imageId)
The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances.
|
LaunchConfiguration |
withInstanceMonitoring(InstanceMonitoring instanceMonitoring)
Controls whether instances in this group are launched with detailed (
true ) or basic (
false ) monitoring. |
LaunchConfiguration |
withInstanceType(String instanceType)
The instance type for the instances.
|
LaunchConfiguration |
withKernelId(String kernelId)
The ID of the kernel associated with the AMI.
|
LaunchConfiguration |
withKeyName(String keyName)
The name of the key pair.
|
LaunchConfiguration |
withLaunchConfigurationARN(String launchConfigurationARN)
The Amazon Resource Name (ARN) of the launch configuration.
|
LaunchConfiguration |
withLaunchConfigurationName(String launchConfigurationName)
The name of the launch configuration.
|
LaunchConfiguration |
withMetadataOptions(InstanceMetadataOptions metadataOptions)
The metadata options for the instances.
|
LaunchConfiguration |
withPlacementTenancy(String placementTenancy)
The tenancy of the instance, either
default or dedicated . |
LaunchConfiguration |
withRamdiskId(String ramdiskId)
The ID of the RAM disk associated with the AMI.
|
LaunchConfiguration |
withSecurityGroups(Collection<String> securityGroups)
A list that contains the security groups to assign to the instances in the Auto Scaling group.
|
LaunchConfiguration |
withSecurityGroups(String... securityGroups)
A list that contains the security groups to assign to the instances in the Auto Scaling group.
|
LaunchConfiguration |
withSpotPrice(String spotPrice)
The maximum hourly price to be paid for any Spot Instance launched to fulfill the request.
|
LaunchConfiguration |
withUserData(String userData)
The user data to make available to the launched EC2 instances.
|
public void setLaunchConfigurationName(String launchConfigurationName)
The name of the launch configuration.
launchConfigurationName
- The name of the launch configuration.public String getLaunchConfigurationName()
The name of the launch configuration.
public LaunchConfiguration withLaunchConfigurationName(String launchConfigurationName)
The name of the launch configuration.
launchConfigurationName
- The name of the launch configuration.public void setLaunchConfigurationARN(String launchConfigurationARN)
The Amazon Resource Name (ARN) of the launch configuration.
launchConfigurationARN
- The Amazon Resource Name (ARN) of the launch configuration.public String getLaunchConfigurationARN()
The Amazon Resource Name (ARN) of the launch configuration.
public LaunchConfiguration withLaunchConfigurationARN(String launchConfigurationARN)
The Amazon Resource Name (ARN) of the launch configuration.
launchConfigurationARN
- The Amazon Resource Name (ARN) of the launch configuration.public void setImageId(String imageId)
The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances. For more information, see Finding an AMI in the Amazon EC2 User Guide for Linux Instances.
imageId
- The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances. For more information, see Finding an AMI in the
Amazon EC2 User Guide for Linux Instances.public String getImageId()
The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances. For more information, see Finding an AMI in the Amazon EC2 User Guide for Linux Instances.
public LaunchConfiguration withImageId(String imageId)
The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances. For more information, see Finding an AMI in the Amazon EC2 User Guide for Linux Instances.
imageId
- The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances. For more information, see Finding an AMI in the
Amazon EC2 User Guide for Linux Instances.public void setKeyName(String keyName)
The name of the key pair.
For more information, see Amazon EC2 Key Pairs in the Amazon EC2 User Guide for Linux Instances.
keyName
- The name of the key pair.
For more information, see Amazon EC2 Key Pairs in the Amazon EC2 User Guide for Linux Instances.
public String getKeyName()
The name of the key pair.
For more information, see Amazon EC2 Key Pairs in the Amazon EC2 User Guide for Linux Instances.
For more information, see Amazon EC2 Key Pairs in the Amazon EC2 User Guide for Linux Instances.
public LaunchConfiguration withKeyName(String keyName)
The name of the key pair.
For more information, see Amazon EC2 Key Pairs in the Amazon EC2 User Guide for Linux Instances.
keyName
- The name of the key pair.
For more information, see Amazon EC2 Key Pairs in the Amazon EC2 User Guide for Linux Instances.
public List<String> getSecurityGroups()
A list that contains the security groups to assign to the instances in the Auto Scaling group. For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.
public void setSecurityGroups(Collection<String> securityGroups)
A list that contains the security groups to assign to the instances in the Auto Scaling group. For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.
securityGroups
- A list that contains the security groups to assign to the instances in the Auto Scaling group. For more
information, see Security Groups for
Your VPC in the Amazon Virtual Private Cloud User Guide.public LaunchConfiguration withSecurityGroups(String... securityGroups)
A list that contains the security groups to assign to the instances in the Auto Scaling group. For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroups(java.util.Collection)
or withSecurityGroups(java.util.Collection)
if you want
to override the existing values.
securityGroups
- A list that contains the security groups to assign to the instances in the Auto Scaling group. For more
information, see Security Groups for
Your VPC in the Amazon Virtual Private Cloud User Guide.public LaunchConfiguration withSecurityGroups(Collection<String> securityGroups)
A list that contains the security groups to assign to the instances in the Auto Scaling group. For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.
securityGroups
- A list that contains the security groups to assign to the instances in the Auto Scaling group. For more
information, see Security Groups for
Your VPC in the Amazon Virtual Private Cloud User Guide.public void setClassicLinkVPCId(String classicLinkVPCId)
EC2-Classic retires on August 15, 2022. This parameter is not supported after that date.
The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.
classicLinkVPCId
- EC2-Classic retires on August 15, 2022. This parameter is not supported after that date.
The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.
public String getClassicLinkVPCId()
EC2-Classic retires on August 15, 2022. This parameter is not supported after that date.
The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.
The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.
public LaunchConfiguration withClassicLinkVPCId(String classicLinkVPCId)
EC2-Classic retires on August 15, 2022. This parameter is not supported after that date.
The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.
classicLinkVPCId
- EC2-Classic retires on August 15, 2022. This parameter is not supported after that date.
The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.
public List<String> getClassicLinkVPCSecurityGroups()
EC2-Classic retires on August 15, 2022. This parameter is not supported after that date.
The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId
.
The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId
.
public void setClassicLinkVPCSecurityGroups(Collection<String> classicLinkVPCSecurityGroups)
EC2-Classic retires on August 15, 2022. This parameter is not supported after that date.
The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId
.
classicLinkVPCSecurityGroups
- EC2-Classic retires on August 15, 2022. This parameter is not supported after that date.
The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId
.
public LaunchConfiguration withClassicLinkVPCSecurityGroups(String... classicLinkVPCSecurityGroups)
EC2-Classic retires on August 15, 2022. This parameter is not supported after that date.
The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId
.
NOTE: This method appends the values to the existing list (if any). Use
setClassicLinkVPCSecurityGroups(java.util.Collection)
or
withClassicLinkVPCSecurityGroups(java.util.Collection)
if you want to override the existing values.
classicLinkVPCSecurityGroups
- EC2-Classic retires on August 15, 2022. This parameter is not supported after that date.
The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId
.
public LaunchConfiguration withClassicLinkVPCSecurityGroups(Collection<String> classicLinkVPCSecurityGroups)
EC2-Classic retires on August 15, 2022. This parameter is not supported after that date.
The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId
.
classicLinkVPCSecurityGroups
- EC2-Classic retires on August 15, 2022. This parameter is not supported after that date.
The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId
.
public void setUserData(String userData)
The user data to make available to the launched EC2 instances. For more information, see Instance metadata and user data (Linux) and Instance metadata and user data (Windows). If you are using a command line tool, base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must provide base64-encoded text. User data is limited to 16 KB.
userData
- The user data to make available to the launched EC2 instances. For more information, see Instance metadata
and user data (Linux) and Instance metadata
and user data (Windows). If you are using a command line tool, base64-encoding is performed for you,
and you can load the text from a file. Otherwise, you must provide base64-encoded text. User data is
limited to 16 KB.public String getUserData()
The user data to make available to the launched EC2 instances. For more information, see Instance metadata and user data (Linux) and Instance metadata and user data (Windows). If you are using a command line tool, base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must provide base64-encoded text. User data is limited to 16 KB.
public LaunchConfiguration withUserData(String userData)
The user data to make available to the launched EC2 instances. For more information, see Instance metadata and user data (Linux) and Instance metadata and user data (Windows). If you are using a command line tool, base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must provide base64-encoded text. User data is limited to 16 KB.
userData
- The user data to make available to the launched EC2 instances. For more information, see Instance metadata
and user data (Linux) and Instance metadata
and user data (Windows). If you are using a command line tool, base64-encoding is performed for you,
and you can load the text from a file. Otherwise, you must provide base64-encoded text. User data is
limited to 16 KB.public void setInstanceType(String instanceType)
The instance type for the instances.
For information about available instance types, see Available Instance Types in the Amazon EC2 User Guide for Linux Instances.
instanceType
- The instance type for the instances.
For information about available instance types, see Available Instance Types in the Amazon EC2 User Guide for Linux Instances.
public String getInstanceType()
The instance type for the instances.
For information about available instance types, see Available Instance Types in the Amazon EC2 User Guide for Linux Instances.
For information about available instance types, see Available Instance Types in the Amazon EC2 User Guide for Linux Instances.
public LaunchConfiguration withInstanceType(String instanceType)
The instance type for the instances.
For information about available instance types, see Available Instance Types in the Amazon EC2 User Guide for Linux Instances.
instanceType
- The instance type for the instances.
For information about available instance types, see Available Instance Types in the Amazon EC2 User Guide for Linux Instances.
public void setKernelId(String kernelId)
The ID of the kernel associated with the AMI.
kernelId
- The ID of the kernel associated with the AMI.public String getKernelId()
The ID of the kernel associated with the AMI.
public LaunchConfiguration withKernelId(String kernelId)
The ID of the kernel associated with the AMI.
kernelId
- The ID of the kernel associated with the AMI.public void setRamdiskId(String ramdiskId)
The ID of the RAM disk associated with the AMI.
ramdiskId
- The ID of the RAM disk associated with the AMI.public String getRamdiskId()
The ID of the RAM disk associated with the AMI.
public LaunchConfiguration withRamdiskId(String ramdiskId)
The ID of the RAM disk associated with the AMI.
ramdiskId
- The ID of the RAM disk associated with the AMI.public List<BlockDeviceMapping> getBlockDeviceMappings()
A block device mapping, which specifies the block devices for the instance. For more information, see Block Device Mapping in the Amazon EC2 User Guide for Linux Instances.
public void setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
A block device mapping, which specifies the block devices for the instance. For more information, see Block Device Mapping in the Amazon EC2 User Guide for Linux Instances.
blockDeviceMappings
- A block device mapping, which specifies the block devices for the instance. For more information, see Block Device
Mapping in the Amazon EC2 User Guide for Linux Instances.public LaunchConfiguration withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
A block device mapping, which specifies the block devices for the instance. For more information, see Block Device Mapping in the Amazon EC2 User Guide for Linux Instances.
NOTE: This method appends the values to the existing list (if any). Use
setBlockDeviceMappings(java.util.Collection)
or withBlockDeviceMappings(java.util.Collection)
if you want to override the existing values.
blockDeviceMappings
- A block device mapping, which specifies the block devices for the instance. For more information, see Block Device
Mapping in the Amazon EC2 User Guide for Linux Instances.public LaunchConfiguration withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
A block device mapping, which specifies the block devices for the instance. For more information, see Block Device Mapping in the Amazon EC2 User Guide for Linux Instances.
blockDeviceMappings
- A block device mapping, which specifies the block devices for the instance. For more information, see Block Device
Mapping in the Amazon EC2 User Guide for Linux Instances.public void setInstanceMonitoring(InstanceMonitoring instanceMonitoring)
Controls whether instances in this group are launched with detailed (true
) or basic (
false
) monitoring.
For more information, see Configure Monitoring for Auto Scaling Instances in the Amazon EC2 Auto Scaling User Guide.
instanceMonitoring
- Controls whether instances in this group are launched with detailed (true
) or basic (
false
) monitoring.
For more information, see Configure Monitoring for Auto Scaling Instances in the Amazon EC2 Auto Scaling User Guide.
public InstanceMonitoring getInstanceMonitoring()
Controls whether instances in this group are launched with detailed (true
) or basic (
false
) monitoring.
For more information, see Configure Monitoring for Auto Scaling Instances in the Amazon EC2 Auto Scaling User Guide.
true
) or basic (
false
) monitoring.
For more information, see Configure Monitoring for Auto Scaling Instances in the Amazon EC2 Auto Scaling User Guide.
public LaunchConfiguration withInstanceMonitoring(InstanceMonitoring instanceMonitoring)
Controls whether instances in this group are launched with detailed (true
) or basic (
false
) monitoring.
For more information, see Configure Monitoring for Auto Scaling Instances in the Amazon EC2 Auto Scaling User Guide.
instanceMonitoring
- Controls whether instances in this group are launched with detailed (true
) or basic (
false
) monitoring.
For more information, see Configure Monitoring for Auto Scaling Instances in the Amazon EC2 Auto Scaling User Guide.
public void setSpotPrice(String spotPrice)
The maximum hourly price to be paid for any Spot Instance 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 in the Amazon EC2 Auto Scaling User Guide.
spotPrice
- The maximum hourly price to be paid for any Spot Instance 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 in the Amazon EC2 Auto Scaling User Guide.public String getSpotPrice()
The maximum hourly price to be paid for any Spot Instance 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 in the Amazon EC2 Auto Scaling User Guide.
public LaunchConfiguration withSpotPrice(String spotPrice)
The maximum hourly price to be paid for any Spot Instance 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 in the Amazon EC2 Auto Scaling User Guide.
spotPrice
- The maximum hourly price to be paid for any Spot Instance 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 in the Amazon EC2 Auto Scaling User Guide.public void setIamInstanceProfile(String iamInstanceProfile)
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.
iamInstanceProfile
- 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.public String getIamInstanceProfile()
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.
public LaunchConfiguration withIamInstanceProfile(String iamInstanceProfile)
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.
iamInstanceProfile
- 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.public void setCreatedTime(Date createdTime)
The creation date and time for the launch configuration.
createdTime
- The creation date and time for the launch configuration.public Date getCreatedTime()
The creation date and time for the launch configuration.
public LaunchConfiguration withCreatedTime(Date createdTime)
The creation date and time for the launch configuration.
createdTime
- The creation date and time for the launch configuration.public void setEbsOptimized(Boolean ebsOptimized)
Specifies whether the launch configuration is optimized for EBS I/O (true
) or not (
false
). For more information, see Amazon EBS-Optimized Instances
in the Amazon EC2 User Guide for Linux Instances.
ebsOptimized
- Specifies whether the launch configuration is optimized for EBS I/O (true
) or not (
false
). For more information, see Amazon EBS-Optimized
Instances in the Amazon EC2 User Guide for Linux Instances.public Boolean getEbsOptimized()
Specifies whether the launch configuration is optimized for EBS I/O (true
) or not (
false
). For more information, see Amazon EBS-Optimized Instances
in the Amazon EC2 User Guide for Linux Instances.
true
) or not (
false
). For more information, see Amazon EBS-Optimized
Instances in the Amazon EC2 User Guide for Linux Instances.public LaunchConfiguration withEbsOptimized(Boolean ebsOptimized)
Specifies whether the launch configuration is optimized for EBS I/O (true
) or not (
false
). For more information, see Amazon EBS-Optimized Instances
in the Amazon EC2 User Guide for Linux Instances.
ebsOptimized
- Specifies whether the launch configuration is optimized for EBS I/O (true
) or not (
false
). For more information, see Amazon EBS-Optimized
Instances in the Amazon EC2 User Guide for Linux Instances.public Boolean isEbsOptimized()
Specifies whether the launch configuration is optimized for EBS I/O (true
) or not (
false
). For more information, see Amazon EBS-Optimized Instances
in the Amazon EC2 User Guide for Linux Instances.
true
) or not (
false
). For more information, see Amazon EBS-Optimized
Instances in the Amazon EC2 User Guide for Linux Instances.public void setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
For Auto Scaling groups that are running in a VPC, specifies whether to assign a public IP address to the group's instances. For more information, see Launching Auto Scaling instances in a VPC in the Amazon EC2 Auto Scaling User Guide.
associatePublicIpAddress
- For Auto Scaling groups that are running in a VPC, specifies whether to assign a public IP address to the
group's instances. For more information, see Launching Auto Scaling
instances in a VPC in the Amazon EC2 Auto Scaling User Guide.public Boolean getAssociatePublicIpAddress()
For Auto Scaling groups that are running in a VPC, specifies whether to assign a public IP address to the group's instances. For more information, see Launching Auto Scaling instances in a VPC in the Amazon EC2 Auto Scaling User Guide.
public LaunchConfiguration withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
For Auto Scaling groups that are running in a VPC, specifies whether to assign a public IP address to the group's instances. For more information, see Launching Auto Scaling instances in a VPC in the Amazon EC2 Auto Scaling User Guide.
associatePublicIpAddress
- For Auto Scaling groups that are running in a VPC, specifies whether to assign a public IP address to the
group's instances. For more information, see Launching Auto Scaling
instances in a VPC in the Amazon EC2 Auto Scaling User Guide.public Boolean isAssociatePublicIpAddress()
For Auto Scaling groups that are running in a VPC, specifies whether to assign a public IP address to the group's instances. For more information, see Launching Auto Scaling instances in a VPC in the Amazon EC2 Auto Scaling User Guide.
public void setPlacementTenancy(String 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.
For more information, see Configuring instance tenancy with Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.
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.
For more information, see Configuring instance tenancy with Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.
public String getPlacementTenancy()
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.
For more information, see Configuring instance tenancy with Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.
default
or dedicated
. An instance with
dedicated
tenancy runs on isolated, single-tenant hardware and can only be launched into a
VPC.
For more information, see Configuring instance tenancy with Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.
public LaunchConfiguration withPlacementTenancy(String 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.
For more information, see Configuring instance tenancy with Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.
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.
For more information, see Configuring instance tenancy with Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.
public void setMetadataOptions(InstanceMetadataOptions metadataOptions)
The metadata options for the instances. For more information, see Configuring the Instance Metadata Options in the Amazon EC2 Auto Scaling User Guide.
metadataOptions
- The metadata options for the instances. For more information, see Configuring the Instance Metadata Options in the Amazon EC2 Auto Scaling User Guide.public InstanceMetadataOptions getMetadataOptions()
The metadata options for the instances. For more information, see Configuring the Instance Metadata Options in the Amazon EC2 Auto Scaling User Guide.
public LaunchConfiguration withMetadataOptions(InstanceMetadataOptions metadataOptions)
The metadata options for the instances. For more information, see Configuring the Instance Metadata Options in the Amazon EC2 Auto Scaling User Guide.
metadataOptions
- The metadata options for the instances. For more information, see Configuring the Instance Metadata Options in the Amazon EC2 Auto Scaling User Guide.public String toString()
toString
in class Object
Object.toString()
public LaunchConfiguration clone()