@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:05.891Z") @Stability(value=Stable) public class CfnEC2Fleet extends CfnResource implements IInspectable
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.*;
CfnEC2Fleet cfnEC2Fleet = CfnEC2Fleet.Builder.create(this, "MyCfnEC2Fleet")
.launchTemplateConfigs(List.of(FleetLaunchTemplateConfigRequestProperty.builder()
.launchTemplateSpecification(FleetLaunchTemplateSpecificationRequestProperty.builder()
.launchTemplateId("launchTemplateId")
.launchTemplateName("launchTemplateName")
.version("version")
.build())
.overrides(List.of(FleetLaunchTemplateOverridesRequestProperty.builder()
.availabilityZone("availabilityZone")
.instanceRequirements(InstanceRequirementsRequestProperty.builder()
.acceleratorCount(AcceleratorCountRequestProperty.builder()
.max(123)
.min(123)
.build())
.acceleratorManufacturers(List.of("acceleratorManufacturers"))
.acceleratorNames(List.of("acceleratorNames"))
.acceleratorTotalMemoryMiB(AcceleratorTotalMemoryMiBRequestProperty.builder()
.max(123)
.min(123)
.build())
.acceleratorTypes(List.of("acceleratorTypes"))
.bareMetal("bareMetal")
.baselineEbsBandwidthMbps(BaselineEbsBandwidthMbpsRequestProperty.builder()
.max(123)
.min(123)
.build())
.burstablePerformance("burstablePerformance")
.cpuManufacturers(List.of("cpuManufacturers"))
.excludedInstanceTypes(List.of("excludedInstanceTypes"))
.instanceGenerations(List.of("instanceGenerations"))
.localStorage("localStorage")
.localStorageTypes(List.of("localStorageTypes"))
.memoryGiBPerVCpu(MemoryGiBPerVCpuRequestProperty.builder()
.max(123)
.min(123)
.build())
.memoryMiB(MemoryMiBRequestProperty.builder()
.max(123)
.min(123)
.build())
.networkInterfaceCount(NetworkInterfaceCountRequestProperty.builder()
.max(123)
.min(123)
.build())
.onDemandMaxPricePercentageOverLowestPrice(123)
.requireHibernateSupport(false)
.spotMaxPricePercentageOverLowestPrice(123)
.totalLocalStorageGb(TotalLocalStorageGBRequestProperty.builder()
.max(123)
.min(123)
.build())
.vCpuCount(VCpuCountRangeRequestProperty.builder()
.max(123)
.min(123)
.build())
.build())
.instanceType("instanceType")
.maxPrice("maxPrice")
.placement(PlacementProperty.builder()
.affinity("affinity")
.availabilityZone("availabilityZone")
.groupName("groupName")
.hostId("hostId")
.hostResourceGroupArn("hostResourceGroupArn")
.partitionNumber(123)
.spreadDomain("spreadDomain")
.tenancy("tenancy")
.build())
.priority(123)
.subnetId("subnetId")
.weightedCapacity(123)
.build()))
.build()))
.targetCapacitySpecification(TargetCapacitySpecificationRequestProperty.builder()
.totalTargetCapacity(123)
// the properties below are optional
.defaultTargetCapacityType("defaultTargetCapacityType")
.onDemandTargetCapacity(123)
.spotTargetCapacity(123)
.targetCapacityUnitType("targetCapacityUnitType")
.build())
// the properties below are optional
.context("context")
.excessCapacityTerminationPolicy("excessCapacityTerminationPolicy")
.onDemandOptions(OnDemandOptionsRequestProperty.builder()
.allocationStrategy("allocationStrategy")
.capacityReservationOptions(CapacityReservationOptionsRequestProperty.builder()
.usageStrategy("usageStrategy")
.build())
.maxTotalPrice("maxTotalPrice")
.minTargetCapacity(123)
.singleAvailabilityZone(false)
.singleInstanceType(false)
.build())
.replaceUnhealthyInstances(false)
.spotOptions(SpotOptionsRequestProperty.builder()
.allocationStrategy("allocationStrategy")
.instanceInterruptionBehavior("instanceInterruptionBehavior")
.instancePoolsToUseCount(123)
.maintenanceStrategies(MaintenanceStrategiesProperty.builder()
.capacityRebalance(CapacityRebalanceProperty.builder()
.replacementStrategy("replacementStrategy")
.terminationDelay(123)
.build())
.build())
.maxTotalPrice("maxTotalPrice")
.minTargetCapacity(123)
.singleAvailabilityZone(false)
.singleInstanceType(false)
.build())
.tagSpecifications(List.of(TagSpecificationProperty.builder()
.resourceType("resourceType")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build()))
.terminateInstancesWithExpiration(false)
.type("type")
.validFrom("validFrom")
.validUntil("validUntil")
.build();
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnEC2Fleet(software.constructs.Construct scope,
String id,
CfnEC2FleetProps props)
Create a new `AWS::EC2::EC2Fleet`.
|
protected |
CfnEC2Fleet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnEC2Fleet(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrFleetId() |
protected Map<String,Object> |
getCfnProperties() |
String |
getContext()
`AWS::EC2::EC2Fleet.Context`.
|
String |
getExcessCapacityTerminationPolicy()
`AWS::EC2::EC2Fleet.ExcessCapacityTerminationPolicy`.
|
Object |
getLaunchTemplateConfigs()
`AWS::EC2::EC2Fleet.LaunchTemplateConfigs`.
|
Object |
getOnDemandOptions()
`AWS::EC2::EC2Fleet.OnDemandOptions`.
|
Object |
getReplaceUnhealthyInstances()
`AWS::EC2::EC2Fleet.ReplaceUnhealthyInstances`.
|
Object |
getSpotOptions()
`AWS::EC2::EC2Fleet.SpotOptions`.
|
Object |
getTagSpecifications()
`AWS::EC2::EC2Fleet.TagSpecifications`.
|
Object |
getTargetCapacitySpecification()
`AWS::EC2::EC2Fleet.TargetCapacitySpecification`.
|
Object |
getTerminateInstancesWithExpiration()
`AWS::EC2::EC2Fleet.TerminateInstancesWithExpiration`.
|
String |
getType()
`AWS::EC2::EC2Fleet.Type`.
|
String |
getValidFrom()
`AWS::EC2::EC2Fleet.ValidFrom`.
|
String |
getValidUntil()
`AWS::EC2::EC2Fleet.ValidUntil`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setContext(String value)
`AWS::EC2::EC2Fleet.Context`.
|
void |
setExcessCapacityTerminationPolicy(String value)
`AWS::EC2::EC2Fleet.ExcessCapacityTerminationPolicy`.
|
void |
setLaunchTemplateConfigs(IResolvable value)
`AWS::EC2::EC2Fleet.LaunchTemplateConfigs`.
|
void |
setLaunchTemplateConfigs(List<Object> value)
`AWS::EC2::EC2Fleet.LaunchTemplateConfigs`.
|
void |
setOnDemandOptions(CfnEC2Fleet.OnDemandOptionsRequestProperty value)
`AWS::EC2::EC2Fleet.OnDemandOptions`.
|
void |
setOnDemandOptions(IResolvable value)
`AWS::EC2::EC2Fleet.OnDemandOptions`.
|
void |
setReplaceUnhealthyInstances(Boolean value)
`AWS::EC2::EC2Fleet.ReplaceUnhealthyInstances`.
|
void |
setReplaceUnhealthyInstances(IResolvable value)
`AWS::EC2::EC2Fleet.ReplaceUnhealthyInstances`.
|
void |
setSpotOptions(CfnEC2Fleet.SpotOptionsRequestProperty value)
`AWS::EC2::EC2Fleet.SpotOptions`.
|
void |
setSpotOptions(IResolvable value)
`AWS::EC2::EC2Fleet.SpotOptions`.
|
void |
setTagSpecifications(IResolvable value)
`AWS::EC2::EC2Fleet.TagSpecifications`.
|
void |
setTagSpecifications(List<Object> value)
`AWS::EC2::EC2Fleet.TagSpecifications`.
|
void |
setTargetCapacitySpecification(CfnEC2Fleet.TargetCapacitySpecificationRequestProperty value)
`AWS::EC2::EC2Fleet.TargetCapacitySpecification`.
|
void |
setTargetCapacitySpecification(IResolvable value)
`AWS::EC2::EC2Fleet.TargetCapacitySpecification`.
|
void |
setTerminateInstancesWithExpiration(Boolean value)
`AWS::EC2::EC2Fleet.TerminateInstancesWithExpiration`.
|
void |
setTerminateInstancesWithExpiration(IResolvable value)
`AWS::EC2::EC2Fleet.TerminateInstancesWithExpiration`.
|
void |
setType(String value)
`AWS::EC2::EC2Fleet.Type`.
|
void |
setValidFrom(String value)
`AWS::EC2::EC2Fleet.ValidFrom`.
|
void |
setValidUntil(String value)
`AWS::EC2::EC2Fleet.ValidUntil`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnEC2Fleet(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnEC2Fleet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnEC2Fleet(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnEC2FleetProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrFleetId()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public String getContext()
@Stability(value=Stable)
public void setContext(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getExcessCapacityTerminationPolicy()
@Stability(value=Stable)
public void setExcessCapacityTerminationPolicy(@Nullable
String value)
@Stability(value=Stable) @NotNull public Object getLaunchTemplateConfigs()
@Stability(value=Stable)
public void setLaunchTemplateConfigs(@NotNull
IResolvable value)
@Stability(value=Stable)
public void setLaunchTemplateConfigs(@NotNull
List<Object> value)
@Stability(value=Stable) @Nullable public Object getOnDemandOptions()
@Stability(value=Stable)
public void setOnDemandOptions(@Nullable
CfnEC2Fleet.OnDemandOptionsRequestProperty value)
@Stability(value=Stable)
public void setOnDemandOptions(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getReplaceUnhealthyInstances()
@Stability(value=Stable)
public void setReplaceUnhealthyInstances(@Nullable
Boolean value)
@Stability(value=Stable)
public void setReplaceUnhealthyInstances(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getSpotOptions()
@Stability(value=Stable)
public void setSpotOptions(@Nullable
CfnEC2Fleet.SpotOptionsRequestProperty value)
@Stability(value=Stable)
public void setSpotOptions(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getTagSpecifications()
@Stability(value=Stable)
public void setTagSpecifications(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setTagSpecifications(@Nullable
List<Object> value)
@Stability(value=Stable) @NotNull public Object getTargetCapacitySpecification()
@Stability(value=Stable)
public void setTargetCapacitySpecification(@NotNull
CfnEC2Fleet.TargetCapacitySpecificationRequestProperty value)
@Stability(value=Stable)
public void setTargetCapacitySpecification(@NotNull
IResolvable value)
@Stability(value=Stable) @Nullable public Object getTerminateInstancesWithExpiration()
@Stability(value=Stable)
public void setTerminateInstancesWithExpiration(@Nullable
Boolean value)
@Stability(value=Stable)
public void setTerminateInstancesWithExpiration(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getType()
@Stability(value=Stable)
public void setType(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getValidFrom()
@Stability(value=Stable)
public void setValidFrom(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getValidUntil()
@Stability(value=Stable)
public void setValidUntil(@Nullable
String value)
Copyright © 2021. All rights reserved.