CfnDeploymentGroupPropsMixin
- class aws_cdk.mixins_preview.aws_codedeploy.mixins.CfnDeploymentGroupPropsMixin(props, *, strategy=None)
Bases:
MixinThe
AWS::CodeDeploy::DeploymentGroupresource creates an AWS CodeDeploy deployment group that specifies which instances your application revisions are deployed to, along with other deployment options.For more information, see CreateDeploymentGroup in the CodeDeploy API Reference . .. epigraph:
Amazon ECS blue/green deployments through CodeDeploy do not use the ``AWS::CodeDeploy::DeploymentGroup`` resource. To perform Amazon ECS blue/green deployments, use the ``AWS::CodeDeploy::BlueGreen`` hook. See `Perform Amazon ECS blue/green deployments through CodeDeploy using CloudFormation <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/blue-green.html>`_ for more information.
- See:
- CloudformationResource:
AWS::CodeDeploy::DeploymentGroup
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_codedeploy import mixins as codedeploy_mixins cfn_deployment_group_props_mixin = codedeploy_mixins.CfnDeploymentGroupPropsMixin(codedeploy_mixins.CfnDeploymentGroupMixinProps( alarm_configuration=codedeploy_mixins.CfnDeploymentGroupPropsMixin.AlarmConfigurationProperty( alarms=[codedeploy_mixins.CfnDeploymentGroupPropsMixin.AlarmProperty( name="name" )], enabled=False, ignore_poll_alarm_failure=False ), application_name="applicationName", auto_rollback_configuration=codedeploy_mixins.CfnDeploymentGroupPropsMixin.AutoRollbackConfigurationProperty( enabled=False, events=["events"] ), auto_scaling_groups=["autoScalingGroups"], blue_green_deployment_configuration=codedeploy_mixins.CfnDeploymentGroupPropsMixin.BlueGreenDeploymentConfigurationProperty( deployment_ready_option=codedeploy_mixins.CfnDeploymentGroupPropsMixin.DeploymentReadyOptionProperty( action_on_timeout="actionOnTimeout", wait_time_in_minutes=123 ), green_fleet_provisioning_option=codedeploy_mixins.CfnDeploymentGroupPropsMixin.GreenFleetProvisioningOptionProperty( action="action" ), terminate_blue_instances_on_deployment_success=codedeploy_mixins.CfnDeploymentGroupPropsMixin.BlueInstanceTerminationOptionProperty( action="action", termination_wait_time_in_minutes=123 ) ), deployment=codedeploy_mixins.CfnDeploymentGroupPropsMixin.DeploymentProperty( description="description", ignore_application_stop_failures=False, revision=codedeploy_mixins.CfnDeploymentGroupPropsMixin.RevisionLocationProperty( git_hub_location=codedeploy_mixins.CfnDeploymentGroupPropsMixin.GitHubLocationProperty( commit_id="commitId", repository="repository" ), revision_type="revisionType", s3_location=codedeploy_mixins.CfnDeploymentGroupPropsMixin.S3LocationProperty( bucket="bucket", bundle_type="bundleType", e_tag="eTag", key="key", version="version" ) ) ), deployment_config_name="deploymentConfigName", deployment_group_name="deploymentGroupName", deployment_style=codedeploy_mixins.CfnDeploymentGroupPropsMixin.DeploymentStyleProperty( deployment_option="deploymentOption", deployment_type="deploymentType" ), ec2_tag_filters=[codedeploy_mixins.CfnDeploymentGroupPropsMixin.EC2TagFilterProperty( key="key", type="type", value="value" )], ec2_tag_set=codedeploy_mixins.CfnDeploymentGroupPropsMixin.EC2TagSetProperty( ec2_tag_set_list=[codedeploy_mixins.CfnDeploymentGroupPropsMixin.EC2TagSetListObjectProperty( ec2_tag_group=[codedeploy_mixins.CfnDeploymentGroupPropsMixin.EC2TagFilterProperty( key="key", type="type", value="value" )] )] ), ecs_services=[codedeploy_mixins.CfnDeploymentGroupPropsMixin.ECSServiceProperty( cluster_name="clusterName", service_name="serviceName" )], load_balancer_info=codedeploy_mixins.CfnDeploymentGroupPropsMixin.LoadBalancerInfoProperty( elb_info_list=[codedeploy_mixins.CfnDeploymentGroupPropsMixin.ELBInfoProperty( name="name" )], target_group_info_list=[codedeploy_mixins.CfnDeploymentGroupPropsMixin.TargetGroupInfoProperty( name="name" )], target_group_pair_info_list=[codedeploy_mixins.CfnDeploymentGroupPropsMixin.TargetGroupPairInfoProperty( prod_traffic_route=codedeploy_mixins.CfnDeploymentGroupPropsMixin.TrafficRouteProperty( listener_arns=["listenerArns"] ), target_groups=[codedeploy_mixins.CfnDeploymentGroupPropsMixin.TargetGroupInfoProperty( name="name" )], test_traffic_route=codedeploy_mixins.CfnDeploymentGroupPropsMixin.TrafficRouteProperty( listener_arns=["listenerArns"] ) )] ), on_premises_instance_tag_filters=[codedeploy_mixins.CfnDeploymentGroupPropsMixin.TagFilterProperty( key="key", type="type", value="value" )], on_premises_tag_set=codedeploy_mixins.CfnDeploymentGroupPropsMixin.OnPremisesTagSetProperty( on_premises_tag_set_list=[codedeploy_mixins.CfnDeploymentGroupPropsMixin.OnPremisesTagSetListObjectProperty( on_premises_tag_group=[codedeploy_mixins.CfnDeploymentGroupPropsMixin.TagFilterProperty( key="key", type="type", value="value" )] )] ), outdated_instances_strategy="outdatedInstancesStrategy", service_role_arn="serviceRoleArn", tags=[CfnTag( key="key", value="value" )], termination_hook_enabled=False, trigger_configurations=[codedeploy_mixins.CfnDeploymentGroupPropsMixin.TriggerConfigProperty( trigger_events=["triggerEvents"], trigger_name="triggerName", trigger_target_arn="triggerTargetArn" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::CodeDeploy::DeploymentGroup.- Parameters:
props (
Union[CfnDeploymentGroupMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['alarmConfiguration', 'applicationName', 'autoRollbackConfiguration', 'autoScalingGroups', 'blueGreenDeploymentConfiguration', 'deployment', 'deploymentConfigName', 'deploymentGroupName', 'deploymentStyle', 'ec2TagFilters', 'ec2TagSet', 'ecsServices', 'loadBalancerInfo', 'onPremisesInstanceTagFilters', 'onPremisesTagSet', 'outdatedInstancesStrategy', 'serviceRoleArn', 'tags', 'terminationHookEnabled', 'triggerConfigurations']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
AlarmConfigurationProperty
- class CfnDeploymentGroupPropsMixin.AlarmConfigurationProperty(*, alarms=None, enabled=None, ignore_poll_alarm_failure=None)
Bases:
objectThe
AlarmConfigurationproperty type configures CloudWatch alarms for an AWS CodeDeploy deployment group.AlarmConfigurationis a property of the DeploymentGroup resource.- Parameters:
alarms (
Union[IResolvable,Sequence[Union[IResolvable,AlarmProperty,Dict[str,Any]]],None]) – A list of alarms configured for the deployment or deployment group. A maximum of 10 alarms can be added.enabled (
Union[bool,IResolvable,None]) – Indicates whether the alarm configuration is enabled.ignore_poll_alarm_failure (
Union[bool,IResolvable,None]) – Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from Amazon CloudWatch . The default value isfalse. -true: The deployment proceeds even if alarm status information can’t be retrieved from CloudWatch . -false: The deployment stops if alarm status information can’t be retrieved from CloudWatch .
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codedeploy import mixins as codedeploy_mixins alarm_configuration_property = codedeploy_mixins.CfnDeploymentGroupPropsMixin.AlarmConfigurationProperty( alarms=[codedeploy_mixins.CfnDeploymentGroupPropsMixin.AlarmProperty( name="name" )], enabled=False, ignore_poll_alarm_failure=False )
Attributes
- alarms
A list of alarms configured for the deployment or deployment group.
A maximum of 10 alarms can be added.
- enabled
Indicates whether the alarm configuration is enabled.
- ignore_poll_alarm_failure
Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from Amazon CloudWatch .
The default value is
false.true: The deployment proceeds even if alarm status information can’t be retrieved from CloudWatch .false: The deployment stops if alarm status information can’t be retrieved from CloudWatch .
AlarmProperty
- class CfnDeploymentGroupPropsMixin.AlarmProperty(*, name=None)
Bases:
objectThe
Alarmproperty type specifies a CloudWatch alarm to use for an AWS CodeDeploy deployment group.The
Alarmproperty of the CodeDeploy DeploymentGroup AlarmConfiguration property contains a list ofAlarmproperty types.- Parameters:
name (
Optional[str]) – The name of the alarm. Maximum length is 255 characters. Each alarm name can be used only once in a list of alarms.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codedeploy import mixins as codedeploy_mixins alarm_property = codedeploy_mixins.CfnDeploymentGroupPropsMixin.AlarmProperty( name="name" )
Attributes
- name
The name of the alarm.
Maximum length is 255 characters. Each alarm name can be used only once in a list of alarms.
AutoRollbackConfigurationProperty
- class CfnDeploymentGroupPropsMixin.AutoRollbackConfigurationProperty(*, enabled=None, events=None)
Bases:
objectThe
AutoRollbackConfigurationproperty type configures automatic rollback for an AWS CodeDeploy deployment group when a deployment is not completed successfully.For more information, see Automatic Rollbacks in the AWS CodeDeploy User Guide .
AutoRollbackConfigurationis a property of the DeploymentGroup resource.- Parameters:
enabled (
Union[bool,IResolvable,None]) – Indicates whether a defined automatic rollback configuration is currently enabled.events (
Optional[Sequence[str]]) – The event type or types that trigger a rollback. Valid values areDEPLOYMENT_FAILURE,DEPLOYMENT_STOP_ON_ALARM, orDEPLOYMENT_STOP_ON_REQUEST.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codedeploy import mixins as codedeploy_mixins auto_rollback_configuration_property = codedeploy_mixins.CfnDeploymentGroupPropsMixin.AutoRollbackConfigurationProperty( enabled=False, events=["events"] )
Attributes
- enabled
Indicates whether a defined automatic rollback configuration is currently enabled.
- events
The event type or types that trigger a rollback.
Valid values are
DEPLOYMENT_FAILURE,DEPLOYMENT_STOP_ON_ALARM, orDEPLOYMENT_STOP_ON_REQUEST.
BlueGreenDeploymentConfigurationProperty
- class CfnDeploymentGroupPropsMixin.BlueGreenDeploymentConfigurationProperty(*, deployment_ready_option=None, green_fleet_provisioning_option=None, terminate_blue_instances_on_deployment_success=None)
Bases:
objectInformation about blue/green deployment options for a deployment group.
- Parameters:
deployment_ready_option (
Union[IResolvable,DeploymentReadyOptionProperty,Dict[str,Any],None]) – Information about the action to take when newly provisioned instances are ready to receive traffic in a blue/green deployment.green_fleet_provisioning_option (
Union[IResolvable,GreenFleetProvisioningOptionProperty,Dict[str,Any],None]) – Information about how instances are provisioned for a replacement environment in a blue/green deployment.terminate_blue_instances_on_deployment_success (
Union[IResolvable,BlueInstanceTerminationOptionProperty,Dict[str,Any],None]) – Information about whether to terminate instances in the original fleet during a blue/green deployment.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codedeploy import mixins as codedeploy_mixins blue_green_deployment_configuration_property = codedeploy_mixins.CfnDeploymentGroupPropsMixin.BlueGreenDeploymentConfigurationProperty( deployment_ready_option=codedeploy_mixins.CfnDeploymentGroupPropsMixin.DeploymentReadyOptionProperty( action_on_timeout="actionOnTimeout", wait_time_in_minutes=123 ), green_fleet_provisioning_option=codedeploy_mixins.CfnDeploymentGroupPropsMixin.GreenFleetProvisioningOptionProperty( action="action" ), terminate_blue_instances_on_deployment_success=codedeploy_mixins.CfnDeploymentGroupPropsMixin.BlueInstanceTerminationOptionProperty( action="action", termination_wait_time_in_minutes=123 ) )
Attributes
- deployment_ready_option
Information about the action to take when newly provisioned instances are ready to receive traffic in a blue/green deployment.
- green_fleet_provisioning_option
Information about how instances are provisioned for a replacement environment in a blue/green deployment.
- terminate_blue_instances_on_deployment_success
Information about whether to terminate instances in the original fleet during a blue/green deployment.
BlueInstanceTerminationOptionProperty
- class CfnDeploymentGroupPropsMixin.BlueInstanceTerminationOptionProperty(*, action=None, termination_wait_time_in_minutes=None)
Bases:
objectInformation about whether instances in the original environment are terminated when a blue/green deployment is successful.
BlueInstanceTerminationOptiondoes not apply to Lambda deployments.- Parameters:
action (
Optional[str]) – The action to take on instances in the original environment after a successful blue/green deployment. -TERMINATE: Instances are terminated after a specified wait time. -KEEP_ALIVE: Instances are left running after they are deregistered from the load balancer and removed from the deployment group.termination_wait_time_in_minutes (
Union[int,float,None]) – For an Amazon EC2 deployment, the number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment. For an Amazon ECS deployment, the number of minutes before deleting the original (blue) task set. During an Amazon ECS deployment, CodeDeploy shifts traffic from the original (blue) task set to a replacement (green) task set. The maximum setting is 2880 minutes (2 days).
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codedeploy import mixins as codedeploy_mixins blue_instance_termination_option_property = codedeploy_mixins.CfnDeploymentGroupPropsMixin.BlueInstanceTerminationOptionProperty( action="action", termination_wait_time_in_minutes=123 )
Attributes
- action
The action to take on instances in the original environment after a successful blue/green deployment.
TERMINATE: Instances are terminated after a specified wait time.KEEP_ALIVE: Instances are left running after they are deregistered from the load balancer and removed from the deployment group.
- termination_wait_time_in_minutes
For an Amazon EC2 deployment, the number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment.
For an Amazon ECS deployment, the number of minutes before deleting the original (blue) task set. During an Amazon ECS deployment, CodeDeploy shifts traffic from the original (blue) task set to a replacement (green) task set.
The maximum setting is 2880 minutes (2 days).
DeploymentProperty
- class CfnDeploymentGroupPropsMixin.DeploymentProperty(*, description=None, ignore_application_stop_failures=None, revision=None)
Bases:
objectDeploymentis a property of the DeploymentGroup resource that specifies an AWS CodeDeploy application revision to be deployed to instances in the deployment group. If you specify an application revision, your target revision is deployed as soon as the provisioning process is complete.- Parameters:
description (
Optional[str]) – A comment about the deployment.ignore_application_stop_failures (
Union[bool,IResolvable,None]) – If true, then if anApplicationStop,BeforeBlockTraffic, orAfterBlockTrafficdeployment lifecycle event to an instance fails, then the deployment continues to the next deployment lifecycle event. For example, ifApplicationStopfails, the deployment continues with DownloadBundle. IfBeforeBlockTrafficfails, the deployment continues withBlockTraffic. IfAfterBlockTrafficfails, the deployment continues withApplicationStop. If false or not specified, then if a lifecycle event fails during a deployment to an instance, that deployment fails. If deployment to that instance is part of an overall deployment and the number of healthy hosts is not less than the minimum number of healthy hosts, then a deployment to the next instance is attempted. During a deployment, the AWS CodeDeploy agent runs the scripts specified forApplicationStop,BeforeBlockTraffic, andAfterBlockTrafficin the AppSpec file from the previous successful deployment. (All other scripts are run from the AppSpec file in the current deployment.) If one of these scripts contains an error and does not run successfully, the deployment can fail. If the cause of the failure is a script from the last successful deployment that will never run successfully, create a new deployment and useignoreApplicationStopFailuresto specify that theApplicationStop,BeforeBlockTraffic, andAfterBlockTrafficfailures should be ignored.revision (
Union[IResolvable,RevisionLocationProperty,Dict[str,Any],None]) – Information about the location of stored application artifacts and the service from which to retrieve them.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codedeploy import mixins as codedeploy_mixins deployment_property = codedeploy_mixins.CfnDeploymentGroupPropsMixin.DeploymentProperty( description="description", ignore_application_stop_failures=False, revision=codedeploy_mixins.CfnDeploymentGroupPropsMixin.RevisionLocationProperty( git_hub_location=codedeploy_mixins.CfnDeploymentGroupPropsMixin.GitHubLocationProperty( commit_id="commitId", repository="repository" ), revision_type="revisionType", s3_location=codedeploy_mixins.CfnDeploymentGroupPropsMixin.S3LocationProperty( bucket="bucket", bundle_type="bundleType", e_tag="eTag", key="key", version="version" ) ) )
Attributes
- description
A comment about the deployment.
- ignore_application_stop_failures
If true, then if an
ApplicationStop,BeforeBlockTraffic, orAfterBlockTrafficdeployment lifecycle event to an instance fails, then the deployment continues to the next deployment lifecycle event.For example, if
ApplicationStopfails, the deployment continues with DownloadBundle. IfBeforeBlockTrafficfails, the deployment continues withBlockTraffic. IfAfterBlockTrafficfails, the deployment continues withApplicationStop.If false or not specified, then if a lifecycle event fails during a deployment to an instance, that deployment fails. If deployment to that instance is part of an overall deployment and the number of healthy hosts is not less than the minimum number of healthy hosts, then a deployment to the next instance is attempted.
During a deployment, the AWS CodeDeploy agent runs the scripts specified for
ApplicationStop,BeforeBlockTraffic, andAfterBlockTrafficin the AppSpec file from the previous successful deployment. (All other scripts are run from the AppSpec file in the current deployment.) If one of these scripts contains an error and does not run successfully, the deployment can fail.If the cause of the failure is a script from the last successful deployment that will never run successfully, create a new deployment and use
ignoreApplicationStopFailuresto specify that theApplicationStop,BeforeBlockTraffic, andAfterBlockTrafficfailures should be ignored.
- revision
Information about the location of stored application artifacts and the service from which to retrieve them.
DeploymentReadyOptionProperty
- class CfnDeploymentGroupPropsMixin.DeploymentReadyOptionProperty(*, action_on_timeout=None, wait_time_in_minutes=None)
Bases:
objectInformation about how traffic is rerouted to instances in a replacement environment in a blue/green deployment.
- Parameters:
action_on_timeout (
Optional[str]) – Information about when to reroute traffic from an original environment to a replacement environment in a blue/green deployment. - CONTINUE_DEPLOYMENT: Register new instances with the load balancer immediately after the new application revision is installed on the instances in the replacement environment. - STOP_DEPLOYMENT: Do not register new instances with a load balancer unless traffic rerouting is started using ContinueDeployment . If traffic rerouting is not started before the end of the specified wait period, the deployment status is changed to Stopped.wait_time_in_minutes (
Union[int,float,None]) – The number of minutes to wait before the status of a blue/green deployment is changed to Stopped if rerouting is not started manually. Applies only to theSTOP_DEPLOYMENToption foractionOnTimeout.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codedeploy import mixins as codedeploy_mixins deployment_ready_option_property = codedeploy_mixins.CfnDeploymentGroupPropsMixin.DeploymentReadyOptionProperty( action_on_timeout="actionOnTimeout", wait_time_in_minutes=123 )
Attributes
- action_on_timeout
Information about when to reroute traffic from an original environment to a replacement environment in a blue/green deployment.
CONTINUE_DEPLOYMENT: Register new instances with the load balancer immediately after the new application revision is installed on the instances in the replacement environment.
STOP_DEPLOYMENT: Do not register new instances with a load balancer unless traffic rerouting is started using ContinueDeployment . If traffic rerouting is not started before the end of the specified wait period, the deployment status is changed to Stopped.
- wait_time_in_minutes
The number of minutes to wait before the status of a blue/green deployment is changed to Stopped if rerouting is not started manually.
Applies only to the
STOP_DEPLOYMENToption foractionOnTimeout.
DeploymentStyleProperty
- class CfnDeploymentGroupPropsMixin.DeploymentStyleProperty(*, deployment_option=None, deployment_type=None)
Bases:
objectInformation about the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer.
- Parameters:
deployment_option (
Optional[str]) – Indicates whether to route deployment traffic behind a load balancer. .. epigraph:: An Amazon EC2 Application Load Balancer or Network Load Balancer is required for an Amazon ECS deployment.deployment_type (
Optional[str]) – Indicates whether to run an in-place or blue/green deployment.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codedeploy import mixins as codedeploy_mixins deployment_style_property = codedeploy_mixins.CfnDeploymentGroupPropsMixin.DeploymentStyleProperty( deployment_option="deploymentOption", deployment_type="deploymentType" )
Attributes
- deployment_option
Indicates whether to route deployment traffic behind a load balancer.
An Amazon EC2 Application Load Balancer or Network Load Balancer is required for an Amazon ECS deployment.
- deployment_type
Indicates whether to run an in-place or blue/green deployment.
EC2TagFilterProperty
- class CfnDeploymentGroupPropsMixin.EC2TagFilterProperty(*, key=None, type=None, value=None)
Bases:
objectInformation about an Amazon EC2 tag filter.
For more information about using tags and tag groups to help manage your Amazon EC2 instances and on-premises instances, see Tagging Instances for Deployment Groups in AWS CodeDeploy in the AWS CodeDeploy User Guide .
- Parameters:
key (
Optional[str]) – The tag filter key.type (
Optional[str]) – The tag filter type:. -KEY_ONLY: Key only. -VALUE_ONLY: Value only. -KEY_AND_VALUE: Key and value.value (
Optional[str]) – The tag filter value.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codedeploy import mixins as codedeploy_mixins e_c2_tag_filter_property = codedeploy_mixins.CfnDeploymentGroupPropsMixin.EC2TagFilterProperty( key="key", type="type", value="value" )
Attributes
- key
The tag filter key.
- type
.
KEY_ONLY: Key only.VALUE_ONLY: Value only.KEY_AND_VALUE: Key and value.
ECSServiceProperty
- class CfnDeploymentGroupPropsMixin.ECSServiceProperty(*, cluster_name=None, service_name=None)
Bases:
objectContains the service and cluster names used to identify an Amazon ECS deployment’s target.
- Parameters:
cluster_name (
Optional[str]) – The name of the cluster that the Amazon ECS service is associated with.service_name (
Optional[str]) – The name of the target Amazon ECS service.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codedeploy import mixins as codedeploy_mixins e_cSService_property = codedeploy_mixins.CfnDeploymentGroupPropsMixin.ECSServiceProperty( cluster_name="clusterName", service_name="serviceName" )
Attributes
- cluster_name
The name of the cluster that the Amazon ECS service is associated with.
- service_name
The name of the target Amazon ECS service.
ELBInfoProperty
- class CfnDeploymentGroupPropsMixin.ELBInfoProperty(*, name=None)
Bases:
objectThe
ELBInfoproperty type specifies information about the ELB load balancer used for an CodeDeploy deployment group.If you specify the
ELBInfoproperty, theDeploymentStyle.DeploymentOptionproperty must be set toWITH_TRAFFIC_CONTROLfor AWS CodeDeploy to route your traffic using the specified load balancers.ELBInfois a property of the AWS CodeDeploy DeploymentGroup LoadBalancerInfo property type.- Parameters:
name (
Optional[str]) – For blue/green deployments, the name of the load balancer that is used to route traffic from original instances to replacement instances in a blue/green deployment. For in-place deployments, the name of the load balancer that instances are deregistered from so they are not serving traffic during a deployment, and then re-registered with after the deployment is complete. .. epigraph:: CloudFormation supports blue/green deployments on AWS Lambda compute platforms only.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codedeploy import mixins as codedeploy_mixins e_lBInfo_property = codedeploy_mixins.CfnDeploymentGroupPropsMixin.ELBInfoProperty( name="name" )
Attributes
- name
For blue/green deployments, the name of the load balancer that is used to route traffic from original instances to replacement instances in a blue/green deployment.
For in-place deployments, the name of the load balancer that instances are deregistered from so they are not serving traffic during a deployment, and then re-registered with after the deployment is complete. .. epigraph:
CloudFormation supports blue/green deployments on AWS Lambda compute platforms only.
GitHubLocationProperty
- class CfnDeploymentGroupPropsMixin.GitHubLocationProperty(*, commit_id=None, repository=None)
Bases:
objectGitHubLocationis a property of the CodeDeploy DeploymentGroup Revision property that specifies the location of an application revision that is stored in GitHub.- Parameters:
commit_id (
Optional[str]) – The SHA1 commit ID of the GitHub commit that represents the bundled artifacts for the application revision.repository (
Optional[str]) – The GitHub account and repository pair that stores a reference to the commit that represents the bundled artifacts for the application revision. Specify the value asaccount/repository.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codedeploy import mixins as codedeploy_mixins git_hub_location_property = codedeploy_mixins.CfnDeploymentGroupPropsMixin.GitHubLocationProperty( commit_id="commitId", repository="repository" )
Attributes
- commit_id
The SHA1 commit ID of the GitHub commit that represents the bundled artifacts for the application revision.
- repository
The GitHub account and repository pair that stores a reference to the commit that represents the bundled artifacts for the application revision.
Specify the value as
account/repository.
GreenFleetProvisioningOptionProperty
- class CfnDeploymentGroupPropsMixin.GreenFleetProvisioningOptionProperty(*, action=None)
Bases:
objectInformation about the instances that belong to the replacement environment in a blue/green deployment.
- Parameters:
action (
Optional[str]) – The method used to add instances to a replacement environment. -DISCOVER_EXISTING: Use instances that already exist or will be created manually. -COPY_AUTO_SCALING_GROUP: Use settings from a specified Amazon EC2 Auto Scaling group to define and create instances in a new Amazon EC2 Auto Scaling group.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codedeploy import mixins as codedeploy_mixins green_fleet_provisioning_option_property = codedeploy_mixins.CfnDeploymentGroupPropsMixin.GreenFleetProvisioningOptionProperty( action="action" )
Attributes
- action
The method used to add instances to a replacement environment.
DISCOVER_EXISTING: Use instances that already exist or will be created manually.COPY_AUTO_SCALING_GROUP: Use settings from a specified Amazon EC2 Auto Scaling group to define and create instances in a new Amazon EC2 Auto Scaling group.
LoadBalancerInfoProperty
- class CfnDeploymentGroupPropsMixin.LoadBalancerInfoProperty(*, elb_info_list=None, target_group_info_list=None, target_group_pair_info_list=None)
Bases:
objectThe
LoadBalancerInfoproperty type specifies information about the load balancer or target group used for an AWS CodeDeploy deployment group.For more information, see Integrating CodeDeploy with ELB in the AWS CodeDeploy User Guide .
For CloudFormation to use the properties specified in
LoadBalancerInfo, theDeploymentStyle.DeploymentOptionproperty must be set toWITH_TRAFFIC_CONTROL. IfDeploymentStyle.DeploymentOptionis not set toWITH_TRAFFIC_CONTROL, CloudFormation ignores any settings specified inLoadBalancerInfo. .. epigraph:CloudFormation supports blue/green deployments on the AWS Lambda compute platform only.
LoadBalancerInfois a property of the DeploymentGroup resource.- Parameters:
elb_info_list (
Union[IResolvable,Sequence[Union[IResolvable,ELBInfoProperty,Dict[str,Any]]],None]) – An array that contains information about the load balancers to use for load balancing in a deployment. If you’re using Classic Load Balancers, specify those load balancers in this array. .. epigraph:: You can add up to 10 load balancers to the array. > If you’re using Application Load Balancers or Network Load Balancers, use thetargetGroupInfoListarray instead of this one.target_group_info_list (
Union[IResolvable,Sequence[Union[IResolvable,TargetGroupInfoProperty,Dict[str,Any]]],None]) – An array that contains information about the target groups to use for load balancing in a deployment. If you’re using Application Load Balancers and Network Load Balancers, specify their associated target groups in this array. .. epigraph:: You can add up to 10 target groups to the array. > If you’re using Classic Load Balancers, use theelbInfoListarray instead of this one.target_group_pair_info_list (
Union[IResolvable,Sequence[Union[IResolvable,TargetGroupPairInfoProperty,Dict[str,Any]]],None]) – The target group pair information. This is an array ofTargeGroupPairInfoobjects with a maximum size of one.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codedeploy import mixins as codedeploy_mixins load_balancer_info_property = codedeploy_mixins.CfnDeploymentGroupPropsMixin.LoadBalancerInfoProperty( elb_info_list=[codedeploy_mixins.CfnDeploymentGroupPropsMixin.ELBInfoProperty( name="name" )], target_group_info_list=[codedeploy_mixins.CfnDeploymentGroupPropsMixin.TargetGroupInfoProperty( name="name" )], target_group_pair_info_list=[codedeploy_mixins.CfnDeploymentGroupPropsMixin.TargetGroupPairInfoProperty( prod_traffic_route=codedeploy_mixins.CfnDeploymentGroupPropsMixin.TrafficRouteProperty( listener_arns=["listenerArns"] ), target_groups=[codedeploy_mixins.CfnDeploymentGroupPropsMixin.TargetGroupInfoProperty( name="name" )], test_traffic_route=codedeploy_mixins.CfnDeploymentGroupPropsMixin.TrafficRouteProperty( listener_arns=["listenerArns"] ) )] )
Attributes
- elb_info_list
An array that contains information about the load balancers to use for load balancing in a deployment.
If you’re using Classic Load Balancers, specify those load balancers in this array. .. epigraph:
You can add up to 10 load balancers to the array. > If you're using Application Load Balancers or Network Load Balancers, use the ``targetGroupInfoList`` array instead of this one.
- target_group_info_list
An array that contains information about the target groups to use for load balancing in a deployment.
If you’re using Application Load Balancers and Network Load Balancers, specify their associated target groups in this array. .. epigraph:
You can add up to 10 target groups to the array. > If you're using Classic Load Balancers, use the ``elbInfoList`` array instead of this one.
- target_group_pair_info_list
The target group pair information.
This is an array of
TargeGroupPairInfoobjects with a maximum size of one.
RevisionLocationProperty
- class CfnDeploymentGroupPropsMixin.RevisionLocationProperty(*, git_hub_location=None, revision_type=None, s3_location=None)
Bases:
objectRevisionLocationis a property that defines the location of the CodeDeploy application revision to deploy.- Parameters:
git_hub_location (
Union[IResolvable,GitHubLocationProperty,Dict[str,Any],None]) – Information about the location of application artifacts stored in GitHub.revision_type (
Optional[str]) – The type of application revision:. - S3: An application revision stored in Amazon S3. - GitHub: An application revision stored in GitHub (EC2/On-premises deployments only). - String: A YAML-formatted or JSON-formatted string ( AWS Lambda deployments only). - AppSpecContent: AnAppSpecContentobject that contains the contents of an AppSpec file for an AWS Lambda or Amazon ECS deployment. The content is formatted as JSON or YAML stored as a RawString.s3_location (
Union[IResolvable,S3LocationProperty,Dict[str,Any],None]) – Information about the location of a revision stored in Amazon S3.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codedeploy import mixins as codedeploy_mixins revision_location_property = codedeploy_mixins.CfnDeploymentGroupPropsMixin.RevisionLocationProperty( git_hub_location=codedeploy_mixins.CfnDeploymentGroupPropsMixin.GitHubLocationProperty( commit_id="commitId", repository="repository" ), revision_type="revisionType", s3_location=codedeploy_mixins.CfnDeploymentGroupPropsMixin.S3LocationProperty( bucket="bucket", bundle_type="bundleType", e_tag="eTag", key="key", version="version" ) )
Attributes
- git_hub_location
Information about the location of application artifacts stored in GitHub.
- revision_type
.
S3: An application revision stored in Amazon S3.
GitHub: An application revision stored in GitHub (EC2/On-premises deployments only).
String: A YAML-formatted or JSON-formatted string ( AWS Lambda deployments only).
AppSpecContent: An
AppSpecContentobject that contains the contents of an AppSpec file for an AWS Lambda or Amazon ECS deployment. The content is formatted as JSON or YAML stored as a RawString.
- s3_location
Information about the location of a revision stored in Amazon S3.
S3LocationProperty
- class CfnDeploymentGroupPropsMixin.S3LocationProperty(*, bucket=None, bundle_type=None, e_tag=None, key=None, version=None)
Bases:
objectS3Locationis a property of the CodeDeploy DeploymentGroup Revision property that specifies the location of an application revision that is stored in Amazon Simple Storage Service ( Amazon S3 ).- Parameters:
bucket (
Optional[str]) – The name of the Amazon S3 bucket where the application revision is stored.bundle_type (
Optional[str]) – The file type of the application revision. Must be one of the following:. - JSON - tar: A tar archive file. - tgz: A compressed tar archive file. - YAML - zip: A zip archive file.e_tag (
Optional[str]) – The ETag of the Amazon S3 object that represents the bundled artifacts for the application revision. If the ETag is not specified as an input parameter, ETag validation of the object is skipped.key (
Optional[str]) – The name of the Amazon S3 object that represents the bundled artifacts for the application revision.version (
Optional[str]) – A specific version of the Amazon S3 object that represents the bundled artifacts for the application revision. If the version is not specified, the system uses the most recent version by default.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codedeploy import mixins as codedeploy_mixins s3_location_property = codedeploy_mixins.CfnDeploymentGroupPropsMixin.S3LocationProperty( bucket="bucket", bundle_type="bundleType", e_tag="eTag", key="key", version="version" )
Attributes
- bucket
The name of the Amazon S3 bucket where the application revision is stored.
- bundle_type
.
JSON
tar: A tar archive file.
tgz: A compressed tar archive file.
YAML
zip: A zip archive file.
- See:
- Type:
The file type of the application revision. Must be one of the following
- e_tag
The ETag of the Amazon S3 object that represents the bundled artifacts for the application revision.
If the ETag is not specified as an input parameter, ETag validation of the object is skipped.
- key
The name of the Amazon S3 object that represents the bundled artifacts for the application revision.
- version
A specific version of the Amazon S3 object that represents the bundled artifacts for the application revision.
If the version is not specified, the system uses the most recent version by default.
TagFilterProperty
- class CfnDeploymentGroupPropsMixin.TagFilterProperty(*, key=None, type=None, value=None)
Bases:
objectTagFilteris a property type of the AWS::CodeDeploy::DeploymentGroup resource that specifies which on-premises instances to associate with the deployment group. To register on-premise instances with AWS CodeDeploy , see Configure Existing On-Premises Instances by Using AWS CodeDeploy in the AWS CodeDeploy User Guide .For more information about using tags and tag groups to help manage your Amazon EC2 instances and on-premises instances, see Tagging Instances for Deployment Groups in AWS CodeDeploy in the AWS CodeDeploy User Guide .
- Parameters:
key (
Optional[str]) – The on-premises instance tag filter key.type (
Optional[str]) – The on-premises instance tag filter type:. - KEY_ONLY: Key only. - VALUE_ONLY: Value only. - KEY_AND_VALUE: Key and value.value (
Optional[str]) – The on-premises instance tag filter value.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codedeploy import mixins as codedeploy_mixins tag_filter_property = codedeploy_mixins.CfnDeploymentGroupPropsMixin.TagFilterProperty( key="key", type="type", value="value" )
Attributes
- key
The on-premises instance tag filter key.
- type
.
KEY_ONLY: Key only.
VALUE_ONLY: Value only.
KEY_AND_VALUE: Key and value.
- See:
- Type:
The on-premises instance tag filter type
- value
The on-premises instance tag filter value.
TargetGroupInfoProperty
- class CfnDeploymentGroupPropsMixin.TargetGroupInfoProperty(*, name=None)
Bases:
objectThe
TargetGroupInfoproperty type specifies information about a target group in ELB to use in a deployment.Instances are registered as targets in a target group, and traffic is routed to the target group. For more information, see TargetGroupInfo in the AWS CodeDeploy API Reference
If you specify the
TargetGroupInfoproperty, theDeploymentStyle.DeploymentOptionproperty must be set toWITH_TRAFFIC_CONTROLfor CodeDeploy to route your traffic using the specified target groups.TargetGroupInfois a property of the LoadBalancerInfo property type.- Parameters:
name (
Optional[str]) – For blue/green deployments, the name of the target group that instances in the original environment are deregistered from, and instances in the replacement environment registered with. For in-place deployments, the name of the target group that instances are deregistered from, so they are not serving traffic during a deployment, and then re-registered with after the deployment completes. No duplicates allowed. .. epigraph:: CloudFormation supports blue/green deployments on AWS Lambda compute platforms only. This value cannot exceed 32 characters, so you should use theNameproperty of the target group, or theTargetGroupNameattribute with theFn::GetAttintrinsic function, as shown in the following example. Don’t use the group’s Amazon Resource Name (ARN) orTargetGroupFullNameattribute.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codedeploy import mixins as codedeploy_mixins target_group_info_property = codedeploy_mixins.CfnDeploymentGroupPropsMixin.TargetGroupInfoProperty( name="name" )
Attributes
- name
For blue/green deployments, the name of the target group that instances in the original environment are deregistered from, and instances in the replacement environment registered with.
For in-place deployments, the name of the target group that instances are deregistered from, so they are not serving traffic during a deployment, and then re-registered with after the deployment completes. No duplicates allowed. .. epigraph:
CloudFormation supports blue/green deployments on AWS Lambda compute platforms only.
This value cannot exceed 32 characters, so you should use the
Nameproperty of the target group, or theTargetGroupNameattribute with theFn::GetAttintrinsic function, as shown in the following example. Don’t use the group’s Amazon Resource Name (ARN) orTargetGroupFullNameattribute.
TargetGroupPairInfoProperty
- class CfnDeploymentGroupPropsMixin.TargetGroupPairInfoProperty(*, prod_traffic_route=None, target_groups=None, test_traffic_route=None)
Bases:
objectInformation about two target groups and how traffic is routed during an Amazon ECS deployment.
An optional test traffic route can be specified.
- Parameters:
prod_traffic_route (
Union[IResolvable,TrafficRouteProperty,Dict[str,Any],None]) – The path used by a load balancer to route production traffic when an Amazon ECS deployment is complete.target_groups (
Union[IResolvable,Sequence[Union[IResolvable,TargetGroupInfoProperty,Dict[str,Any]]],None]) – One pair of target groups. One is associated with the original task set. The second is associated with the task set that serves traffic after the deployment is complete.test_traffic_route (
Union[IResolvable,TrafficRouteProperty,Dict[str,Any],None]) – An optional path used by a load balancer to route test traffic after an Amazon ECS deployment. Validation can occur while test traffic is served during a deployment.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codedeploy import mixins as codedeploy_mixins target_group_pair_info_property = codedeploy_mixins.CfnDeploymentGroupPropsMixin.TargetGroupPairInfoProperty( prod_traffic_route=codedeploy_mixins.CfnDeploymentGroupPropsMixin.TrafficRouteProperty( listener_arns=["listenerArns"] ), target_groups=[codedeploy_mixins.CfnDeploymentGroupPropsMixin.TargetGroupInfoProperty( name="name" )], test_traffic_route=codedeploy_mixins.CfnDeploymentGroupPropsMixin.TrafficRouteProperty( listener_arns=["listenerArns"] ) )
Attributes
- prod_traffic_route
The path used by a load balancer to route production traffic when an Amazon ECS deployment is complete.
- target_groups
One pair of target groups.
One is associated with the original task set. The second is associated with the task set that serves traffic after the deployment is complete.
- test_traffic_route
An optional path used by a load balancer to route test traffic after an Amazon ECS deployment.
Validation can occur while test traffic is served during a deployment.
TrafficRouteProperty
- class CfnDeploymentGroupPropsMixin.TrafficRouteProperty(*, listener_arns=None)
Bases:
objectInformation about a listener.
The listener contains the path used to route traffic that is received from the load balancer to a target group.
- Parameters:
listener_arns (
Optional[Sequence[str]]) – The Amazon Resource Name (ARN) of one listener. The listener identifies the route between a target group and a load balancer. This is an array of strings with a maximum size of one.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codedeploy import mixins as codedeploy_mixins traffic_route_property = codedeploy_mixins.CfnDeploymentGroupPropsMixin.TrafficRouteProperty( listener_arns=["listenerArns"] )
Attributes
- listener_arns
The Amazon Resource Name (ARN) of one listener.
The listener identifies the route between a target group and a load balancer. This is an array of strings with a maximum size of one.
TriggerConfigProperty
- class CfnDeploymentGroupPropsMixin.TriggerConfigProperty(*, trigger_events=None, trigger_name=None, trigger_target_arn=None)
Bases:
objectInformation about notification triggers for the deployment group.
- Parameters:
trigger_events (
Optional[Sequence[str]]) – The event type or types that trigger notifications.trigger_name (
Optional[str]) – The name of the notification trigger.trigger_target_arn (
Optional[str]) – The Amazon Resource Name (ARN) of the Amazon Simple Notification Service topic through which notifications about deployment or instance events are sent.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codedeploy import mixins as codedeploy_mixins trigger_config_property = codedeploy_mixins.CfnDeploymentGroupPropsMixin.TriggerConfigProperty( trigger_events=["triggerEvents"], trigger_name="triggerName", trigger_target_arn="triggerTargetArn" )
Attributes
- trigger_events
The event type or types that trigger notifications.
- trigger_name
The name of the notification trigger.
- trigger_target_arn
The Amazon Resource Name (ARN) of the Amazon Simple Notification Service topic through which notifications about deployment or instance events are sent.