CfnCodeDeployBlueGreenHookProps

class aws_cdk.core.CfnCodeDeployBlueGreenHookProps(*, applications, service_role, additional_options=None, lifecycle_event_hooks=None, traffic_routing_config=None)

Bases: object

Construction properties of {@link CfnCodeDeployBlueGreenHook}.

Parameters
  • applications (List[CfnCodeDeployBlueGreenApplication]) – Properties of the Amazon ECS applications being deployed.

  • service_role (str) – The IAM Role for CloudFormation to use to perform blue-green deployments.

  • additional_options (Optional[CfnCodeDeployBlueGreenAdditionalOptions]) – Additional options for the blue/green deployment. Default: - no additional options

  • lifecycle_event_hooks (Optional[CfnCodeDeployBlueGreenLifecycleEventHooks]) – Use lifecycle event hooks to specify a Lambda function that CodeDeploy can call to validate a deployment. You can use the same function or a different one for deployment lifecycle events. Following completion of the validation tests, the Lambda {@link CfnCodeDeployBlueGreenLifecycleEventHooks.afterAllowTraffic} function calls back CodeDeploy and delivers a result of ‘Succeeded’ or ‘Failed’. Default: - no lifecycle event hooks

  • traffic_routing_config (Optional[CfnTrafficRoutingConfig]) – Traffic routing configuration settings. Default: - time-based canary traffic shifting, with a 15% step percentage and a five minute bake time

Attributes

additional_options

Additional options for the blue/green deployment.

Default
  • no additional options

Return type

Optional[CfnCodeDeployBlueGreenAdditionalOptions]

applications

Properties of the Amazon ECS applications being deployed.

Return type

List[CfnCodeDeployBlueGreenApplication]

lifecycle_event_hooks

Use lifecycle event hooks to specify a Lambda function that CodeDeploy can call to validate a deployment.

You can use the same function or a different one for deployment lifecycle events. Following completion of the validation tests, the Lambda {@link CfnCodeDeployBlueGreenLifecycleEventHooks.afterAllowTraffic} function calls back CodeDeploy and delivers a result of ‘Succeeded’ or ‘Failed’.

Default
  • no lifecycle event hooks

Return type

Optional[CfnCodeDeployBlueGreenLifecycleEventHooks]

service_role

The IAM Role for CloudFormation to use to perform blue-green deployments.

Return type

str

traffic_routing_config

Traffic routing configuration settings.

Default
  • time-based canary traffic shifting, with a 15% step percentage and a five minute bake time

Return type

Optional[CfnTrafficRoutingConfig]