public class CreateLaunchConfigurationRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
CreateLaunchConfiguration operation.
Creates a launch configuration.
If you exceed your maximum limit of launch configurations, which by default is 100 per region, the call fails. For information about viewing and updating this limit, see DescribeAccountLimits.
For more information, see Launch Configurations in the Auto Scaling Developer Guide .
NOOP| Constructor and Description |
|---|
CreateLaunchConfigurationRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateLaunchConfigurationRequest |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAssociatePublicIpAddress()
Used for groups that launch instances into a virtual private cloud
(VPC).
|
List<BlockDeviceMapping> |
getBlockDeviceMappings()
One or more mappings that specify how block devices are exposed to the
instance.
|
String |
getClassicLinkVPCId()
The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances
to.
|
List<String> |
getClassicLinkVPCSecurityGroups()
The IDs of one or more security groups for the VPC specified in
ClassicLinkVPCId. |
Boolean |
getEbsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O.
|
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.
|
String |
getInstanceId()
The ID of the EC2 instance to use to create the launch configuration.
|
InstanceMonitoring |
getInstanceMonitoring()
Enables detailed monitoring if it is disabled.
|
String |
getInstanceType()
The instance type of the EC2 instance.
|
String |
getKernelId()
The ID of the kernel associated with the AMI.
|
String |
getKeyName()
The name of the key pair.
|
String |
getLaunchConfigurationName()
The name of the launch configuration.
|
String |
getPlacementTenancy()
The tenancy of the instance.
|
String |
getRamdiskId()
The ID of the RAM disk associated with the AMI.
|
List<String> |
getSecurityGroups()
One or more security groups with which to associate the instances.
|
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()
Used for groups that launch instances into a virtual private cloud
(VPC).
|
Boolean |
isEbsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O.
|
void |
setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Used for groups that launch instances into a virtual private cloud
(VPC).
|
void |
setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
One or more mappings that specify how block devices are exposed to the
instance.
|
void |
setClassicLinkVPCId(String classicLinkVPCId)
The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances
to.
|
void |
setClassicLinkVPCSecurityGroups(Collection<String> classicLinkVPCSecurityGroups)
The IDs of one or more security groups for the VPC specified in
ClassicLinkVPCId. |
void |
setEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon EBS I/O.
|
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 |
setInstanceId(String instanceId)
The ID of the EC2 instance to use to create the launch configuration.
|
void |
setInstanceMonitoring(InstanceMonitoring instanceMonitoring)
Enables detailed monitoring if it is disabled.
|
void |
setInstanceType(String instanceType)
The instance type of the EC2 instance.
|
void |
setKernelId(String kernelId)
The ID of the kernel associated with the AMI.
|
void |
setKeyName(String keyName)
The name of the key pair.
|
void |
setLaunchConfigurationName(String launchConfigurationName)
The name of the launch configuration.
|
void |
setPlacementTenancy(String placementTenancy)
The tenancy of the instance.
|
void |
setRamdiskId(String ramdiskId)
The ID of the RAM disk associated with the AMI.
|
void |
setSecurityGroups(Collection<String> securityGroups)
One or more security groups with which to associate the instances.
|
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; useful for testing and
debugging.
|
CreateLaunchConfigurationRequest |
withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Used for groups that launch instances into a virtual private cloud
(VPC).
|
CreateLaunchConfigurationRequest |
withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
One or more mappings that specify how block devices are exposed to the
instance.
|
CreateLaunchConfigurationRequest |
withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
One or more mappings that specify how block devices are exposed to the
instance.
|
CreateLaunchConfigurationRequest |
withClassicLinkVPCId(String classicLinkVPCId)
The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances
to.
|
CreateLaunchConfigurationRequest |
withClassicLinkVPCSecurityGroups(Collection<String> classicLinkVPCSecurityGroups)
The IDs of one or more security groups for the VPC specified in
ClassicLinkVPCId. |
CreateLaunchConfigurationRequest |
withClassicLinkVPCSecurityGroups(String... classicLinkVPCSecurityGroups)
The IDs of one or more security groups for the VPC specified in
ClassicLinkVPCId. |
CreateLaunchConfigurationRequest |
withEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon EBS I/O.
|
CreateLaunchConfigurationRequest |
withIamInstanceProfile(String iamInstanceProfile)
The name or the Amazon Resource Name (ARN) of the instance profile
associated with the IAM role for the instance.
|
CreateLaunchConfigurationRequest |
withImageId(String imageId)
The ID of the Amazon Machine Image (AMI) to use to launch your EC2
instances.
|
CreateLaunchConfigurationRequest |
withInstanceId(String instanceId)
The ID of the EC2 instance to use to create the launch configuration.
|
CreateLaunchConfigurationRequest |
withInstanceMonitoring(InstanceMonitoring instanceMonitoring)
Enables detailed monitoring if it is disabled.
|
CreateLaunchConfigurationRequest |
withInstanceType(String instanceType)
The instance type of the EC2 instance.
|
CreateLaunchConfigurationRequest |
withKernelId(String kernelId)
The ID of the kernel associated with the AMI.
|
CreateLaunchConfigurationRequest |
withKeyName(String keyName)
The name of the key pair.
|
CreateLaunchConfigurationRequest |
withLaunchConfigurationName(String launchConfigurationName)
The name of the launch configuration.
|
CreateLaunchConfigurationRequest |
withPlacementTenancy(String placementTenancy)
The tenancy of the instance.
|
CreateLaunchConfigurationRequest |
withRamdiskId(String ramdiskId)
The ID of the RAM disk associated with the AMI.
|
CreateLaunchConfigurationRequest |
withSecurityGroups(Collection<String> securityGroups)
One or more security groups with which to associate the instances.
|
CreateLaunchConfigurationRequest |
withSecurityGroups(String... securityGroups)
One or more security groups with which to associate the instances.
|
CreateLaunchConfigurationRequest |
withSpotPrice(String spotPrice)
The maximum hourly price to be paid for any Spot Instance launched to
fulfill the request.
|
CreateLaunchConfigurationRequest |
withUserData(String userData)
The user data to make available to the launched EC2 instances.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getLaunchConfigurationName()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setLaunchConfigurationName(String launchConfigurationName)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
launchConfigurationName - The name of the launch configuration. This name must be unique within
the scope of your AWS account.public CreateLaunchConfigurationRequest withLaunchConfigurationName(String launchConfigurationName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
launchConfigurationName - The name of the launch configuration. This name must be unique within
the scope of your AWS account.public String getImageId()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setImageId(String imageId)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
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 Elastic Compute Cloud User Guide.public CreateLaunchConfigurationRequest withImageId(String imageId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
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 Elastic Compute Cloud User Guide.public String getKeyName()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setKeyName(String keyName)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
keyName - The name of the key pair. For more information, see Amazon
EC2 Key Pairs in the Amazon Elastic Compute Cloud User
Guide.public CreateLaunchConfigurationRequest withKeyName(String keyName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
keyName - The name of the key pair. For more information, see Amazon
EC2 Key Pairs in the Amazon Elastic Compute Cloud User
Guide.public List<String> getSecurityGroups()
If your instances are launched in EC2-Classic, you can either specify security group names or the security group IDs. For more information about security groups for EC2-Classic, see Amazon EC2 Security Groups in the Amazon Elastic Compute Cloud User Guide.
If your instances are launched into a VPC, specify security group IDs. For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.
If your instances are launched in EC2-Classic, you can either specify security group names or the security group IDs. For more information about security groups for EC2-Classic, see Amazon EC2 Security Groups in the Amazon Elastic Compute Cloud User Guide.
If your instances are launched into a VPC, specify security group IDs. For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.
public void setSecurityGroups(Collection<String> securityGroups)
If your instances are launched in EC2-Classic, you can either specify security group names or the security group IDs. For more information about security groups for EC2-Classic, see Amazon EC2 Security Groups in the Amazon Elastic Compute Cloud User Guide.
If your instances are launched into a VPC, specify security group IDs. For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.
securityGroups - One or more security groups with which to associate the instances.
If your instances are launched in EC2-Classic, you can either specify security group names or the security group IDs. For more information about security groups for EC2-Classic, see Amazon EC2 Security Groups in the Amazon Elastic Compute Cloud User Guide.
If your instances are launched into a VPC, specify security group IDs. For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.
public CreateLaunchConfigurationRequest withSecurityGroups(String... securityGroups)
If your instances are launched in EC2-Classic, you can either specify security group names or the security group IDs. For more information about security groups for EC2-Classic, see Amazon EC2 Security Groups in the Amazon Elastic Compute Cloud User Guide.
If your instances are launched into a VPC, specify security group IDs. 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.
Returns a reference to this object so that method calls can be chained together.
securityGroups - One or more security groups with which to associate the instances.
If your instances are launched in EC2-Classic, you can either specify security group names or the security group IDs. For more information about security groups for EC2-Classic, see Amazon EC2 Security Groups in the Amazon Elastic Compute Cloud User Guide.
If your instances are launched into a VPC, specify security group IDs. For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.
public CreateLaunchConfigurationRequest withSecurityGroups(Collection<String> securityGroups)
If your instances are launched in EC2-Classic, you can either specify security group names or the security group IDs. For more information about security groups for EC2-Classic, see Amazon EC2 Security Groups in the Amazon Elastic Compute Cloud User Guide.
If your instances are launched into a VPC, specify security group IDs. For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.
Returns a reference to this object so that method calls can be chained together.
securityGroups - One or more security groups with which to associate the instances.
If your instances are launched in EC2-Classic, you can either specify security group names or the security group IDs. For more information about security groups for EC2-Classic, see Amazon EC2 Security Groups in the Amazon Elastic Compute Cloud User Guide.
If your instances are launched into a VPC, specify security group IDs. For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.
public String getClassicLinkVPCId()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setClassicLinkVPCId(String classicLinkVPCId)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
classicLinkVPCId - The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances
to. This parameter is supported only if you are launching EC2-Classic
instances. For more information, see ClassicLink
in the Amazon Elastic Compute Cloud User Guide.public CreateLaunchConfigurationRequest withClassicLinkVPCId(String classicLinkVPCId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
classicLinkVPCId - The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances
to. This parameter is supported only if you are launching EC2-Classic
instances. For more information, see ClassicLink
in the Amazon Elastic Compute Cloud User Guide.public List<String> getClassicLinkVPCSecurityGroups()
ClassicLinkVPCId. This parameter is required if
ClassicLinkVPCId is specified, and is not supported
otherwise. For more information, see ClassicLink
in the Amazon Elastic Compute Cloud User Guide.ClassicLinkVPCId. This parameter is required if
ClassicLinkVPCId is specified, and is not supported
otherwise. For more information, see ClassicLink
in the Amazon Elastic Compute Cloud User Guide.public void setClassicLinkVPCSecurityGroups(Collection<String> classicLinkVPCSecurityGroups)
ClassicLinkVPCId. This parameter is required if
ClassicLinkVPCId is specified, and is not supported
otherwise. For more information, see ClassicLink
in the Amazon Elastic Compute Cloud User Guide.classicLinkVPCSecurityGroups - The IDs of one or more security groups for the VPC specified in
ClassicLinkVPCId. This parameter is required if
ClassicLinkVPCId is specified, and is not supported
otherwise. For more information, see ClassicLink
in the Amazon Elastic Compute Cloud User Guide.public CreateLaunchConfigurationRequest withClassicLinkVPCSecurityGroups(String... classicLinkVPCSecurityGroups)
ClassicLinkVPCId. This parameter is required if
ClassicLinkVPCId is specified, and is not supported
otherwise. For more information, see ClassicLink
in the Amazon Elastic Compute Cloud User Guide.
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.
Returns a reference to this object so that method calls can be chained together.
classicLinkVPCSecurityGroups - The IDs of one or more security groups for the VPC specified in
ClassicLinkVPCId. This parameter is required if
ClassicLinkVPCId is specified, and is not supported
otherwise. For more information, see ClassicLink
in the Amazon Elastic Compute Cloud User Guide.public CreateLaunchConfigurationRequest withClassicLinkVPCSecurityGroups(Collection<String> classicLinkVPCSecurityGroups)
ClassicLinkVPCId. This parameter is required if
ClassicLinkVPCId is specified, and is not supported
otherwise. For more information, see ClassicLink
in the Amazon Elastic Compute Cloud User Guide.
Returns a reference to this object so that method calls can be chained together.
classicLinkVPCSecurityGroups - The IDs of one or more security groups for the VPC specified in
ClassicLinkVPCId. This parameter is required if
ClassicLinkVPCId is specified, and is not supported
otherwise. For more information, see ClassicLink
in the Amazon Elastic Compute Cloud User Guide.public String getUserData()
At this time, launch configurations don't support compressed (zipped) user data files.
Constraints:
Length: 0 - 21847
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
At this time, launch configurations don't support compressed (zipped) user data files.
public void setUserData(String userData)
At this time, launch configurations don't support compressed (zipped) user data files.
Constraints:
Length: 0 - 21847
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
userData - The user data to make available to the launched EC2 instances. For
more information, see Instance
Metadata and User Data in the Amazon Elastic Compute Cloud User
Guide. At this time, launch configurations don't support compressed (zipped) user data files.
public CreateLaunchConfigurationRequest withUserData(String userData)
At this time, launch configurations don't support compressed (zipped) user data files.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 21847
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
userData - The user data to make available to the launched EC2 instances. For
more information, see Instance
Metadata and User Data in the Amazon Elastic Compute Cloud User
Guide. At this time, launch configurations don't support compressed (zipped) user data files.
public String getInstanceId()
The new launch configuration derives attributes from the instance, with the exception of the block device mapping.
To create a launch configuration with a block device mapping or override any other instance attributes, specify them as part of the same request.
For more information, see Create a Launch Configuration Using an EC2 Instance in the Auto Scaling Developer Guide.
Constraints:
Length: 1 - 16
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
The new launch configuration derives attributes from the instance, with the exception of the block device mapping.
To create a launch configuration with a block device mapping or override any other instance attributes, specify them as part of the same request.
For more information, see Create a Launch Configuration Using an EC2 Instance in the Auto Scaling Developer Guide.
public void setInstanceId(String instanceId)
The new launch configuration derives attributes from the instance, with the exception of the block device mapping.
To create a launch configuration with a block device mapping or override any other instance attributes, specify them as part of the same request.
For more information, see Create a Launch Configuration Using an EC2 Instance in the Auto Scaling Developer Guide.
Constraints:
Length: 1 - 16
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
instanceId - The ID of the EC2 instance to use to create the launch configuration.
The new launch configuration derives attributes from the instance, with the exception of the block device mapping.
To create a launch configuration with a block device mapping or override any other instance attributes, specify them as part of the same request.
For more information, see Create a Launch Configuration Using an EC2 Instance in the Auto Scaling Developer Guide.
public CreateLaunchConfigurationRequest withInstanceId(String instanceId)
The new launch configuration derives attributes from the instance, with the exception of the block device mapping.
To create a launch configuration with a block device mapping or override any other instance attributes, specify them as part of the same request.
For more information, see Create a Launch Configuration Using an EC2 Instance in the Auto Scaling Developer Guide.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 16
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
instanceId - The ID of the EC2 instance to use to create the launch configuration.
The new launch configuration derives attributes from the instance, with the exception of the block device mapping.
To create a launch configuration with a block device mapping or override any other instance attributes, specify them as part of the same request.
For more information, see Create a Launch Configuration Using an EC2 Instance in the Auto Scaling Developer Guide.
public String getInstanceType()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setInstanceType(String instanceType)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
instanceType - The instance type of the EC2 instance. For information about available
instance types, see
Available Instance Types in the Amazon Elastic Cloud Compute
User Guide.public CreateLaunchConfigurationRequest withInstanceType(String instanceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
instanceType - The instance type of the EC2 instance. For information about available
instance types, see
Available Instance Types in the Amazon Elastic Cloud Compute
User Guide.public String getKernelId()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setKernelId(String kernelId)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
kernelId - The ID of the kernel associated with the AMI.public CreateLaunchConfigurationRequest withKernelId(String kernelId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
kernelId - The ID of the kernel associated with the AMI.public String getRamdiskId()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setRamdiskId(String ramdiskId)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
ramdiskId - The ID of the RAM disk associated with the AMI.public CreateLaunchConfigurationRequest withRamdiskId(String ramdiskId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
ramdiskId - The ID of the RAM disk associated with the AMI.public List<BlockDeviceMapping> getBlockDeviceMappings()
public void setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
blockDeviceMappings - One or more mappings that specify how block devices are exposed to the
instance. For more information, see Block
Device Mapping in the Amazon Elastic Compute Cloud User
Guide.public CreateLaunchConfigurationRequest withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
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.
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings - One or more mappings that specify how block devices are exposed to the
instance. For more information, see Block
Device Mapping in the Amazon Elastic Compute Cloud User
Guide.public CreateLaunchConfigurationRequest withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings - One or more mappings that specify how block devices are exposed to the
instance. For more information, see Block
Device Mapping in the Amazon Elastic Compute Cloud User
Guide.public InstanceMonitoring getInstanceMonitoring()
When detailed monitoring is enabled, Amazon
CloudWatch generates metrics every minute and your account is charged
a fee. When you disable detailed monitoring, by specifying
False, CloudWatch generates metrics every 5 minutes. For
more information, see Monitor
Your Auto Scaling Instances in the Auto Scaling Developer
Guide.
When detailed monitoring is enabled, Amazon
CloudWatch generates metrics every minute and your account is charged
a fee. When you disable detailed monitoring, by specifying
False, CloudWatch generates metrics every 5 minutes. For
more information, see Monitor
Your Auto Scaling Instances in the Auto Scaling Developer
Guide.
public void setInstanceMonitoring(InstanceMonitoring instanceMonitoring)
When detailed monitoring is enabled, Amazon
CloudWatch generates metrics every minute and your account is charged
a fee. When you disable detailed monitoring, by specifying
False, CloudWatch generates metrics every 5 minutes. For
more information, see Monitor
Your Auto Scaling Instances in the Auto Scaling Developer
Guide.
instanceMonitoring - Enables detailed monitoring if it is disabled. Detailed monitoring is
enabled by default. When detailed monitoring is enabled, Amazon
CloudWatch generates metrics every minute and your account is charged
a fee. When you disable detailed monitoring, by specifying
False, CloudWatch generates metrics every 5 minutes. For
more information, see Monitor
Your Auto Scaling Instances in the Auto Scaling Developer
Guide.
public CreateLaunchConfigurationRequest withInstanceMonitoring(InstanceMonitoring instanceMonitoring)
When detailed monitoring is enabled, Amazon
CloudWatch generates metrics every minute and your account is charged
a fee. When you disable detailed monitoring, by specifying
False, CloudWatch generates metrics every 5 minutes. For
more information, see Monitor
Your Auto Scaling Instances in the Auto Scaling Developer
Guide.
Returns a reference to this object so that method calls can be chained together.
instanceMonitoring - Enables detailed monitoring if it is disabled. Detailed monitoring is
enabled by default. When detailed monitoring is enabled, Amazon
CloudWatch generates metrics every minute and your account is charged
a fee. When you disable detailed monitoring, by specifying
False, CloudWatch generates metrics every 5 minutes. For
more information, see Monitor
Your Auto Scaling Instances in the Auto Scaling Developer
Guide.
public String getSpotPrice()
Constraints:
Length: 1 - 255
public void setSpotPrice(String spotPrice)
Constraints:
Length: 1 - 255
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 market price. For more information,
see Launch
Spot Instances in Your Auto Scaling Group in the Auto Scaling
Developer Guide.public CreateLaunchConfigurationRequest withSpotPrice(String spotPrice)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
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 market price. For more information,
see Launch
Spot Instances in Your Auto Scaling Group in the Auto Scaling
Developer Guide.public String getIamInstanceProfile()
EC2 instances launched with an IAM role will automatically have AWS security credentials available. You can use IAM roles with Auto Scaling to automatically enable applications running on your EC2 instances to securely access other AWS resources. For more information, see Launch Auto Scaling Instances with an IAM Role in the Auto Scaling Developer Guide.
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
EC2 instances launched with an IAM role will automatically have AWS security credentials available. You can use IAM roles with Auto Scaling to automatically enable applications running on your EC2 instances to securely access other AWS resources. For more information, see Launch Auto Scaling Instances with an IAM Role in the Auto Scaling Developer Guide.
public void setIamInstanceProfile(String iamInstanceProfile)
EC2 instances launched with an IAM role will automatically have AWS security credentials available. You can use IAM roles with Auto Scaling to automatically enable applications running on your EC2 instances to securely access other AWS resources. For more information, see Launch Auto Scaling Instances with an IAM Role in the Auto Scaling Developer Guide.
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
iamInstanceProfile - The name or the Amazon Resource Name (ARN) of the instance profile
associated with the IAM role for the instance. EC2 instances launched with an IAM role will automatically have AWS security credentials available. You can use IAM roles with Auto Scaling to automatically enable applications running on your EC2 instances to securely access other AWS resources. For more information, see Launch Auto Scaling Instances with an IAM Role in the Auto Scaling Developer Guide.
public CreateLaunchConfigurationRequest withIamInstanceProfile(String iamInstanceProfile)
EC2 instances launched with an IAM role will automatically have AWS security credentials available. You can use IAM roles with Auto Scaling to automatically enable applications running on your EC2 instances to securely access other AWS resources. For more information, see Launch Auto Scaling Instances with an IAM Role in the Auto Scaling Developer Guide.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
iamInstanceProfile - The name or the Amazon Resource Name (ARN) of the instance profile
associated with the IAM role for the instance. EC2 instances launched with an IAM role will automatically have AWS security credentials available. You can use IAM roles with Auto Scaling to automatically enable applications running on your EC2 instances to securely access other AWS resources. For more information, see Launch Auto Scaling Instances with an IAM Role in the Auto Scaling Developer Guide.
public Boolean isEbsOptimized()
public void setEbsOptimized(Boolean ebsOptimized)
ebsOptimized - Indicates whether the instance is optimized for Amazon EBS I/O. By
default, the instance is not optimized for EBS I/O. The optimization
provides dedicated throughput to Amazon EBS and an optimized
configuration stack to provide optimal I/O performance. This
optimization is not available with all instance types. Additional
usage charges apply. For more information, see Amazon
EBS-Optimized Instances in the Amazon Elastic Compute Cloud
User Guide.public CreateLaunchConfigurationRequest withEbsOptimized(Boolean ebsOptimized)
Returns a reference to this object so that method calls can be chained together.
ebsOptimized - Indicates whether the instance is optimized for Amazon EBS I/O. By
default, the instance is not optimized for EBS I/O. The optimization
provides dedicated throughput to Amazon EBS and an optimized
configuration stack to provide optimal I/O performance. This
optimization is not available with all instance types. Additional
usage charges apply. For more information, see Amazon
EBS-Optimized Instances in the Amazon Elastic Compute Cloud
User Guide.public Boolean getEbsOptimized()
public Boolean isAssociatePublicIpAddress()
If you specify a value for this parameter, be sure to specify at least one subnet using the VPCZoneIdentifier parameter when you create your group.
Default: If the instance is
launched into a default subnet, the default is true. If
the instance is launched into a nondefault subnet, the default is
false. For more information, see Supported
Platforms in the Amazon Elastic Compute Cloud User Guide.
If you specify a value for this parameter, be sure to specify at least one subnet using the VPCZoneIdentifier parameter when you create your group.
Default: If the instance is
launched into a default subnet, the default is true. If
the instance is launched into a nondefault subnet, the default is
false. For more information, see Supported
Platforms in the Amazon Elastic Compute Cloud User Guide.
public void setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
If you specify a value for this parameter, be sure to specify at least one subnet using the VPCZoneIdentifier parameter when you create your group.
Default: If the instance is
launched into a default subnet, the default is true. If
the instance is launched into a nondefault subnet, the default is
false. For more information, see Supported
Platforms in the Amazon Elastic Compute Cloud User Guide.
associatePublicIpAddress - Used for groups that launch instances into a virtual private cloud
(VPC). Specifies whether to assign a public IP address to each
instance. For more information, see Auto
Scaling and Amazon Virtual Private Cloud in the Auto Scaling
Developer Guide. If you specify a value for this parameter, be sure to specify at least one subnet using the VPCZoneIdentifier parameter when you create your group.
Default: If the instance is
launched into a default subnet, the default is true. If
the instance is launched into a nondefault subnet, the default is
false. For more information, see Supported
Platforms in the Amazon Elastic Compute Cloud User Guide.
public CreateLaunchConfigurationRequest withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
If you specify a value for this parameter, be sure to specify at least one subnet using the VPCZoneIdentifier parameter when you create your group.
Default: If the instance is
launched into a default subnet, the default is true. If
the instance is launched into a nondefault subnet, the default is
false. For more information, see Supported
Platforms in the Amazon Elastic Compute Cloud User Guide.
Returns a reference to this object so that method calls can be chained together.
associatePublicIpAddress - Used for groups that launch instances into a virtual private cloud
(VPC). Specifies whether to assign a public IP address to each
instance. For more information, see Auto
Scaling and Amazon Virtual Private Cloud in the Auto Scaling
Developer Guide. If you specify a value for this parameter, be sure to specify at least one subnet using the VPCZoneIdentifier parameter when you create your group.
Default: If the instance is
launched into a default subnet, the default is true. If
the instance is launched into a nondefault subnet, the default is
false. For more information, see Supported
Platforms in the Amazon Elastic Compute Cloud User Guide.
public Boolean getAssociatePublicIpAddress()
If you specify a value for this parameter, be sure to specify at least one subnet using the VPCZoneIdentifier parameter when you create your group.
Default: If the instance is
launched into a default subnet, the default is true. If
the instance is launched into a nondefault subnet, the default is
false. For more information, see Supported
Platforms in the Amazon Elastic Compute Cloud User Guide.
If you specify a value for this parameter, be sure to specify at least one subnet using the VPCZoneIdentifier parameter when you create your group.
Default: If the instance is
launched into a default subnet, the default is true. If
the instance is launched into a nondefault subnet, the default is
false. For more information, see Supported
Platforms in the Amazon Elastic Compute Cloud User Guide.
public String getPlacementTenancy()
dedicated runs on single-tenant hardware and can only be
launched into a VPC. You must set the value of this parameter to
dedicated if want to launch Dedicated Instances into a
shared tenancy VPC (VPC with instance placement tenancy attribute set
to default).
If you specify a value for this parameter, be sure to specify at least one subnet using the VPCZoneIdentifier parameter when you create your group.
For more information, see Auto Scaling and Amazon Virtual Private Cloud in the Auto Scaling Developer Guide.
Valid values: default |
dedicated
Constraints:
Length: 1 - 64
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
dedicated runs on single-tenant hardware and can only be
launched into a VPC. You must set the value of this parameter to
dedicated if want to launch Dedicated Instances into a
shared tenancy VPC (VPC with instance placement tenancy attribute set
to default).
If you specify a value for this parameter, be sure to specify at least one subnet using the VPCZoneIdentifier parameter when you create your group.
For more information, see Auto Scaling and Amazon Virtual Private Cloud in the Auto Scaling Developer Guide.
Valid values: default |
dedicated
public void setPlacementTenancy(String placementTenancy)
dedicated runs on single-tenant hardware and can only be
launched into a VPC. You must set the value of this parameter to
dedicated if want to launch Dedicated Instances into a
shared tenancy VPC (VPC with instance placement tenancy attribute set
to default).
If you specify a value for this parameter, be sure to specify at least one subnet using the VPCZoneIdentifier parameter when you create your group.
For more information, see Auto Scaling and Amazon Virtual Private Cloud in the Auto Scaling Developer Guide.
Valid values: default |
dedicated
Constraints:
Length: 1 - 64
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
placementTenancy - The tenancy of the instance. An instance with a tenancy of
dedicated runs on single-tenant hardware and can only be
launched into a VPC. You must set the value of this parameter to
dedicated if want to launch Dedicated Instances into a
shared tenancy VPC (VPC with instance placement tenancy attribute set
to default).
If you specify a value for this parameter, be sure to specify at least one subnet using the VPCZoneIdentifier parameter when you create your group.
For more information, see Auto Scaling and Amazon Virtual Private Cloud in the Auto Scaling Developer Guide.
Valid values: default |
dedicated
public CreateLaunchConfigurationRequest withPlacementTenancy(String placementTenancy)
dedicated runs on single-tenant hardware and can only be
launched into a VPC. You must set the value of this parameter to
dedicated if want to launch Dedicated Instances into a
shared tenancy VPC (VPC with instance placement tenancy attribute set
to default).
If you specify a value for this parameter, be sure to specify at least one subnet using the VPCZoneIdentifier parameter when you create your group.
For more information, see Auto Scaling and Amazon Virtual Private Cloud in the Auto Scaling Developer Guide.
Valid values: default |
dedicated
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
placementTenancy - The tenancy of the instance. An instance with a tenancy of
dedicated runs on single-tenant hardware and can only be
launched into a VPC. You must set the value of this parameter to
dedicated if want to launch Dedicated Instances into a
shared tenancy VPC (VPC with instance placement tenancy attribute set
to default).
If you specify a value for this parameter, be sure to specify at least one subnet using the VPCZoneIdentifier parameter when you create your group.
For more information, see Auto Scaling and Amazon Virtual Private Cloud in the Auto Scaling Developer Guide.
Valid values: default |
dedicated
public String toString()
toString in class ObjectObject.toString()public CreateLaunchConfigurationRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2015. All rights reserved.