CfnCodeDeployBlueGreenEcsAttributes

class aws_cdk.core.CfnCodeDeployBlueGreenEcsAttributes(*, task_definitions, task_sets, traffic_routing)

Bases: object

The attributes of the ECS Service being deployed.

Type of the {@link CfnCodeDeployBlueGreenApplication.ecsAttributes} property.

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.core 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.