aws-cdk-lib 2.114.0__py3-none-any.whl → 2.115.0__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 +7 -1
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.114.0.jsii.tgz → aws-cdk-lib@2.115.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigateway/__init__.py +6 -0
- aws_cdk/aws_apigatewayv2/__init__.py +223 -574
- aws_cdk/aws_autoscaling/__init__.py +99 -86
- aws_cdk/aws_bedrock/__init__.py +355 -0
- aws_cdk/aws_billingconductor/__init__.py +41 -0
- aws_cdk/aws_cleanrooms/__init__.py +46 -20
- aws_cdk/aws_cloudformation/__init__.py +5 -1
- aws_cdk/aws_cloudtrail/__init__.py +89 -0
- aws_cdk/aws_codedeploy/__init__.py +233 -1
- aws_cdk/aws_connect/__init__.py +49 -2
- aws_cdk/aws_dlm/__init__.py +8 -11
- aws_cdk/aws_dms/__init__.py +3861 -1643
- aws_cdk/aws_ec2/__init__.py +91 -47
- aws_cdk/aws_ecs/__init__.py +18 -0
- aws_cdk/aws_efs/__init__.py +1 -1
- aws_cdk/aws_eks/__init__.py +26 -13
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +110 -54
- aws_cdk/aws_emr/__init__.py +287 -18
- aws_cdk/aws_eventschemas/__init__.py +1 -1
- aws_cdk/aws_fis/__init__.py +466 -34
- aws_cdk/aws_iam/__init__.py +47 -35
- aws_cdk/aws_internetmonitor/__init__.py +10 -12
- aws_cdk/aws_lightsail/__init__.py +4 -2
- aws_cdk/aws_logs/__init__.py +5 -4
- aws_cdk/aws_opensearchservice/__init__.py +47 -0
- aws_cdk/aws_osis/__init__.py +272 -32
- aws_cdk/aws_rds/__init__.py +205 -87
- aws_cdk/aws_resiliencehub/__init__.py +9 -14
- aws_cdk/aws_rolesanywhere/__init__.py +41 -53
- aws_cdk/aws_route53/__init__.py +3 -3
- aws_cdk/aws_route53_targets/__init__.py +2 -2
- aws_cdk/aws_s3/__init__.py +2 -6
- aws_cdk/aws_s3express/__init__.py +3 -3
- aws_cdk/aws_sagemaker/__init__.py +82 -11
- aws_cdk/aws_sns/__init__.py +181 -0
- aws_cdk/aws_stepfunctions/__init__.py +16 -8
- aws_cdk/aws_stepfunctions_tasks/__init__.py +975 -139
- aws_cdk/aws_workspacesthinclient/__init__.py +44 -35
- {aws_cdk_lib-2.114.0.dist-info → aws_cdk_lib-2.115.0.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.114.0.dist-info → aws_cdk_lib-2.115.0.dist-info}/RECORD +47 -46
- {aws_cdk_lib-2.114.0.dist-info → aws_cdk_lib-2.115.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.114.0.dist-info → aws_cdk_lib-2.115.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.114.0.dist-info → aws_cdk_lib-2.115.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.114.0.dist-info → aws_cdk_lib-2.115.0.dist-info}/top_level.txt +0 -0
|
@@ -1450,7 +1450,7 @@ class CfnDeploymentConfig(
|
|
|
1450
1450
|
):
|
|
1451
1451
|
'''The ``AWS::CodeDeploy::DeploymentConfig`` resource creates a set of deployment rules, deployment success conditions, and deployment failure conditions that AWS CodeDeploy uses during a deployment.
|
|
1452
1452
|
|
|
1453
|
-
The deployment configuration specifies
|
|
1453
|
+
The deployment configuration specifies the number or percentage of instances that must remain available at any time during a deployment.
|
|
1454
1454
|
|
|
1455
1455
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentconfig.html
|
|
1456
1456
|
:cloudformationResource: AWS::CodeDeploy::DeploymentConfig
|
|
@@ -1481,6 +1481,14 @@ class CfnDeploymentConfig(
|
|
|
1481
1481
|
linear_interval=123,
|
|
1482
1482
|
linear_percentage=123
|
|
1483
1483
|
)
|
|
1484
|
+
),
|
|
1485
|
+
zonal_config=codedeploy.CfnDeploymentConfig.ZonalConfigProperty(
|
|
1486
|
+
first_zone_monitor_duration_in_seconds=123,
|
|
1487
|
+
minimum_healthy_hosts_per_zone=codedeploy.CfnDeploymentConfig.MinimumHealthyHostsPerZoneProperty(
|
|
1488
|
+
type="type",
|
|
1489
|
+
value=123
|
|
1490
|
+
),
|
|
1491
|
+
monitor_duration_in_seconds=123
|
|
1484
1492
|
)
|
|
1485
1493
|
)
|
|
1486
1494
|
'''
|
|
@@ -1494,6 +1502,7 @@ class CfnDeploymentConfig(
|
|
|
1494
1502
|
deployment_config_name: typing.Optional[builtins.str] = None,
|
|
1495
1503
|
minimum_healthy_hosts: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDeploymentConfig.MinimumHealthyHostsProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1496
1504
|
traffic_routing_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDeploymentConfig.TrafficRoutingConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1505
|
+
zonal_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDeploymentConfig.ZonalConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1497
1506
|
) -> None:
|
|
1498
1507
|
'''
|
|
1499
1508
|
:param scope: Scope in which this resource is defined.
|
|
@@ -1502,6 +1511,7 @@ class CfnDeploymentConfig(
|
|
|
1502
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.
|
|
1503
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.
|
|
1504
1513
|
:param traffic_routing_config: The configuration that specifies how the deployment traffic is routed.
|
|
1514
|
+
:param zonal_config:
|
|
1505
1515
|
'''
|
|
1506
1516
|
if __debug__:
|
|
1507
1517
|
type_hints = typing.get_type_hints(_typecheckingstub__1601263a429a6a400738eca0c5abc3bd436649919830aa684054ba853d401c1f)
|
|
@@ -1512,6 +1522,7 @@ class CfnDeploymentConfig(
|
|
|
1512
1522
|
deployment_config_name=deployment_config_name,
|
|
1513
1523
|
minimum_healthy_hosts=minimum_healthy_hosts,
|
|
1514
1524
|
traffic_routing_config=traffic_routing_config,
|
|
1525
|
+
zonal_config=zonal_config,
|
|
1515
1526
|
)
|
|
1516
1527
|
|
|
1517
1528
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
@@ -1613,6 +1624,86 @@ class CfnDeploymentConfig(
|
|
|
1613
1624
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1614
1625
|
jsii.set(self, "trafficRoutingConfig", value)
|
|
1615
1626
|
|
|
1627
|
+
@builtins.property
|
|
1628
|
+
@jsii.member(jsii_name="zonalConfig")
|
|
1629
|
+
def zonal_config(
|
|
1630
|
+
self,
|
|
1631
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDeploymentConfig.ZonalConfigProperty"]]:
|
|
1632
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDeploymentConfig.ZonalConfigProperty"]], jsii.get(self, "zonalConfig"))
|
|
1633
|
+
|
|
1634
|
+
@zonal_config.setter
|
|
1635
|
+
def zonal_config(
|
|
1636
|
+
self,
|
|
1637
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDeploymentConfig.ZonalConfigProperty"]],
|
|
1638
|
+
) -> None:
|
|
1639
|
+
if __debug__:
|
|
1640
|
+
type_hints = typing.get_type_hints(_typecheckingstub__b0fc8d5b7ad2a2a7cd82c46195cb23f97c32d3c56a1872111486e2ce1020d343)
|
|
1641
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1642
|
+
jsii.set(self, "zonalConfig", value)
|
|
1643
|
+
|
|
1644
|
+
@jsii.data_type(
|
|
1645
|
+
jsii_type="aws-cdk-lib.aws_codedeploy.CfnDeploymentConfig.MinimumHealthyHostsPerZoneProperty",
|
|
1646
|
+
jsii_struct_bases=[],
|
|
1647
|
+
name_mapping={"type": "type", "value": "value"},
|
|
1648
|
+
)
|
|
1649
|
+
class MinimumHealthyHostsPerZoneProperty:
|
|
1650
|
+
def __init__(self, *, type: builtins.str, value: jsii.Number) -> None:
|
|
1651
|
+
'''
|
|
1652
|
+
:param type:
|
|
1653
|
+
:param value:
|
|
1654
|
+
|
|
1655
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-minimumhealthyhostsperzone.html
|
|
1656
|
+
:exampleMetadata: fixture=_generated
|
|
1657
|
+
|
|
1658
|
+
Example::
|
|
1659
|
+
|
|
1660
|
+
# The code below shows an example of how to instantiate this type.
|
|
1661
|
+
# The values are placeholders you should change.
|
|
1662
|
+
from aws_cdk import aws_codedeploy as codedeploy
|
|
1663
|
+
|
|
1664
|
+
minimum_healthy_hosts_per_zone_property = codedeploy.CfnDeploymentConfig.MinimumHealthyHostsPerZoneProperty(
|
|
1665
|
+
type="type",
|
|
1666
|
+
value=123
|
|
1667
|
+
)
|
|
1668
|
+
'''
|
|
1669
|
+
if __debug__:
|
|
1670
|
+
type_hints = typing.get_type_hints(_typecheckingstub__89b1c958e0c1fc5c8d7e76d50581e6a23f2e3c3a2d0966981f3ee3ade58830fb)
|
|
1671
|
+
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
1672
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1673
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1674
|
+
"type": type,
|
|
1675
|
+
"value": value,
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
@builtins.property
|
|
1679
|
+
def type(self) -> builtins.str:
|
|
1680
|
+
'''
|
|
1681
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-minimumhealthyhostsperzone.html#cfn-codedeploy-deploymentconfig-minimumhealthyhostsperzone-type
|
|
1682
|
+
'''
|
|
1683
|
+
result = self._values.get("type")
|
|
1684
|
+
assert result is not None, "Required property 'type' is missing"
|
|
1685
|
+
return typing.cast(builtins.str, result)
|
|
1686
|
+
|
|
1687
|
+
@builtins.property
|
|
1688
|
+
def value(self) -> jsii.Number:
|
|
1689
|
+
'''
|
|
1690
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-minimumhealthyhostsperzone.html#cfn-codedeploy-deploymentconfig-minimumhealthyhostsperzone-value
|
|
1691
|
+
'''
|
|
1692
|
+
result = self._values.get("value")
|
|
1693
|
+
assert result is not None, "Required property 'value' is missing"
|
|
1694
|
+
return typing.cast(jsii.Number, result)
|
|
1695
|
+
|
|
1696
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1697
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1698
|
+
|
|
1699
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1700
|
+
return not (rhs == self)
|
|
1701
|
+
|
|
1702
|
+
def __repr__(self) -> str:
|
|
1703
|
+
return "MinimumHealthyHostsPerZoneProperty(%s)" % ", ".join(
|
|
1704
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1705
|
+
)
|
|
1706
|
+
|
|
1616
1707
|
@jsii.data_type(
|
|
1617
1708
|
jsii_type="aws-cdk-lib.aws_codedeploy.CfnDeploymentConfig.MinimumHealthyHostsProperty",
|
|
1618
1709
|
jsii_struct_bases=[],
|
|
@@ -1947,6 +2038,98 @@ class CfnDeploymentConfig(
|
|
|
1947
2038
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
1948
2039
|
)
|
|
1949
2040
|
|
|
2041
|
+
@jsii.data_type(
|
|
2042
|
+
jsii_type="aws-cdk-lib.aws_codedeploy.CfnDeploymentConfig.ZonalConfigProperty",
|
|
2043
|
+
jsii_struct_bases=[],
|
|
2044
|
+
name_mapping={
|
|
2045
|
+
"first_zone_monitor_duration_in_seconds": "firstZoneMonitorDurationInSeconds",
|
|
2046
|
+
"minimum_healthy_hosts_per_zone": "minimumHealthyHostsPerZone",
|
|
2047
|
+
"monitor_duration_in_seconds": "monitorDurationInSeconds",
|
|
2048
|
+
},
|
|
2049
|
+
)
|
|
2050
|
+
class ZonalConfigProperty:
|
|
2051
|
+
def __init__(
|
|
2052
|
+
self,
|
|
2053
|
+
*,
|
|
2054
|
+
first_zone_monitor_duration_in_seconds: typing.Optional[jsii.Number] = None,
|
|
2055
|
+
minimum_healthy_hosts_per_zone: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDeploymentConfig.MinimumHealthyHostsPerZoneProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2056
|
+
monitor_duration_in_seconds: typing.Optional[jsii.Number] = None,
|
|
2057
|
+
) -> None:
|
|
2058
|
+
'''
|
|
2059
|
+
:param first_zone_monitor_duration_in_seconds:
|
|
2060
|
+
:param minimum_healthy_hosts_per_zone:
|
|
2061
|
+
:param monitor_duration_in_seconds:
|
|
2062
|
+
|
|
2063
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-zonalconfig.html
|
|
2064
|
+
:exampleMetadata: fixture=_generated
|
|
2065
|
+
|
|
2066
|
+
Example::
|
|
2067
|
+
|
|
2068
|
+
# The code below shows an example of how to instantiate this type.
|
|
2069
|
+
# The values are placeholders you should change.
|
|
2070
|
+
from aws_cdk import aws_codedeploy as codedeploy
|
|
2071
|
+
|
|
2072
|
+
zonal_config_property = codedeploy.CfnDeploymentConfig.ZonalConfigProperty(
|
|
2073
|
+
first_zone_monitor_duration_in_seconds=123,
|
|
2074
|
+
minimum_healthy_hosts_per_zone=codedeploy.CfnDeploymentConfig.MinimumHealthyHostsPerZoneProperty(
|
|
2075
|
+
type="type",
|
|
2076
|
+
value=123
|
|
2077
|
+
),
|
|
2078
|
+
monitor_duration_in_seconds=123
|
|
2079
|
+
)
|
|
2080
|
+
'''
|
|
2081
|
+
if __debug__:
|
|
2082
|
+
type_hints = typing.get_type_hints(_typecheckingstub__8d0322a57eb722fe06a715f272f3ec7473c80fcc783d030b62fdbaa0cc8cc047)
|
|
2083
|
+
check_type(argname="argument first_zone_monitor_duration_in_seconds", value=first_zone_monitor_duration_in_seconds, expected_type=type_hints["first_zone_monitor_duration_in_seconds"])
|
|
2084
|
+
check_type(argname="argument minimum_healthy_hosts_per_zone", value=minimum_healthy_hosts_per_zone, expected_type=type_hints["minimum_healthy_hosts_per_zone"])
|
|
2085
|
+
check_type(argname="argument monitor_duration_in_seconds", value=monitor_duration_in_seconds, expected_type=type_hints["monitor_duration_in_seconds"])
|
|
2086
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
2087
|
+
if first_zone_monitor_duration_in_seconds is not None:
|
|
2088
|
+
self._values["first_zone_monitor_duration_in_seconds"] = first_zone_monitor_duration_in_seconds
|
|
2089
|
+
if minimum_healthy_hosts_per_zone is not None:
|
|
2090
|
+
self._values["minimum_healthy_hosts_per_zone"] = minimum_healthy_hosts_per_zone
|
|
2091
|
+
if monitor_duration_in_seconds is not None:
|
|
2092
|
+
self._values["monitor_duration_in_seconds"] = monitor_duration_in_seconds
|
|
2093
|
+
|
|
2094
|
+
@builtins.property
|
|
2095
|
+
def first_zone_monitor_duration_in_seconds(
|
|
2096
|
+
self,
|
|
2097
|
+
) -> typing.Optional[jsii.Number]:
|
|
2098
|
+
'''
|
|
2099
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-zonalconfig.html#cfn-codedeploy-deploymentconfig-zonalconfig-firstzonemonitordurationinseconds
|
|
2100
|
+
'''
|
|
2101
|
+
result = self._values.get("first_zone_monitor_duration_in_seconds")
|
|
2102
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
2103
|
+
|
|
2104
|
+
@builtins.property
|
|
2105
|
+
def minimum_healthy_hosts_per_zone(
|
|
2106
|
+
self,
|
|
2107
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDeploymentConfig.MinimumHealthyHostsPerZoneProperty"]]:
|
|
2108
|
+
'''
|
|
2109
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-zonalconfig.html#cfn-codedeploy-deploymentconfig-zonalconfig-minimumhealthyhostsperzone
|
|
2110
|
+
'''
|
|
2111
|
+
result = self._values.get("minimum_healthy_hosts_per_zone")
|
|
2112
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDeploymentConfig.MinimumHealthyHostsPerZoneProperty"]], result)
|
|
2113
|
+
|
|
2114
|
+
@builtins.property
|
|
2115
|
+
def monitor_duration_in_seconds(self) -> typing.Optional[jsii.Number]:
|
|
2116
|
+
'''
|
|
2117
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-zonalconfig.html#cfn-codedeploy-deploymentconfig-zonalconfig-monitordurationinseconds
|
|
2118
|
+
'''
|
|
2119
|
+
result = self._values.get("monitor_duration_in_seconds")
|
|
2120
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
2121
|
+
|
|
2122
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
2123
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
2124
|
+
|
|
2125
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
2126
|
+
return not (rhs == self)
|
|
2127
|
+
|
|
2128
|
+
def __repr__(self) -> str:
|
|
2129
|
+
return "ZonalConfigProperty(%s)" % ", ".join(
|
|
2130
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
2131
|
+
)
|
|
2132
|
+
|
|
1950
2133
|
|
|
1951
2134
|
@jsii.data_type(
|
|
1952
2135
|
jsii_type="aws-cdk-lib.aws_codedeploy.CfnDeploymentConfigProps",
|
|
@@ -1956,6 +2139,7 @@ class CfnDeploymentConfig(
|
|
|
1956
2139
|
"deployment_config_name": "deploymentConfigName",
|
|
1957
2140
|
"minimum_healthy_hosts": "minimumHealthyHosts",
|
|
1958
2141
|
"traffic_routing_config": "trafficRoutingConfig",
|
|
2142
|
+
"zonal_config": "zonalConfig",
|
|
1959
2143
|
},
|
|
1960
2144
|
)
|
|
1961
2145
|
class CfnDeploymentConfigProps:
|
|
@@ -1966,6 +2150,7 @@ class CfnDeploymentConfigProps:
|
|
|
1966
2150
|
deployment_config_name: typing.Optional[builtins.str] = None,
|
|
1967
2151
|
minimum_healthy_hosts: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDeploymentConfig.MinimumHealthyHostsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1968
2152
|
traffic_routing_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDeploymentConfig.TrafficRoutingConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2153
|
+
zonal_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDeploymentConfig.ZonalConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1969
2154
|
) -> None:
|
|
1970
2155
|
'''Properties for defining a ``CfnDeploymentConfig``.
|
|
1971
2156
|
|
|
@@ -1973,6 +2158,7 @@ class CfnDeploymentConfigProps:
|
|
|
1973
2158
|
: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.
|
|
1974
2159
|
: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.
|
|
1975
2160
|
:param traffic_routing_config: The configuration that specifies how the deployment traffic is routed.
|
|
2161
|
+
:param zonal_config:
|
|
1976
2162
|
|
|
1977
2163
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentconfig.html
|
|
1978
2164
|
:exampleMetadata: fixture=_generated
|
|
@@ -2002,6 +2188,14 @@ class CfnDeploymentConfigProps:
|
|
|
2002
2188
|
linear_interval=123,
|
|
2003
2189
|
linear_percentage=123
|
|
2004
2190
|
)
|
|
2191
|
+
),
|
|
2192
|
+
zonal_config=codedeploy.CfnDeploymentConfig.ZonalConfigProperty(
|
|
2193
|
+
first_zone_monitor_duration_in_seconds=123,
|
|
2194
|
+
minimum_healthy_hosts_per_zone=codedeploy.CfnDeploymentConfig.MinimumHealthyHostsPerZoneProperty(
|
|
2195
|
+
type="type",
|
|
2196
|
+
value=123
|
|
2197
|
+
),
|
|
2198
|
+
monitor_duration_in_seconds=123
|
|
2005
2199
|
)
|
|
2006
2200
|
)
|
|
2007
2201
|
'''
|
|
@@ -2011,6 +2205,7 @@ class CfnDeploymentConfigProps:
|
|
|
2011
2205
|
check_type(argname="argument deployment_config_name", value=deployment_config_name, expected_type=type_hints["deployment_config_name"])
|
|
2012
2206
|
check_type(argname="argument minimum_healthy_hosts", value=minimum_healthy_hosts, expected_type=type_hints["minimum_healthy_hosts"])
|
|
2013
2207
|
check_type(argname="argument traffic_routing_config", value=traffic_routing_config, expected_type=type_hints["traffic_routing_config"])
|
|
2208
|
+
check_type(argname="argument zonal_config", value=zonal_config, expected_type=type_hints["zonal_config"])
|
|
2014
2209
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
2015
2210
|
if compute_platform is not None:
|
|
2016
2211
|
self._values["compute_platform"] = compute_platform
|
|
@@ -2020,6 +2215,8 @@ class CfnDeploymentConfigProps:
|
|
|
2020
2215
|
self._values["minimum_healthy_hosts"] = minimum_healthy_hosts
|
|
2021
2216
|
if traffic_routing_config is not None:
|
|
2022
2217
|
self._values["traffic_routing_config"] = traffic_routing_config
|
|
2218
|
+
if zonal_config is not None:
|
|
2219
|
+
self._values["zonal_config"] = zonal_config
|
|
2023
2220
|
|
|
2024
2221
|
@builtins.property
|
|
2025
2222
|
def compute_platform(self) -> typing.Optional[builtins.str]:
|
|
@@ -2079,6 +2276,16 @@ class CfnDeploymentConfigProps:
|
|
|
2079
2276
|
result = self._values.get("traffic_routing_config")
|
|
2080
2277
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnDeploymentConfig.TrafficRoutingConfigProperty]], result)
|
|
2081
2278
|
|
|
2279
|
+
@builtins.property
|
|
2280
|
+
def zonal_config(
|
|
2281
|
+
self,
|
|
2282
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnDeploymentConfig.ZonalConfigProperty]]:
|
|
2283
|
+
'''
|
|
2284
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentconfig.html#cfn-codedeploy-deploymentconfig-zonalconfig
|
|
2285
|
+
'''
|
|
2286
|
+
result = self._values.get("zonal_config")
|
|
2287
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnDeploymentConfig.ZonalConfigProperty]], result)
|
|
2288
|
+
|
|
2082
2289
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
2083
2290
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
2084
2291
|
|
|
@@ -9893,6 +10100,7 @@ def _typecheckingstub__1601263a429a6a400738eca0c5abc3bd436649919830aa684054ba853
|
|
|
9893
10100
|
deployment_config_name: typing.Optional[builtins.str] = None,
|
|
9894
10101
|
minimum_healthy_hosts: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDeploymentConfig.MinimumHealthyHostsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
9895
10102
|
traffic_routing_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDeploymentConfig.TrafficRoutingConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10103
|
+
zonal_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDeploymentConfig.ZonalConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
9896
10104
|
) -> None:
|
|
9897
10105
|
"""Type checking stubs"""
|
|
9898
10106
|
pass
|
|
@@ -9933,6 +10141,20 @@ def _typecheckingstub__fe1bae2a6b88ba41a47472dc8dc7bbf6f72bde54b89b4ed3b8f8e3fd3
|
|
|
9933
10141
|
"""Type checking stubs"""
|
|
9934
10142
|
pass
|
|
9935
10143
|
|
|
10144
|
+
def _typecheckingstub__b0fc8d5b7ad2a2a7cd82c46195cb23f97c32d3c56a1872111486e2ce1020d343(
|
|
10145
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnDeploymentConfig.ZonalConfigProperty]],
|
|
10146
|
+
) -> None:
|
|
10147
|
+
"""Type checking stubs"""
|
|
10148
|
+
pass
|
|
10149
|
+
|
|
10150
|
+
def _typecheckingstub__89b1c958e0c1fc5c8d7e76d50581e6a23f2e3c3a2d0966981f3ee3ade58830fb(
|
|
10151
|
+
*,
|
|
10152
|
+
type: builtins.str,
|
|
10153
|
+
value: jsii.Number,
|
|
10154
|
+
) -> None:
|
|
10155
|
+
"""Type checking stubs"""
|
|
10156
|
+
pass
|
|
10157
|
+
|
|
9936
10158
|
def _typecheckingstub__564f19ccdd0db2b16c3c238ca2a96b350c9884c519827c6fb91e0d1d234c91d7(
|
|
9937
10159
|
*,
|
|
9938
10160
|
type: builtins.str,
|
|
@@ -9966,12 +10188,22 @@ def _typecheckingstub__6b1a59608913355745ad3536a5af2b299b48dfb68b88ee15dd0c47987
|
|
|
9966
10188
|
"""Type checking stubs"""
|
|
9967
10189
|
pass
|
|
9968
10190
|
|
|
10191
|
+
def _typecheckingstub__8d0322a57eb722fe06a715f272f3ec7473c80fcc783d030b62fdbaa0cc8cc047(
|
|
10192
|
+
*,
|
|
10193
|
+
first_zone_monitor_duration_in_seconds: typing.Optional[jsii.Number] = None,
|
|
10194
|
+
minimum_healthy_hosts_per_zone: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDeploymentConfig.MinimumHealthyHostsPerZoneProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10195
|
+
monitor_duration_in_seconds: typing.Optional[jsii.Number] = None,
|
|
10196
|
+
) -> None:
|
|
10197
|
+
"""Type checking stubs"""
|
|
10198
|
+
pass
|
|
10199
|
+
|
|
9969
10200
|
def _typecheckingstub__d50cfbd3bc3fca6105506273e4e48e992de4fbb025dced2c525ba1da4bacaadb(
|
|
9970
10201
|
*,
|
|
9971
10202
|
compute_platform: typing.Optional[builtins.str] = None,
|
|
9972
10203
|
deployment_config_name: typing.Optional[builtins.str] = None,
|
|
9973
10204
|
minimum_healthy_hosts: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDeploymentConfig.MinimumHealthyHostsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
9974
10205
|
traffic_routing_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDeploymentConfig.TrafficRoutingConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10206
|
+
zonal_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDeploymentConfig.ZonalConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
9975
10207
|
) -> None:
|
|
9976
10208
|
"""Type checking stubs"""
|
|
9977
10209
|
pass
|
aws_cdk/aws_connect/__init__.py
CHANGED
|
@@ -3817,7 +3817,11 @@ class CfnInstance(
|
|
|
3817
3817
|
|
|
3818
3818
|
# the properties below are optional
|
|
3819
3819
|
directory_id="directoryId",
|
|
3820
|
-
instance_alias="instanceAlias"
|
|
3820
|
+
instance_alias="instanceAlias",
|
|
3821
|
+
tags=[CfnTag(
|
|
3822
|
+
key="key",
|
|
3823
|
+
value="value"
|
|
3824
|
+
)]
|
|
3821
3825
|
)
|
|
3822
3826
|
'''
|
|
3823
3827
|
|
|
@@ -3830,6 +3834,7 @@ class CfnInstance(
|
|
|
3830
3834
|
identity_management_type: builtins.str,
|
|
3831
3835
|
directory_id: typing.Optional[builtins.str] = None,
|
|
3832
3836
|
instance_alias: typing.Optional[builtins.str] = None,
|
|
3837
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3833
3838
|
) -> None:
|
|
3834
3839
|
'''
|
|
3835
3840
|
:param scope: Scope in which this resource is defined.
|
|
@@ -3838,6 +3843,7 @@ class CfnInstance(
|
|
|
3838
3843
|
:param identity_management_type: The identity management type.
|
|
3839
3844
|
:param directory_id: The identifier for the directory.
|
|
3840
3845
|
:param instance_alias: The alias of instance. ``InstanceAlias`` is only required when ``IdentityManagementType`` is ``CONNECT_MANAGED`` or ``SAML`` . ``InstanceAlias`` is not required when ``IdentityManagementType`` is ``EXISTING_DIRECTORY`` .
|
|
3846
|
+
:param tags: An array of key-value pairs to apply to this resource.
|
|
3841
3847
|
'''
|
|
3842
3848
|
if __debug__:
|
|
3843
3849
|
type_hints = typing.get_type_hints(_typecheckingstub__f291b6bb708a40e1a35dc95de4a38d5f9d8117683bed082183bd387f4848fef9)
|
|
@@ -3848,6 +3854,7 @@ class CfnInstance(
|
|
|
3848
3854
|
identity_management_type=identity_management_type,
|
|
3849
3855
|
directory_id=directory_id,
|
|
3850
3856
|
instance_alias=instance_alias,
|
|
3857
|
+
tags=tags,
|
|
3851
3858
|
)
|
|
3852
3859
|
|
|
3853
3860
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
@@ -3991,6 +3998,19 @@ class CfnInstance(
|
|
|
3991
3998
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
3992
3999
|
jsii.set(self, "instanceAlias", value)
|
|
3993
4000
|
|
|
4001
|
+
@builtins.property
|
|
4002
|
+
@jsii.member(jsii_name="tags")
|
|
4003
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
4004
|
+
'''An array of key-value pairs to apply to this resource.'''
|
|
4005
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tags"))
|
|
4006
|
+
|
|
4007
|
+
@tags.setter
|
|
4008
|
+
def tags(self, value: typing.Optional[typing.List[_CfnTag_f6864754]]) -> None:
|
|
4009
|
+
if __debug__:
|
|
4010
|
+
type_hints = typing.get_type_hints(_typecheckingstub__3e8d8f5cd36a7297cd164f61b17e1e7ad86e005761d780299041506bff9d1f68)
|
|
4011
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
4012
|
+
jsii.set(self, "tags", value)
|
|
4013
|
+
|
|
3994
4014
|
@jsii.data_type(
|
|
3995
4015
|
jsii_type="aws-cdk-lib.aws_connect.CfnInstance.AttributesProperty",
|
|
3996
4016
|
jsii_struct_bases=[],
|
|
@@ -4168,6 +4188,7 @@ class CfnInstance(
|
|
|
4168
4188
|
"identity_management_type": "identityManagementType",
|
|
4169
4189
|
"directory_id": "directoryId",
|
|
4170
4190
|
"instance_alias": "instanceAlias",
|
|
4191
|
+
"tags": "tags",
|
|
4171
4192
|
},
|
|
4172
4193
|
)
|
|
4173
4194
|
class CfnInstanceProps:
|
|
@@ -4178,6 +4199,7 @@ class CfnInstanceProps:
|
|
|
4178
4199
|
identity_management_type: builtins.str,
|
|
4179
4200
|
directory_id: typing.Optional[builtins.str] = None,
|
|
4180
4201
|
instance_alias: typing.Optional[builtins.str] = None,
|
|
4202
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4181
4203
|
) -> None:
|
|
4182
4204
|
'''Properties for defining a ``CfnInstance``.
|
|
4183
4205
|
|
|
@@ -4185,6 +4207,7 @@ class CfnInstanceProps:
|
|
|
4185
4207
|
:param identity_management_type: The identity management type.
|
|
4186
4208
|
:param directory_id: The identifier for the directory.
|
|
4187
4209
|
:param instance_alias: The alias of instance. ``InstanceAlias`` is only required when ``IdentityManagementType`` is ``CONNECT_MANAGED`` or ``SAML`` . ``InstanceAlias`` is not required when ``IdentityManagementType`` is ``EXISTING_DIRECTORY`` .
|
|
4210
|
+
:param tags: An array of key-value pairs to apply to this resource.
|
|
4188
4211
|
|
|
4189
4212
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-instance.html
|
|
4190
4213
|
:exampleMetadata: fixture=_generated
|
|
@@ -4211,7 +4234,11 @@ class CfnInstanceProps:
|
|
|
4211
4234
|
|
|
4212
4235
|
# the properties below are optional
|
|
4213
4236
|
directory_id="directoryId",
|
|
4214
|
-
instance_alias="instanceAlias"
|
|
4237
|
+
instance_alias="instanceAlias",
|
|
4238
|
+
tags=[CfnTag(
|
|
4239
|
+
key="key",
|
|
4240
|
+
value="value"
|
|
4241
|
+
)]
|
|
4215
4242
|
)
|
|
4216
4243
|
'''
|
|
4217
4244
|
if __debug__:
|
|
@@ -4220,6 +4247,7 @@ class CfnInstanceProps:
|
|
|
4220
4247
|
check_type(argname="argument identity_management_type", value=identity_management_type, expected_type=type_hints["identity_management_type"])
|
|
4221
4248
|
check_type(argname="argument directory_id", value=directory_id, expected_type=type_hints["directory_id"])
|
|
4222
4249
|
check_type(argname="argument instance_alias", value=instance_alias, expected_type=type_hints["instance_alias"])
|
|
4250
|
+
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
4223
4251
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
4224
4252
|
"attributes": attributes,
|
|
4225
4253
|
"identity_management_type": identity_management_type,
|
|
@@ -4228,6 +4256,8 @@ class CfnInstanceProps:
|
|
|
4228
4256
|
self._values["directory_id"] = directory_id
|
|
4229
4257
|
if instance_alias is not None:
|
|
4230
4258
|
self._values["instance_alias"] = instance_alias
|
|
4259
|
+
if tags is not None:
|
|
4260
|
+
self._values["tags"] = tags
|
|
4231
4261
|
|
|
4232
4262
|
@builtins.property
|
|
4233
4263
|
def attributes(
|
|
@@ -4271,6 +4301,15 @@ class CfnInstanceProps:
|
|
|
4271
4301
|
result = self._values.get("instance_alias")
|
|
4272
4302
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
4273
4303
|
|
|
4304
|
+
@builtins.property
|
|
4305
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
4306
|
+
'''An array of key-value pairs to apply to this resource.
|
|
4307
|
+
|
|
4308
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-instance.html#cfn-connect-instance-tags
|
|
4309
|
+
'''
|
|
4310
|
+
result = self._values.get("tags")
|
|
4311
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], result)
|
|
4312
|
+
|
|
4274
4313
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
4275
4314
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
4276
4315
|
|
|
@@ -13312,6 +13351,7 @@ def _typecheckingstub__f291b6bb708a40e1a35dc95de4a38d5f9d8117683bed082183bd387f4
|
|
|
13312
13351
|
identity_management_type: builtins.str,
|
|
13313
13352
|
directory_id: typing.Optional[builtins.str] = None,
|
|
13314
13353
|
instance_alias: typing.Optional[builtins.str] = None,
|
|
13354
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
13315
13355
|
) -> None:
|
|
13316
13356
|
"""Type checking stubs"""
|
|
13317
13357
|
pass
|
|
@@ -13352,6 +13392,12 @@ def _typecheckingstub__225190f7b3c1545c436fe6b710e05a3a5b7d256f1ece21dcb8ad6ba49
|
|
|
13352
13392
|
"""Type checking stubs"""
|
|
13353
13393
|
pass
|
|
13354
13394
|
|
|
13395
|
+
def _typecheckingstub__3e8d8f5cd36a7297cd164f61b17e1e7ad86e005761d780299041506bff9d1f68(
|
|
13396
|
+
value: typing.Optional[typing.List[_CfnTag_f6864754]],
|
|
13397
|
+
) -> None:
|
|
13398
|
+
"""Type checking stubs"""
|
|
13399
|
+
pass
|
|
13400
|
+
|
|
13355
13401
|
def _typecheckingstub__c40aedafdc4ea4fb2b717cc5c6ef0e2db4eb7490be99c35b78dc90f18526d068(
|
|
13356
13402
|
*,
|
|
13357
13403
|
inbound_calls: typing.Union[builtins.bool, _IResolvable_da3f097b],
|
|
@@ -13371,6 +13417,7 @@ def _typecheckingstub__67fdacfbc8ac4206df45637f43843e90e644b42387d3af9173f714ef0
|
|
|
13371
13417
|
identity_management_type: builtins.str,
|
|
13372
13418
|
directory_id: typing.Optional[builtins.str] = None,
|
|
13373
13419
|
instance_alias: typing.Optional[builtins.str] = None,
|
|
13420
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
13374
13421
|
) -> None:
|
|
13375
13422
|
"""Type checking stubs"""
|
|
13376
13423
|
pass
|
aws_cdk/aws_dlm/__init__.py
CHANGED
|
@@ -254,7 +254,7 @@ class CfnLifecyclePolicy(
|
|
|
254
254
|
:param copy_tags: *[Default policies only]* Indicates whether the policy should copy tags from the source resource to the snapshot or AMI. If you do not specify a value, the default is ``false`` . Default: false
|
|
255
255
|
:param create_interval: *[Default policies only]* Specifies how often the policy should run and create snapshots or AMIs. The creation frequency can range from 1 to 7 days. If you do not specify a value, the default is 1. Default: 1
|
|
256
256
|
:param cross_region_copy_targets: *[Default policies only]* Specifies destination Regions for snapshot or AMI copies. You can specify up to 3 destination Regions. If you do not want to create cross-Region copies, omit this parameter.
|
|
257
|
-
:param default_policy:
|
|
257
|
+
:param default_policy: Indicates whether the policy is a default lifecycle policy or a custom lifecycle policy. - ``true`` - the policy is a default policy. - ``false`` - the policy is a custom policy.
|
|
258
258
|
:param description: A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$ are supported.
|
|
259
259
|
:param exclusions: *[Default policies only]* Specifies exclusion parameters for volumes or instances for which you do not want to create snapshots or AMIs. The policy will not create snapshots or AMIs for target resources that match any of the specified exclusion parameters.
|
|
260
260
|
:param execution_role_arn: The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
|
|
@@ -390,10 +390,7 @@ class CfnLifecyclePolicy(
|
|
|
390
390
|
@builtins.property
|
|
391
391
|
@jsii.member(jsii_name="defaultPolicy")
|
|
392
392
|
def default_policy(self) -> typing.Optional[builtins.str]:
|
|
393
|
-
'''
|
|
394
|
-
|
|
395
|
-
Values include:.
|
|
396
|
-
'''
|
|
393
|
+
'''Indicates whether the policy is a default lifecycle policy or a custom lifecycle policy.'''
|
|
397
394
|
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "defaultPolicy"))
|
|
398
395
|
|
|
399
396
|
@default_policy.setter
|
|
@@ -2076,7 +2073,7 @@ class CfnLifecyclePolicy(
|
|
|
2076
2073
|
:param extend_deletion: *[Default policies only]* Defines the snapshot or AMI retention behavior for the policy if the source volume or instance is deleted, or if the policy enters the error, disabled, or deleted state. By default ( *ExtendDeletion=false* ): - If a source resource is deleted, Amazon Data Lifecycle Manager will continue to delete previously created snapshots or AMIs, up to but not including the last one, based on the specified retention period. If you want Amazon Data Lifecycle Manager to delete all snapshots or AMIs, including the last one, specify ``true`` . - If a policy enters the error, disabled, or deleted state, Amazon Data Lifecycle Manager stops deleting snapshots and AMIs. If you want Amazon Data Lifecycle Manager to continue deleting snapshots or AMIs, including the last one, if the policy enters one of these states, specify ``true`` . If you enable extended deletion ( *ExtendDeletion=true* ), you override both default behaviors simultaneously. If you do not specify a value, the default is ``false`` . Default: false
|
|
2077
2074
|
:param parameters: *[Custom snapshot and AMI policies only]* A set of optional parameters for snapshot and AMI lifecycle policies. .. epigraph:: If you are modifying a policy that was created or previously modified using the Amazon Data Lifecycle Manager console, then you must include this parameter and specify either the default values or the new values that you require. You can't omit this parameter or set its values to null.
|
|
2078
2075
|
:param policy_language: The type of policy to create. Specify one of the following:. - ``SIMPLIFIED`` To create a default policy. - ``STANDARD`` To create a custom policy.
|
|
2079
|
-
:param policy_type:
|
|
2076
|
+
:param policy_type: The type of policy. Specify ``EBS_SNAPSHOT_MANAGEMENT`` to create a lifecycle policy that manages the lifecycle of Amazon EBS snapshots. Specify ``IMAGE_MANAGEMENT`` to create a lifecycle policy that manages the lifecycle of EBS-backed AMIs. Specify ``EVENT_BASED_POLICY`` to create an event-based policy that performs specific actions when a defined event occurs in your AWS account . The default is ``EBS_SNAPSHOT_MANAGEMENT`` .
|
|
2080
2077
|
:param resource_locations: *[Custom snapshot and AMI policies only]* The location of the resources to backup. If the source resources are located in an AWS Region , specify ``CLOUD`` . If the source resources are located on an Outpost in your account, specify ``OUTPOST`` . If you specify ``OUTPOST`` , Amazon Data Lifecycle Manager backs up all resources of the specified type with matching target tags across all of the Outposts in your account.
|
|
2081
2078
|
:param resource_type: *[Default policies only]* Specify the type of default policy to create. - To create a default policy for EBS snapshots, that creates snapshots of all volumes in the Region that do not have recent backups, specify ``VOLUME`` . - To create a default policy for EBS-backed AMIs, that creates EBS-backed AMIs from all instances in the Region that do not have recent backups, specify ``INSTANCE`` .
|
|
2082
2079
|
:param resource_types: *[Custom snapshot policies only]* The target resource type for snapshot and AMI lifecycle policies. Use ``VOLUME`` to create snapshots of individual volumes or use ``INSTANCE`` to create multi-volume snapshots from the volumes for an instance.
|
|
@@ -2410,7 +2407,7 @@ class CfnLifecyclePolicy(
|
|
|
2410
2407
|
|
|
2411
2408
|
@builtins.property
|
|
2412
2409
|
def policy_type(self) -> typing.Optional[builtins.str]:
|
|
2413
|
-
'''
|
|
2410
|
+
'''The type of policy.
|
|
2414
2411
|
|
|
2415
2412
|
Specify ``EBS_SNAPSHOT_MANAGEMENT`` to create a lifecycle policy that manages the lifecycle of Amazon EBS snapshots. Specify ``IMAGE_MANAGEMENT`` to create a lifecycle policy that manages the lifecycle of EBS-backed AMIs. Specify ``EVENT_BASED_POLICY`` to create an event-based policy that performs specific actions when a defined event occurs in your AWS account .
|
|
2416
2413
|
|
|
@@ -3340,7 +3337,7 @@ class CfnLifecyclePolicyProps:
|
|
|
3340
3337
|
:param copy_tags: *[Default policies only]* Indicates whether the policy should copy tags from the source resource to the snapshot or AMI. If you do not specify a value, the default is ``false`` . Default: false
|
|
3341
3338
|
:param create_interval: *[Default policies only]* Specifies how often the policy should run and create snapshots or AMIs. The creation frequency can range from 1 to 7 days. If you do not specify a value, the default is 1. Default: 1
|
|
3342
3339
|
:param cross_region_copy_targets: *[Default policies only]* Specifies destination Regions for snapshot or AMI copies. You can specify up to 3 destination Regions. If you do not want to create cross-Region copies, omit this parameter.
|
|
3343
|
-
:param default_policy:
|
|
3340
|
+
:param default_policy: Indicates whether the policy is a default lifecycle policy or a custom lifecycle policy. - ``true`` - the policy is a default policy. - ``false`` - the policy is a custom policy.
|
|
3344
3341
|
:param description: A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$ are supported.
|
|
3345
3342
|
:param exclusions: *[Default policies only]* Specifies exclusion parameters for volumes or instances for which you do not want to create snapshots or AMIs. The policy will not create snapshots or AMIs for target resources that match any of the specified exclusion parameters.
|
|
3346
3343
|
:param execution_role_arn: The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
|
|
@@ -3598,10 +3595,10 @@ class CfnLifecyclePolicyProps:
|
|
|
3598
3595
|
|
|
3599
3596
|
@builtins.property
|
|
3600
3597
|
def default_policy(self) -> typing.Optional[builtins.str]:
|
|
3601
|
-
'''
|
|
3598
|
+
'''Indicates whether the policy is a default lifecycle policy or a custom lifecycle policy.
|
|
3602
3599
|
|
|
3603
|
-
- ``
|
|
3604
|
-
- ``
|
|
3600
|
+
- ``true`` - the policy is a default policy.
|
|
3601
|
+
- ``false`` - the policy is a custom policy.
|
|
3605
3602
|
|
|
3606
3603
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dlm-lifecyclepolicy.html#cfn-dlm-lifecyclepolicy-defaultpolicy
|
|
3607
3604
|
'''
|