@Stability(value=Stable)
public static interface CfnEC2Fleet.TargetCapacitySpecificationRequestProperty
extends software.amazon.jsii.JsiiSerializable
You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O. If the request type is maintain , you can specify a target capacity of 0 and add capacity later.
TargetCapacitySpecificationRequest is a property of the AWS::EC2::EC2Fleet resource.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
TargetCapacitySpecificationRequestProperty targetCapacitySpecificationRequestProperty = TargetCapacitySpecificationRequestProperty.builder()
.totalTargetCapacity(123)
// the properties below are optional
.defaultTargetCapacityType("defaultTargetCapacityType")
.onDemandTargetCapacity(123)
.spotTargetCapacity(123)
.targetCapacityUnitType("targetCapacityUnitType")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnEC2Fleet.TargetCapacitySpecificationRequestProperty.Builder
A builder for
CfnEC2Fleet.TargetCapacitySpecificationRequestProperty |
static class |
CfnEC2Fleet.TargetCapacitySpecificationRequestProperty.Jsii$Proxy
An implementation for
CfnEC2Fleet.TargetCapacitySpecificationRequestProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnEC2Fleet.TargetCapacitySpecificationRequestProperty.Builder |
builder() |
default String |
getDefaultTargetCapacityType()
The default `TotalTargetCapacity` , which is either `Spot` or `On-Demand` .
|
default Number |
getOnDemandTargetCapacity()
The number of On-Demand units to request.
|
default Number |
getSpotTargetCapacity()
The number of Spot units to request.
|
default String |
getTargetCapacityUnitType()
The unit for the target capacity.
|
Number |
getTotalTargetCapacity()
The number of units to request, filled using `DefaultTargetCapacityType` .
|
@Stability(value=Stable) @NotNull Number getTotalTargetCapacity()
@Stability(value=Stable) @Nullable default String getDefaultTargetCapacityType()
@Stability(value=Stable) @Nullable default Number getOnDemandTargetCapacity()
@Stability(value=Stable) @Nullable default Number getSpotTargetCapacity()
@Stability(value=Stable) @Nullable default String getTargetCapacityUnitType()
Default: units (translates to number of instances)
@Stability(value=Stable) static CfnEC2Fleet.TargetCapacitySpecificationRequestProperty.Builder builder()
Copyright © 2022. All rights reserved.