@Generated(value="software.amazon.awssdk:codegen") public final class LaunchConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LaunchConfiguration.Builder,LaunchConfiguration>
Describes a launch configuration.
Modifier and Type | Class and Description |
---|---|
static interface |
LaunchConfiguration.Builder |
Modifier and Type | Method and Description |
---|---|
Boolean |
associatePublicIpAddress()
For Auto Scaling groups that are running in a VPC, specifies whether to assign a public IP address to the group's
instances.
|
List<BlockDeviceMapping> |
blockDeviceMappings()
A block device mapping, which specifies the block devices for the instance.
|
static LaunchConfiguration.Builder |
builder() |
String |
classicLinkVPCId()
The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.
|
List<String> |
classicLinkVPCSecurityGroups()
The IDs of one or more security groups for the VPC specified in
ClassicLinkVPCId . |
Instant |
createdTime()
The creation date and time for the launch configuration.
|
Boolean |
ebsOptimized()
Specifies whether the launch configuration is optimized for EBS I/O (
true ) or not (
false ). |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasBlockDeviceMappings()
Returns true if the BlockDeviceMappings property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasClassicLinkVPCSecurityGroups()
Returns true if the ClassicLinkVPCSecurityGroups property was specified by the sender (it may be empty), or false
if the sender did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasSecurityGroups()
Returns true if the SecurityGroups property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
String |
iamInstanceProfile()
The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.
|
String |
imageId()
The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances.
|
InstanceMonitoring |
instanceMonitoring()
Controls whether instances in this group are launched with detailed (
true ) or basic (
false ) monitoring. |
String |
instanceType()
The instance type for the instances.
|
String |
kernelId()
The ID of the kernel associated with the AMI.
|
String |
keyName()
The name of the key pair.
|
String |
launchConfigurationARN()
The Amazon Resource Name (ARN) of the launch configuration.
|
String |
launchConfigurationName()
The name of the launch configuration.
|
String |
placementTenancy()
The tenancy of the instance, either
default or dedicated . |
String |
ramdiskId()
The ID of the RAM disk associated with the AMI.
|
List<SdkField<?>> |
sdkFields() |
List<String> |
securityGroups()
A list that contains the security groups to assign to the instances in the Auto Scaling group.
|
static Class<? extends LaunchConfiguration.Builder> |
serializableBuilderClass() |
String |
spotPrice()
The maximum hourly price to be paid for any Spot Instance launched to fulfill the request.
|
LaunchConfiguration.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
userData()
The Base64-encoded user data to make available to the launched EC2 instances.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public String launchConfigurationName()
The name of the launch configuration.
public String launchConfigurationARN()
The Amazon Resource Name (ARN) of the launch configuration.
public String 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 EC2 User Guide for Linux Instances.
For more information, see Finding an AMI in the Amazon EC2 User Guide for Linux Instances.
public String keyName()
The name of the key pair.
For more information, see Amazon EC2 Key Pairs in the Amazon EC2 User Guide for Linux Instances.
For more information, see Amazon EC2 Key Pairs in the Amazon EC2 User Guide for Linux Instances.
public boolean hasSecurityGroups()
public List<String> securityGroups()
A list that contains the security groups to assign to the instances in the Auto Scaling group.
For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasSecurityGroups()
to see if a value was sent in this field.
For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.
public String classicLinkVPCId()
The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.
For more information, see ClassicLink in the Amazon EC2 User Guide for Linux Instances and Linking EC2-Classic Instances to a VPC in the Amazon EC2 Auto Scaling User Guide.
For more information, see ClassicLink in the Amazon EC2 User Guide for Linux Instances and Linking EC2-Classic Instances to a VPC in the Amazon EC2 Auto Scaling User Guide.
public boolean hasClassicLinkVPCSecurityGroups()
public List<String> classicLinkVPCSecurityGroups()
The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId
.
For more information, see ClassicLink in the Amazon EC2 User Guide for Linux Instances and Linking EC2-Classic Instances to a VPC in the Amazon EC2 Auto Scaling User Guide.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasClassicLinkVPCSecurityGroups()
to see if a value was sent in this field.
ClassicLinkVPCId
.
For more information, see ClassicLink in the Amazon EC2 User Guide for Linux Instances and Linking EC2-Classic Instances to a VPC in the Amazon EC2 Auto Scaling User Guide.
public String userData()
The Base64-encoded user data to make available to the launched EC2 instances.
For more information, see Instance Metadata and User Data in the Amazon EC2 User Guide for Linux Instances.
For more information, see Instance Metadata and User Data in the Amazon EC2 User Guide for Linux Instances.
public String instanceType()
The instance type for the instances.
For information about available instance types, see Available Instance Types in the Amazon EC2 User Guide for Linux Instances.
For information about available instance types, see Available Instance Types in the Amazon EC2 User Guide for Linux Instances.
public String kernelId()
The ID of the kernel associated with the AMI.
public String ramdiskId()
The ID of the RAM disk associated with the AMI.
public boolean hasBlockDeviceMappings()
public List<BlockDeviceMapping> blockDeviceMappings()
A block device mapping, which specifies the block devices for the instance.
For more information, see Block Device Mapping in the Amazon EC2 User Guide for Linux Instances.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasBlockDeviceMappings()
to see if a value was sent in this field.
For more information, see Block Device Mapping in the Amazon EC2 User Guide for Linux Instances.
public InstanceMonitoring instanceMonitoring()
Controls whether instances in this group are launched with detailed (true
) or basic (
false
) monitoring.
For more information, see Configure Monitoring for Auto Scaling Instances in the Amazon EC2 Auto Scaling User Guide.
true
) or basic (
false
) monitoring.
For more information, see Configure Monitoring for Auto Scaling Instances in the Amazon EC2 Auto Scaling User Guide.
public String spotPrice()
The maximum hourly price to be paid for any Spot Instance launched to fulfill the request. Spot Instances are launched when the price you specify exceeds the current Spot price.
For more information, see Launching Spot Instances in Your Auto Scaling Group in the Amazon EC2 Auto Scaling User Guide.
For more information, see Launching Spot Instances in Your Auto Scaling Group in the Amazon EC2 Auto Scaling User Guide.
public String iamInstanceProfile()
The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance. The instance profile contains the IAM role.
For more information, see IAM Role for Applications That Run on Amazon EC2 Instances in the Amazon EC2 Auto Scaling User Guide.
For more information, see IAM Role for Applications That Run on Amazon EC2 Instances in the Amazon EC2 Auto Scaling User Guide.
public Instant createdTime()
The creation date and time for the launch configuration.
public Boolean ebsOptimized()
Specifies whether the launch configuration is optimized for EBS I/O (true
) or not (
false
).
For more information, see Amazon EBS-Optimized Instances in the Amazon EC2 User Guide for Linux Instances.
true
) or not (
false
).
For more information, see Amazon EBS-Optimized Instances in the Amazon EC2 User Guide for Linux Instances.
public Boolean associatePublicIpAddress()
For Auto Scaling groups that are running in a VPC, specifies whether to assign a public IP address to the group's instances.
For more information, see Launching Auto Scaling Instances in a VPC in the Amazon EC2 Auto Scaling User Guide.
For more information, see Launching Auto Scaling Instances in a VPC in the Amazon EC2 Auto Scaling User Guide.
public String placementTenancy()
The tenancy of the instance, either default
or dedicated
. An instance with
dedicated
tenancy runs on isolated, single-tenant hardware and can only be launched into a VPC.
For more information, see Instance Placement Tenancy in the Amazon EC2 Auto Scaling User Guide.
default
or dedicated
. An instance with
dedicated
tenancy runs on isolated, single-tenant hardware and can only be launched into a
VPC.
For more information, see Instance Placement Tenancy in the Amazon EC2 Auto Scaling User Guide.
public LaunchConfiguration.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<LaunchConfiguration.Builder,LaunchConfiguration>
public static LaunchConfiguration.Builder builder()
public static Class<? extends LaunchConfiguration.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
Copyright © 2020. All rights reserved.