# CfnCodeDeployBlueGreenApplication

The application actually being deployed.

Type of the `CfnCodeDeployBlueGreenHookProps.applications` property.

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

## Example

TypeScript:

```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 cfnCodeDeployBlueGreenApplication: cdk.CfnCodeDeployBlueGreenApplication = {
  ecsAttributes: {
    taskDefinitions: ['taskDefinitions'],
    taskSets: ['taskSets'],
    trafficRouting: {
      prodTrafficRoute: {
        logicalId: 'logicalId',
        type: 'type',
      },
      targetGroups: ['targetGroups'],
      testTrafficRoute: {
        logicalId: 'logicalId',
        type: 'type',
      },
    },
  },
  target: {
    logicalId: 'logicalId',
    type: 'type',
  },
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk

cfn_code_deploy_blue_green_application = cdk.CfnCodeDeployBlueGreenApplication(
    ecs_attributes=cdk.CfnCodeDeployBlueGreenEcsAttributes(
        task_definitions=["taskDefinitions"],
        task_sets=["taskSets"],
        traffic_routing=cdk.CfnTrafficRouting(
            prod_traffic_route=cdk.CfnTrafficRoute(
                logical_id="logicalId",
                type="type"
            ),
            target_groups=["targetGroups"],
            test_traffic_route=cdk.CfnTrafficRoute(
                logical_id="logicalId",
                type="type"
            )
        )
    ),
    target=cdk.CfnCodeDeployBlueGreenApplicationTarget(
        logical_id="logicalId",
        type="type"
    )
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;

CfnCodeDeployBlueGreenApplication cfnCodeDeployBlueGreenApplication = CfnCodeDeployBlueGreenApplication.builder()
        .ecsAttributes(CfnCodeDeployBlueGreenEcsAttributes.builder()
                .taskDefinitions(List.of("taskDefinitions"))
                .taskSets(List.of("taskSets"))
                .trafficRouting(CfnTrafficRouting.builder()
                        .prodTrafficRoute(CfnTrafficRoute.builder()
                                .logicalId("logicalId")
                                .type("type")
                                .build())
                        .targetGroups(List.of("targetGroups"))
                        .testTrafficRoute(CfnTrafficRoute.builder()
                                .logicalId("logicalId")
                                .type("type")
                                .build())
                        .build())
                .build())
        .target(CfnCodeDeployBlueGreenApplicationTarget.builder()
                .logicalId("logicalId")
                .type("type")
                .build())
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;

var cfnCodeDeployBlueGreenApplication = new CfnCodeDeployBlueGreenApplication {
    EcsAttributes = new CfnCodeDeployBlueGreenEcsAttributes {
        TaskDefinitions = new [] { "taskDefinitions" },
        TaskSets = new [] { "taskSets" },
        TrafficRouting = new CfnTrafficRouting {
            ProdTrafficRoute = new CfnTrafficRoute {
                LogicalId = "logicalId",
                Type = "type"
            },
            TargetGroups = new [] { "targetGroups" },
            TestTrafficRoute = new CfnTrafficRoute {
                LogicalId = "logicalId",
                Type = "type"
            }
        }
    },
    Target = new CfnCodeDeployBlueGreenApplicationTarget {
        LogicalId = "logicalId",
        Type = "type"
    }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import cdk "github.com/aws/aws-cdk-go/awscdk"

cfnCodeDeployBlueGreenApplication := &CfnCodeDeployBlueGreenApplication{
	EcsAttributes: &CfnCodeDeployBlueGreenEcsAttributes{
		TaskDefinitions: []*string{
			jsii.String("taskDefinitions"),
		},
		TaskSets: []*string{
			jsii.String("taskSets"),
		},
		TrafficRouting: &CfnTrafficRouting{
			ProdTrafficRoute: &CfnTrafficRoute{
				LogicalId: jsii.String("logicalId"),
				Type: jsii.String("type"),
			},
			TargetGroups: []*string{
				jsii.String("targetGroups"),
			},
			TestTrafficRoute: &CfnTrafficRoute{
				LogicalId: jsii.String("logicalId"),
				Type: jsii.String("type"),
			},
		},
	},
	Target: &CfnCodeDeployBlueGreenApplicationTarget{
		LogicalId: jsii.String("logicalId"),
		Type: jsii.String("type"),
	},
}
```

## Properties

- `ecsAttributes`: [CfnCodeDeployBlueGreenEcsAttributes](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnCodeDeployBlueGreenEcsAttributes.html) (required) — The detailed attributes of the deployed target.

- `target`: [CfnCodeDeployBlueGreenApplicationTarget](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnCodeDeployBlueGreenApplicationTarget.html) (required) — The target that is being deployed.
