This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html). # AWS::EC2::EC2Fleet Placement Describes the placement of an instance. ## Syntax To declare this entity in your CloudFormation template, use the following syntax: ### JSON ``` { "[Affinity](#cfn-ec2-ec2fleet-placement-affinity)" : {{String}}, "[AvailabilityZone](#cfn-ec2-ec2fleet-placement-availabilityzone)" : {{String}}, "[GroupName](#cfn-ec2-ec2fleet-placement-groupname)" : {{String}}, "[HostId](#cfn-ec2-ec2fleet-placement-hostid)" : {{String}}, "[HostResourceGroupArn](#cfn-ec2-ec2fleet-placement-hostresourcegrouparn)" : {{String}}, "[PartitionNumber](#cfn-ec2-ec2fleet-placement-partitionnumber)" : {{Integer}}, "[SpreadDomain](#cfn-ec2-ec2fleet-placement-spreaddomain)" : {{String}}, "[Tenancy](#cfn-ec2-ec2fleet-placement-tenancy)" : {{String}} } ``` ### YAML ``` [Affinity](#cfn-ec2-ec2fleet-placement-affinity): {{String}} [AvailabilityZone](#cfn-ec2-ec2fleet-placement-availabilityzone): {{String}} [GroupName](#cfn-ec2-ec2fleet-placement-groupname): {{String}} [HostId](#cfn-ec2-ec2fleet-placement-hostid): {{String}} [HostResourceGroupArn](#cfn-ec2-ec2fleet-placement-hostresourcegrouparn): {{String}} [PartitionNumber](#cfn-ec2-ec2fleet-placement-partitionnumber): {{Integer}} [SpreadDomain](#cfn-ec2-ec2fleet-placement-spreaddomain): {{String}} [Tenancy](#cfn-ec2-ec2fleet-placement-tenancy): {{String}} ``` ## Properties `Affinity` The affinity setting for the instance on the Dedicated Host. This parameter is not supported for [CreateFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet) or [ImportInstance](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportInstance.html). *Required*: No *Type*: String *Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) `AvailabilityZone` The Availability Zone of the instance. On input, you can specify `AvailabilityZone` or `AvailabilityZoneId`, but not both. If you specify neither one, Amazon EC2 automatically selects an Availability Zone for you. This parameter is not supported for [CreateFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet). *Required*: No *Type*: String *Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) `GroupName` The name of the placement group that the instance is in. On input, you can specify `GroupId` or `GroupName`, but not both. *Required*: No *Type*: String *Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) `HostId` The ID of the Dedicated Host on which the instance resides. This parameter is not supported for [CreateFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet) or [ImportInstance](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportInstance.html). *Required*: No *Type*: String *Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) `HostResourceGroupArn` The ARN of the host resource group in which to launch the instances. On input, if you specify this parameter, either omit the **Tenancy** parameter or set it to `host`. This parameter is not supported for [CreateFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet). *Required*: No *Type*: String *Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) `PartitionNumber` The number of the partition that the instance is in. Valid only if the placement group strategy is set to `partition`. This parameter is not supported for [CreateFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet). *Required*: No *Type*: Integer *Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) `SpreadDomain` Reserved for future use. *Required*: No *Type*: String *Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) `Tenancy` The tenancy of the instance. An instance with a tenancy of `dedicated` runs on single-tenant hardware. This parameter is not supported for [CreateFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet). The `host` tenancy is not supported for [ImportInstance](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportInstance.html) or for T3 instances that are configured for the `unlimited` CPU credit option. *Required*: No *Type*: String *Allowed values*: `default | dedicated | host` *Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

AltStyle によって変換されたページ (->オリジナル) /