aws-cdk-lib 2.115.0__py3-none-any.whl → 2.116.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/__init__.py +801 -356
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.115.0.jsii.tgz → aws-cdk-lib@2.116.1.jsii.tgz} +0 -0
- aws_cdk/aws_apigateway/__init__.py +3 -1
- aws_cdk/aws_apigatewayv2/__init__.py +595 -222
- aws_cdk/aws_apigatewayv2_integrations/__init__.py +4 -5
- aws_cdk/aws_applicationautoscaling/__init__.py +51 -15
- aws_cdk/aws_appsync/__init__.py +14 -3
- aws_cdk/aws_autoscaling/__init__.py +6 -0
- aws_cdk/aws_b2bi/__init__.py +2445 -0
- aws_cdk/aws_cloud9/__init__.py +63 -63
- aws_cdk/aws_cloudfront/__init__.py +394 -0
- aws_cdk/aws_cloudfront/experimental/__init__.py +5 -2
- aws_cdk/aws_cloudtrail/__init__.py +90 -11
- aws_cdk/aws_cloudwatch/__init__.py +6 -6
- aws_cdk/aws_codedeploy/__init__.py +88 -15
- aws_cdk/aws_codepipeline/__init__.py +645 -0
- aws_cdk/aws_cognito/__init__.py +13 -26
- aws_cdk/aws_config/__init__.py +315 -1
- aws_cdk/aws_connect/__init__.py +532 -37
- aws_cdk/aws_controltower/__init__.py +4 -4
- aws_cdk/aws_datasync/__init__.py +6 -4
- aws_cdk/aws_dms/__init__.py +241 -131
- aws_cdk/aws_dynamodb/__init__.py +8 -0
- aws_cdk/aws_ec2/__init__.py +1030 -45
- aws_cdk/aws_ecr/__init__.py +78 -10
- aws_cdk/aws_ecs/__init__.py +210 -2
- aws_cdk/aws_ecs_patterns/__init__.py +77 -62
- aws_cdk/aws_eks/__init__.py +8 -1
- aws_cdk/aws_elasticache/__init__.py +136 -10
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +10 -13
- aws_cdk/aws_emr/__init__.py +234 -17
- aws_cdk/aws_eventschemas/__init__.py +15 -13
- aws_cdk/aws_fis/__init__.py +33 -13
- aws_cdk/aws_gamelift/__init__.py +47 -0
- aws_cdk/aws_imagebuilder/__init__.py +922 -84
- aws_cdk/aws_internetmonitor/__init__.py +12 -10
- aws_cdk/aws_iot/__init__.py +26 -46
- aws_cdk/aws_iottwinmaker/__init__.py +36 -34
- aws_cdk/aws_lambda/__init__.py +19 -15
- aws_cdk/aws_lambda_nodejs/__init__.py +5 -2
- aws_cdk/aws_logs/__init__.py +6 -6
- aws_cdk/aws_opensearchservice/__init__.py +5 -3
- aws_cdk/aws_organizations/__init__.py +3 -3
- aws_cdk/aws_osis/__init__.py +17 -13
- aws_cdk/aws_rds/__init__.py +6 -0
- aws_cdk/aws_s3/__init__.py +4 -2
- aws_cdk/aws_s3outposts/__init__.py +8 -8
- aws_cdk/aws_sagemaker/__init__.py +17 -94
- aws_cdk/aws_secretsmanager/__init__.py +9 -7
- aws_cdk/aws_securityhub/__init__.py +18 -0
- aws_cdk/aws_servicecatalogappregistry/__init__.py +31 -0
- aws_cdk/aws_ses/__init__.py +58 -11
- aws_cdk/aws_sns/__init__.py +309 -10
- aws_cdk/aws_ssm/__init__.py +3 -5
- aws_cdk/aws_stepfunctions/__init__.py +335 -19
- aws_cdk/aws_stepfunctions_tasks/__init__.py +388 -38
- aws_cdk/aws_transfer/__init__.py +37 -10
- aws_cdk/custom_resources/__init__.py +443 -1
- aws_cdk/triggers/__init__.py +5 -2
- {aws_cdk_lib-2.115.0.dist-info → aws_cdk_lib-2.116.1.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.115.0.dist-info → aws_cdk_lib-2.116.1.dist-info}/RECORD +66 -65
- {aws_cdk_lib-2.115.0.dist-info → aws_cdk_lib-2.116.1.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.115.0.dist-info → aws_cdk_lib-2.116.1.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.115.0.dist-info → aws_cdk_lib-2.116.1.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.115.0.dist-info → aws_cdk_lib-2.116.1.dist-info}/top_level.txt +0 -0
|
@@ -1511,7 +1511,7 @@ class CfnDeploymentConfig(
|
|
|
1511
1511
|
:param deployment_config_name: A name for the deployment configuration. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the deployment configuration name. For more information, see `Name Type <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html>`_ . .. epigraph:: If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
|
|
1512
1512
|
:param minimum_healthy_hosts: The minimum number of healthy instances that should be available at any time during the deployment. There are two parameters expected in the input: type and value. The type parameter takes either of the following values: - HOST_COUNT: The value parameter represents the minimum number of healthy instances as an absolute value. - FLEET_PERCENT: The value parameter represents the minimum number of healthy instances as a percentage of the total number of instances in the deployment. If you specify FLEET_PERCENT, at the start of the deployment, AWS CodeDeploy converts the percentage to the equivalent number of instance and rounds up fractional instances. The value parameter takes an integer. For example, to set a minimum of 95% healthy instance, specify a type of FLEET_PERCENT and a value of 95. For more information about instance health, see `CodeDeploy Instance Health <https://docs.aws.amazon.com/codedeploy/latest/userguide/instances-health.html>`_ in the AWS CodeDeploy User Guide.
|
|
1513
1513
|
:param traffic_routing_config: The configuration that specifies how the deployment traffic is routed.
|
|
1514
|
-
:param zonal_config:
|
|
1514
|
+
:param zonal_config: Configure the ``ZonalConfig`` object if you want AWS CodeDeploy to deploy your application to one `Availability Zone <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-availability-zones>`_ at a time, within an AWS Region. For more information about the zonal configuration feature, see `zonal configuration <https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations-create.html#zonal-config>`_ in the *CodeDeploy User Guide* .
|
|
1515
1515
|
'''
|
|
1516
1516
|
if __debug__:
|
|
1517
1517
|
type_hints = typing.get_type_hints(_typecheckingstub__1601263a429a6a400738eca0c5abc3bd436649919830aa684054ba853d401c1f)
|
|
@@ -1629,6 +1629,7 @@ class CfnDeploymentConfig(
|
|
|
1629
1629
|
def zonal_config(
|
|
1630
1630
|
self,
|
|
1631
1631
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDeploymentConfig.ZonalConfigProperty"]]:
|
|
1632
|
+
'''Configure the ``ZonalConfig`` object if you want AWS CodeDeploy to deploy your application to one `Availability Zone <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-availability-zones>`_ at a time, within an AWS Region.'''
|
|
1632
1633
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDeploymentConfig.ZonalConfigProperty"]], jsii.get(self, "zonalConfig"))
|
|
1633
1634
|
|
|
1634
1635
|
@zonal_config.setter
|
|
@@ -1648,9 +1649,10 @@ class CfnDeploymentConfig(
|
|
|
1648
1649
|
)
|
|
1649
1650
|
class MinimumHealthyHostsPerZoneProperty:
|
|
1650
1651
|
def __init__(self, *, type: builtins.str, value: jsii.Number) -> None:
|
|
1651
|
-
'''
|
|
1652
|
-
|
|
1653
|
-
:param
|
|
1652
|
+
'''Information about the minimum number of healthy instances per Availability Zone.
|
|
1653
|
+
|
|
1654
|
+
:param type: The ``type`` associated with the ``MinimumHealthyHostsPerZone`` option.
|
|
1655
|
+
:param value: The ``value`` associated with the ``MinimumHealthyHostsPerZone`` option.
|
|
1654
1656
|
|
|
1655
1657
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-minimumhealthyhostsperzone.html
|
|
1656
1658
|
:exampleMetadata: fixture=_generated
|
|
@@ -1677,7 +1679,8 @@ class CfnDeploymentConfig(
|
|
|
1677
1679
|
|
|
1678
1680
|
@builtins.property
|
|
1679
1681
|
def type(self) -> builtins.str:
|
|
1680
|
-
'''
|
|
1682
|
+
'''The ``type`` associated with the ``MinimumHealthyHostsPerZone`` option.
|
|
1683
|
+
|
|
1681
1684
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-minimumhealthyhostsperzone.html#cfn-codedeploy-deploymentconfig-minimumhealthyhostsperzone-type
|
|
1682
1685
|
'''
|
|
1683
1686
|
result = self._values.get("type")
|
|
@@ -1686,7 +1689,8 @@ class CfnDeploymentConfig(
|
|
|
1686
1689
|
|
|
1687
1690
|
@builtins.property
|
|
1688
1691
|
def value(self) -> jsii.Number:
|
|
1689
|
-
'''
|
|
1692
|
+
'''The ``value`` associated with the ``MinimumHealthyHostsPerZone`` option.
|
|
1693
|
+
|
|
1690
1694
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-minimumhealthyhostsperzone.html#cfn-codedeploy-deploymentconfig-minimumhealthyhostsperzone-value
|
|
1691
1695
|
'''
|
|
1692
1696
|
result = self._values.get("value")
|
|
@@ -2055,10 +2059,13 @@ class CfnDeploymentConfig(
|
|
|
2055
2059
|
minimum_healthy_hosts_per_zone: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDeploymentConfig.MinimumHealthyHostsPerZoneProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2056
2060
|
monitor_duration_in_seconds: typing.Optional[jsii.Number] = None,
|
|
2057
2061
|
) -> None:
|
|
2058
|
-
'''
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
+
'''Configure the ``ZonalConfig`` object if you want AWS CodeDeploy to deploy your application to one `Availability Zone <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-availability-zones>`_ at a time, within an AWS Region. By deploying to one Availability Zone at a time, you can expose your deployment to a progressively larger audience as confidence in the deployment's performance and viability grows. If you don't configure the ``ZonalConfig`` object, CodeDeploy deploys your application to a random selection of hosts across a Region.
|
|
2063
|
+
|
|
2064
|
+
For more information about the zonal configuration feature, see `zonal configuration <https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations-create.html#zonal-config>`_ in the *CodeDeploy User Guide* .
|
|
2065
|
+
|
|
2066
|
+
:param first_zone_monitor_duration_in_seconds: The period of time, in seconds, that CodeDeploy must wait after completing a deployment to the *first* Availability Zone. CodeDeploy will wait this amount of time before starting a deployment to the second Availability Zone. You might set this option if you want to allow extra bake time for the first Availability Zone. If you don't specify a value for ``firstZoneMonitorDurationInSeconds`` , then CodeDeploy uses the ``monitorDurationInSeconds`` value for the first Availability Zone. For more information about the zonal configuration feature, see `zonal configuration <https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations-create.html#zonal-config>`_ in the *CodeDeploy User Guide* .
|
|
2067
|
+
:param minimum_healthy_hosts_per_zone: The number or percentage of instances that must remain available per Availability Zone during a deployment. This option works in conjunction with the ``MinimumHealthyHosts`` option. For more information, see `About the minimum number of healthy hosts per Availability Zone <https://docs.aws.amazon.com//codedeploy/latest/userguide/instances-health.html#minimum-healthy-hosts-az>`_ in the *CodeDeploy User Guide* . If you don't specify the ``minimumHealthyHostsPerZone`` option, then CodeDeploy uses a default value of ``0`` percent. For more information about the zonal configuration feature, see `zonal configuration <https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations-create.html#zonal-config>`_ in the *CodeDeploy User Guide* .
|
|
2068
|
+
:param monitor_duration_in_seconds: The period of time, in seconds, that CodeDeploy must wait after completing a deployment to an Availability Zone. CodeDeploy will wait this amount of time before starting a deployment to the next Availability Zone. Consider adding a monitor duration to give the deployment some time to prove itself (or 'bake') in one Availability Zone before it is released in the next zone. If you don't specify a ``monitorDurationInSeconds`` , CodeDeploy starts deploying to the next Availability Zone immediately. For more information about the zonal configuration feature, see `zonal configuration <https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations-create.html#zonal-config>`_ in the *CodeDeploy User Guide* .
|
|
2062
2069
|
|
|
2063
2070
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-zonalconfig.html
|
|
2064
2071
|
:exampleMetadata: fixture=_generated
|
|
@@ -2095,7 +2102,12 @@ class CfnDeploymentConfig(
|
|
|
2095
2102
|
def first_zone_monitor_duration_in_seconds(
|
|
2096
2103
|
self,
|
|
2097
2104
|
) -> typing.Optional[jsii.Number]:
|
|
2098
|
-
'''
|
|
2105
|
+
'''The period of time, in seconds, that CodeDeploy must wait after completing a deployment to the *first* Availability Zone.
|
|
2106
|
+
|
|
2107
|
+
CodeDeploy will wait this amount of time before starting a deployment to the second Availability Zone. You might set this option if you want to allow extra bake time for the first Availability Zone. If you don't specify a value for ``firstZoneMonitorDurationInSeconds`` , then CodeDeploy uses the ``monitorDurationInSeconds`` value for the first Availability Zone.
|
|
2108
|
+
|
|
2109
|
+
For more information about the zonal configuration feature, see `zonal configuration <https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations-create.html#zonal-config>`_ in the *CodeDeploy User Guide* .
|
|
2110
|
+
|
|
2099
2111
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-zonalconfig.html#cfn-codedeploy-deploymentconfig-zonalconfig-firstzonemonitordurationinseconds
|
|
2100
2112
|
'''
|
|
2101
2113
|
result = self._values.get("first_zone_monitor_duration_in_seconds")
|
|
@@ -2105,7 +2117,14 @@ class CfnDeploymentConfig(
|
|
|
2105
2117
|
def minimum_healthy_hosts_per_zone(
|
|
2106
2118
|
self,
|
|
2107
2119
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDeploymentConfig.MinimumHealthyHostsPerZoneProperty"]]:
|
|
2108
|
-
'''
|
|
2120
|
+
'''The number or percentage of instances that must remain available per Availability Zone during a deployment.
|
|
2121
|
+
|
|
2122
|
+
This option works in conjunction with the ``MinimumHealthyHosts`` option. For more information, see `About the minimum number of healthy hosts per Availability Zone <https://docs.aws.amazon.com//codedeploy/latest/userguide/instances-health.html#minimum-healthy-hosts-az>`_ in the *CodeDeploy User Guide* .
|
|
2123
|
+
|
|
2124
|
+
If you don't specify the ``minimumHealthyHostsPerZone`` option, then CodeDeploy uses a default value of ``0`` percent.
|
|
2125
|
+
|
|
2126
|
+
For more information about the zonal configuration feature, see `zonal configuration <https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations-create.html#zonal-config>`_ in the *CodeDeploy User Guide* .
|
|
2127
|
+
|
|
2109
2128
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-zonalconfig.html#cfn-codedeploy-deploymentconfig-zonalconfig-minimumhealthyhostsperzone
|
|
2110
2129
|
'''
|
|
2111
2130
|
result = self._values.get("minimum_healthy_hosts_per_zone")
|
|
@@ -2113,7 +2132,12 @@ class CfnDeploymentConfig(
|
|
|
2113
2132
|
|
|
2114
2133
|
@builtins.property
|
|
2115
2134
|
def monitor_duration_in_seconds(self) -> typing.Optional[jsii.Number]:
|
|
2116
|
-
'''
|
|
2135
|
+
'''The period of time, in seconds, that CodeDeploy must wait after completing a deployment to an Availability Zone.
|
|
2136
|
+
|
|
2137
|
+
CodeDeploy will wait this amount of time before starting a deployment to the next Availability Zone. Consider adding a monitor duration to give the deployment some time to prove itself (or 'bake') in one Availability Zone before it is released in the next zone. If you don't specify a ``monitorDurationInSeconds`` , CodeDeploy starts deploying to the next Availability Zone immediately.
|
|
2138
|
+
|
|
2139
|
+
For more information about the zonal configuration feature, see `zonal configuration <https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations-create.html#zonal-config>`_ in the *CodeDeploy User Guide* .
|
|
2140
|
+
|
|
2117
2141
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-zonalconfig.html#cfn-codedeploy-deploymentconfig-zonalconfig-monitordurationinseconds
|
|
2118
2142
|
'''
|
|
2119
2143
|
result = self._values.get("monitor_duration_in_seconds")
|
|
@@ -2158,7 +2182,7 @@ class CfnDeploymentConfigProps:
|
|
|
2158
2182
|
:param deployment_config_name: A name for the deployment configuration. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the deployment configuration name. For more information, see `Name Type <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html>`_ . .. epigraph:: If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
|
|
2159
2183
|
:param minimum_healthy_hosts: The minimum number of healthy instances that should be available at any time during the deployment. There are two parameters expected in the input: type and value. The type parameter takes either of the following values: - HOST_COUNT: The value parameter represents the minimum number of healthy instances as an absolute value. - FLEET_PERCENT: The value parameter represents the minimum number of healthy instances as a percentage of the total number of instances in the deployment. If you specify FLEET_PERCENT, at the start of the deployment, AWS CodeDeploy converts the percentage to the equivalent number of instance and rounds up fractional instances. The value parameter takes an integer. For example, to set a minimum of 95% healthy instance, specify a type of FLEET_PERCENT and a value of 95. For more information about instance health, see `CodeDeploy Instance Health <https://docs.aws.amazon.com/codedeploy/latest/userguide/instances-health.html>`_ in the AWS CodeDeploy User Guide.
|
|
2160
2184
|
:param traffic_routing_config: The configuration that specifies how the deployment traffic is routed.
|
|
2161
|
-
:param zonal_config:
|
|
2185
|
+
:param zonal_config: Configure the ``ZonalConfig`` object if you want AWS CodeDeploy to deploy your application to one `Availability Zone <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-availability-zones>`_ at a time, within an AWS Region. For more information about the zonal configuration feature, see `zonal configuration <https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations-create.html#zonal-config>`_ in the *CodeDeploy User Guide* .
|
|
2162
2186
|
|
|
2163
2187
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentconfig.html
|
|
2164
2188
|
:exampleMetadata: fixture=_generated
|
|
@@ -2280,7 +2304,10 @@ class CfnDeploymentConfigProps:
|
|
|
2280
2304
|
def zonal_config(
|
|
2281
2305
|
self,
|
|
2282
2306
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnDeploymentConfig.ZonalConfigProperty]]:
|
|
2283
|
-
'''
|
|
2307
|
+
'''Configure the ``ZonalConfig`` object if you want AWS CodeDeploy to deploy your application to one `Availability Zone <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-availability-zones>`_ at a time, within an AWS Region.
|
|
2308
|
+
|
|
2309
|
+
For more information about the zonal configuration feature, see `zonal configuration <https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations-create.html#zonal-config>`_ in the *CodeDeploy User Guide* .
|
|
2310
|
+
|
|
2284
2311
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentconfig.html#cfn-codedeploy-deploymentconfig-zonalconfig
|
|
2285
2312
|
'''
|
|
2286
2313
|
result = self._values.get("zonal_config")
|
|
@@ -2435,6 +2462,7 @@ class CfnDeploymentGroup(
|
|
|
2435
2462
|
key="key",
|
|
2436
2463
|
value="value"
|
|
2437
2464
|
)],
|
|
2465
|
+
termination_hook_enabled=False,
|
|
2438
2466
|
trigger_configurations=[codedeploy.CfnDeploymentGroup.TriggerConfigProperty(
|
|
2439
2467
|
trigger_events=["triggerEvents"],
|
|
2440
2468
|
trigger_name="triggerName",
|
|
@@ -2466,6 +2494,7 @@ class CfnDeploymentGroup(
|
|
|
2466
2494
|
on_premises_tag_set: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDeploymentGroup.OnPremisesTagSetProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2467
2495
|
outdated_instances_strategy: typing.Optional[builtins.str] = None,
|
|
2468
2496
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2497
|
+
termination_hook_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
2469
2498
|
trigger_configurations: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDeploymentGroup.TriggerConfigProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
2470
2499
|
) -> None:
|
|
2471
2500
|
'''
|
|
@@ -2489,6 +2518,7 @@ class CfnDeploymentGroup(
|
|
|
2489
2518
|
:param on_premises_tag_set: Information about groups of tags applied to on-premises instances. The deployment group includes only on-premises instances identified by all the tag groups. You can specify ``OnPremisesInstanceTagFilters`` or ``OnPremisesInstanceTagSet`` , but not both.
|
|
2490
2519
|
:param outdated_instances_strategy: Indicates what happens when new Amazon EC2 instances are launched mid-deployment and do not receive the deployed application revision. If this option is set to ``UPDATE`` or is unspecified, CodeDeploy initiates one or more 'auto-update outdated instances' deployments to apply the deployed application revision to the new Amazon EC2 instances. If this option is set to ``IGNORE`` , CodeDeploy does not initiate a deployment to update the new Amazon EC2 instances. This may result in instances having different revisions.
|
|
2491
2520
|
:param tags: The metadata that you apply to CodeDeploy deployment groups to help you organize and categorize them. Each tag consists of a key and an optional value, both of which you define.
|
|
2521
|
+
:param termination_hook_enabled:
|
|
2492
2522
|
:param trigger_configurations: Information about triggers associated with the deployment group. Duplicates are not allowed
|
|
2493
2523
|
'''
|
|
2494
2524
|
if __debug__:
|
|
@@ -2514,6 +2544,7 @@ class CfnDeploymentGroup(
|
|
|
2514
2544
|
on_premises_tag_set=on_premises_tag_set,
|
|
2515
2545
|
outdated_instances_strategy=outdated_instances_strategy,
|
|
2516
2546
|
tags=tags,
|
|
2547
|
+
termination_hook_enabled=termination_hook_enabled,
|
|
2517
2548
|
trigger_configurations=trigger_configurations,
|
|
2518
2549
|
)
|
|
2519
2550
|
|
|
@@ -2860,6 +2891,23 @@ class CfnDeploymentGroup(
|
|
|
2860
2891
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2861
2892
|
jsii.set(self, "tagsRaw", value)
|
|
2862
2893
|
|
|
2894
|
+
@builtins.property
|
|
2895
|
+
@jsii.member(jsii_name="terminationHookEnabled")
|
|
2896
|
+
def termination_hook_enabled(
|
|
2897
|
+
self,
|
|
2898
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
2899
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], jsii.get(self, "terminationHookEnabled"))
|
|
2900
|
+
|
|
2901
|
+
@termination_hook_enabled.setter
|
|
2902
|
+
def termination_hook_enabled(
|
|
2903
|
+
self,
|
|
2904
|
+
value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
|
|
2905
|
+
) -> None:
|
|
2906
|
+
if __debug__:
|
|
2907
|
+
type_hints = typing.get_type_hints(_typecheckingstub__2bf9c1fbb66f570f500b907e6dae98c96270a20d62e93986637535a81ad80522)
|
|
2908
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2909
|
+
jsii.set(self, "terminationHookEnabled", value)
|
|
2910
|
+
|
|
2863
2911
|
@builtins.property
|
|
2864
2912
|
@jsii.member(jsii_name="triggerConfigurations")
|
|
2865
2913
|
def trigger_configurations(
|
|
@@ -5009,6 +5057,7 @@ class CfnDeploymentGroup(
|
|
|
5009
5057
|
"on_premises_tag_set": "onPremisesTagSet",
|
|
5010
5058
|
"outdated_instances_strategy": "outdatedInstancesStrategy",
|
|
5011
5059
|
"tags": "tags",
|
|
5060
|
+
"termination_hook_enabled": "terminationHookEnabled",
|
|
5012
5061
|
"trigger_configurations": "triggerConfigurations",
|
|
5013
5062
|
},
|
|
5014
5063
|
)
|
|
@@ -5034,6 +5083,7 @@ class CfnDeploymentGroupProps:
|
|
|
5034
5083
|
on_premises_tag_set: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDeploymentGroup.OnPremisesTagSetProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
5035
5084
|
outdated_instances_strategy: typing.Optional[builtins.str] = None,
|
|
5036
5085
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
5086
|
+
termination_hook_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
5037
5087
|
trigger_configurations: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDeploymentGroup.TriggerConfigProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
5038
5088
|
) -> None:
|
|
5039
5089
|
'''Properties for defining a ``CfnDeploymentGroup``.
|
|
@@ -5056,6 +5106,7 @@ class CfnDeploymentGroupProps:
|
|
|
5056
5106
|
:param on_premises_tag_set: Information about groups of tags applied to on-premises instances. The deployment group includes only on-premises instances identified by all the tag groups. You can specify ``OnPremisesInstanceTagFilters`` or ``OnPremisesInstanceTagSet`` , but not both.
|
|
5057
5107
|
:param outdated_instances_strategy: Indicates what happens when new Amazon EC2 instances are launched mid-deployment and do not receive the deployed application revision. If this option is set to ``UPDATE`` or is unspecified, CodeDeploy initiates one or more 'auto-update outdated instances' deployments to apply the deployed application revision to the new Amazon EC2 instances. If this option is set to ``IGNORE`` , CodeDeploy does not initiate a deployment to update the new Amazon EC2 instances. This may result in instances having different revisions.
|
|
5058
5108
|
:param tags: The metadata that you apply to CodeDeploy deployment groups to help you organize and categorize them. Each tag consists of a key and an optional value, both of which you define.
|
|
5109
|
+
:param termination_hook_enabled:
|
|
5059
5110
|
:param trigger_configurations: Information about triggers associated with the deployment group. Duplicates are not allowed
|
|
5060
5111
|
|
|
5061
5112
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html
|
|
@@ -5181,6 +5232,7 @@ class CfnDeploymentGroupProps:
|
|
|
5181
5232
|
key="key",
|
|
5182
5233
|
value="value"
|
|
5183
5234
|
)],
|
|
5235
|
+
termination_hook_enabled=False,
|
|
5184
5236
|
trigger_configurations=[codedeploy.CfnDeploymentGroup.TriggerConfigProperty(
|
|
5185
5237
|
trigger_events=["triggerEvents"],
|
|
5186
5238
|
trigger_name="triggerName",
|
|
@@ -5208,6 +5260,7 @@ class CfnDeploymentGroupProps:
|
|
|
5208
5260
|
check_type(argname="argument on_premises_tag_set", value=on_premises_tag_set, expected_type=type_hints["on_premises_tag_set"])
|
|
5209
5261
|
check_type(argname="argument outdated_instances_strategy", value=outdated_instances_strategy, expected_type=type_hints["outdated_instances_strategy"])
|
|
5210
5262
|
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
5263
|
+
check_type(argname="argument termination_hook_enabled", value=termination_hook_enabled, expected_type=type_hints["termination_hook_enabled"])
|
|
5211
5264
|
check_type(argname="argument trigger_configurations", value=trigger_configurations, expected_type=type_hints["trigger_configurations"])
|
|
5212
5265
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
5213
5266
|
"application_name": application_name,
|
|
@@ -5245,6 +5298,8 @@ class CfnDeploymentGroupProps:
|
|
|
5245
5298
|
self._values["outdated_instances_strategy"] = outdated_instances_strategy
|
|
5246
5299
|
if tags is not None:
|
|
5247
5300
|
self._values["tags"] = tags
|
|
5301
|
+
if termination_hook_enabled is not None:
|
|
5302
|
+
self._values["termination_hook_enabled"] = termination_hook_enabled
|
|
5248
5303
|
if trigger_configurations is not None:
|
|
5249
5304
|
self._values["trigger_configurations"] = trigger_configurations
|
|
5250
5305
|
|
|
@@ -5481,6 +5536,16 @@ class CfnDeploymentGroupProps:
|
|
|
5481
5536
|
result = self._values.get("tags")
|
|
5482
5537
|
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], result)
|
|
5483
5538
|
|
|
5539
|
+
@builtins.property
|
|
5540
|
+
def termination_hook_enabled(
|
|
5541
|
+
self,
|
|
5542
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
5543
|
+
'''
|
|
5544
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-terminationhookenabled
|
|
5545
|
+
'''
|
|
5546
|
+
result = self._values.get("termination_hook_enabled")
|
|
5547
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
|
|
5548
|
+
|
|
5484
5549
|
@builtins.property
|
|
5485
5550
|
def trigger_configurations(
|
|
5486
5551
|
self,
|
|
@@ -10230,6 +10295,7 @@ def _typecheckingstub__afc1bc74c13d6392d70ae9e55ed64b8ec6f2cfed100b230e370997efe
|
|
|
10230
10295
|
on_premises_tag_set: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDeploymentGroup.OnPremisesTagSetProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10231
10296
|
outdated_instances_strategy: typing.Optional[builtins.str] = None,
|
|
10232
10297
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10298
|
+
termination_hook_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
10233
10299
|
trigger_configurations: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDeploymentGroup.TriggerConfigProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
10234
10300
|
) -> None:
|
|
10235
10301
|
"""Type checking stubs"""
|
|
@@ -10355,6 +10421,12 @@ def _typecheckingstub__ca51d486320d92369410ca709970091be367eabeebde41a60143404ee
|
|
|
10355
10421
|
"""Type checking stubs"""
|
|
10356
10422
|
pass
|
|
10357
10423
|
|
|
10424
|
+
def _typecheckingstub__2bf9c1fbb66f570f500b907e6dae98c96270a20d62e93986637535a81ad80522(
|
|
10425
|
+
value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
|
|
10426
|
+
) -> None:
|
|
10427
|
+
"""Type checking stubs"""
|
|
10428
|
+
pass
|
|
10429
|
+
|
|
10358
10430
|
def _typecheckingstub__19f14404bcc2f5c2897842d997eb29c01baf8bcd6619fdc09e6b87d0df1f7693(
|
|
10359
10431
|
value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnDeploymentGroup.TriggerConfigProperty]]]],
|
|
10360
10432
|
) -> None:
|
|
@@ -10584,6 +10656,7 @@ def _typecheckingstub__6511a1a48658d7f16b747353194a86e2a15daf184e4957a0f2924cfee
|
|
|
10584
10656
|
on_premises_tag_set: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDeploymentGroup.OnPremisesTagSetProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10585
10657
|
outdated_instances_strategy: typing.Optional[builtins.str] = None,
|
|
10586
10658
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10659
|
+
termination_hook_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
10587
10660
|
trigger_configurations: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDeploymentGroup.TriggerConfigProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
10588
10661
|
) -> None:
|
|
10589
10662
|
"""Type checking stubs"""
|