CfnCodeDeployBlueGreenEcsAttributes
- class aws_cdk.CfnCodeDeployBlueGreenEcsAttributes(*, task_definitions, task_sets, traffic_routing)
Bases:
objectThe attributes of the ECS Service being deployed.
Type of the
CfnCodeDeployBlueGreenApplication.ecsAttributesproperty.- Parameters:
task_definitions (
Sequence[str]) – The logical IDs of the blue and green, respectively, AWS::ECS::TaskDefinition task definitions.task_sets (
Sequence[str]) – The logical IDs of the blue and green, respectively, AWS::ECS::TaskSet task sets.traffic_routing (
Union[CfnTrafficRouting,Dict[str,Any]]) – The traffic routing configuration.
- ExampleMetadata:
fixture=_generated
Example:
# 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_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" ) ) )
Attributes
- task_definitions
The logical IDs of the blue and green, respectively, AWS::ECS::TaskDefinition task definitions.
- task_sets
The logical IDs of the blue and green, respectively, AWS::ECS::TaskSet task sets.
- traffic_routing
The traffic routing configuration.