Class CfnCapacityReservationProps
Properties for defining a CfnCapacityReservation
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnCapacityReservationProps : Object, ICfnCapacityReservationProps
Syntax (vb)
Public Class CfnCapacityReservationProps
Inherits Object
Implements ICfnCapacityReservationProps
Remarks
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 cfnCapacityReservationProps = new CfnCapacityReservationProps {
AvailabilityZone = "availabilityZone",
InstanceCount = 123,
InstancePlatform = "instancePlatform",
InstanceType = "instanceType",
// the properties below are optional
EbsOptimized = false,
EndDate = "endDate",
EndDateType = "endDateType",
EphemeralStorage = false,
InstanceMatchCriteria = "instanceMatchCriteria",
OutPostArn = "outPostArn",
PlacementGroupArn = "placementGroupArn",
TagSpecifications = new [] { new TagSpecificationProperty {
ResourceType = "resourceType",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
} },
Tenancy = "tenancy"
};
Synopsis
Constructors
CfnCapacityReservationProps() |
Properties
AvailabilityZone | The Availability Zone in which to create the Capacity Reservation. |
EbsOptimized | Indicates whether the Capacity Reservation supports EBS-optimized instances. |
EndDate | The date and time at which the Capacity Reservation expires. |
EndDateType | Indicates the way in which the Capacity Reservation ends. |
EphemeralStorage | Deprecated.. |
InstanceCount | The number of instances for which to reserve capacity. |
InstanceMatchCriteria | Indicates the type of instance launches that the Capacity Reservation accepts. The options include:. |
InstancePlatform | The type of operating system for which to reserve capacity. |
InstanceType | The instance type for which to reserve capacity. |
OutPostArn | The Amazon Resource Name (ARN) of the Outpost on which to create the Capacity Reservation. |
PlacementGroupArn | The Amazon Resource Name (ARN) of the cluster placement group in which to create the Capacity Reservation. |
TagSpecifications | The tags to apply to the Capacity Reservation during launch. |
Tenancy | Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:. |
Constructors
CfnCapacityReservationProps()
public CfnCapacityReservationProps()
Properties
AvailabilityZone
The Availability Zone in which to create the Capacity Reservation.
public string AvailabilityZone { get; set; }
Property Value
System.String
Remarks
EbsOptimized
Indicates whether the Capacity Reservation supports EBS-optimized instances.
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 an EBS- optimized instance.
EndDate
The date and time at which the Capacity Reservation expires.
public string EndDate { get; set; }
Property Value
System.String
Remarks
When a Capacity Reservation expires, the reserved capacity is released and you can no longer launch instances into it. The Capacity Reservation's state changes to expired
when it reaches its end date and time.
You must provide an EndDate
value if EndDateType
is limited
. Omit EndDate
if EndDateType
is unlimited
.
If the EndDateType
is limited
, the Capacity Reservation is cancelled within an hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.
EndDateType
Indicates the way in which the Capacity Reservation ends.
public string EndDateType { get; set; }
Property Value
System.String
Remarks
A Capacity Reservation can have one of the following end types:
EphemeralStorage
Deprecated..
public object EphemeralStorage { get; set; }
Property Value
System.Object
Remarks
InstanceCount
The number of instances for which to reserve capacity.
public double InstanceCount { get; set; }
Property Value
System.Double
Remarks
InstanceMatchCriteria
Indicates the type of instance launches that the Capacity Reservation accepts. The options include:.
public string InstanceMatchCriteria { get; set; }
Property Value
System.String
Remarks
InstancePlatform
The type of operating system for which to reserve capacity.
public string InstancePlatform { get; set; }
Property Value
System.String
Remarks
InstanceType
The instance type for which to reserve capacity.
public string InstanceType { get; set; }
Property Value
System.String
Remarks
For more information, see Instance types in the Amazon EC2 User Guide .
OutPostArn
The Amazon Resource Name (ARN) of the Outpost on which to create the Capacity Reservation.
public string OutPostArn { get; set; }
Property Value
System.String
Remarks
PlacementGroupArn
The Amazon Resource Name (ARN) of the cluster placement group in which to create the Capacity Reservation.
public string PlacementGroupArn { get; set; }
Property Value
System.String
Remarks
For more information, see Capacity Reservations for cluster placement groups in the Amazon EC2 User Guide .
TagSpecifications
The tags to apply to the Capacity Reservation during launch.
public object TagSpecifications { get; set; }
Property Value
System.Object
Remarks
Tenancy
Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:.
public string Tenancy { get; set; }
Property Value
System.String