CfnCodeDeployLambdaAliasUpdate

class aws_cdk.core.CfnCodeDeployLambdaAliasUpdate(*, application_name, deployment_group_name, after_allow_traffic_hook=None, before_allow_traffic_hook=None)

Bases: object

__init__(*, application_name, deployment_group_name, after_allow_traffic_hook=None, before_allow_traffic_hook=None)

To perform an AWS CodeDeploy deployment when the version changes on an AWS::Lambda::Alias resource, use the CodeDeployLambdaAliasUpdate update policy.

Parameters
  • application_name (str) – The name of the AWS CodeDeploy application.

  • deployment_group_name (str) – The name of the AWS CodeDeploy deployment group. This is where the traffic-shifting policy is set.

  • after_allow_traffic_hook (Optional[str]) – The name of the Lambda function to run after traffic routing completes.

  • before_allow_traffic_hook (Optional[str]) – The name of the Lambda function to run before traffic routing starts.

Attributes

after_allow_traffic_hook

The name of the Lambda function to run after traffic routing completes.

Return type

Optional[str]

application_name

The name of the AWS CodeDeploy application.

Return type

str

before_allow_traffic_hook

The name of the Lambda function to run before traffic routing starts.

Return type

Optional[str]

deployment_group_name

The name of the AWS CodeDeploy deployment group.

This is where the traffic-shifting policy is set.

Return type

str