# CfnCodeDeployBlueGreenEcsAttributes

The attributes of the ECS Service being deployed.

Type of the `CfnCodeDeployBlueGreenApplication.ecsAttributes` property.

- Source: [`core/lib/cfn-codedeploy-blue-green-hook.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/core/lib/cfn-codedeploy-blue-green-hook.ts#L213)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const cfnCodeDeployBlueGreenEcsAttributes: cdk.CfnCodeDeployBlueGreenEcsAttributes = {
  taskDefinitions: ['taskDefinitions'],
  taskSets: ['taskSets'],
  trafficRouting: {
    prodTrafficRoute: {
      logicalId: 'logicalId',
      type: 'type',
    },
    targetGroups: ['targetGroups'],
    testTrafficRoute: {
      logicalId: 'logicalId',
      type: 'type',
    },
  },
};
```

## Properties

- `taskDefinitions`: string[] (required) — The logical IDs of the blue and green, respectively, AWS::ECS::TaskDefinition task definitions.

- `taskSets`: string[] (required) — The logical IDs of the blue and green, respectively, AWS::ECS::TaskSet task sets.

- `trafficRouting`: [CfnTrafficRouting](/cdk/api/v2/docs/aws-cdk-lib.CfnTrafficRouting.html) (required) — The traffic routing configuration.
