

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::Events::Rule NetworkConfiguration
<a name="aws-properties-events-rule-networkconfiguration"></a>

This structure specifies the network configuration for an ECS task.

## Syntax
<a name="aws-properties-events-rule-networkconfiguration-syntax"></a>

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

### JSON
<a name="aws-properties-events-rule-networkconfiguration-syntax.json"></a>

```
{
  "[AwsVpcConfiguration](#cfn-events-rule-networkconfiguration-awsvpcconfiguration)" : AwsVpcConfiguration
}
```

### YAML
<a name="aws-properties-events-rule-networkconfiguration-syntax.yaml"></a>

```
  [AwsVpcConfiguration](#cfn-events-rule-networkconfiguration-awsvpcconfiguration): 
    AwsVpcConfiguration
```

## Properties
<a name="aws-properties-events-rule-networkconfiguration-properties"></a>

`AwsVpcConfiguration`  <a name="cfn-events-rule-networkconfiguration-awsvpcconfiguration"></a>
Use this structure to specify the VPC subnets and security groups for the task, and whether a public IP address is to be used. This structure is relevant only for ECS tasks that use the `awsvpc` network mode.  
*Required*: No  
*Type*: [AwsVpcConfiguration](aws-properties-events-rule-awsvpcconfiguration.md)  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

## See also
<a name="aws-properties-events-rule-networkconfiguration--seealso"></a>
+  [NetworkConfiguration](https://docs.amazonaws.cn/eventbridge/latest/APIReference/API_NetworkConfiguration.html) 