Class CreateLaunchConfigurationRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
Used for groups that launch instances into a virtual private cloud (VPC).One or more mappings that specify how block devices are exposed to the instance.The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.The IDs of one or more security groups for the specified ClassicLink-enabled VPC.Indicates whether the instance is optimized for Amazon EBS I/O.The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances.The ID of the instance to use to create the launch configuration.Enables detailed monitoring if it is disabled.The instance type of the EC2 instance.The ID of the kernel associated with the AMI.The name of the key pair.The name of the launch configuration.The tenancy of the instance.The ID of the RAM disk associated with the AMI.One or more security groups with which to associate the instances.The maximum hourly price to be paid for any Spot Instance launched to fulfill the request.The user data to make available to the launched EC2 instances.int
hashCode()
Used for groups that launch instances into a virtual private cloud (VPC).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 specified ClassicLink-enabled VPC.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 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.toString()
Returns a string representation of this object; useful for testing and debugging.withAssociatePublicIpAddress
(Boolean associatePublicIpAddress) Used for groups that launch instances into a virtual private cloud (VPC).withBlockDeviceMappings
(BlockDeviceMapping... blockDeviceMappings) One or more mappings that specify how block devices are exposed to the instance.withBlockDeviceMappings
(Collection<BlockDeviceMapping> blockDeviceMappings) One or more mappings that specify how block devices are exposed to the instance.withClassicLinkVPCId
(String classicLinkVPCId) The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.withClassicLinkVPCSecurityGroups
(String... classicLinkVPCSecurityGroups) The IDs of one or more security groups for the specified ClassicLink-enabled VPC.withClassicLinkVPCSecurityGroups
(Collection<String> classicLinkVPCSecurityGroups) The IDs of one or more security groups for the specified ClassicLink-enabled VPC.withEbsOptimized
(Boolean ebsOptimized) Indicates whether the instance is optimized for Amazon EBS I/O.withIamInstanceProfile
(String iamInstanceProfile) The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.withImageId
(String imageId) The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances.withInstanceId
(String instanceId) The ID of the instance to use to create the launch configuration.withInstanceMonitoring
(InstanceMonitoring instanceMonitoring) Enables detailed monitoring if it is disabled.withInstanceType
(String instanceType) The instance type of the EC2 instance.withKernelId
(String kernelId) The ID of the kernel associated with the AMI.withKeyName
(String keyName) The name of the key pair.withLaunchConfigurationName
(String launchConfigurationName) The name of the launch configuration.withPlacementTenancy
(String placementTenancy) The tenancy of the instance.withRamdiskId
(String ramdiskId) The ID of the RAM disk associated with the AMI.withSecurityGroups
(String... securityGroups) One or more security groups with which to associate the instances.withSecurityGroups
(Collection<String> securityGroups) One or more security groups with which to associate the instances.withSpotPrice
(String spotPrice) The maximum hourly price to be paid for any Spot Instance launched to fulfill the request.withUserData
(String userData) The user data to make available to the launched EC2 instances.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
CreateLaunchConfigurationRequest
public CreateLaunchConfigurationRequest()
-
-
Method Details
-
setLaunchConfigurationName
The name of the launch configuration. This name must be unique within the scope of your AWS account.
- Parameters:
launchConfigurationName
- The name of the launch configuration. This name must be unique within the scope of your AWS account.
-
getLaunchConfigurationName
The name of the launch configuration. This name must be unique within the scope of your AWS account.
- Returns:
- The name of the launch configuration. This name must be unique within the scope of your AWS account.
-
withLaunchConfigurationName
The name of the launch configuration. This name must be unique within the scope of your AWS account.
- Parameters:
launchConfigurationName
- The name of the launch configuration. This name must be unique within the scope of your AWS account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setImageId
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.
- Parameters:
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.
-
getImageId
The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances. For more information, see Finding an AMI in the Amazon Elastic Compute Cloud User Guide.
- Returns:
- 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.
-
withImageId
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setKeyName
The name of the key pair. For more information, see Amazon EC2 Key Pairs in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
keyName
- The name of the key pair. For more information, see Amazon EC2 Key Pairs in the Amazon Elastic Compute Cloud User Guide.
-
getKeyName
The name of the key pair. For more information, see Amazon EC2 Key Pairs in the Amazon Elastic Compute Cloud User Guide.
- Returns:
- The name of the key pair. For more information, see Amazon EC2 Key Pairs in the Amazon Elastic Compute Cloud User Guide.
-
withKeyName
The name of the key pair. For more information, see Amazon EC2 Key Pairs in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
keyName
- The name of the key pair. For more information, see Amazon EC2 Key Pairs in the Amazon Elastic Compute Cloud User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getSecurityGroups
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.
- Returns:
- 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.
-
setSecurityGroups
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.
- Parameters:
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.
-
withSecurityGroups
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.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroups(java.util.Collection)
orwithSecurityGroups(java.util.Collection)
if you want to override the existing values.- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSecurityGroups
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setClassicLinkVPCId
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.
- Parameters:
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.
-
getClassicLinkVPCId
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.
- Returns:
- 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.
-
withClassicLinkVPCId
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getClassicLinkVPCSecurityGroups
The IDs of one or more security groups for the specified ClassicLink-enabled VPC. This parameter is required if you specify a ClassicLink-enabled VPC, and is not supported otherwise. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
- Returns:
- The IDs of one or more security groups for the specified ClassicLink-enabled VPC. This parameter is required if you specify a ClassicLink-enabled VPC, and is not supported otherwise. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
-
setClassicLinkVPCSecurityGroups
The IDs of one or more security groups for the specified ClassicLink-enabled VPC. This parameter is required if you specify a ClassicLink-enabled VPC, and is not supported otherwise. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
classicLinkVPCSecurityGroups
- The IDs of one or more security groups for the specified ClassicLink-enabled VPC. This parameter is required if you specify a ClassicLink-enabled VPC, and is not supported otherwise. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
-
withClassicLinkVPCSecurityGroups
public CreateLaunchConfigurationRequest withClassicLinkVPCSecurityGroups(String... classicLinkVPCSecurityGroups) The IDs of one or more security groups for the specified ClassicLink-enabled VPC. This parameter is required if you specify a ClassicLink-enabled VPC, 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)
orwithClassicLinkVPCSecurityGroups(java.util.Collection)
if you want to override the existing values.- Parameters:
classicLinkVPCSecurityGroups
- The IDs of one or more security groups for the specified ClassicLink-enabled VPC. This parameter is required if you specify a ClassicLink-enabled VPC, and is not supported otherwise. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withClassicLinkVPCSecurityGroups
public CreateLaunchConfigurationRequest withClassicLinkVPCSecurityGroups(Collection<String> classicLinkVPCSecurityGroups) The IDs of one or more security groups for the specified ClassicLink-enabled VPC. This parameter is required if you specify a ClassicLink-enabled VPC, and is not supported otherwise. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
classicLinkVPCSecurityGroups
- The IDs of one or more security groups for the specified ClassicLink-enabled VPC. This parameter is required if you specify a ClassicLink-enabled VPC, and is not supported otherwise. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setUserData
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.
- Parameters:
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.
-
getUserData
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.
- Returns:
- 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.
-
withUserData
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceId
The ID of the 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.
- Parameters:
instanceId
- The ID of the 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.
-
getInstanceId
The ID of the 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.
- Returns:
- The ID of the 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.
-
withInstanceId
The ID of the 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.
- Parameters:
instanceId
- The ID of the 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceType
The instance type of the EC2 instance. For information about available instance types, see Available Instance Types in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
instanceType
- The instance type of the EC2 instance. For information about available instance types, see Available Instance Types in the Amazon Elastic Compute Cloud User Guide.
-
getInstanceType
The instance type of the EC2 instance. For information about available instance types, see Available Instance Types in the Amazon Elastic Compute Cloud User Guide.
- Returns:
- The instance type of the EC2 instance. For information about available instance types, see Available Instance Types in the Amazon Elastic Compute Cloud User Guide.
-
withInstanceType
The instance type of the EC2 instance. For information about available instance types, see Available Instance Types in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
instanceType
- The instance type of the EC2 instance. For information about available instance types, see Available Instance Types in the Amazon Elastic Compute Cloud User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setKernelId
The ID of the kernel associated with the AMI.
- Parameters:
kernelId
- The ID of the kernel associated with the AMI.
-
getKernelId
The ID of the kernel associated with the AMI.
- Returns:
- The ID of the kernel associated with the AMI.
-
withKernelId
The ID of the kernel associated with the AMI.
- Parameters:
kernelId
- The ID of the kernel associated with the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRamdiskId
The ID of the RAM disk associated with the AMI.
- Parameters:
ramdiskId
- The ID of the RAM disk associated with the AMI.
-
getRamdiskId
The ID of the RAM disk associated with the AMI.
- Returns:
- The ID of the RAM disk associated with the AMI.
-
withRamdiskId
The ID of the RAM disk associated with the AMI.
- Parameters:
ramdiskId
- The ID of the RAM disk associated with the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getBlockDeviceMappings
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.
- Returns:
- 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.
-
setBlockDeviceMappings
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.
- Parameters:
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.
-
withBlockDeviceMappings
public CreateLaunchConfigurationRequest withBlockDeviceMappings(BlockDeviceMapping... 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.
NOTE: This method appends the values to the existing list (if any). Use
setBlockDeviceMappings(java.util.Collection)
orwithBlockDeviceMappings(java.util.Collection)
if you want to override the existing values.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withBlockDeviceMappings
public CreateLaunchConfigurationRequest withBlockDeviceMappings(Collection<BlockDeviceMapping> 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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceMonitoring
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 Monitoring Your Auto Scaling Instances and Groups in the Auto Scaling Developer Guide.- Parameters:
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 Monitoring Your Auto Scaling Instances and Groups in the Auto Scaling Developer Guide.
-
getInstanceMonitoring
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 Monitoring Your Auto Scaling Instances and Groups in the Auto Scaling Developer Guide.- Returns:
- 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 Monitoring Your Auto Scaling Instances and Groups in the Auto Scaling Developer Guide.
-
withInstanceMonitoring
public CreateLaunchConfigurationRequest withInstanceMonitoring(InstanceMonitoring 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 Monitoring Your Auto Scaling Instances and Groups in the Auto Scaling Developer Guide.- Parameters:
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 Monitoring Your Auto Scaling Instances and Groups in the Auto Scaling Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSpotPrice
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 Launching Spot Instances in Your Auto Scaling Group in the Auto Scaling Developer Guide.
- Parameters:
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 Launching Spot Instances in Your Auto Scaling Group in the Auto Scaling Developer Guide.
-
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 market price. For more information, see Launching Spot Instances in Your Auto Scaling Group in the Auto Scaling Developer Guide.
- Returns:
- 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 Launching Spot Instances in Your Auto Scaling Group in the Auto Scaling Developer Guide.
-
withSpotPrice
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 Launching Spot Instances in Your Auto Scaling Group in the Auto Scaling Developer Guide.
- Parameters:
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 Launching Spot Instances in Your Auto Scaling Group in the Auto Scaling Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIamInstanceProfile
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.
- Parameters:
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.
-
getIamInstanceProfile
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.
- Returns:
- 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.
-
withIamInstanceProfile
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEbsOptimized
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.
- Parameters:
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.
-
getEbsOptimized
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.
- Returns:
- 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.
-
withEbsOptimized
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isEbsOptimized
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.
- Returns:
- 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.
-
setAssociatePublicIpAddress
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 Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
If you specify this parameter, be sure to specify at least one subnet 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 isfalse
. For more information, see Supported Platforms in the Amazon Elastic Compute Cloud User Guide.- Parameters:
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 Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.If you specify this parameter, be sure to specify at least one subnet 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 isfalse
. For more information, see Supported Platforms in the Amazon Elastic Compute Cloud User Guide.
-
getAssociatePublicIpAddress
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 Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
If you specify this parameter, be sure to specify at least one subnet 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 isfalse
. For more information, see Supported Platforms in the Amazon Elastic Compute Cloud User Guide.- Returns:
- 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 Launching Auto Scaling Instances in a VPC in the Auto
Scaling Developer Guide.
If you specify this parameter, be sure to specify at least one subnet 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 isfalse
. For more information, see Supported Platforms in the Amazon Elastic Compute Cloud User Guide.
-
withAssociatePublicIpAddress
public CreateLaunchConfigurationRequest withAssociatePublicIpAddress(Boolean 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 Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
If you specify this parameter, be sure to specify at least one subnet 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 isfalse
. For more information, see Supported Platforms in the Amazon Elastic Compute Cloud User Guide.- Parameters:
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 Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.If you specify this parameter, be sure to specify at least one subnet 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 isfalse
. For more information, see Supported Platforms in the Amazon Elastic Compute Cloud User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isAssociatePublicIpAddress
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 Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
If you specify this parameter, be sure to specify at least one subnet 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 isfalse
. For more information, see Supported Platforms in the Amazon Elastic Compute Cloud User Guide.- Returns:
- 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 Launching Auto Scaling Instances in a VPC in the Auto
Scaling Developer Guide.
If you specify this parameter, be sure to specify at least one subnet 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 isfalse
. For more information, see Supported Platforms in the Amazon Elastic Compute Cloud User Guide.
-
setPlacementTenancy
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 todefault
).If you specify this parameter, be sure to specify at least one subnet when you create your group.
For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
Valid values:
default
|dedicated
- Parameters:
placementTenancy
- The tenancy of the instance. An instance with a tenancy ofdedicated
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 todefault
).If you specify this parameter, be sure to specify at least one subnet when you create your group.
For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
Valid values:
default
|dedicated
-
getPlacementTenancy
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 todefault
).If you specify this parameter, be sure to specify at least one subnet when you create your group.
For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
Valid values:
default
|dedicated
- Returns:
- 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 todefault
).If you specify this parameter, be sure to specify at least one subnet when you create your group.
For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
Valid values:
default
|dedicated
-
withPlacementTenancy
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 todefault
).If you specify this parameter, be sure to specify at least one subnet when you create your group.
For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
Valid values:
default
|dedicated
- Parameters:
placementTenancy
- The tenancy of the instance. An instance with a tenancy ofdedicated
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 todefault
).If you specify this parameter, be sure to specify at least one subnet when you create your group.
For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
Valid values:
default
|dedicated
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-