LambdaDeploymentGroupProps
- class aws_cdk.aws_codedeploy.LambdaDeploymentGroupProps(*, alias, alarms=None, application=None, auto_rollback=None, deployment_config=None, deployment_group_name=None, ignore_poll_alarms_failure=None, post_hook=None, pre_hook=None, role=None)
Bases:
object
Construction properties for {@link LambdaDeploymentGroup}.
- Parameters:
alias (
Alias
) – Lambda Alias to shift traffic. Updating the version of the alias will trigger a CodeDeploy deployment. [disable-awslint:ref-via-interface] since we need to modify the alias CFN resource update policyalarms (
Optional
[Sequence
[IAlarm
]]) – The CloudWatch alarms associated with this Deployment Group. CodeDeploy will stop (and optionally roll back) a deployment if during it any of the alarms trigger. Alarms can also be added after the Deployment Group is created using the {@link #addAlarm} method. Default: []application (
Optional
[ILambdaApplication
]) – The reference to the CodeDeploy Lambda Application that this Deployment Group belongs to. Default: - One will be created for you.auto_rollback (
Union
[AutoRollbackConfig
,Dict
[str
,Any
],None
]) – The auto-rollback configuration for this Deployment Group. Default: - default AutoRollbackConfig.deployment_config (
Optional
[ILambdaDeploymentConfig
]) – The Deployment Configuration this Deployment Group uses. Default: LambdaDeploymentConfig.CANARY_10PERCENT_5MINUTESdeployment_group_name (
Optional
[str
]) – The physical, human-readable name of the CodeDeploy Deployment Group. Default: - An auto-generated name will be used.ignore_poll_alarms_failure (
Optional
[bool
]) – Whether to continue a deployment even if fetching the alarm status from CloudWatch failed. Default: falsepost_hook (
Optional
[IFunction
]) – The Lambda function to run after traffic routing starts. Default: - None.pre_hook (
Optional
[IFunction
]) – The Lambda function to run before traffic routing starts. Default: - None.role (
Optional
[IRole
]) – The service Role of this Deployment Group. Default: - A new Role will be created.
- ExampleMetadata:
infused
Example:
# application: codedeploy.LambdaApplication # alias: lambda.Alias config = codedeploy.CustomLambdaDeploymentConfig(self, "CustomConfig", type=codedeploy.CustomLambdaDeploymentConfigType.CANARY, interval=Duration.minutes(1), percentage=5 ) deployment_group = codedeploy.LambdaDeploymentGroup(self, "BlueGreenDeployment", application=application, alias=alias, deployment_config=config )
Attributes
- alarms
The CloudWatch alarms associated with this Deployment Group.
CodeDeploy will stop (and optionally roll back) a deployment if during it any of the alarms trigger.
Alarms can also be added after the Deployment Group is created using the {@link #addAlarm} method.
- alias
Lambda Alias to shift traffic. Updating the version of the alias will trigger a CodeDeploy deployment.
[disable-awslint:ref-via-interface] since we need to modify the alias CFN resource update policy
- application
The reference to the CodeDeploy Lambda Application that this Deployment Group belongs to.
- Default:
One will be created for you.
- auto_rollback
The auto-rollback configuration for this Deployment Group.
- Default:
default AutoRollbackConfig.
- deployment_config
The Deployment Configuration this Deployment Group uses.
- Default:
LambdaDeploymentConfig.CANARY_10PERCENT_5MINUTES
- deployment_group_name
The physical, human-readable name of the CodeDeploy Deployment Group.
- Default:
An auto-generated name will be used.
- ignore_poll_alarms_failure
Whether to continue a deployment even if fetching the alarm status from CloudWatch failed.
- Default:
false
- post_hook
The Lambda function to run after traffic routing starts.
- Default:
None.
- pre_hook
The Lambda function to run before traffic routing starts.
- Default:
None.
- role
The service Role of this Deployment Group.
- Default:
A new Role will be created.