# AWS::EC2::CapacityReservationFleet Resource Type definition for AWS::EC2::CapacityReservationFleet ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{
    "Type" : "AWS::EC2::CapacityReservationFleet",
    "Properties" : {
        "AllocationStrategy" : String,
        "TagSpecifications" : [ TagSpecification, ... ],
        "InstanceTypeSpecifications" : [ InstanceTypeSpecification, ... ],
        "TotalTargetCapacity" : Integer,
        "EndDate" : String,
        "InstanceMatchCriteria" : String,
        "Tenancy" : String,
        "RemoveEndDate" : Boolean,
        "NoRemoveEndDate" : Boolean
    }
}
### YAML
Type: AWS::EC2::CapacityReservationFleet
Properties:
    AllocationStrategy: String
    TagSpecifications: 
      - TagSpecification
    InstanceTypeSpecifications: 
      - InstanceTypeSpecification
    TotalTargetCapacity: Integer
    EndDate: String
    InstanceMatchCriteria: String
    Tenancy: String
    RemoveEndDate: Boolean
    NoRemoveEndDate: Boolean
## Properties #### AllocationStrategy _Required_: No _Type_: String _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### TagSpecifications _Required_: No _Type_: List of TagSpecification _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### InstanceTypeSpecifications _Required_: No _Type_: List of InstanceTypeSpecification _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### TotalTargetCapacity _Required_: No _Type_: Integer _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### EndDate _Required_: No _Type_: String _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### InstanceMatchCriteria _Required_: No _Type_: String _Allowed Values_: open _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### Tenancy _Required_: No _Type_: String _Allowed Values_: default _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### RemoveEndDate _Required_: No _Type_: Boolean _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### NoRemoveEndDate _Required_: No _Type_: Boolean _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) ## Return Values ### Ref When you pass the logical ID of this resource to the intrinsic `Ref` function, Ref returns the CapacityReservationFleetId. ### Fn::GetAtt The `Fn::GetAtt` intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values. For more information about using the `Fn::GetAtt` intrinsic function, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html). #### CapacityReservationFleetId Returns the CapacityReservationFleetId value.