public static interface LaunchConfiguration.Builder extends SdkPojo, CopyableBuilder<LaunchConfiguration.Builder,LaunchConfiguration>
Modifier and Type | Method and Description |
---|---|
LaunchConfiguration.Builder |
associatePublicIpAddress(Boolean associatePublicIpAddress)
[EC2-VPC] Indicates whether to assign a public IP address to each instance.
|
LaunchConfiguration.Builder |
blockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
A block device mapping, which specifies the block devices for the instance.
|
LaunchConfiguration.Builder |
blockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
A block device mapping, which specifies the block devices for the instance.
|
LaunchConfiguration.Builder |
blockDeviceMappings(Consumer<BlockDeviceMapping.Builder>... blockDeviceMappings)
A block device mapping, which specifies the block devices for the instance.
|
LaunchConfiguration.Builder |
classicLinkVPCId(String classicLinkVPCId)
The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.
|
LaunchConfiguration.Builder |
classicLinkVPCSecurityGroups(Collection<String> classicLinkVPCSecurityGroups)
The IDs of one or more security groups for the VPC specified in
ClassicLinkVPCId . |
LaunchConfiguration.Builder |
classicLinkVPCSecurityGroups(String... classicLinkVPCSecurityGroups)
The IDs of one or more security groups for the VPC specified in
ClassicLinkVPCId . |
LaunchConfiguration.Builder |
createdTime(Instant createdTime)
The creation date and time for the launch configuration.
|
LaunchConfiguration.Builder |
ebsOptimized(Boolean ebsOptimized)
Controls whether the instance is optimized for EBS I/O (
true ) or not (false ). |
LaunchConfiguration.Builder |
iamInstanceProfile(String iamInstanceProfile)
The name or Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.
|
LaunchConfiguration.Builder |
imageId(String imageId)
The ID of the Amazon Machine Image (AMI).
|
default LaunchConfiguration.Builder |
instanceMonitoring(Consumer<InstanceMonitoring.Builder> instanceMonitoring)
Controls whether instances in this group are launched with detailed (
true ) or basic (
false ) monitoring. |
LaunchConfiguration.Builder |
instanceMonitoring(InstanceMonitoring instanceMonitoring)
Controls whether instances in this group are launched with detailed (
true ) or basic (
false ) monitoring. |
LaunchConfiguration.Builder |
instanceType(String instanceType)
The instance type for the instances.
|
LaunchConfiguration.Builder |
kernelId(String kernelId)
The ID of the kernel associated with the AMI.
|
LaunchConfiguration.Builder |
keyName(String keyName)
The name of the key pair.
|
LaunchConfiguration.Builder |
launchConfigurationARN(String launchConfigurationARN)
The Amazon Resource Name (ARN) of the launch configuration.
|
LaunchConfiguration.Builder |
launchConfigurationName(String launchConfigurationName)
The name of the launch configuration.
|
LaunchConfiguration.Builder |
placementTenancy(String placementTenancy)
The tenancy of the instance, either
default or dedicated . |
LaunchConfiguration.Builder |
ramdiskId(String ramdiskId)
The ID of the RAM disk associated with the AMI.
|
LaunchConfiguration.Builder |
securityGroups(Collection<String> securityGroups)
The security groups to associate with the instances.
|
LaunchConfiguration.Builder |
securityGroups(String... securityGroups)
The security groups to associate with the instances.
|
LaunchConfiguration.Builder |
spotPrice(String spotPrice)
The price to bid when launching Spot Instances.
|
LaunchConfiguration.Builder |
userData(String userData)
The user data available to the instances.
|
copy
applyMutation, build
LaunchConfiguration.Builder launchConfigurationName(String launchConfigurationName)
The name of the launch configuration.
launchConfigurationName
- The name of the launch configuration.LaunchConfiguration.Builder launchConfigurationARN(String launchConfigurationARN)
The Amazon Resource Name (ARN) of the launch configuration.
launchConfigurationARN
- The Amazon Resource Name (ARN) of the launch configuration.LaunchConfiguration.Builder imageId(String imageId)
The ID of the Amazon Machine Image (AMI).
imageId
- The ID of the Amazon Machine Image (AMI).LaunchConfiguration.Builder keyName(String keyName)
The name of the key pair.
keyName
- The name of the key pair.LaunchConfiguration.Builder securityGroups(Collection<String> securityGroups)
The security groups to associate with the instances.
securityGroups
- The security groups to associate with the instances.LaunchConfiguration.Builder securityGroups(String... securityGroups)
The security groups to associate with the instances.
securityGroups
- The security groups to associate with the instances.LaunchConfiguration.Builder classicLinkVPCId(String classicLinkVPCId)
The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. This parameter can only be used 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 can only be
used if you are launching EC2-Classic instances. For more information, see ClassicLink in the
Amazon Elastic Compute Cloud User Guide.LaunchConfiguration.Builder classicLinkVPCSecurityGroups(Collection<String> classicLinkVPCSecurityGroups)
The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId
. This parameter
is required if you specify a ClassicLink-enabled VPC, and cannot be used 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 VPC specified in ClassicLinkVPCId
. This
parameter is required if you specify a ClassicLink-enabled VPC, and cannot be used otherwise. For more
information, see ClassicLink in the
Amazon Elastic Compute Cloud User Guide.LaunchConfiguration.Builder classicLinkVPCSecurityGroups(String... classicLinkVPCSecurityGroups)
The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId
. This parameter
is required if you specify a ClassicLink-enabled VPC, and cannot be used 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 VPC specified in ClassicLinkVPCId
. This
parameter is required if you specify a ClassicLink-enabled VPC, and cannot be used otherwise. For more
information, see ClassicLink in the
Amazon Elastic Compute Cloud User Guide.LaunchConfiguration.Builder userData(String userData)
The user data available to the instances.
userData
- The user data available to the instances.LaunchConfiguration.Builder instanceType(String instanceType)
The instance type for the instances.
instanceType
- The instance type for the instances.LaunchConfiguration.Builder kernelId(String kernelId)
The ID of the kernel associated with the AMI.
kernelId
- The ID of the kernel associated with the AMI.LaunchConfiguration.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.LaunchConfiguration.Builder blockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
A block device mapping, which specifies the block devices for the instance.
blockDeviceMappings
- A block device mapping, which specifies the block devices for the instance.LaunchConfiguration.Builder blockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
A block device mapping, which specifies the block devices for the instance.
blockDeviceMappings
- A block device mapping, which specifies the block devices for the instance.LaunchConfiguration.Builder blockDeviceMappings(Consumer<BlockDeviceMapping.Builder>... blockDeviceMappings)
A block device mapping, which specifies the block devices for the instance.
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)
LaunchConfiguration.Builder instanceMonitoring(InstanceMonitoring instanceMonitoring)
Controls whether instances in this group are launched with detailed (true
) or basic (
false
) monitoring.
instanceMonitoring
- Controls whether instances in this group are launched with detailed (true
) or basic (
false
) monitoring.default LaunchConfiguration.Builder instanceMonitoring(Consumer<InstanceMonitoring.Builder> instanceMonitoring)
Controls whether instances in this group are launched with detailed (true
) or basic (
false
) monitoring.
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)
LaunchConfiguration.Builder spotPrice(String spotPrice)
The price to bid when launching Spot Instances.
spotPrice
- The price to bid when launching Spot Instances.LaunchConfiguration.Builder iamInstanceProfile(String iamInstanceProfile)
The name or Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.
iamInstanceProfile
- The name or Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the
instance.LaunchConfiguration.Builder createdTime(Instant createdTime)
The creation date and time for the launch configuration.
createdTime
- The creation date and time for the launch configuration.LaunchConfiguration.Builder ebsOptimized(Boolean ebsOptimized)
Controls whether the instance is optimized for EBS I/O (true
) or not (false
).
ebsOptimized
- Controls whether the instance is optimized for EBS I/O (true
) or not (false
).LaunchConfiguration.Builder associatePublicIpAddress(Boolean associatePublicIpAddress)
[EC2-VPC] Indicates whether to assign a public IP address to each instance.
associatePublicIpAddress
- [EC2-VPC] Indicates whether to assign a public IP address to each instance.LaunchConfiguration.Builder placementTenancy(String placementTenancy)
The tenancy of the instance, either default
or dedicated
. An instance with
dedicated
tenancy runs in an isolated, single-tenant hardware and can only be launched into a
VPC.
placementTenancy
- The tenancy of the instance, either default
or dedicated
. An instance with
dedicated
tenancy runs in an isolated, single-tenant hardware and can only be launched
into a VPC.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.