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
Syntax (vb)
Public Class CfnCapacityReservationFleet
Inherits CfnResource
Implements IInspectable
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
Cfn |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Cfn |
Used by jsii to construct an instance of this class from DeputyProps |
Cfn |
Properties
Allocation |
The strategy used by the Capacity Reservation Fleet to determine which of the specified instance types to use. |
Attr |
The ID of the Capacity Reservation Fleet. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
Cfn |
|
End |
The date and time at which the Capacity Reservation Fleet expires. |
Instance |
Indicates the type of instance launches that the Capacity Reservation Fleet accepts. |
Instance |
Information about the instance types for which to reserve the capacity. |
No |
Used to add an end date to a Capacity Reservation Fleet that has no end date and time. |
Remove |
Used to remove an end date from a Capacity Reservation Fleet that is configured to end automatically at a specific date and time. |
Tag |
The tags to assign to the Capacity Reservation Fleet. |
Tenancy | Indicates the tenancy of the Capacity Reservation Fleet. |
Total |
The total number of capacity units to be reserved by the Capacity Reservation Fleet. |
Methods
Inspect(Tree |
Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnCapacityReservationFleet(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnCapacityReservationFleet(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
CfnCapacityReservationFleet(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnCapacityReservationFleet(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
CfnCapacityReservationFleet(Construct, String, ICfnCapacityReservationFleetProps)
public CfnCapacityReservationFleet(Construct scope, string id, ICfnCapacityReservationFleetProps props = null)
Parameters
- scope Constructs.
Construct Scope in which this resource is defined.
- id System.
String Construct identifier for this resource (unique in its scope).
- props ICfn
Capacity Reservation Fleet Props Resource properties.
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
System.
AttrCapacityReservationFleetId
The ID of the Capacity Reservation Fleet.
public virtual string AttrCapacityReservationFleetId { get; }
Property Value
System.
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
System.
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.
Overrides
EndDate
The date and time at which the Capacity Reservation Fleet expires.
public virtual string EndDate { get; set; }
Property Value
System.
InstanceMatchCriteria
Indicates the type of instance launches that the Capacity Reservation Fleet accepts.
public virtual string InstanceMatchCriteria { get; set; }
Property Value
System.
InstanceTypeSpecifications
Information about the instance types for which to reserve the capacity.
public virtual object InstanceTypeSpecifications { get; set; }
Property Value
System.
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
System.
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
System.
TagSpecifications
The tags to assign to the Capacity Reservation Fleet.
public virtual object TagSpecifications { get; set; }
Property Value
System.
Tenancy
Indicates the tenancy of the Capacity Reservation Fleet.
public virtual string Tenancy { get; set; }
Property Value
System.
TotalTargetCapacity
The total number of capacity units to be reserved by the Capacity Reservation Fleet.
public virtual Nullable<double> TotalTargetCapacity { get; set; }
Property Value
System.
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector Tree
Inspector tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.
Collections. <System.Generic. IDictionary String , System.Object >
Returns
System.