@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()
Specifies whether to assign a public IPv4 address to the group's instances.
|
List<BlockDeviceMapping> |
getBlockDeviceMappings()
The block device mapping entries that define the block devices to attach to the instances at launch.
|
String |
getClassicLinkVPCId()
Available for backward compatibility.
|
List<String> |
getClassicLinkVPCSecurityGroups()
Available for backward compatibility.
|
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()
Specifies whether to assign a public IPv4 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)
Specifies whether to assign a public IPv4 address to the group's instances.
|
void |
setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
The block device mapping entries that define the block devices to attach to the instances at launch.
|
void |
setClassicLinkVPCId(String classicLinkVPCId)
Available for backward compatibility.
|
void |
setClassicLinkVPCSecurityGroups(Collection<String> classicLinkVPCSecurityGroups)
Available for backward compatibility.
|
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)
Specifies whether to assign a public IPv4 address to the group's instances.
|
LaunchConfiguration |
withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
The block device mapping entries that define the block devices to attach to the instances at launch.
|
LaunchConfiguration |
withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
The block device mapping entries that define the block devices to attach to the instances at launch.
|
LaunchConfiguration |
withClassicLinkVPCId(String classicLinkVPCId)
Available for backward compatibility.
|
LaunchConfiguration |
withClassicLinkVPCSecurityGroups(Collection<String> classicLinkVPCSecurityGroups)
Available for backward compatibility.
|
LaunchConfiguration |
withClassicLinkVPCSecurityGroups(String... classicLinkVPCSecurityGroups)
Available for backward compatibility.
|
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 Find a Linux 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 Find a Linux 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 Find a Linux 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 Find a Linux 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 Find a Linux 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 and Amazon EC2 instances in the Amazon EC2 User Guide for Linux Instances.
keyName
- The name of the key pair.
For more information, see Amazon EC2 key pairs and Amazon EC2 instances 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 and Amazon EC2 instances in the Amazon EC2 User Guide for Linux Instances.
For more information, see Amazon EC2 key pairs and Amazon EC2 instances 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 and Amazon EC2 instances in the Amazon EC2 User Guide for Linux Instances.
keyName
- The name of the key pair.
For more information, see Amazon EC2 key pairs and Amazon EC2 instances 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 Control traffic to your Amazon Web Services resources using security groups 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 Control traffic to your Amazon Web Services resources using security groups 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 Control traffic to your
Amazon Web Services resources using security groups 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 Control traffic to your Amazon Web Services resources using security groups 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 Control traffic to your
Amazon Web Services resources using security groups 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 Control traffic to your Amazon Web Services resources using security groups 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 Control traffic to your
Amazon Web Services resources using security groups in the Amazon Virtual Private Cloud User
Guide.public void setClassicLinkVPCId(String classicLinkVPCId)
Available for backward compatibility.
classicLinkVPCId
- Available for backward compatibility.public String getClassicLinkVPCId()
Available for backward compatibility.
public LaunchConfiguration withClassicLinkVPCId(String classicLinkVPCId)
Available for backward compatibility.
classicLinkVPCId
- Available for backward compatibility.public List<String> getClassicLinkVPCSecurityGroups()
Available for backward compatibility.
public void setClassicLinkVPCSecurityGroups(Collection<String> classicLinkVPCSecurityGroups)
Available for backward compatibility.
classicLinkVPCSecurityGroups
- Available for backward compatibility.public LaunchConfiguration withClassicLinkVPCSecurityGroups(String... classicLinkVPCSecurityGroups)
Available for backward compatibility.
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
- Available for backward compatibility.public LaunchConfiguration withClassicLinkVPCSecurityGroups(Collection<String> classicLinkVPCSecurityGroups)
Available for backward compatibility.
classicLinkVPCSecurityGroups
- Available for backward compatibility.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.
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()
The block device mapping entries that define the block devices to attach to the instances at launch. By default, the block devices specified in the block device mapping for the AMI are used. For more information, see Block device mappings in the Amazon EC2 User Guide for Linux Instances.
public void setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
The block device mapping entries that define the block devices to attach to the instances at launch. By default, the block devices specified in the block device mapping for the AMI are used. For more information, see Block device mappings in the Amazon EC2 User Guide for Linux Instances.
blockDeviceMappings
- The block device mapping entries that define the block devices to attach to the instances at launch. By
default, the block devices specified in the block device mapping for the AMI are used. For more
information, see Block device
mappings in the Amazon EC2 User Guide for Linux Instances.public LaunchConfiguration withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
The block device mapping entries that define the block devices to attach to the instances at launch. By default, the block devices specified in the block device mapping for the AMI are used. For more information, see Block device mappings 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
- The block device mapping entries that define the block devices to attach to the instances at launch. By
default, the block devices specified in the block device mapping for the AMI are used. For more
information, see Block device
mappings in the Amazon EC2 User Guide for Linux Instances.public LaunchConfiguration withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
The block device mapping entries that define the block devices to attach to the instances at launch. By default, the block devices specified in the block device mapping for the AMI are used. For more information, see Block device mappings in the Amazon EC2 User Guide for Linux Instances.
blockDeviceMappings
- The block device mapping entries that define the block devices to attach to the instances at launch. By
default, the block devices specified in the block device mapping for the AMI are used. For more
information, see Block device
mappings 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 for fault-tolerant and flexible applications 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 for fault-tolerant and flexible applications 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 for fault-tolerant and flexible applications 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 for fault-tolerant and flexible applications 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 for fault-tolerant and flexible applications 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)
Specifies whether to assign a public IPv4 address to the group's instances. If the instance is launched into a default subnet, the default is to assign a public IPv4 address, unless you disabled the option to assign a public IPv4 address on the subnet. If the instance is launched into a nondefault subnet, the default is not to assign a public IPv4 address, unless you enabled the option to assign a public IPv4 address on the subnet. For more information, see Provide network connectivity for your Auto Scaling instances using Amazon VPC in the Amazon EC2 Auto Scaling User Guide.
associatePublicIpAddress
- Specifies whether to assign a public IPv4 address to the group's instances. If the instance is launched
into a default subnet, the default is to assign a public IPv4 address, unless you disabled the option to
assign a public IPv4 address on the subnet. If the instance is launched into a nondefault subnet, the
default is not to assign a public IPv4 address, unless you enabled the option to assign a public IPv4
address on the subnet. For more information, see Provide network connectivity
for your Auto Scaling instances using Amazon VPC in the Amazon EC2 Auto Scaling User Guide.public Boolean getAssociatePublicIpAddress()
Specifies whether to assign a public IPv4 address to the group's instances. If the instance is launched into a default subnet, the default is to assign a public IPv4 address, unless you disabled the option to assign a public IPv4 address on the subnet. If the instance is launched into a nondefault subnet, the default is not to assign a public IPv4 address, unless you enabled the option to assign a public IPv4 address on the subnet. For more information, see Provide network connectivity for your Auto Scaling instances using Amazon VPC in the Amazon EC2 Auto Scaling User Guide.
public LaunchConfiguration withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Specifies whether to assign a public IPv4 address to the group's instances. If the instance is launched into a default subnet, the default is to assign a public IPv4 address, unless you disabled the option to assign a public IPv4 address on the subnet. If the instance is launched into a nondefault subnet, the default is not to assign a public IPv4 address, unless you enabled the option to assign a public IPv4 address on the subnet. For more information, see Provide network connectivity for your Auto Scaling instances using Amazon VPC in the Amazon EC2 Auto Scaling User Guide.
associatePublicIpAddress
- Specifies whether to assign a public IPv4 address to the group's instances. If the instance is launched
into a default subnet, the default is to assign a public IPv4 address, unless you disabled the option to
assign a public IPv4 address on the subnet. If the instance is launched into a nondefault subnet, the
default is not to assign a public IPv4 address, unless you enabled the option to assign a public IPv4
address on the subnet. For more information, see Provide network connectivity
for your Auto Scaling instances using Amazon VPC in the Amazon EC2 Auto Scaling User Guide.public Boolean isAssociatePublicIpAddress()
Specifies whether to assign a public IPv4 address to the group's instances. If the instance is launched into a default subnet, the default is to assign a public IPv4 address, unless you disabled the option to assign a public IPv4 address on the subnet. If the instance is launched into a nondefault subnet, the default is not to assign a public IPv4 address, unless you enabled the option to assign a public IPv4 address on the subnet. For more information, see Provide network connectivity for your Auto Scaling instances using Amazon 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.
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.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.
default
or dedicated
. An instance with
dedicated
tenancy runs on isolated, single-tenant hardware and can only be launched into a
VPC.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.
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.public void setMetadataOptions(InstanceMetadataOptions metadataOptions)
The metadata options for the instances. For more information, see Configure the instance metadata options in the Amazon EC2 Auto Scaling User Guide.
metadataOptions
- The metadata options for the instances. For more information, see Configure 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 Configure 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 Configure the instance metadata options in the Amazon EC2 Auto Scaling User Guide.
metadataOptions
- The metadata options for the instances. For more information, see Configure the instance metadata options in the Amazon EC2 Auto Scaling User Guide.public String toString()
toString
in class Object
Object.toString()
public LaunchConfiguration clone()