VpcLatticeAdvancedConfigurationProperty Struct
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 in the Amazon Elastic Container Service Developer Guide.
| Source | |
|---|---|
| Type last changed |
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 vpcLatticeAdvancedConfigurationProperty: ecs.CfnService.VpcLatticeAdvancedConfigurationProperty = {
alternateTargetGroupArn: 'alternateTargetGroupArn',
productionListenerRule: 'productionListenerRule',
testListenerRule: 'testListenerRule',
};
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
// 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();
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"
};
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
alternateTargetGroupArnoptionalstringalternate_target_group_arnoptionalstralternateTargetGroupArnoptionalStringAlternateTargetGroupArnoptionalstringAlternateTargetGroupArnoptional*string #The Amazon Resource Name (ARN) of the alternate target group associated with the VPC Lattice Configuration for Amazon ECS blue/green deployments.
productionListenerRuleoptionalstringproduction_listener_ruleoptionalstrproductionListenerRuleoptionalStringProductionListenerRuleoptionalstringProductionListenerRuleoptional*string #The Amazon Resource Name (ARN) that identifies the production listener rule or listener for routing production traffic.
testListenerRuleoptionalstringtest_listener_ruleoptionalstrtestListenerRuleoptionalStringTestListenerRuleoptionalstringTestListenerRuleoptional*string #The Amazon Resource Name (ARN) that identifies the test listener rule or listener for routing test traffic.