public static interface CreateLaunchConfigurationRequest.Builder extends AutoScalingRequest.Builder, CopyableBuilder<CreateLaunchConfigurationRequest.Builder,CreateLaunchConfigurationRequest>
Modifier and Type | Method and Description |
---|---|
CreateLaunchConfigurationRequest.Builder |
associatePublicIpAddress(Boolean associatePublicIpAddress)
Used for groups that launch instances into a virtual private cloud (VPC).
|
CreateLaunchConfigurationRequest.Builder |
blockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
One or more mappings that specify how block devices are exposed to the instance.
|
CreateLaunchConfigurationRequest.Builder |
blockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
One or more mappings that specify how block devices are exposed to the instance.
|
CreateLaunchConfigurationRequest.Builder |
blockDeviceMappings(Consumer<BlockDeviceMapping.Builder>... blockDeviceMappings)
One or more mappings that specify how block devices are exposed to the instance.
|
CreateLaunchConfigurationRequest.Builder |
classicLinkVPCId(String classicLinkVPCId)
The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.
|
CreateLaunchConfigurationRequest.Builder |
classicLinkVPCSecurityGroups(Collection<String> classicLinkVPCSecurityGroups)
The IDs of one or more security groups for the specified ClassicLink-enabled VPC.
|
CreateLaunchConfigurationRequest.Builder |
classicLinkVPCSecurityGroups(String... classicLinkVPCSecurityGroups)
The IDs of one or more security groups for the specified ClassicLink-enabled VPC.
|
CreateLaunchConfigurationRequest.Builder |
ebsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon EBS I/O.
|
CreateLaunchConfigurationRequest.Builder |
iamInstanceProfile(String iamInstanceProfile)
The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the
instance.
|
CreateLaunchConfigurationRequest.Builder |
imageId(String imageId)
The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances.
|
CreateLaunchConfigurationRequest.Builder |
instanceId(String instanceId)
The ID of the instance to use to create the launch configuration.
|
default CreateLaunchConfigurationRequest.Builder |
instanceMonitoring(Consumer<InstanceMonitoring.Builder> instanceMonitoring)
Enables detailed monitoring (
true ) or basic monitoring (false ) for the Auto Scaling
instances. |
CreateLaunchConfigurationRequest.Builder |
instanceMonitoring(InstanceMonitoring instanceMonitoring)
Enables detailed monitoring (
true ) or basic monitoring (false ) for the Auto Scaling
instances. |
CreateLaunchConfigurationRequest.Builder |
instanceType(String instanceType)
The instance type of the EC2 instance.
|
CreateLaunchConfigurationRequest.Builder |
kernelId(String kernelId)
The ID of the kernel associated with the AMI.
|
CreateLaunchConfigurationRequest.Builder |
keyName(String keyName)
The name of the key pair.
|
CreateLaunchConfigurationRequest.Builder |
launchConfigurationName(String launchConfigurationName)
The name of the launch configuration.
|
CreateLaunchConfigurationRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
CreateLaunchConfigurationRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
CreateLaunchConfigurationRequest.Builder |
placementTenancy(String placementTenancy)
The tenancy of the instance.
|
CreateLaunchConfigurationRequest.Builder |
ramdiskId(String ramdiskId)
The ID of the RAM disk associated with the AMI.
|
CreateLaunchConfigurationRequest.Builder |
securityGroups(Collection<String> securityGroups)
One or more security groups with which to associate the instances.
|
CreateLaunchConfigurationRequest.Builder |
securityGroups(String... securityGroups)
One or more security groups with which to associate the instances.
|
CreateLaunchConfigurationRequest.Builder |
spotPrice(String spotPrice)
The maximum hourly price to be paid for any Spot Instance launched to fulfill the request.
|
CreateLaunchConfigurationRequest.Builder |
userData(String userData)
The user data to make available to the launched EC2 instances.
|
build
overrideConfiguration
copy
applyMutation, build
CreateLaunchConfigurationRequest.Builder launchConfigurationName(String launchConfigurationName)
The name of the launch configuration. This name must be unique within the scope of your AWS account.
launchConfigurationName
- The name of the launch configuration. This name must be unique within the scope of your AWS account.CreateLaunchConfigurationRequest.Builder imageId(String imageId)
The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances.
If you do not specify InstanceId
, you must specify ImageId
.
For more information, see Finding an AMI in the Amazon Elastic Compute Cloud User Guide.
imageId
- The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances.
If you do not specify InstanceId
, you must specify ImageId
.
For more information, see Finding an AMI in the Amazon Elastic Compute Cloud User Guide.
CreateLaunchConfigurationRequest.Builder keyName(String keyName)
The name of the key pair. For more information, see Amazon EC2 Key Pairs in the Amazon Elastic Compute Cloud User Guide.
keyName
- The name of the key pair. For more information, see Amazon EC2 Key Pairs
in the Amazon Elastic Compute Cloud User Guide.CreateLaunchConfigurationRequest.Builder securityGroups(Collection<String> 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.
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.
CreateLaunchConfigurationRequest.Builder securityGroups(String... 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.
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.
CreateLaunchConfigurationRequest.Builder classicLinkVPCId(String 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.
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.CreateLaunchConfigurationRequest.Builder classicLinkVPCSecurityGroups(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.
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.CreateLaunchConfigurationRequest.Builder classicLinkVPCSecurityGroups(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.
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.CreateLaunchConfigurationRequest.Builder userData(String 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.
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.CreateLaunchConfigurationRequest.Builder instanceId(String 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.
If you do not specify InstanceId
, you must specify both ImageId
and
InstanceType
.
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 User Guide.
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.
If you do not specify InstanceId
, you must specify both ImageId
and
InstanceType
.
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 User Guide.
CreateLaunchConfigurationRequest.Builder instanceType(String instanceType)
The instance type of the EC2 instance.
If you do not specify InstanceId
, you must specify InstanceType
.
For information about available instance types, see Available Instance Types in the Amazon Elastic Compute Cloud User Guide.
instanceType
- The instance type of the EC2 instance.
If you do not specify InstanceId
, you must specify InstanceType
.
For information about available instance types, see Available Instance Types in the Amazon Elastic Compute Cloud User Guide.
CreateLaunchConfigurationRequest.Builder kernelId(String kernelId)
The ID of the kernel associated with the AMI.
kernelId
- The ID of the kernel associated with the AMI.CreateLaunchConfigurationRequest.Builder ramdiskId(String ramdiskId)
The ID of the RAM disk associated with the AMI.
ramdiskId
- The ID of the RAM disk associated with the AMI.CreateLaunchConfigurationRequest.Builder blockDeviceMappings(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.
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.CreateLaunchConfigurationRequest.Builder blockDeviceMappings(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.
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.CreateLaunchConfigurationRequest.Builder blockDeviceMappings(Consumer<BlockDeviceMapping.Builder>... 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.
This is a convenience that creates an instance of theList.Builder
avoiding the
need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately
and its result is passed to #blockDeviceMappings(List)
.blockDeviceMappings
- a consumer that will call methods on List.Builder
#blockDeviceMappings(List)
CreateLaunchConfigurationRequest.Builder instanceMonitoring(InstanceMonitoring instanceMonitoring)
Enables detailed monitoring (true
) or basic monitoring (false
) for the Auto Scaling
instances. The default is true
.
instanceMonitoring
- Enables detailed monitoring (true
) or basic monitoring (false
) for the Auto
Scaling instances. The default is true
.default CreateLaunchConfigurationRequest.Builder instanceMonitoring(Consumer<InstanceMonitoring.Builder> instanceMonitoring)
Enables detailed monitoring (true
) or basic monitoring (false
) for the Auto Scaling
instances. The default is true
.
InstanceMonitoring.Builder
avoiding the need to
create one manually via InstanceMonitoring.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to instanceMonitoring(InstanceMonitoring)
.instanceMonitoring
- a consumer that will call methods on InstanceMonitoring.Builder
instanceMonitoring(InstanceMonitoring)
CreateLaunchConfigurationRequest.Builder spotPrice(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, see Launching Spot Instances in Your Auto Scaling Group in the Auto Scaling User Guide.
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 User Guide.CreateLaunchConfigurationRequest.Builder iamInstanceProfile(String 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 User Guide.
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 User Guide.
CreateLaunchConfigurationRequest.Builder ebsOptimized(Boolean 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.
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.CreateLaunchConfigurationRequest.Builder associatePublicIpAddress(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 User 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 is false
. For more information, see Supported
Platforms in the Amazon Elastic Compute Cloud User Guide.
associatePublicIpAddress
- Used for groups that launch instances into a virtual private cloud (VPC). Specifies whether to assign
a public IP address to each instance. For more information, see Launching Auto Scaling
Instances in a VPC in the Auto Scaling User 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 is false
. For more
information, see Supported
Platforms in the Amazon Elastic Compute Cloud User Guide.
CreateLaunchConfigurationRequest.Builder placementTenancy(String placementTenancy)
The tenancy of the instance. An instance with a tenancy of dedicated
runs on single-tenant
hardware and can only be launched into a VPC.
You must set the value of this parameter to dedicated
if want to launch Dedicated Instances into
a shared tenancy VPC (VPC with instance placement tenancy attribute set to default
).
If you specify 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 User Guide.
Valid values: default
| dedicated
placementTenancy
- The tenancy of the instance. An instance with a tenancy of dedicated
runs on
single-tenant hardware and can only be launched into a VPC.
You must set the value of this parameter to dedicated
if want to launch Dedicated
Instances into a shared tenancy VPC (VPC with instance placement tenancy attribute set to
default
).
If you specify 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 User Guide.
Valid values: default
| dedicated
CreateLaunchConfigurationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.CreateLaunchConfigurationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.