Class CfnCapacityReservationFleet.InstanceTypeSpecificationProperty
Specifies information about an instance type to use in a Capacity Reservation Fleet.
Inheritance
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class InstanceTypeSpecificationProperty : Object, CfnCapacityReservationFleet.IInstanceTypeSpecificationProperty
Syntax (vb)
Public Class InstanceTypeSpecificationProperty
Inherits Object
Implements CfnCapacityReservationFleet.IInstanceTypeSpecificationProperty
Remarks
InstanceTypeSpecification
is a property of the AWS::EC2::CapacityReservationFleet resource.
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 instanceTypeSpecificationProperty = new InstanceTypeSpecificationProperty {
AvailabilityZone = "availabilityZone",
AvailabilityZoneId = "availabilityZoneId",
EbsOptimized = false,
InstancePlatform = "instancePlatform",
InstanceType = "instanceType",
Priority = 123,
Weight = 123
};
Synopsis
Constructors
InstanceTypeSpecificationProperty() |
Properties
AvailabilityZone | The Availability Zone in which the Capacity Reservation Fleet reserves the capacity. |
AvailabilityZoneId | The ID of the Availability Zone in which the Capacity Reservation Fleet reserves the capacity. |
EbsOptimized | Indicates whether the Capacity Reservation Fleet supports EBS-optimized instances types. |
InstancePlatform | The type of operating system for which the Capacity Reservation Fleet reserves capacity. |
InstanceType | The instance type for which the Capacity Reservation Fleet reserves capacity. |
Priority | The priority to assign to the instance type. |
Weight | The number of capacity units provided by the specified instance type. |
Constructors
InstanceTypeSpecificationProperty()
public InstanceTypeSpecificationProperty()
Properties
AvailabilityZone
The Availability Zone in which the Capacity Reservation Fleet reserves the capacity.
public string AvailabilityZone { get; set; }
Property Value
System.String
Remarks
A Capacity Reservation Fleet can't span Availability Zones. All instance type specifications that you specify for the Fleet must use the same Availability Zone.
AvailabilityZoneId
The ID of the Availability Zone in which the Capacity Reservation Fleet reserves the capacity.
public string AvailabilityZoneId { get; set; }
Property Value
System.String
Remarks
A Capacity Reservation Fleet can't span Availability Zones. All instance type specifications that you specify for the Fleet must use the same Availability Zone.
EbsOptimized
Indicates whether the Capacity Reservation Fleet supports EBS-optimized instances types.
public object EbsOptimized { get; set; }
Property Value
System.Object
Remarks
This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using EBS-optimized instance types.
InstancePlatform
The type of operating system for which the Capacity Reservation Fleet reserves capacity.
public string InstancePlatform { get; set; }
Property Value
System.String
Remarks
InstanceType
The instance type for which the Capacity Reservation Fleet reserves capacity.
public string InstanceType { get; set; }
Property Value
System.String
Remarks
Priority
The priority to assign to the instance type.
public Nullable<double> Priority { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
This value is used to determine which of the instance types specified for the Fleet should be prioritized for use. A lower value indicates a high priority. For more information, see Instance type priority in the Amazon EC2 User Guide .
Weight
The number of capacity units provided by the specified instance type.
public Nullable<double> Weight { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
This value, together with the total target capacity that you specify for the Fleet determine the number of instances for which the Fleet reserves capacity. Both values are based on units that make sense for your workload. For more information, see Total target capacity in the Amazon EC2 User Guide.
Valid Range: Minimum value of 0.001
. Maximum value of 99.999
.