CopyableBuilder<LaunchConfiguration.Builder,LaunchConfiguration>
, SdkBuilder<LaunchConfiguration.Builder,LaunchConfiguration>
public static interface LaunchConfiguration.Builder extends CopyableBuilder<LaunchConfiguration.Builder,LaunchConfiguration>
Modifier and Type | Method | Description |
---|---|---|
LaunchConfiguration.Builder |
associatePublicIpAddress(Boolean associatePublicIpAddress) |
[EC2-VPC] Indicates whether to assign a public IP address to each instance.
|
LaunchConfiguration.Builder |
blockDeviceMappings(Collection<BlockDeviceMapping> 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.
|
LaunchConfiguration.Builder |
classicLinkVPCId(String classicLinkVPCId) |
The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.
|
LaunchConfiguration.Builder |
classicLinkVPCSecurityGroups(String... classicLinkVPCSecurityGroups) |
The IDs of one or more security groups for the VPC specified in
ClassicLinkVPCId . |
LaunchConfiguration.Builder |
classicLinkVPCSecurityGroups(Collection<String> classicLinkVPCSecurityGroups) |
The IDs of one or more security groups for the VPC specified in
ClassicLinkVPCId . |
LaunchConfiguration.Builder |
createdTime(Date 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).
|
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(String... securityGroups) |
The security groups to associate with the instances.
|
LaunchConfiguration.Builder |
securityGroups(Collection<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
apply, 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.
NOTE: This method appends the values to the existing list (if any). Use
#setSecurityGroups(java.util.Collection)
or #withSecurityGroups(java.util.Collection)
if you
want to override the existing values.
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.
NOTE: This method appends the values to the existing list (if any). Use
#setClassicLinkVPCSecurityGroups(java.util.Collection)
or
#withClassicLinkVPCSecurityGroups(java.util.Collection)
if you want to override the existing values.
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.
NOTE: This method appends the values to the existing list (if any). Use
#setBlockDeviceMappings(java.util.Collection)
or
#withBlockDeviceMappings(java.util.Collection)
if you want to override the existing values.
blockDeviceMappings
- A block device mapping, which specifies the block devices for the instance.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.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(Date 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.