AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Describes a Capacity Reservation.
Namespace: Amazon.EC2.Model
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z
public class CapacityReservation
The CapacityReservation type exposes the following members
Name | Description | |
---|---|---|
CapacityReservation() |
Name | Type | Description | |
---|---|---|---|
AvailabilityZone | System.String |
Gets and sets the property AvailabilityZone. The Availability Zone in which the capacity is reserved. |
|
AvailabilityZoneId | System.String |
Gets and sets the property AvailabilityZoneId. The Availability Zone ID of the Capacity Reservation. |
|
AvailableInstanceCount | System.Int32 |
Gets and sets the property AvailableInstanceCount. The remaining capacity. Indicates the number of instances that can be launched in the Capacity Reservation. |
|
CapacityAllocations | System.Collections.Generic.List<Amazon.EC2.Model.CapacityAllocation> |
Gets and sets the property CapacityAllocations. Information about instance capacity usage. |
|
CapacityReservationArn | System.String |
Gets and sets the property CapacityReservationArn. The Amazon Resource Name (ARN) of the Capacity Reservation. |
|
CapacityReservationFleetId | System.String |
Gets and sets the property CapacityReservationFleetId. The ID of the Capacity Reservation Fleet to which the Capacity Reservation belongs. Only valid for Capacity Reservations that were created by a Capacity Reservation Fleet. |
|
CapacityReservationId | System.String |
Gets and sets the property CapacityReservationId. The ID of the Capacity Reservation. |
|
CreateDate | System.DateTime |
Gets and sets the property CreateDate. The date and time at which the Capacity Reservation was created. |
|
EbsOptimized | System.Boolean |
Gets and sets the property EbsOptimized. Indicates whether the Capacity Reservation supports EBS-optimized instances. 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 | System.DateTime |
Gets and sets the property EndDate.
The date and time at which the Capacity Reservation expires. 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 |
|
EndDateType | Amazon.EC2.EndDateType |
Gets and sets the property EndDateType. Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types:
|
|
EphemeralStorage | System.Boolean |
Gets and sets the property EphemeralStorage. Deprecated. |
|
InstanceMatchCriteria | Amazon.EC2.InstanceMatchCriteria |
Gets and sets the property InstanceMatchCriteria. Indicates the type of instance launches that the Capacity Reservation accepts. The options include:
|
|
InstancePlatform | Amazon.EC2.CapacityReservationInstancePlatform |
Gets and sets the property InstancePlatform. The type of operating system for which the Capacity Reservation reserves capacity. |
|
InstanceType | System.String |
Gets and sets the property InstanceType. The type of instance for which the Capacity Reservation reserves capacity. |
|
OutpostArn | System.String |
Gets and sets the property OutpostArn. The Amazon Resource Name (ARN) of the Outpost on which the Capacity Reservation was created. |
|
OwnerId | System.String |
Gets and sets the property OwnerId. The ID of the Amazon Web Services account that owns the Capacity Reservation. |
|
PlacementGroupArn | System.String |
Gets and sets the property PlacementGroupArn. The Amazon Resource Name (ARN) of the cluster placement group in which the Capacity Reservation was created. For more information, see Capacity Reservations for cluster placement groups in the Amazon EC2 User Guide. |
|
ReservationType | Amazon.EC2.CapacityReservationType |
Gets and sets the property ReservationType. The type of Capacity Reservation. |
|
StartDate | System.DateTime |
Gets and sets the property StartDate. The date and time at which the Capacity Reservation was started. |
|
State | Amazon.EC2.CapacityReservationState |
Gets and sets the property State. The current state of the Capacity Reservation. A Capacity Reservation can be in one of the following states:
|
|
Tags | System.Collections.Generic.List<Amazon.EC2.Model.Tag> |
Gets and sets the property Tags. Any tags assigned to the Capacity Reservation. |
|
Tenancy | Amazon.EC2.CapacityReservationTenancy |
Gets and sets the property Tenancy. Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:
|
|
TotalInstanceCount | System.Int32 |
Gets and sets the property TotalInstanceCount. The total number of instances for which the Capacity Reservation reserves capacity. |
|
UnusedReservationBillingOwnerId | System.String |
Gets and sets the property UnusedReservationBillingOwnerId. The ID of the Amazon Web Services account to which billing of the unused capacity of the Capacity Reservation is assigned. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5