CfnCodeDeployLambdaAliasUpdate

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

Bases: object

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.

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_lambda_alias_update = cdk.CfnCodeDeployLambdaAliasUpdate(
    application_name="applicationName",
    deployment_group_name="deploymentGroupName",

    # the properties below are optional
    after_allow_traffic_hook="afterAllowTrafficHook",
    before_allow_traffic_hook="beforeAllowTrafficHook"
)

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