public static interface SpotFleetLaunchSpecification.Builder extends SdkPojo, CopyableBuilder<SpotFleetLaunchSpecification.Builder,SpotFleetLaunchSpecification>
equalsBySdkFields, sdkFields
copy
applyMutation, build
SpotFleetLaunchSpecification.Builder securityGroups(Collection<GroupIdentifier> securityGroups)
One or more security groups. When requesting instances in a VPC, you must specify the IDs of the security groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the security groups.
securityGroups
- One or more security groups. When requesting instances in a VPC, you must specify the IDs of the
security groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the
security groups.SpotFleetLaunchSpecification.Builder securityGroups(GroupIdentifier... securityGroups)
One or more security groups. When requesting instances in a VPC, you must specify the IDs of the security groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the security groups.
securityGroups
- One or more security groups. When requesting instances in a VPC, you must specify the IDs of the
security groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the
security groups.SpotFleetLaunchSpecification.Builder securityGroups(Consumer<GroupIdentifier.Builder>... securityGroups)
One or more security groups. When requesting instances in a VPC, you must specify the IDs of the security groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the security groups.
This is a convenience method 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 #securityGroups(List)
.securityGroups
- a consumer that will call methods on List.Builder
#securityGroups(List)
SpotFleetLaunchSpecification.Builder addressingType(String addressingType)
Deprecated.
addressingType
- Deprecated.SpotFleetLaunchSpecification.Builder blockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
One or more block devices that are mapped to the Spot Instances. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.
blockDeviceMappings
- One or more block devices that are mapped to the Spot Instances. You can't specify both a snapshot ID
and an encryption value. This is because only blank volumes can be encrypted on creation. If a
snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume
encryption status.SpotFleetLaunchSpecification.Builder blockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
One or more block devices that are mapped to the Spot Instances. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.
blockDeviceMappings
- One or more block devices that are mapped to the Spot Instances. You can't specify both a snapshot ID
and an encryption value. This is because only blank volumes can be encrypted on creation. If a
snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume
encryption status.SpotFleetLaunchSpecification.Builder blockDeviceMappings(Consumer<BlockDeviceMapping.Builder>... blockDeviceMappings)
One or more block devices that are mapped to the Spot Instances. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.
This is a convenience method 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)
SpotFleetLaunchSpecification.Builder ebsOptimized(Boolean ebsOptimized)
Indicates whether the instances are optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
Default: false
ebsOptimized
- Indicates whether the instances are optimized for EBS I/O. This optimization provides dedicated
throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance.
This optimization isn't available with all instance types. Additional usage charges apply when using
an EBS Optimized instance.
Default: false
SpotFleetLaunchSpecification.Builder iamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
The IAM instance profile.
iamInstanceProfile
- The IAM instance profile.default SpotFleetLaunchSpecification.Builder iamInstanceProfile(Consumer<IamInstanceProfileSpecification.Builder> iamInstanceProfile)
The IAM instance profile.
This is a convenience method that creates an instance of theIamInstanceProfileSpecification.Builder
avoiding the need to create one manually via IamInstanceProfileSpecification.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to iamInstanceProfile(IamInstanceProfileSpecification)
.iamInstanceProfile
- a consumer that will call methods on IamInstanceProfileSpecification.Builder
iamInstanceProfile(IamInstanceProfileSpecification)
SpotFleetLaunchSpecification.Builder imageId(String imageId)
The ID of the AMI.
imageId
- The ID of the AMI.SpotFleetLaunchSpecification.Builder instanceType(String instanceType)
The instance type.
instanceType
- The instance type.InstanceType
,
InstanceType
SpotFleetLaunchSpecification.Builder instanceType(InstanceType instanceType)
The instance type.
instanceType
- The instance type.InstanceType
,
InstanceType
SpotFleetLaunchSpecification.Builder kernelId(String kernelId)
The ID of the kernel.
kernelId
- The ID of the kernel.SpotFleetLaunchSpecification.Builder keyName(String keyName)
The name of the key pair.
keyName
- The name of the key pair.SpotFleetLaunchSpecification.Builder monitoring(SpotFleetMonitoring monitoring)
Enable or disable monitoring for the instances.
monitoring
- Enable or disable monitoring for the instances.default SpotFleetLaunchSpecification.Builder monitoring(Consumer<SpotFleetMonitoring.Builder> monitoring)
Enable or disable monitoring for the instances.
This is a convenience method that creates an instance of theSpotFleetMonitoring.Builder
avoiding the
need to create one manually via SpotFleetMonitoring.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to monitoring(SpotFleetMonitoring)
.monitoring
- a consumer that will call methods on SpotFleetMonitoring.Builder
monitoring(SpotFleetMonitoring)
SpotFleetLaunchSpecification.Builder networkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
One or more network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.
SpotFleetLaunchSpecification
currently does not support Elastic Fabric Adapter (EFA). To specify
an EFA, you must use LaunchTemplateConfig.
networkInterfaces
- One or more network interfaces. If you specify a network interface, you must specify subnet IDs and
security group IDs using the network interface.
SpotFleetLaunchSpecification
currently does not support Elastic Fabric Adapter (EFA). To
specify an EFA, you must use LaunchTemplateConfig.
SpotFleetLaunchSpecification.Builder networkInterfaces(InstanceNetworkInterfaceSpecification... networkInterfaces)
One or more network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.
SpotFleetLaunchSpecification
currently does not support Elastic Fabric Adapter (EFA). To specify
an EFA, you must use LaunchTemplateConfig.
networkInterfaces
- One or more network interfaces. If you specify a network interface, you must specify subnet IDs and
security group IDs using the network interface.
SpotFleetLaunchSpecification
currently does not support Elastic Fabric Adapter (EFA). To
specify an EFA, you must use LaunchTemplateConfig.
SpotFleetLaunchSpecification.Builder networkInterfaces(Consumer<InstanceNetworkInterfaceSpecification.Builder>... networkInterfaces)
One or more network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.
SpotFleetLaunchSpecification
currently does not support Elastic Fabric Adapter (EFA). To specify
an EFA, you must use LaunchTemplateConfig.
.Builder
avoiding the need to create one manually via #builder()
.
When the Consumer
completes, List.Builder#build()
is
called immediately and its result is passed to #networkInterfaces(List)
.networkInterfaces
- a consumer that will call methods on List.Builder
#networkInterfaces(List)
SpotFleetLaunchSpecification.Builder placement(SpotPlacement placement)
The placement information.
placement
- The placement information.default SpotFleetLaunchSpecification.Builder placement(Consumer<SpotPlacement.Builder> placement)
The placement information.
This is a convenience method that creates an instance of theSpotPlacement.Builder
avoiding the need
to create one manually via SpotPlacement.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to placement(SpotPlacement)
.placement
- a consumer that will call methods on SpotPlacement.Builder
placement(SpotPlacement)
SpotFleetLaunchSpecification.Builder ramdiskId(String ramdiskId)
The ID of the RAM disk. Some kernels require additional drivers at launch. Check the kernel requirements for information about whether you need to specify a RAM disk. To find kernel requirements, refer to the Amazon Web Services Resource Center and search for the kernel ID.
ramdiskId
- The ID of the RAM disk. Some kernels require additional drivers at launch. Check the kernel
requirements for information about whether you need to specify a RAM disk. To find kernel
requirements, refer to the Amazon Web Services Resource Center and search for the kernel ID.SpotFleetLaunchSpecification.Builder spotPrice(String spotPrice)
The maximum price per unit hour that you are willing to pay for a Spot Instance. If this value is not
specified, the default is the Spot price specified for the fleet. To determine the Spot price per unit hour,
divide the Spot price by the value of WeightedCapacity
.
spotPrice
- The maximum price per unit hour that you are willing to pay for a Spot Instance. If this value is not
specified, the default is the Spot price specified for the fleet. To determine the Spot price per unit
hour, divide the Spot price by the value of WeightedCapacity
.SpotFleetLaunchSpecification.Builder subnetId(String subnetId)
The IDs of the subnets in which to launch the instances. To specify multiple subnets, separate them using commas; for example, "subnet-1234abcdeexample1, subnet-0987cdef6example2".
subnetId
- The IDs of the subnets in which to launch the instances. To specify multiple subnets, separate them
using commas; for example, "subnet-1234abcdeexample1, subnet-0987cdef6example2".SpotFleetLaunchSpecification.Builder userData(String userData)
The Base64-encoded user data that instances use when starting up.
userData
- The Base64-encoded user data that instances use when starting up.SpotFleetLaunchSpecification.Builder weightedCapacity(Double weightedCapacity)
The number of units provided by the specified instance type. These are the same units that you chose to set the target capacity in terms of instances, or a performance characteristic such as vCPUs, memory, or I/O.
If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the number of instances to the next whole number. If this value is not specified, the default is 1.
weightedCapacity
- The number of units provided by the specified instance type. These are the same units that you chose
to set the target capacity in terms of instances, or a performance characteristic such as vCPUs,
memory, or I/O.
If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the number of instances to the next whole number. If this value is not specified, the default is 1.
SpotFleetLaunchSpecification.Builder tagSpecifications(Collection<SpotFleetTagSpecification> tagSpecifications)
The tags to apply during creation.
tagSpecifications
- The tags to apply during creation.SpotFleetLaunchSpecification.Builder tagSpecifications(SpotFleetTagSpecification... tagSpecifications)
The tags to apply during creation.
tagSpecifications
- The tags to apply during creation.SpotFleetLaunchSpecification.Builder tagSpecifications(Consumer<SpotFleetTagSpecification.Builder>... tagSpecifications)
The tags to apply during creation.
This is a convenience method 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 #tagSpecifications(List)
.tagSpecifications
- a consumer that will call methods on List.Builder
#tagSpecifications(List)
SpotFleetLaunchSpecification.Builder instanceRequirements(InstanceRequirements instanceRequirements)
The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with those attributes.
If you specify InstanceRequirements
, you can't specify InstanceTypes
.
instanceRequirements
- The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify
instance types with those attributes.
If you specify InstanceRequirements
, you can't specify InstanceTypes
.
default SpotFleetLaunchSpecification.Builder instanceRequirements(Consumer<InstanceRequirements.Builder> instanceRequirements)
The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with those attributes.
If you specify InstanceRequirements
, you can't specify InstanceTypes
.
InstanceRequirements.Builder
avoiding the need to create one manually via InstanceRequirements.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to instanceRequirements(InstanceRequirements)
.instanceRequirements
- a consumer that will call methods on InstanceRequirements.Builder
instanceRequirements(InstanceRequirements)
Copyright © 2022. All rights reserved.