Class CfnCapacityReservationFleet
Creates a new Capacity Reservation Fleet with the specified attributes.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnCapacityReservationFleet : CfnResource, IInspectable, ICapacityReservationFleetRef, IConstruct, IDependable, IEnvironmentAware, ITaggableV2
Syntax (vb)
Public Class CfnCapacityReservationFleet Inherits CfnResource Implements IInspectable, ICapacityReservationFleetRef, IConstruct, IDependable, IEnvironmentAware, ITaggableV2
Remarks
For more information, see Capacity Reservation Fleets in the Amazon EC2 User Guide .
CloudformationResource: AWS::EC2::CapacityReservationFleet
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 cfnCapacityReservationFleet = new CfnCapacityReservationFleet(this, "MyCfnCapacityReservationFleet", new CfnCapacityReservationFleetProps {
AllocationStrategy = "allocationStrategy",
EndDate = "endDate",
InstanceMatchCriteria = "instanceMatchCriteria",
InstanceTypeSpecifications = new [] { new InstanceTypeSpecificationProperty {
AvailabilityZone = "availabilityZone",
AvailabilityZoneId = "availabilityZoneId",
EbsOptimized = false,
InstancePlatform = "instancePlatform",
InstanceType = "instanceType",
Priority = 123,
Weight = 123
} },
NoRemoveEndDate = false,
RemoveEndDate = false,
TagSpecifications = new [] { new TagSpecificationProperty {
ResourceType = "resourceType",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
} },
Tenancy = "tenancy",
TotalTargetCapacity = 123
});
Synopsis
Constructors
| CfnCapacityReservationFleet(Construct, string, ICfnCapacityReservationFleetProps?) | Create a new |
Properties
| AllocationStrategy | The strategy used by the Capacity Reservation Fleet to determine which of the specified instance types to use. |
| AttrCapacityReservationFleetId | The ID of the Capacity Reservation Fleet. |
| CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
| CapacityReservationFleetRef | A reference to a CapacityReservationFleet resource. |
| CdkTagManager | Tag Manager which manages the tags for this resource. |
| CfnProperties | Creates a new Capacity Reservation Fleet with the specified attributes. |
| EndDate | The date and time at which the Capacity Reservation Fleet expires. |
| InstanceMatchCriteria | Indicates the type of instance launches that the Capacity Reservation Fleet accepts. |
| InstanceTypeSpecifications | Information about the instance types for which to reserve the capacity. |
| NoRemoveEndDate | Used to add an end date to a Capacity Reservation Fleet that has no end date and time. |
| RemoveEndDate | Used to remove an end date from a Capacity Reservation Fleet that is configured to end automatically at a specific date and time. |
| TagSpecifications | The tags to assign to the Capacity Reservation Fleet. |
| Tenancy | Indicates the tenancy of the Capacity Reservation Fleet. |
| TotalTargetCapacity | The total number of capacity units to be reserved by the Capacity Reservation Fleet. |
Methods
| ArnForCapacityReservationFleet(ICapacityReservationFleetRef) | Creates a new Capacity Reservation Fleet with the specified attributes. |
| FromCapacityReservationFleetId(Construct, string, string) | Creates a new ICapacityReservationFleetRef from a capacityReservationFleetId. |
| Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
| IsCfnCapacityReservationFleet(object) | Checks whether the given object is a CfnCapacityReservationFleet. |
| RenderProperties(IDictionary<string, object>) | Creates a new Capacity Reservation Fleet with the specified attributes. |
Constructors
CfnCapacityReservationFleet(Construct, string, ICfnCapacityReservationFleetProps?)
Create a new AWS::EC2::CapacityReservationFleet.
public CfnCapacityReservationFleet(Construct scope, string id, ICfnCapacityReservationFleetProps? props = null)
Parameters
- scope Construct
Scope in which this resource is defined.
- id string
Construct identifier for this resource (unique in its scope).
- props ICfnCapacityReservationFleetProps
Resource properties.
Remarks
For more information, see Capacity Reservation Fleets in the Amazon EC2 User Guide .
CloudformationResource: AWS::EC2::CapacityReservationFleet
ExampleMetadata: fixture=_generated
Properties
AllocationStrategy
The strategy used by the Capacity Reservation Fleet to determine which of the specified instance types to use.
public virtual string? AllocationStrategy { get; set; }
Property Value
Remarks
For more information, see Capacity Reservation Fleets in the Amazon EC2 User Guide .
CloudformationResource: AWS::EC2::CapacityReservationFleet
ExampleMetadata: fixture=_generated
AttrCapacityReservationFleetId
The ID of the Capacity Reservation Fleet.
public virtual string AttrCapacityReservationFleetId { get; }
Property Value
Remarks
CloudformationAttribute: CapacityReservationFleetId
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
Remarks
For more information, see Capacity Reservation Fleets in the Amazon EC2 User Guide .
CloudformationResource: AWS::EC2::CapacityReservationFleet
ExampleMetadata: fixture=_generated
CapacityReservationFleetRef
A reference to a CapacityReservationFleet resource.
public virtual ICapacityReservationFleetReference CapacityReservationFleetRef { get; }
Property Value
ICapacityReservationFleetReference
Remarks
For more information, see Capacity Reservation Fleets in the Amazon EC2 User Guide .
CloudformationResource: AWS::EC2::CapacityReservationFleet
ExampleMetadata: fixture=_generated
CdkTagManager
Tag Manager which manages the tags for this resource.
public virtual TagManager CdkTagManager { get; }
Property Value
Remarks
For more information, see Capacity Reservation Fleets in the Amazon EC2 User Guide .
CloudformationResource: AWS::EC2::CapacityReservationFleet
ExampleMetadata: fixture=_generated
CfnProperties
Creates a new Capacity Reservation Fleet with the specified attributes.
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
Remarks
For more information, see Capacity Reservation Fleets in the Amazon EC2 User Guide .
CloudformationResource: AWS::EC2::CapacityReservationFleet
ExampleMetadata: fixture=_generated
EndDate
The date and time at which the Capacity Reservation Fleet expires.
public virtual string? EndDate { get; set; }
Property Value
Remarks
For more information, see Capacity Reservation Fleets in the Amazon EC2 User Guide .
CloudformationResource: AWS::EC2::CapacityReservationFleet
ExampleMetadata: fixture=_generated
InstanceMatchCriteria
Indicates the type of instance launches that the Capacity Reservation Fleet accepts.
public virtual string? InstanceMatchCriteria { get; set; }
Property Value
Remarks
For more information, see Capacity Reservation Fleets in the Amazon EC2 User Guide .
CloudformationResource: AWS::EC2::CapacityReservationFleet
ExampleMetadata: fixture=_generated
InstanceTypeSpecifications
Information about the instance types for which to reserve the capacity.
public virtual object? InstanceTypeSpecifications { get; set; }
Property Value
Remarks
Type union: either IResolvable or (either IResolvable or CfnCapacityReservationFleet.IInstanceTypeSpecificationProperty)[]
NoRemoveEndDate
Used to add an end date to a Capacity Reservation Fleet that has no end date and time.
public virtual object? NoRemoveEndDate { get; set; }
Property Value
Remarks
Type union: either bool or IResolvable
RemoveEndDate
Used to remove an end date from a Capacity Reservation Fleet that is configured to end automatically at a specific date and time.
public virtual object? RemoveEndDate { get; set; }
Property Value
Remarks
Type union: either bool or IResolvable
TagSpecifications
The tags to assign to the Capacity Reservation Fleet.
public virtual CfnCapacityReservationFleet.ITagSpecificationProperty[]? TagSpecifications { get; set; }
Property Value
Remarks
For more information, see Capacity Reservation Fleets in the Amazon EC2 User Guide .
CloudformationResource: AWS::EC2::CapacityReservationFleet
ExampleMetadata: fixture=_generated
Tenancy
Indicates the tenancy of the Capacity Reservation Fleet.
public virtual string? Tenancy { get; set; }
Property Value
Remarks
For more information, see Capacity Reservation Fleets in the Amazon EC2 User Guide .
CloudformationResource: AWS::EC2::CapacityReservationFleet
ExampleMetadata: fixture=_generated
TotalTargetCapacity
The total number of capacity units to be reserved by the Capacity Reservation Fleet.
public virtual double? TotalTargetCapacity { get; set; }
Property Value
Remarks
For more information, see Capacity Reservation Fleets in the Amazon EC2 User Guide .
CloudformationResource: AWS::EC2::CapacityReservationFleet
ExampleMetadata: fixture=_generated
Methods
ArnForCapacityReservationFleet(ICapacityReservationFleetRef)
Creates a new Capacity Reservation Fleet with the specified attributes.
public static string ArnForCapacityReservationFleet(ICapacityReservationFleetRef resource)
Parameters
- resource ICapacityReservationFleetRef
Returns
Remarks
For more information, see Capacity Reservation Fleets in the Amazon EC2 User Guide .
CloudformationResource: AWS::EC2::CapacityReservationFleet
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 cfnCapacityReservationFleet = new CfnCapacityReservationFleet(this, "MyCfnCapacityReservationFleet", new CfnCapacityReservationFleetProps {
AllocationStrategy = "allocationStrategy",
EndDate = "endDate",
InstanceMatchCriteria = "instanceMatchCriteria",
InstanceTypeSpecifications = new [] { new InstanceTypeSpecificationProperty {
AvailabilityZone = "availabilityZone",
AvailabilityZoneId = "availabilityZoneId",
EbsOptimized = false,
InstancePlatform = "instancePlatform",
InstanceType = "instanceType",
Priority = 123,
Weight = 123
} },
NoRemoveEndDate = false,
RemoveEndDate = false,
TagSpecifications = new [] { new TagSpecificationProperty {
ResourceType = "resourceType",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
} },
Tenancy = "tenancy",
TotalTargetCapacity = 123
});
FromCapacityReservationFleetId(Construct, string, string)
Creates a new ICapacityReservationFleetRef from a capacityReservationFleetId.
public static ICapacityReservationFleetRef FromCapacityReservationFleetId(Construct scope, string id, string capacityReservationFleetId)
Parameters
Returns
Remarks
For more information, see Capacity Reservation Fleets in the Amazon EC2 User Guide .
CloudformationResource: AWS::EC2::CapacityReservationFleet
ExampleMetadata: fixture=_generated
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
Remarks
For more information, see Capacity Reservation Fleets in the Amazon EC2 User Guide .
CloudformationResource: AWS::EC2::CapacityReservationFleet
ExampleMetadata: fixture=_generated
IsCfnCapacityReservationFleet(object)
Checks whether the given object is a CfnCapacityReservationFleet.
public static bool IsCfnCapacityReservationFleet(object x)
Parameters
- x object
Returns
Remarks
For more information, see Capacity Reservation Fleets in the Amazon EC2 User Guide .
CloudformationResource: AWS::EC2::CapacityReservationFleet
ExampleMetadata: fixture=_generated
RenderProperties(IDictionary<string, object>)
Creates a new Capacity Reservation Fleet with the specified attributes.
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
Remarks
For more information, see Capacity Reservation Fleets in the Amazon EC2 User Guide .
CloudformationResource: AWS::EC2::CapacityReservationFleet
ExampleMetadata: fixture=_generated