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
CfnCapacityReservationFleet(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnCapacityReservationFleet(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnCapacityReservationFleet(Construct, String, ICfnCapacityReservationFleetProps) |
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. |
CfnProperties | |
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
Inspect(TreeInspector) | 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.ByRefValue
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.DeputyBase.DeputyProps
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 ICfnCapacityReservationFleetProps
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.String
AttrCapacityReservationFleetId
The ID of the Capacity Reservation Fleet.
public virtual string AttrCapacityReservationFleetId { get; }
Property Value
System.String
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.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
EndDate
The date and time at which the Capacity Reservation Fleet expires.
public virtual string EndDate { get; set; }
Property Value
System.String
InstanceMatchCriteria
Indicates the type of instance launches that the Capacity Reservation Fleet accepts.
public virtual string InstanceMatchCriteria { get; set; }
Property Value
System.String
InstanceTypeSpecifications
Information about the instance types for which to reserve the capacity.
public virtual object InstanceTypeSpecifications { get; set; }
Property Value
System.Object
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.Object
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.Object
TagSpecifications
The tags to assign to the Capacity Reservation Fleet.
public virtual object TagSpecifications { get; set; }
Property Value
System.Object
Tenancy
Indicates the tenancy of the Capacity Reservation Fleet.
public virtual string Tenancy { get; set; }
Property Value
System.String
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.Nullable<System.Double>
Methods
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.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>