

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::Athena::CapacityReservation CapacityAssignment
<a name="aws-properties-athena-capacityreservation-capacityassignment"></a>

A mapping between one or more workgroups and a capacity reservation.

## Syntax
<a name="aws-properties-athena-capacityreservation-capacityassignment-syntax"></a>

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

### JSON
<a name="aws-properties-athena-capacityreservation-capacityassignment-syntax.json"></a>

```
{
  "[WorkgroupNames](#cfn-athena-capacityreservation-capacityassignment-workgroupnames)" : {{[ String, ... ]}}
}
```

### YAML
<a name="aws-properties-athena-capacityreservation-capacityassignment-syntax.yaml"></a>

```
  [WorkgroupNames](#cfn-athena-capacityreservation-capacityassignment-workgroupnames): {{
    - String}}
```

## Properties
<a name="aws-properties-athena-capacityreservation-capacityassignment-properties"></a>

`WorkgroupNames`  <a name="cfn-athena-capacityreservation-capacityassignment-workgroupnames"></a>
The list of workgroup names for the capacity assignment.  
*Required*: Yes  
*Type*: Array of String  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)