# VpcLatticeAdvancedConfigurationProperty

The advanced settings for VPC Lattice used in blue/green deployments.

Specify the alternate target group and listener rules required for traffic shifting during blue/green deployments. For more information, see [Required resources for Amazon ECS blue/green deployments](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/blue-green-deployment-implementation.html) in the *Amazon Elastic Container Service Developer Guide*.

- Source: Generated at build time
- Type last changed: v2.273.0 · 8 Oct 2026

## Example

TypeScript:

```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 vpcLatticeAdvancedConfigurationProperty: ecs.CfnService.VpcLatticeAdvancedConfigurationProperty = {
  alternateTargetGroupArn: 'alternateTargetGroupArn',
  productionListenerRule: 'productionListenerRule',
  testListenerRule: 'testListenerRule',
};
```

Python:

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

vpc_lattice_advanced_configuration_property = ecs.CfnService.VpcLatticeAdvancedConfigurationProperty(
    alternate_target_group_arn="alternateTargetGroupArn",
    production_listener_rule="productionListenerRule",
    test_listener_rule="testListenerRule"
)
```

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.services.ecs.*;

VpcLatticeAdvancedConfigurationProperty vpcLatticeAdvancedConfigurationProperty = VpcLatticeAdvancedConfigurationProperty.builder()
        .alternateTargetGroupArn("alternateTargetGroupArn")
        .productionListenerRule("productionListenerRule")
        .testListenerRule("testListenerRule")
        .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.AWS.ECS;

var vpcLatticeAdvancedConfigurationProperty = new VpcLatticeAdvancedConfigurationProperty {
    AlternateTargetGroupArn = "alternateTargetGroupArn",
    ProductionListenerRule = "productionListenerRule",
    TestListenerRule = "testListenerRule"
};
```

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 "github.com/aws/aws-cdk-go/awscdk"

vpcLatticeAdvancedConfigurationProperty := &VpcLatticeAdvancedConfigurationProperty{
	AlternateTargetGroupArn: jsii.String("alternateTargetGroupArn"),
	ProductionListenerRule: jsii.String("productionListenerRule"),
	TestListenerRule: jsii.String("testListenerRule"),
}
```

## Properties

- `alternateTargetGroupArn`: string — The Amazon Resource Name (ARN) of the alternate target group associated with the VPC Lattice Configuration for Amazon ECS blue/green deployments.

- `productionListenerRule`: string — The Amazon Resource Name (ARN) that identifies the production listener rule or listener for routing production traffic.

- `testListenerRule`: string — The Amazon Resource Name (ARN) that identifies the test listener rule or listener for routing test traffic.
