public class CreateLaunchConfigurationRequest extends AmazonWebServiceRequest implements Serializable
CreateLaunchConfiguration operation
.
Creates a new launch configuration. The launch configuration name must be unique within the scope of the client's AWS account. The maximum limit of launch configurations, which by default is 100, must not yet have been met; otherwise, the call will fail. When created, the new launch configuration is available for immediate use.
NOOP
Constructor and Description |
---|
CreateLaunchConfigurationRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Boolean |
getAssociatePublicIpAddress()
Used for Auto Scaling groups that launch instances into an Amazon
Virtual Private Cloud (Amazon VPC).
|
List<BlockDeviceMapping> |
getBlockDeviceMappings()
A list of mappings that specify how block devices are exposed to the
instance.
|
Boolean |
getEbsOptimized()
Whether the instance is optimized for 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()
Unique ID of the Amazon Machine Image (AMI) you want to use to launch
your EC2 instances.
|
String |
getInstanceId()
The ID of the Amazon EC2 instance you want to use to create the launch
configuration.
|
InstanceMonitoring |
getInstanceMonitoring()
Enables detailed monitoring if it is disabled.
|
String |
getInstanceType()
The instance type of the Amazon EC2 instance.
|
String |
getKernelId()
The ID of the kernel associated with the Amazon EC2 AMI.
|
String |
getKeyName()
The name of the Amazon EC2 key pair.
|
String |
getLaunchConfigurationName()
The name of the launch configuration to create.
|
String |
getPlacementTenancy()
The tenancy of the instance.
|
String |
getRamdiskId()
The ID of the RAM disk associated with the Amazon EC2 AMI.
|
List<String> |
getSecurityGroups()
The security groups with which to associate Amazon EC2 or Amazon VPC
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 Amazon EC2 instances.
|
int |
hashCode() |
Boolean |
isAssociatePublicIpAddress()
Used for Auto Scaling groups that launch instances into an Amazon
Virtual Private Cloud (Amazon VPC).
|
Boolean |
isEbsOptimized()
Whether the instance is optimized for EBS I/O.
|
void |
setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Used for Auto Scaling groups that launch instances into an Amazon
Virtual Private Cloud (Amazon VPC).
|
void |
setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
A list of mappings that specify how block devices are exposed to the
instance.
|
void |
setEbsOptimized(Boolean ebsOptimized)
Whether the instance is optimized for 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)
Unique ID of the Amazon Machine Image (AMI) you want to use to launch
your EC2 instances.
|
void |
setInstanceId(String instanceId)
The ID of the Amazon EC2 instance you want 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 Amazon EC2 instance.
|
void |
setKernelId(String kernelId)
The ID of the kernel associated with the Amazon EC2 AMI.
|
void |
setKeyName(String keyName)
The name of the Amazon EC2 key pair.
|
void |
setLaunchConfigurationName(String launchConfigurationName)
The name of the launch configuration to create.
|
void |
setPlacementTenancy(String placementTenancy)
The tenancy of the instance.
|
void |
setRamdiskId(String ramdiskId)
The ID of the RAM disk associated with the Amazon EC2 AMI.
|
void |
setSecurityGroups(Collection<String> securityGroups)
The security groups with which to associate Amazon EC2 or Amazon VPC
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 Amazon EC2 instances.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateLaunchConfigurationRequest |
withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Used for Auto Scaling groups that launch instances into an Amazon
Virtual Private Cloud (Amazon VPC).
|
CreateLaunchConfigurationRequest |
withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
A list of mappings that specify how block devices are exposed to the
instance.
|
CreateLaunchConfigurationRequest |
withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
A list of mappings that specify how block devices are exposed to the
instance.
|
CreateLaunchConfigurationRequest |
withEbsOptimized(Boolean ebsOptimized)
Whether the instance is optimized for 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)
Unique ID of the Amazon Machine Image (AMI) you want to use to launch
your EC2 instances.
|
CreateLaunchConfigurationRequest |
withInstanceId(String instanceId)
The ID of the Amazon EC2 instance you want 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 Amazon EC2 instance.
|
CreateLaunchConfigurationRequest |
withKernelId(String kernelId)
The ID of the kernel associated with the Amazon EC2 AMI.
|
CreateLaunchConfigurationRequest |
withKeyName(String keyName)
The name of the Amazon EC2 key pair.
|
CreateLaunchConfigurationRequest |
withLaunchConfigurationName(String launchConfigurationName)
The name of the launch configuration to create.
|
CreateLaunchConfigurationRequest |
withPlacementTenancy(String placementTenancy)
The tenancy of the instance.
|
CreateLaunchConfigurationRequest |
withRamdiskId(String ramdiskId)
The ID of the RAM disk associated with the Amazon EC2 AMI.
|
CreateLaunchConfigurationRequest |
withSecurityGroups(Collection<String> securityGroups)
The security groups with which to associate Amazon EC2 or Amazon VPC
instances.
|
CreateLaunchConfigurationRequest |
withSecurityGroups(String... securityGroups)
The security groups with which to associate Amazon EC2 or Amazon VPC
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 Amazon EC2 instances.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public 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 to create.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 to create.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
- Unique ID of the Amazon Machine Image (AMI) you want to use to launch
your EC2 instances. For information about finding Amazon EC2 AMIs, see
Finding
a Suitable 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
- Unique ID of the Amazon Machine Image (AMI) you want to use to launch
your EC2 instances. For information about finding Amazon EC2 AMIs, see
Finding
a Suitable 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 Amazon EC2 key pair. For more information, see Getting
a Key Pair 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 Amazon EC2 key pair. For more information, see Getting
a Key Pair in the Amazon Elastic Compute Cloud User Guide.public List<String> getSecurityGroups()
If your instances are launched in EC2, you can either specify Amazon EC2 security group names or the security group IDs. For more information about Amazon EC2 security groups, see Using Security Groups in the Amazon Elastic Compute Cloud User Guide.
If your instances are launched within VPC, specify Amazon VPC security group IDs. For more information about Amazon VPC security groups, see Security Groups in the Amazon Virtual Private Cloud User Guide.
If your instances are launched in EC2, you can either specify Amazon EC2 security group names or the security group IDs. For more information about Amazon EC2 security groups, see Using Security Groups in the Amazon Elastic Compute Cloud User Guide.
If your instances are launched within VPC, specify Amazon VPC security group IDs. For more information about Amazon VPC security groups, see Security Groups in the Amazon Virtual Private Cloud User Guide.
public void setSecurityGroups(Collection<String> securityGroups)
If your instances are launched in EC2, you can either specify Amazon EC2 security group names or the security group IDs. For more information about Amazon EC2 security groups, see Using Security Groups in the Amazon Elastic Compute Cloud User Guide.
If your instances are launched within VPC, specify Amazon VPC security group IDs. For more information about Amazon VPC security groups, see Security Groups in the Amazon Virtual Private Cloud User Guide.
securityGroups
- The security groups with which to associate Amazon EC2 or Amazon VPC
instances. If your instances are launched in EC2, you can either specify Amazon EC2 security group names or the security group IDs. For more information about Amazon EC2 security groups, see Using Security Groups in the Amazon Elastic Compute Cloud User Guide.
If your instances are launched within VPC, specify Amazon VPC security group IDs. For more information about Amazon VPC security groups, see Security Groups in the Amazon Virtual Private Cloud User Guide.
public CreateLaunchConfigurationRequest withSecurityGroups(String... securityGroups)
If your instances are launched in EC2, you can either specify Amazon EC2 security group names or the security group IDs. For more information about Amazon EC2 security groups, see Using Security Groups in the Amazon Elastic Compute Cloud User Guide.
If your instances are launched within VPC, specify Amazon VPC security group IDs. For more information about Amazon VPC security groups, see Security Groups in the Amazon Virtual Private Cloud User Guide.
Returns a reference to this object so that method calls can be chained together.
securityGroups
- The security groups with which to associate Amazon EC2 or Amazon VPC
instances. If your instances are launched in EC2, you can either specify Amazon EC2 security group names or the security group IDs. For more information about Amazon EC2 security groups, see Using Security Groups in the Amazon Elastic Compute Cloud User Guide.
If your instances are launched within VPC, specify Amazon VPC security group IDs. For more information about Amazon VPC security groups, see Security Groups in the Amazon Virtual Private Cloud User Guide.
public CreateLaunchConfigurationRequest withSecurityGroups(Collection<String> securityGroups)
If your instances are launched in EC2, you can either specify Amazon EC2 security group names or the security group IDs. For more information about Amazon EC2 security groups, see Using Security Groups in the Amazon Elastic Compute Cloud User Guide.
If your instances are launched within VPC, specify Amazon VPC security group IDs. For more information about Amazon VPC security groups, see Security Groups in the Amazon Virtual Private Cloud User Guide.
Returns a reference to this object so that method calls can be chained together.
securityGroups
- The security groups with which to associate Amazon EC2 or Amazon VPC
instances. If your instances are launched in EC2, you can either specify Amazon EC2 security group names or the security group IDs. For more information about Amazon EC2 security groups, see Using Security Groups in the Amazon Elastic Compute Cloud User Guide.
If your instances are launched within VPC, specify Amazon VPC security group IDs. For more information about Amazon VPC security groups, see Security Groups in the Amazon Virtual Private Cloud User Guide.
public String getUserData()
Constraints:
Length: 0 - 21847
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setUserData(String userData)
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 Amazon EC2 instances.
For more information about Amazon EC2 user data, see User
Data Retrieval in the Amazon Elastic Compute Cloud User
Guide. public CreateLaunchConfigurationRequest withUserData(String userData)
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 Amazon EC2 instances.
For more information about Amazon EC2 user data, see User
Data Retrieval in the Amazon Elastic Compute Cloud User
Guide. public String getInstanceId()
When you use an
instance to create a launch configuration, all you need to specify is
the InstanceId
. The new launch configuration, by default,
derives all the attributes from the specified instance with the
exception of BlockDeviceMapping
.
If you want to create
a launch configuration with BlockDeviceMapping
or
override any other instance attributes, specify them as part of the
same request.
For more information on using an InstanceID to create a launch configuration, see Create a Launch Configuration Using an Amazon EC2 Instance in the Auto Scaling Developer Guide.
Constraints:
Length: 1 - 16
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
When you use an
instance to create a launch configuration, all you need to specify is
the InstanceId
. The new launch configuration, by default,
derives all the attributes from the specified instance with the
exception of BlockDeviceMapping
.
If you want to create
a launch configuration with BlockDeviceMapping
or
override any other instance attributes, specify them as part of the
same request.
For more information on using an InstanceID to create a launch configuration, see Create a Launch Configuration Using an Amazon EC2 Instance in the Auto Scaling Developer Guide.
public void setInstanceId(String instanceId)
When you use an
instance to create a launch configuration, all you need to specify is
the InstanceId
. The new launch configuration, by default,
derives all the attributes from the specified instance with the
exception of BlockDeviceMapping
.
If you want to create
a launch configuration with BlockDeviceMapping
or
override any other instance attributes, specify them as part of the
same request.
For more information on using an InstanceID to create a launch configuration, see Create a Launch Configuration Using an Amazon 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 Amazon EC2 instance you want to use to create the launch
configuration. Use this attribute if you want the launch configuration
to derive its attributes from an EC2 instance. When you use an
instance to create a launch configuration, all you need to specify is
the InstanceId
. The new launch configuration, by default,
derives all the attributes from the specified instance with the
exception of BlockDeviceMapping
.
If you want to create
a launch configuration with BlockDeviceMapping
or
override any other instance attributes, specify them as part of the
same request.
For more information on using an InstanceID to create a launch configuration, see Create a Launch Configuration Using an Amazon EC2 Instance in the Auto Scaling Developer Guide.
public CreateLaunchConfigurationRequest withInstanceId(String instanceId)
When you use an
instance to create a launch configuration, all you need to specify is
the InstanceId
. The new launch configuration, by default,
derives all the attributes from the specified instance with the
exception of BlockDeviceMapping
.
If you want to create
a launch configuration with BlockDeviceMapping
or
override any other instance attributes, specify them as part of the
same request.
For more information on using an InstanceID to create a launch configuration, see Create a Launch Configuration Using an Amazon 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 Amazon EC2 instance you want to use to create the launch
configuration. Use this attribute if you want the launch configuration
to derive its attributes from an EC2 instance. When you use an
instance to create a launch configuration, all you need to specify is
the InstanceId
. The new launch configuration, by default,
derives all the attributes from the specified instance with the
exception of BlockDeviceMapping
.
If you want to create
a launch configuration with BlockDeviceMapping
or
override any other instance attributes, specify them as part of the
same request.
For more information on using an InstanceID to create a launch configuration, see Create a Launch Configuration Using an Amazon 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 Amazon EC2 instance. For information about
available Amazon EC2 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 Amazon EC2 instance. For information about
available Amazon EC2 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 Amazon EC2 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 Amazon EC2 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 Amazon EC2 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 Amazon EC2 AMI.public List<BlockDeviceMapping> getBlockDeviceMappings()
public void setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
blockDeviceMappings
- A list of mappings that specify how block devices are exposed to the
instance. Each mapping is made up of a VirtualName, a
DeviceName, and an ebs data structure that contains
information about the associated Elastic Block Storage volume. For
more information about Amazon EC2 BlockDeviceMappings, go to
Block Device Mapping in the Amazon EC2 product documentation.public CreateLaunchConfigurationRequest withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings
- A list of mappings that specify how block devices are exposed to the
instance. Each mapping is made up of a VirtualName, a
DeviceName, and an ebs data structure that contains
information about the associated Elastic Block Storage volume. For
more information about Amazon EC2 BlockDeviceMappings, go to
Block Device Mapping in the Amazon EC2 product documentation.public CreateLaunchConfigurationRequest withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings
- A list of mappings that specify how block devices are exposed to the
instance. Each mapping is made up of a VirtualName, a
DeviceName, and an ebs data structure that contains
information about the associated Elastic Block Storage volume. For
more information about Amazon EC2 BlockDeviceMappings, go to
Block Device Mapping in the Amazon EC2 product documentation.public InstanceMonitoring getInstanceMonitoring()
When detailed monitoring is enabled, Amazon
Cloudwatch will generate metrics every minute and your account will be
charged a fee. When you disable detailed monitoring, by specifying
False
, Cloudwatch will generate metrics every 5 minutes.
For more information, see Monitor
Your Auto Scaling Instances. For information about Amazon
CloudWatch, see the Amazon
CloudWatch Developer Guide.
When detailed monitoring is enabled, Amazon
Cloudwatch will generate metrics every minute and your account will be
charged a fee. When you disable detailed monitoring, by specifying
False
, Cloudwatch will generate metrics every 5 minutes.
For more information, see Monitor
Your Auto Scaling Instances. For information about Amazon
CloudWatch, see the Amazon
CloudWatch Developer Guide.
public void setInstanceMonitoring(InstanceMonitoring instanceMonitoring)
When detailed monitoring is enabled, Amazon
Cloudwatch will generate metrics every minute and your account will be
charged a fee. When you disable detailed monitoring, by specifying
False
, Cloudwatch will generate metrics every 5 minutes.
For more information, see Monitor
Your Auto Scaling Instances. For information about Amazon
CloudWatch, see the Amazon
CloudWatch Developer Guide.
instanceMonitoring
- Enables detailed monitoring if it is disabled. Detailed monitoring is
enabled by default. When detailed monitoring is enabled, Amazon
Cloudwatch will generate metrics every minute and your account will be
charged a fee. When you disable detailed monitoring, by specifying
False
, Cloudwatch will generate metrics every 5 minutes.
For more information, see Monitor
Your Auto Scaling Instances. For information about Amazon
CloudWatch, see the Amazon
CloudWatch Developer Guide.
public CreateLaunchConfigurationRequest withInstanceMonitoring(InstanceMonitoring instanceMonitoring)
When detailed monitoring is enabled, Amazon
Cloudwatch will generate metrics every minute and your account will be
charged a fee. When you disable detailed monitoring, by specifying
False
, Cloudwatch will generate metrics every 5 minutes.
For more information, see Monitor
Your Auto Scaling Instances. For information about Amazon
CloudWatch, see the Amazon
CloudWatch 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 will generate metrics every minute and your account will be
charged a fee. When you disable detailed monitoring, by specifying
False
, Cloudwatch will generate metrics every 5 minutes.
For more information, see Monitor
Your Auto Scaling Instances. For information about Amazon
CloudWatch, see the Amazon
CloudWatch 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 on
launching Spot Instances, see
Using Auto Scaling to Launch Spot Instances 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 on
launching Spot Instances, see
Using Auto Scaling to Launch Spot Instances in the Auto Scaling
Developer Guide.public String getIamInstanceProfile()
Amazon 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 Amazon EC2 instances to securely access other AWS resources. For information on launching EC2 instances with an IAM role, go to Launching 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]*
Amazon 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 Amazon EC2 instances to securely access other AWS resources. For information on launching EC2 instances with an IAM role, go to Launching Auto Scaling Instances With an IAM Role in the Auto Scaling Developer Guide.
public void setIamInstanceProfile(String iamInstanceProfile)
Amazon 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 Amazon EC2 instances to securely access other AWS resources. For information on launching EC2 instances with an IAM role, go to Launching 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. Amazon 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 Amazon EC2 instances to securely access other AWS resources. For information on launching EC2 instances with an IAM role, go to Launching Auto Scaling Instances With an IAM Role in the Auto Scaling Developer Guide.
public CreateLaunchConfigurationRequest withIamInstanceProfile(String iamInstanceProfile)
Amazon 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 Amazon EC2 instances to securely access other AWS resources. For information on launching EC2 instances with an IAM role, go to Launching 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. Amazon 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 Amazon EC2 instances to securely access other AWS resources. For information on launching EC2 instances with an IAM role, go to Launching Auto Scaling Instances With an IAM Role in the Auto Scaling Developer Guide.
public Boolean isEbsOptimized()
public void setEbsOptimized(Boolean ebsOptimized)
ebsOptimized
- Whether the instance is optimized for EBS I/O. The optimization
provides dedicated throughput to Amazon EBS and an optimized
configuration stack to provide optimal EBS I/O performance. This
optimization is not available with all instance types. Additional
usage charges apply when using an EBS Optimized instance. By default
the instance is not optimized for EBS I/O. For information about
EBS-optimized instances, go to 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
- Whether the instance is optimized for EBS I/O. The optimization
provides dedicated throughput to Amazon EBS and an optimized
configuration stack to provide optimal EBS I/O performance. This
optimization is not available with all instance types. Additional
usage charges apply when using an EBS Optimized instance. By default
the instance is not optimized for EBS I/O. For information about
EBS-optimized instances, go to 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 VPC subnet using the VPCZoneIdentifier parameter when you create your Auto Scaling group.
Default: If the instance is launched into a
default subnet in a default VPC, the default is true
. If
the instance is launched into a nondefault subnet in a VPC, the
default is false
. For information about default VPC and
VPC platforms, see Supported
Platforms.
If you specify a value for this parameter, be sure to specify at least one VPC subnet using the VPCZoneIdentifier parameter when you create your Auto Scaling group.
Default: If the instance is launched into a
default subnet in a default VPC, the default is true
. If
the instance is launched into a nondefault subnet in a VPC, the
default is false
. For information about default VPC and
VPC platforms, see Supported
Platforms.
public void setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
If you specify a value for this parameter, be sure to specify at least one VPC subnet using the VPCZoneIdentifier parameter when you create your Auto Scaling group.
Default: If the instance is launched into a
default subnet in a default VPC, the default is true
. If
the instance is launched into a nondefault subnet in a VPC, the
default is false
. For information about default VPC and
VPC platforms, see Supported
Platforms.
associatePublicIpAddress
- Used for Auto Scaling groups that launch instances into an Amazon
Virtual Private Cloud (Amazon VPC). Specifies whether to assign a
public IP address to each instance launched in a Amazon VPC. For more
information, see Auto
Scaling in Amazon Virtual Private Cloud. If you specify a value for this parameter, be sure to specify at least one VPC subnet using the VPCZoneIdentifier parameter when you create your Auto Scaling group.
Default: If the instance is launched into a
default subnet in a default VPC, the default is true
. If
the instance is launched into a nondefault subnet in a VPC, the
default is false
. For information about default VPC and
VPC platforms, see Supported
Platforms.
public CreateLaunchConfigurationRequest withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
If you specify a value for this parameter, be sure to specify at least one VPC subnet using the VPCZoneIdentifier parameter when you create your Auto Scaling group.
Default: If the instance is launched into a
default subnet in a default VPC, the default is true
. If
the instance is launched into a nondefault subnet in a VPC, the
default is false
. For information about default VPC and
VPC platforms, see Supported
Platforms.
Returns a reference to this object so that method calls can be chained together.
associatePublicIpAddress
- Used for Auto Scaling groups that launch instances into an Amazon
Virtual Private Cloud (Amazon VPC). Specifies whether to assign a
public IP address to each instance launched in a Amazon VPC. For more
information, see Auto
Scaling in Amazon Virtual Private Cloud. If you specify a value for this parameter, be sure to specify at least one VPC subnet using the VPCZoneIdentifier parameter when you create your Auto Scaling group.
Default: If the instance is launched into a
default subnet in a default VPC, the default is true
. If
the instance is launched into a nondefault subnet in a VPC, the
default is false
. For information about default VPC and
VPC platforms, see Supported
Platforms.
public Boolean getAssociatePublicIpAddress()
If you specify a value for this parameter, be sure to specify at least one VPC subnet using the VPCZoneIdentifier parameter when you create your Auto Scaling group.
Default: If the instance is launched into a
default subnet in a default VPC, the default is true
. If
the instance is launched into a nondefault subnet in a VPC, the
default is false
. For information about default VPC and
VPC platforms, see Supported
Platforms.
If you specify a value for this parameter, be sure to specify at least one VPC subnet using the VPCZoneIdentifier parameter when you create your Auto Scaling group.
Default: If the instance is launched into a
default subnet in a default VPC, the default is true
. If
the instance is launched into a nondefault subnet in a VPC, the
default is false
. For information about default VPC and
VPC platforms, see Supported
Platforms.
public String getPlacementTenancy()
dedicated
runs on single-tenant hardware and can only be
launched in a VPC. You must set the value of this parameter to
dedicated
if want to launch Dedicated Instances in 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 VPC subnet using the VPCZoneIdentifier parameter when you create your Auto Scaling group.
For more information, see Auto Scaling in 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 in a VPC. You must set the value of this parameter to
dedicated
if want to launch Dedicated Instances in 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 VPC subnet using the VPCZoneIdentifier parameter when you create your Auto Scaling group.
For more information, see Auto Scaling in 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 in a VPC. You must set the value of this parameter to
dedicated
if want to launch Dedicated Instances in 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 VPC subnet using the VPCZoneIdentifier parameter when you create your Auto Scaling group.
For more information, see Auto Scaling in 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 in a VPC. You must set the value of this parameter to
dedicated
if want to launch Dedicated Instances in 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 VPC subnet using the VPCZoneIdentifier parameter when you create your Auto Scaling group.
For more information, see Auto Scaling in 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 in a VPC. You must set the value of this parameter to
dedicated
if want to launch Dedicated Instances in 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 VPC subnet using the VPCZoneIdentifier parameter when you create your Auto Scaling group.
For more information, see Auto Scaling in 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 in a VPC. You must set the value of this parameter to
dedicated
if want to launch Dedicated Instances in 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 VPC subnet using the VPCZoneIdentifier parameter when you create your Auto Scaling group.
For more information, see Auto Scaling in Amazon Virtual Private Cloud in the Auto Scaling Developer Guide.
Valid values: default
|
dedicated
public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.