@Stability(value=Stable) public static final class CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnSpotFleet.SpotFleetLaunchSpecificationProperty>
CfnSpotFleet.SpotFleetLaunchSpecificationProperty| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Builder imageId(String imageId)
CfnSpotFleet.SpotFleetLaunchSpecificationProperty.getImageId()imageId - The ID of the AMI. This parameter is required.this@Stability(value=Stable) public CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Builder blockDeviceMappings(IResolvable blockDeviceMappings)
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@Stability(value=Stable) public CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Builder blockDeviceMappings(List<? extends Object> blockDeviceMappings)
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@Stability(value=Stable) public CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Builder ebsOptimized(Boolean ebsOptimized)
CfnSpotFleet.SpotFleetLaunchSpecificationProperty.getEbsOptimized()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
this@Stability(value=Stable) public CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Builder ebsOptimized(IResolvable ebsOptimized)
CfnSpotFleet.SpotFleetLaunchSpecificationProperty.getEbsOptimized()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
this@Stability(value=Stable) public CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Builder iamInstanceProfile(CfnSpotFleet.IamInstanceProfileSpecificationProperty iamInstanceProfile)
iamInstanceProfile - The IAM instance profile.this@Stability(value=Stable) public CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Builder iamInstanceProfile(IResolvable iamInstanceProfile)
iamInstanceProfile - The IAM instance profile.this@Stability(value=Stable) public CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Builder instanceRequirements(CfnSpotFleet.InstanceRequirementsRequestProperty 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 specifyInstanceTypes.
this@Stability(value=Stable) public CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Builder instanceRequirements(IResolvable 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 specifyInstanceTypes.
this@Stability(value=Stable) public CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Builder instanceType(String instanceType)
CfnSpotFleet.SpotFleetLaunchSpecificationProperty.getInstanceType()instanceType - The instance type.this@Stability(value=Stable) public CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Builder kernelId(String kernelId)
CfnSpotFleet.SpotFleetLaunchSpecificationProperty.getKernelId()kernelId - The ID of the kernel.this@Stability(value=Stable) public CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Builder keyName(String keyName)
CfnSpotFleet.SpotFleetLaunchSpecificationProperty.getKeyName()keyName - The name of the key pair.this@Stability(value=Stable) public CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Builder monitoring(CfnSpotFleet.SpotFleetMonitoringProperty monitoring)
CfnSpotFleet.SpotFleetLaunchSpecificationProperty.getMonitoring()monitoring - Enable or disable monitoring for the instances.this@Stability(value=Stable) public CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Builder monitoring(IResolvable monitoring)
CfnSpotFleet.SpotFleetLaunchSpecificationProperty.getMonitoring()monitoring - Enable or disable monitoring for the instances.this@Stability(value=Stable) public CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Builder networkInterfaces(IResolvable networkInterfaces)
CfnSpotFleet.SpotFleetLaunchSpecificationProperty.getNetworkInterfaces()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.
SpotFleetLaunchSpecificationcurrently does not support Elastic Fabric Adapter (EFA). To specify an EFA, you must use LaunchTemplateConfig .
this@Stability(value=Stable) public CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Builder networkInterfaces(List<? extends Object> networkInterfaces)
CfnSpotFleet.SpotFleetLaunchSpecificationProperty.getNetworkInterfaces()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.
SpotFleetLaunchSpecificationcurrently does not support Elastic Fabric Adapter (EFA). To specify an EFA, you must use LaunchTemplateConfig .
this@Stability(value=Stable) public CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Builder placement(CfnSpotFleet.SpotPlacementProperty placement)
CfnSpotFleet.SpotFleetLaunchSpecificationProperty.getPlacement()placement - The placement information.this@Stability(value=Stable) public CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Builder placement(IResolvable placement)
CfnSpotFleet.SpotFleetLaunchSpecificationProperty.getPlacement()placement - The placement information.this@Stability(value=Stable) public CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Builder ramdiskId(String ramdiskId)
CfnSpotFleet.SpotFleetLaunchSpecificationProperty.getRamdiskId()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 AWS Resource Center and search for the kernel ID.this@Stability(value=Stable) public CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Builder securityGroups(IResolvable securityGroups)
CfnSpotFleet.SpotFleetLaunchSpecificationProperty.getSecurityGroups()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@Stability(value=Stable) public CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Builder securityGroups(List<? extends Object> securityGroups)
CfnSpotFleet.SpotFleetLaunchSpecificationProperty.getSecurityGroups()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@Stability(value=Stable) public CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Builder spotPrice(String spotPrice)
CfnSpotFleet.SpotFleetLaunchSpecificationProperty.getSpotPrice()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 .this@Stability(value=Stable) public CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Builder subnetId(String subnetId)
CfnSpotFleet.SpotFleetLaunchSpecificationProperty.getSubnetId()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".this@Stability(value=Stable) public CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Builder tagSpecifications(IResolvable tagSpecifications)
CfnSpotFleet.SpotFleetLaunchSpecificationProperty.getTagSpecifications()tagSpecifications - The tags to apply during creation.this@Stability(value=Stable) public CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Builder tagSpecifications(List<? extends Object> tagSpecifications)
CfnSpotFleet.SpotFleetLaunchSpecificationProperty.getTagSpecifications()tagSpecifications - The tags to apply during creation.this@Stability(value=Stable) public CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Builder userData(String userData)
CfnSpotFleet.SpotFleetLaunchSpecificationProperty.getUserData()userData - The Base64-encoded user data that instances use when starting up.this@Stability(value=Stable) public CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Builder weightedCapacity(Number weightedCapacity)
CfnSpotFleet.SpotFleetLaunchSpecificationProperty.getWeightedCapacity()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.
this@Stability(value=Stable) public CfnSpotFleet.SpotFleetLaunchSpecificationProperty build()
build in interface software.amazon.jsii.Builder<CfnSpotFleet.SpotFleetLaunchSpecificationProperty>CfnSpotFleet.SpotFleetLaunchSpecificationPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.