# NetworkConfigurationProperty

The network configuration for a task or service.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const networkConfigurationProperty: ecs.CfnTaskSet.NetworkConfigurationProperty = {
  awsVpcConfiguration: {
    subnets: ['subnets'],

    // the properties below are optional
    assignPublicIp: 'assignPublicIp',
    securityGroups: ['securityGroups'],
  },
};
```

## Properties

- `awsVpcConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTaskSet.AwsVpcConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.CfnTaskSet.AwsVpcConfigurationProperty.html) — The VPC subnets and security groups that are associated with a task.

  > All specified subnets and security groups must be from the same VPC.
