ServiceConnectTestTrafficRulesProperty Struct
The test traffic routing configuration for Amazon ECS blue/green deployments.
This configuration allows you to define rules for routing specific traffic to the new service revision during the deployment process, allowing for safe testing before full production traffic shift.
For more information, see Service Connect for Amazon ECS blue/green deployments in the Amazon Elastic Container Service Developer Guide .
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 serviceConnectTestTrafficRulesProperty: ecs.CfnService.ServiceConnectTestTrafficRulesProperty = {
header: {
name: 'name',
// the properties below are optional
value: {
exact: 'exact',
},
},
};
Properties
headerIResolvable | CfnService.ServiceConnectTestTrafficRulesHeaderPropertyheadertyping.Union[IResolvable, ServiceConnectTestTrafficRulesHeaderProperty]headerIResolvableHeaderIResolvableHeaderinterface{}required#The HTTP header-based routing rules that determine which requests should be routed to the new service version during blue/green deployment testing.
These rules provide fine-grained control over test traffic routing based on request headers.