Show / Hide Table of Contents

Interface CfnEC2Fleet.ITargetCapacitySpecificationRequestProperty

Specifies the number of units to request for an EC2 Fleet.

Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnEC2Fleet.ITargetCapacitySpecificationRequestProperty
Syntax (vb)
Public Interface CfnEC2Fleet.ITargetCapacitySpecificationRequestProperty
Remarks

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-targetcapacityspecificationrequest.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.EC2;

             var targetCapacitySpecificationRequestProperty = new TargetCapacitySpecificationRequestProperty {
                 TotalTargetCapacity = 123,

                 // the properties below are optional
                 DefaultTargetCapacityType = "defaultTargetCapacityType",
                 OnDemandTargetCapacity = 123,
                 SpotTargetCapacity = 123,
                 TargetCapacityUnitType = "targetCapacityUnitType"
             };

Synopsis

Properties

DefaultTargetCapacityType

The default target capacity type.

OnDemandTargetCapacity

The number of On-Demand units to request.

SpotTargetCapacity

The number of Spot units to request.

TargetCapacityUnitType

The unit for the target capacity. You can specify this parameter only when using attributed-based instance type selection.

TotalTargetCapacity

The number of units to request, filled using the default target capacity type.

Properties

DefaultTargetCapacityType

The default target capacity type.

string? DefaultTargetCapacityType { get; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-targetcapacityspecificationrequest.html#cfn-ec2-ec2fleet-targetcapacityspecificationrequest-defaulttargetcapacitytype

OnDemandTargetCapacity

The number of On-Demand units to request.

double? OnDemandTargetCapacity { get; }
Property Value

double?

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-targetcapacityspecificationrequest.html#cfn-ec2-ec2fleet-targetcapacityspecificationrequest-ondemandtargetcapacity

SpotTargetCapacity

The number of Spot units to request.

double? SpotTargetCapacity { get; }
Property Value

double?

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-targetcapacityspecificationrequest.html#cfn-ec2-ec2fleet-targetcapacityspecificationrequest-spottargetcapacity

TargetCapacityUnitType

The unit for the target capacity. You can specify this parameter only when using attributed-based instance type selection.

string? TargetCapacityUnitType { get; }
Property Value

string

Remarks

Default: units (the number of instances)

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-targetcapacityspecificationrequest.html#cfn-ec2-ec2fleet-targetcapacityspecificationrequest-targetcapacityunittype

TotalTargetCapacity

The number of units to request, filled using the default target capacity type.

double TotalTargetCapacity { get; }
Property Value

double

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-targetcapacityspecificationrequest.html#cfn-ec2-ec2fleet-targetcapacityspecificationrequest-totaltargetcapacity

Back to top Generated by DocFX