com.amazonaws.services.autoscaling.model
Class CreateLaunchConfigurationRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.autoscaling.model.CreateLaunchConfigurationRequest

public class CreateLaunchConfigurationRequest
extends AmazonWebServiceRequest

Container for the parameters to the 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.

You can create a launch configuration with Amazon EC2 security groups or with Amazon VPC security groups. However, you can't use Amazon EC2 security groups together with Amazon VPC security groups, or vice versa.

NOTE: At this time, Auto Scaling launch configurations don't support compressed (e.g. zipped) user data files.

See Also:
AmazonAutoScaling.createLaunchConfiguration(CreateLaunchConfigurationRequest)

Constructor Summary
CreateLaunchConfigurationRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 List<BlockDeviceMapping> getBlockDeviceMappings()
          A list of mappings that specify how block devices are exposed to the instance.
 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) which was assigned during registration.
 InstanceMonitoring getInstanceMonitoring()
          Enables detailed monitoring, which is enabled by default.
 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 getRamdiskId()
          The ID of the RAM disk associated with the Amazon EC2 AMI.
 List<String> getSecurityGroups()
          The names of 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 available to the launched Amazon EC2 instances.
 int hashCode()
           
 void setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
          A list of mappings that specify how block devices are exposed to the instance.
 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) which was assigned during registration.
 void setInstanceMonitoring(InstanceMonitoring instanceMonitoring)
          Enables detailed monitoring, which is enabled by default.
 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 setRamdiskId(String ramdiskId)
          The ID of the RAM disk associated with the Amazon EC2 AMI.
 void setSecurityGroups(Collection<String> securityGroups)
          The names of 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 available to the launched Amazon EC2 instances.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 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 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) which was assigned during registration.
 CreateLaunchConfigurationRequest withInstanceMonitoring(InstanceMonitoring instanceMonitoring)
          Enables detailed monitoring, which is enabled by default.
 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 withRamdiskId(String ramdiskId)
          The ID of the RAM disk associated with the Amazon EC2 AMI.
 CreateLaunchConfigurationRequest withSecurityGroups(Collection<String> securityGroups)
          The names of the security groups with which to associate Amazon EC2 or Amazon VPC instances.
 CreateLaunchConfigurationRequest withSecurityGroups(String... securityGroups)
          The names of 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 available to the launched Amazon EC2 instances.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateLaunchConfigurationRequest

public CreateLaunchConfigurationRequest()
Method Detail

getLaunchConfigurationName

public String getLaunchConfigurationName()
The name of the launch configuration to create.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
The name of the launch configuration to create.

setLaunchConfigurationName

public void setLaunchConfigurationName(String launchConfigurationName)
The name of the launch configuration to create.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
launchConfigurationName - The name of the launch configuration to create.

withLaunchConfigurationName

public CreateLaunchConfigurationRequest withLaunchConfigurationName(String launchConfigurationName)
The name of the launch configuration to create.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
launchConfigurationName - The name of the launch configuration to create.
Returns:
A reference to this updated object so that method calls can be chained together.

getImageId

public String getImageId()
Unique ID of the Amazon Machine Image (AMI) which was assigned during registration. For more information about Amazon EC2 images, please see Amazon EC2 product documentation.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
Unique ID of the Amazon Machine Image (AMI) which was assigned during registration. For more information about Amazon EC2 images, please see Amazon EC2 product documentation.

setImageId

public void setImageId(String imageId)
Unique ID of the Amazon Machine Image (AMI) which was assigned during registration. For more information about Amazon EC2 images, please see Amazon EC2 product documentation.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
imageId - Unique ID of the Amazon Machine Image (AMI) which was assigned during registration. For more information about Amazon EC2 images, please see Amazon EC2 product documentation.

withImageId

public CreateLaunchConfigurationRequest withImageId(String imageId)
Unique ID of the Amazon Machine Image (AMI) which was assigned during registration. For more information about Amazon EC2 images, please see Amazon EC2 product documentation.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
imageId - Unique ID of the Amazon Machine Image (AMI) which was assigned during registration. For more information about Amazon EC2 images, please see Amazon EC2 product documentation.
Returns:
A reference to this updated object so that method calls can be chained together.

getKeyName

public String getKeyName()
The name of the Amazon EC2 key pair.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
The name of the Amazon EC2 key pair.

setKeyName

public void setKeyName(String keyName)
The name of the Amazon EC2 key pair.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
keyName - The name of the Amazon EC2 key pair.

withKeyName

public CreateLaunchConfigurationRequest withKeyName(String keyName)
The name of the Amazon EC2 key pair.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
keyName - The name of the Amazon EC2 key pair.
Returns:
A reference to this updated object so that method calls can be chained together.

getSecurityGroups

public List<String> getSecurityGroups()
The names of the security groups with which to associate Amazon EC2 or Amazon VPC instances. Specify Amazon EC2 security groups using security group names, such as websrv. Specify Amazon VPC security groups using security group IDs, such as sg-12345678. For more information about Amazon EC2 security groups, go to Using Security Groups in the Amazon EC2 product documentation. For more information about Amazon VPC security groups, go to Security Groups in the Amazon VPC product documentation.

Returns:
The names of the security groups with which to associate Amazon EC2 or Amazon VPC instances. Specify Amazon EC2 security groups using security group names, such as websrv. Specify Amazon VPC security groups using security group IDs, such as sg-12345678. For more information about Amazon EC2 security groups, go to Using Security Groups in the Amazon EC2 product documentation. For more information about Amazon VPC security groups, go to Security Groups in the Amazon VPC product documentation.

setSecurityGroups

public void setSecurityGroups(Collection<String> securityGroups)
The names of the security groups with which to associate Amazon EC2 or Amazon VPC instances. Specify Amazon EC2 security groups using security group names, such as websrv. Specify Amazon VPC security groups using security group IDs, such as sg-12345678. For more information about Amazon EC2 security groups, go to Using Security Groups in the Amazon EC2 product documentation. For more information about Amazon VPC security groups, go to Security Groups in the Amazon VPC product documentation.

Parameters:
securityGroups - The names of the security groups with which to associate Amazon EC2 or Amazon VPC instances. Specify Amazon EC2 security groups using security group names, such as websrv. Specify Amazon VPC security groups using security group IDs, such as sg-12345678. For more information about Amazon EC2 security groups, go to Using Security Groups in the Amazon EC2 product documentation. For more information about Amazon VPC security groups, go to Security Groups in the Amazon VPC product documentation.

withSecurityGroups

public CreateLaunchConfigurationRequest withSecurityGroups(String... securityGroups)
The names of the security groups with which to associate Amazon EC2 or Amazon VPC instances. Specify Amazon EC2 security groups using security group names, such as websrv. Specify Amazon VPC security groups using security group IDs, such as sg-12345678. For more information about Amazon EC2 security groups, go to Using Security Groups in the Amazon EC2 product documentation. For more information about Amazon VPC security groups, go to Security Groups in the Amazon VPC product documentation.

Returns a reference to this object so that method calls can be chained together.

Parameters:
securityGroups - The names of the security groups with which to associate Amazon EC2 or Amazon VPC instances. Specify Amazon EC2 security groups using security group names, such as websrv. Specify Amazon VPC security groups using security group IDs, such as sg-12345678. For more information about Amazon EC2 security groups, go to Using Security Groups in the Amazon EC2 product documentation. For more information about Amazon VPC security groups, go to Security Groups in the Amazon VPC product documentation.
Returns:
A reference to this updated object so that method calls can be chained together.

withSecurityGroups

public CreateLaunchConfigurationRequest withSecurityGroups(Collection<String> securityGroups)
The names of the security groups with which to associate Amazon EC2 or Amazon VPC instances. Specify Amazon EC2 security groups using security group names, such as websrv. Specify Amazon VPC security groups using security group IDs, such as sg-12345678. For more information about Amazon EC2 security groups, go to Using Security Groups in the Amazon EC2 product documentation. For more information about Amazon VPC security groups, go to Security Groups in the Amazon VPC product documentation.

Returns a reference to this object so that method calls can be chained together.

Parameters:
securityGroups - The names of the security groups with which to associate Amazon EC2 or Amazon VPC instances. Specify Amazon EC2 security groups using security group names, such as websrv. Specify Amazon VPC security groups using security group IDs, such as sg-12345678. For more information about Amazon EC2 security groups, go to Using Security Groups in the Amazon EC2 product documentation. For more information about Amazon VPC security groups, go to Security Groups in the Amazon VPC product documentation.
Returns:
A reference to this updated object so that method calls can be chained together.

getUserData

public String getUserData()
The user data available to the launched Amazon EC2 instances. For more information about Amazon EC2 user data, please see Amazon EC2 product documentation.

Constraints:
Length: 0 - 21847
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
The user data available to the launched Amazon EC2 instances. For more information about Amazon EC2 user data, please see Amazon EC2 product documentation.

setUserData

public void setUserData(String userData)
The user data available to the launched Amazon EC2 instances. For more information about Amazon EC2 user data, please see Amazon EC2 product documentation.

Constraints:
Length: 0 - 21847
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
userData - The user data available to the launched Amazon EC2 instances. For more information about Amazon EC2 user data, please see Amazon EC2 product documentation.

withUserData

public CreateLaunchConfigurationRequest withUserData(String userData)
The user data available to the launched Amazon EC2 instances. For more information about Amazon EC2 user data, please see Amazon EC2 product documentation.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 21847
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
userData - The user data available to the launched Amazon EC2 instances. For more information about Amazon EC2 user data, please see Amazon EC2 product documentation.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceType

public String getInstanceType()
The instance type of the Amazon EC2 instance. For more information about Amazon EC2 instance types, please see Amazon EC2 product documentation

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
The instance type of the Amazon EC2 instance. For more information about Amazon EC2 instance types, please see Amazon EC2 product documentation

setInstanceType

public void setInstanceType(String instanceType)
The instance type of the Amazon EC2 instance. For more information about Amazon EC2 instance types, please see Amazon EC2 product documentation

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
instanceType - The instance type of the Amazon EC2 instance. For more information about Amazon EC2 instance types, please see Amazon EC2 product documentation

withInstanceType

public CreateLaunchConfigurationRequest withInstanceType(String instanceType)
The instance type of the Amazon EC2 instance. For more information about Amazon EC2 instance types, please see Amazon EC2 product documentation

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
instanceType - The instance type of the Amazon EC2 instance. For more information about Amazon EC2 instance types, please see Amazon EC2 product documentation
Returns:
A reference to this updated object so that method calls can be chained together.

getKernelId

public String getKernelId()
The ID of the kernel associated with the Amazon EC2 AMI.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
The ID of the kernel associated with the Amazon EC2 AMI.

setKernelId

public void setKernelId(String kernelId)
The ID of the kernel associated with the Amazon EC2 AMI.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
kernelId - The ID of the kernel associated with the Amazon EC2 AMI.

withKernelId

public CreateLaunchConfigurationRequest withKernelId(String kernelId)
The ID of the kernel associated with the Amazon EC2 AMI.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
kernelId - The ID of the kernel associated with the Amazon EC2 AMI.
Returns:
A reference to this updated object so that method calls can be chained together.

getRamdiskId

public String getRamdiskId()
The ID of the RAM disk associated with the Amazon EC2 AMI.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
The ID of the RAM disk associated with the Amazon EC2 AMI.

setRamdiskId

public void setRamdiskId(String ramdiskId)
The ID of the RAM disk associated with the Amazon EC2 AMI.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
ramdiskId - The ID of the RAM disk associated with the Amazon EC2 AMI.

withRamdiskId

public CreateLaunchConfigurationRequest withRamdiskId(String ramdiskId)
The ID of the RAM disk associated with the Amazon EC2 AMI.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
ramdiskId - The ID of the RAM disk associated with the Amazon EC2 AMI.
Returns:
A reference to this updated object so that method calls can be chained together.

getBlockDeviceMappings

public List<BlockDeviceMapping> getBlockDeviceMappings()
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.

Returns:
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.

setBlockDeviceMappings

public void setBlockDeviceMappings(Collection<BlockDeviceMapping> 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.

Parameters:
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.

withBlockDeviceMappings

public CreateLaunchConfigurationRequest withBlockDeviceMappings(BlockDeviceMapping... 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

withBlockDeviceMappings

public CreateLaunchConfigurationRequest withBlockDeviceMappings(Collection<BlockDeviceMapping> 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceMonitoring

public InstanceMonitoring getInstanceMonitoring()
Enables detailed monitoring, which is enabled by default.

When detailed monitoring is enabled, 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 information about monitoring, see the Amazon CloudWatch product page.

Returns:
Enables detailed monitoring, which is enabled by default.

When detailed monitoring is enabled, 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 information about monitoring, see the Amazon CloudWatch product page.


setInstanceMonitoring

public void setInstanceMonitoring(InstanceMonitoring instanceMonitoring)
Enables detailed monitoring, which is enabled by default.

When detailed monitoring is enabled, 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 information about monitoring, see the Amazon CloudWatch product page.

Parameters:
instanceMonitoring - Enables detailed monitoring, which is enabled by default.

When detailed monitoring is enabled, 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 information about monitoring, see the Amazon CloudWatch product page.


withInstanceMonitoring

public CreateLaunchConfigurationRequest withInstanceMonitoring(InstanceMonitoring instanceMonitoring)
Enables detailed monitoring, which is enabled by default.

When detailed monitoring is enabled, 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 information about monitoring, see the Amazon CloudWatch product page.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceMonitoring - Enables detailed monitoring, which is enabled by default.

When detailed monitoring is enabled, 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 information about monitoring, see the Amazon CloudWatch product page.

Returns:
A reference to this updated object so that method calls can be chained together.

getSpotPrice

public String getSpotPrice()
The maximum hourly price to be paid for any Spot Instance launched to fulfill the request. Spot Instances are launched when the price you specify exceeds the current Spot market price. For more information on launching Spot Instances, go to Using Auto Scaling to Launch Spot Instances in the Auto Scaling Developer Guide.

Constraints:
Length: 1 - 255

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 on launching Spot Instances, go to Using Auto Scaling to Launch Spot Instances in the Auto Scaling Developer Guide.

setSpotPrice

public void setSpotPrice(String spotPrice)
The maximum hourly price to be paid for any Spot Instance launched to fulfill the request. Spot Instances are launched when the price you specify exceeds the current Spot market price. For more information on launching Spot Instances, go to Using Auto Scaling to Launch Spot Instances in the Auto Scaling Developer Guide.

Constraints:
Length: 1 - 255

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 on launching Spot Instances, go to Using Auto Scaling to Launch Spot Instances in the Auto Scaling Developer Guide.

withSpotPrice

public CreateLaunchConfigurationRequest withSpotPrice(String spotPrice)
The maximum hourly price to be paid for any Spot Instance launched to fulfill the request. Spot Instances are launched when the price you specify exceeds the current Spot market price. For more information on launching Spot Instances, go to Using Auto Scaling to Launch Spot Instances in the Auto Scaling Developer Guide.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 255

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 on launching Spot Instances, go to Using Auto Scaling to Launch Spot Instances in the Auto Scaling Developer Guide.
Returns:
A reference to this updated object so that method calls can be chained together.

getIamInstanceProfile

public String getIamInstanceProfile()
The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance. 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: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance. 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.

setIamInstanceProfile

public void setIamInstanceProfile(String iamInstanceProfile)
The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance. 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: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
iamInstanceProfile - The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance. 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.

withIamInstanceProfile

public CreateLaunchConfigurationRequest withIamInstanceProfile(String iamInstanceProfile)
The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance. 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: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
iamInstanceProfile - The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance. 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 updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.