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 (CfnTrafficRouting) – The traffic routing configuration.

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.

Return type

List[str]

task_sets

The logical IDs of the blue and green, respectively, AWS::ECS::TaskSet task sets.

Return type

List[str]

traffic_routing

The traffic routing configuration.

Return type

CfnTrafficRouting