

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::EC2::SpotFleet GroupIdentifier
<a name="aws-properties-ec2-spotfleet-groupidentifier"></a>

Describes a security group.

## Syntax
<a name="aws-properties-ec2-spotfleet-groupidentifier-syntax"></a>

To declare this entity in your Amazon CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-ec2-spotfleet-groupidentifier-syntax.json"></a>

```
{
  "[GroupId](#cfn-ec2-spotfleet-groupidentifier-groupid)" : String
}
```

### YAML
<a name="aws-properties-ec2-spotfleet-groupidentifier-syntax.yaml"></a>

```
  [GroupId](#cfn-ec2-spotfleet-groupidentifier-groupid): String
```

## Properties
<a name="aws-properties-ec2-spotfleet-groupidentifier-properties"></a>

`GroupId`  <a name="cfn-ec2-spotfleet-groupidentifier-groupid"></a>
The ID of the security group.  
*Required*: Yes  
*Type*: String  
*Update requires*: [Replacement](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)