aws-cdk-lib 2.175.1__py3-none-any.whl → 2.176.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 +15 -6
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.175.1.jsii.tgz → aws-cdk-lib@2.176.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigatewayv2_integrations/__init__.py +159 -7
- aws_cdk/aws_appconfig/__init__.py +106 -24
- aws_cdk/aws_appsync/__init__.py +3 -3
- aws_cdk/aws_backup/__init__.py +18 -84
- aws_cdk/aws_cleanrooms/__init__.py +77 -34
- aws_cdk/aws_cloudformation/__init__.py +4 -2
- aws_cdk/aws_cloudfront/experimental/__init__.py +1 -1
- aws_cdk/aws_cloudwatch/__init__.py +53 -49
- aws_cdk/aws_codebuild/__init__.py +36 -0
- aws_cdk/aws_cognito/__init__.py +228 -219
- aws_cdk/aws_customerprofiles/__init__.py +1060 -0
- aws_cdk/aws_docdb/__init__.py +29 -9
- aws_cdk/aws_dynamodb/__init__.py +77 -58
- aws_cdk/aws_ec2/__init__.py +11 -8
- aws_cdk/aws_ecs/__init__.py +100 -35
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +41 -5
- aws_cdk/aws_healthlake/__init__.py +36 -40
- aws_cdk/aws_lambda/__init__.py +8 -8
- aws_cdk/aws_lambda_event_sources/__init__.py +9 -9
- aws_cdk/aws_lex/__init__.py +105 -0
- aws_cdk/aws_mediaconvert/__init__.py +7 -3
- aws_cdk/aws_organizations/__init__.py +5 -9
- aws_cdk/aws_rds/__init__.py +83 -8
- aws_cdk/aws_resiliencehub/__init__.py +41 -0
- aws_cdk/aws_s3/__init__.py +5 -5
- aws_cdk/aws_ses/__init__.py +25 -4
- aws_cdk/aws_ssm/__init__.py +9 -2
- aws_cdk/aws_ssmquicksetup/__init__.py +84 -84
- aws_cdk/aws_sso/__init__.py +9 -5
- aws_cdk/cx_api/__init__.py +25 -4
- {aws_cdk_lib-2.175.1.dist-info → aws_cdk_lib-2.176.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.175.1.dist-info → aws_cdk_lib-2.176.0.dist-info}/RECORD +39 -40
- aws_cdk/aws_iot1click/__init__.py +0 -1193
- {aws_cdk_lib-2.175.1.dist-info → aws_cdk_lib-2.176.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.175.1.dist-info → aws_cdk_lib-2.176.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.175.1.dist-info → aws_cdk_lib-2.176.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.175.1.dist-info → aws_cdk_lib-2.176.0.dist-info}/top_level.txt +0 -0
|
@@ -1462,7 +1462,7 @@ class CfnAlarm(
|
|
|
1462
1462
|
:param metrics: An array that enables you to create an alarm based on the result of a metric math expression. Each item in the array either retrieves a metric or performs a math expression. If you specify the ``Metrics`` parameter, you cannot specify ``MetricName`` , ``Dimensions`` , ``Period`` , ``Namespace`` , ``Statistic`` , ``ExtendedStatistic`` , or ``Unit`` .
|
|
1463
1463
|
:param namespace: The namespace of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm based on a math expression, you can't specify ``Namespace`` and you use ``Metrics`` instead. For a list of namespaces for metrics from AWS services, see `AWS Services That Publish CloudWatch Metrics. <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html>`_
|
|
1464
1464
|
:param ok_actions: The actions to execute when this alarm transitions to the ``OK`` state from any other state. Each action is specified as an Amazon Resource Name (ARN).
|
|
1465
|
-
:param period: The period, in seconds, over which the statistic is applied. This is required for an alarm based on a metric. Valid values are 10, 30, 60, and any multiple of 60. For an alarm based on a math expression, you can't specify ``Period`` , and instead you use the ``Metrics`` parameter. *Minimum:* 10
|
|
1465
|
+
:param period: The period, in seconds, over which the statistic is applied. This is required for an alarm based on a metric. Valid values are 10, 20, 30, 60, and any multiple of 60. For an alarm based on a math expression, you can't specify ``Period`` , and instead you use the ``Metrics`` parameter. *Minimum:* 10
|
|
1466
1466
|
:param statistic: The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use ``ExtendedStatistic`` . For an alarm based on a metric, you must specify either ``Statistic`` or ``ExtendedStatistic`` but not both. For an alarm based on a math expression, you can't specify ``Statistic`` . Instead, you use ``Metrics`` .
|
|
1467
1467
|
:param tags: A list of key-value pairs to associate with the alarm. You can associate as many as 50 tags with an alarm. To be able to associate tags with the alarm when you create the alarm, you must have the ``cloudwatch:TagResource`` permission. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
|
|
1468
1468
|
:param threshold: The value to compare with the specified statistic.
|
|
@@ -1968,7 +1968,7 @@ class CfnAlarm(
|
|
|
1968
1968
|
:param expression: The math expression to be performed on the returned data, if this object is performing a math expression. This expression can use the ``Id`` of the other metrics to refer to those metrics, and can also use the ``Id`` of other expressions to use the result of those expressions. For more information about metric math expressions, see `Metric Math Syntax and Functions <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax>`_ in the *Amazon CloudWatch User Guide* . Within each MetricDataQuery object, you must specify either ``Expression`` or ``MetricStat`` but not both.
|
|
1969
1969
|
:param label: A human-readable label for this metric or expression. This is especially useful if this is an expression, so that you know what the value represents. If the metric or expression is shown in a CloudWatch dashboard widget, the label is shown. If ``Label`` is omitted, CloudWatch generates a default.
|
|
1970
1970
|
:param metric_stat: The metric to be returned, along with statistics, period, and units. Use this parameter only if this object is retrieving a metric and not performing a math expression on returned data. Within one MetricDataQuery object, you must specify either ``Expression`` or ``MetricStat`` but not both.
|
|
1971
|
-
:param period: The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a ``PutMetricData`` operation that includes a ``StorageResolution of 1 second`` .
|
|
1971
|
+
:param period: The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 20, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a ``PutMetricData`` operation that includes a ``StorageResolution of 1 second`` .
|
|
1972
1972
|
:param return_data: This option indicates whether to return the timestamps and raw data values of this metric. When you create an alarm based on a metric math expression, specify ``True`` for this value for only the one math expression that the alarm is based on. You must specify ``False`` for ``ReturnData`` for all the other metrics and expressions used in the alarm. This field is required.
|
|
1973
1973
|
|
|
1974
1974
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricdataquery.html
|
|
@@ -2095,7 +2095,7 @@ class CfnAlarm(
|
|
|
2095
2095
|
def period(self) -> typing.Optional[jsii.Number]:
|
|
2096
2096
|
'''The granularity, in seconds, of the returned data points.
|
|
2097
2097
|
|
|
2098
|
-
For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a ``PutMetricData`` operation that includes a ``StorageResolution of 1 second`` .
|
|
2098
|
+
For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 20, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a ``PutMetricData`` operation that includes a ``StorageResolution of 1 second`` .
|
|
2099
2099
|
|
|
2100
2100
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricdataquery.html#cfn-cloudwatch-alarm-metricdataquery-period
|
|
2101
2101
|
'''
|
|
@@ -2250,7 +2250,7 @@ class CfnAlarm(
|
|
|
2250
2250
|
``MetricStat`` is a property of the `MetricDataQuery <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricdataquery.html>`_ property type.
|
|
2251
2251
|
|
|
2252
2252
|
:param metric: The metric to return, including the metric name, namespace, and dimensions.
|
|
2253
|
-
:param period: The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a ``PutMetricData`` call that includes a ``StorageResolution`` of 1 second. If the ``StartTime`` parameter specifies a time stamp that is greater than 3 hours ago, you must specify the period as follows or no data points in that time range is returned: - Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute). - Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes). - Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour).
|
|
2253
|
+
:param period: The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 20, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a ``PutMetricData`` call that includes a ``StorageResolution`` of 1 second. If the ``StartTime`` parameter specifies a time stamp that is greater than 3 hours ago, you must specify the period as follows or no data points in that time range is returned: - Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute). - Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes). - Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour).
|
|
2254
2254
|
:param stat: The statistic to return. It can include any CloudWatch statistic or extended statistic. For a list of valid values, see the table in `Statistics <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Statistic>`_ in the *Amazon CloudWatch User Guide* .
|
|
2255
2255
|
:param unit: The unit to use for the returned data points. Valid values are: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, or None.
|
|
2256
2256
|
|
|
@@ -2309,7 +2309,7 @@ class CfnAlarm(
|
|
|
2309
2309
|
def period(self) -> jsii.Number:
|
|
2310
2310
|
'''The granularity, in seconds, of the returned data points.
|
|
2311
2311
|
|
|
2312
|
-
For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a ``PutMetricData`` call that includes a ``StorageResolution`` of 1 second.
|
|
2312
|
+
For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 20, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a ``PutMetricData`` call that includes a ``StorageResolution`` of 1 second.
|
|
2313
2313
|
|
|
2314
2314
|
If the ``StartTime`` parameter specifies a time stamp that is greater than 3 hours ago, you must specify the period as follows or no data points in that time range is returned:
|
|
2315
2315
|
|
|
@@ -2430,7 +2430,7 @@ class CfnAlarmProps:
|
|
|
2430
2430
|
:param metrics: An array that enables you to create an alarm based on the result of a metric math expression. Each item in the array either retrieves a metric or performs a math expression. If you specify the ``Metrics`` parameter, you cannot specify ``MetricName`` , ``Dimensions`` , ``Period`` , ``Namespace`` , ``Statistic`` , ``ExtendedStatistic`` , or ``Unit`` .
|
|
2431
2431
|
:param namespace: The namespace of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm based on a math expression, you can't specify ``Namespace`` and you use ``Metrics`` instead. For a list of namespaces for metrics from AWS services, see `AWS Services That Publish CloudWatch Metrics. <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html>`_
|
|
2432
2432
|
:param ok_actions: The actions to execute when this alarm transitions to the ``OK`` state from any other state. Each action is specified as an Amazon Resource Name (ARN).
|
|
2433
|
-
:param period: The period, in seconds, over which the statistic is applied. This is required for an alarm based on a metric. Valid values are 10, 30, 60, and any multiple of 60. For an alarm based on a math expression, you can't specify ``Period`` , and instead you use the ``Metrics`` parameter. *Minimum:* 10
|
|
2433
|
+
:param period: The period, in seconds, over which the statistic is applied. This is required for an alarm based on a metric. Valid values are 10, 20, 30, 60, and any multiple of 60. For an alarm based on a math expression, you can't specify ``Period`` , and instead you use the ``Metrics`` parameter. *Minimum:* 10
|
|
2434
2434
|
:param statistic: The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use ``ExtendedStatistic`` . For an alarm based on a metric, you must specify either ``Statistic`` or ``ExtendedStatistic`` but not both. For an alarm based on a math expression, you can't specify ``Statistic`` . Instead, you use ``Metrics`` .
|
|
2435
2435
|
:param tags: A list of key-value pairs to associate with the alarm. You can associate as many as 50 tags with an alarm. To be able to associate tags with the alarm when you create the alarm, you must have the ``cloudwatch:TagResource`` permission. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
|
|
2436
2436
|
:param threshold: The value to compare with the specified statistic.
|
|
@@ -2763,7 +2763,7 @@ class CfnAlarmProps:
|
|
|
2763
2763
|
def period(self) -> typing.Optional[jsii.Number]:
|
|
2764
2764
|
'''The period, in seconds, over which the statistic is applied.
|
|
2765
2765
|
|
|
2766
|
-
This is required for an alarm based on a metric. Valid values are 10, 30, 60, and any multiple of 60.
|
|
2766
|
+
This is required for an alarm based on a metric. Valid values are 10, 20, 30, 60, and any multiple of 60.
|
|
2767
2767
|
|
|
2768
2768
|
For an alarm based on a math expression, you can't specify ``Period`` , and instead you use the ``Metrics`` parameter.
|
|
2769
2769
|
|
|
@@ -3412,7 +3412,7 @@ class CfnAnomalyDetector(
|
|
|
3412
3412
|
:param expression: This field can contain either a Metrics Insights query, or a metric math expression to be performed on the returned data. For more information about Metrics Insights queries, see `Metrics Insights query components and syntax <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch-metrics-insights-querylanguage>`_ in the *Amazon CloudWatch User Guide* . A math expression can use the ``Id`` of the other metrics or queries to refer to those metrics, and can also use the ``Id`` of other expressions to use the result of those expressions. For more information about metric math expressions, see `Metric Math Syntax and Functions <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax>`_ in the *Amazon CloudWatch User Guide* . Within each MetricDataQuery object, you must specify either ``Expression`` or ``MetricStat`` but not both.
|
|
3413
3413
|
:param label: A human-readable label for this metric or expression. This is especially useful if this is an expression, so that you know what the value represents. If the metric or expression is shown in a CloudWatch dashboard widget, the label is shown. If Label is omitted, CloudWatch generates a default. You can put dynamic expressions into a label, so that it is more descriptive. For more information, see `Using Dynamic Labels <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html>`_ .
|
|
3414
3414
|
:param metric_stat: The metric to be returned, along with statistics, period, and units. Use this parameter only if this object is retrieving a metric and not performing a math expression on returned data. Within one MetricDataQuery object, you must specify either ``Expression`` or ``MetricStat`` but not both.
|
|
3415
|
-
:param period: The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a ``PutMetricData`` operation that includes a ``StorageResolution of 1 second`` .
|
|
3415
|
+
:param period: The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 20, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a ``PutMetricData`` operation that includes a ``StorageResolution of 1 second`` .
|
|
3416
3416
|
:param return_data: When used in ``GetMetricData`` , this option indicates whether to return the timestamps and raw data values of this metric. If you are performing this call just to do math expressions and do not also need the raw data returned, you can specify ``false`` . If you omit this, the default of ``true`` is used. When used in ``PutMetricAlarm`` , specify ``true`` for the one expression result to use as the alarm. For all other metrics and expressions in the same ``PutMetricAlarm`` operation, specify ``ReturnData`` as False.
|
|
3417
3417
|
|
|
3418
3418
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-metricdataquery.html
|
|
@@ -3549,7 +3549,7 @@ class CfnAnomalyDetector(
|
|
|
3549
3549
|
def period(self) -> typing.Optional[jsii.Number]:
|
|
3550
3550
|
'''The granularity, in seconds, of the returned data points.
|
|
3551
3551
|
|
|
3552
|
-
For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a ``PutMetricData`` operation that includes a ``StorageResolution of 1 second`` .
|
|
3552
|
+
For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 20, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a ``PutMetricData`` operation that includes a ``StorageResolution of 1 second`` .
|
|
3553
3553
|
|
|
3554
3554
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-metricdataquery.html#cfn-cloudwatch-anomalydetector-metricdataquery-period
|
|
3555
3555
|
'''
|
|
@@ -3790,7 +3790,7 @@ class CfnAnomalyDetector(
|
|
|
3790
3790
|
'''This structure defines the metric to be returned, along with the statistics, period, and units.
|
|
3791
3791
|
|
|
3792
3792
|
:param metric: The metric to return, including the metric name, namespace, and dimensions.
|
|
3793
|
-
:param period: The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a ``PutMetricData`` call that includes a ``StorageResolution`` of 1 second. If the ``StartTime`` parameter specifies a time stamp that is greater than 3 hours ago, you must specify the period as follows or no data points in that time range is returned: - Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute). - Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes). - Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour).
|
|
3793
|
+
:param period: The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 20, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a ``PutMetricData`` call that includes a ``StorageResolution`` of 1 second. If the ``StartTime`` parameter specifies a time stamp that is greater than 3 hours ago, you must specify the period as follows or no data points in that time range is returned: - Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute). - Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes). - Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour).
|
|
3794
3794
|
:param stat: The statistic to return. It can include any CloudWatch statistic or extended statistic.
|
|
3795
3795
|
:param unit: When you are using a ``Put`` operation, this defines what unit you want to use when storing the metric. In a ``Get`` operation, if you omit ``Unit`` then all data that was collected with any unit is returned, along with the corresponding units that were specified when the data was reported to CloudWatch. If you specify a unit, the operation returns only data that was collected with that unit specified. If you specify a unit that does not match the data collected, the results of the operation are null. CloudWatch does not perform unit conversions.
|
|
3796
3796
|
|
|
@@ -3851,7 +3851,7 @@ class CfnAnomalyDetector(
|
|
|
3851
3851
|
def period(self) -> jsii.Number:
|
|
3852
3852
|
'''The granularity, in seconds, of the returned data points.
|
|
3853
3853
|
|
|
3854
|
-
For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a ``PutMetricData`` call that includes a ``StorageResolution`` of 1 second.
|
|
3854
|
+
For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 20, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a ``PutMetricData`` call that includes a ``StorageResolution`` of 1 second.
|
|
3855
3855
|
|
|
3856
3856
|
If the ``StartTime`` parameter specifies a time stamp that is greater than 3 hours ago, you must specify the period as follows or no data points in that time range is returned:
|
|
3857
3857
|
|
|
@@ -12590,29 +12590,31 @@ class AlarmProps(CreateAlarmOptions):
|
|
|
12590
12590
|
|
|
12591
12591
|
Example::
|
|
12592
12592
|
|
|
12593
|
-
|
|
12593
|
+
import aws_cdk.aws_cloudwatch as cloudwatch
|
|
12594
12594
|
|
|
12595
|
-
|
|
12596
|
-
log_group=log_group,
|
|
12597
|
-
metric_namespace="MyApp",
|
|
12598
|
-
metric_name="Latency",
|
|
12599
|
-
filter_pattern=logs.FilterPattern.exists("$.latency"),
|
|
12600
|
-
metric_value="$.latency",
|
|
12601
|
-
dimensions={
|
|
12602
|
-
"ErrorCode": "$.errorCode"
|
|
12603
|
-
},
|
|
12604
|
-
unit=cloudwatch.Unit.MILLISECONDS
|
|
12605
|
-
)
|
|
12595
|
+
# alias: lambda.Alias
|
|
12606
12596
|
|
|
12607
|
-
#
|
|
12608
|
-
|
|
12597
|
+
# or add alarms to an existing group
|
|
12598
|
+
# blue_green_alias: lambda.Alias
|
|
12609
12599
|
|
|
12610
|
-
|
|
12611
|
-
|
|
12612
|
-
|
|
12613
|
-
|
|
12614
|
-
|
|
12600
|
+
alarm = cloudwatch.Alarm(self, "Errors",
|
|
12601
|
+
comparison_operator=cloudwatch.ComparisonOperator.GREATER_THAN_THRESHOLD,
|
|
12602
|
+
threshold=1,
|
|
12603
|
+
evaluation_periods=1,
|
|
12604
|
+
metric=alias.metric_errors()
|
|
12605
|
+
)
|
|
12606
|
+
deployment_group = codedeploy.LambdaDeploymentGroup(self, "BlueGreenDeployment",
|
|
12607
|
+
alias=alias,
|
|
12608
|
+
deployment_config=codedeploy.LambdaDeploymentConfig.LINEAR_10PERCENT_EVERY_1MINUTE,
|
|
12609
|
+
alarms=[alarm
|
|
12610
|
+
]
|
|
12615
12611
|
)
|
|
12612
|
+
deployment_group.add_alarm(cloudwatch.Alarm(self, "BlueGreenErrors",
|
|
12613
|
+
comparison_operator=cloudwatch.ComparisonOperator.GREATER_THAN_THRESHOLD,
|
|
12614
|
+
threshold=1,
|
|
12615
|
+
evaluation_periods=1,
|
|
12616
|
+
metric=blue_green_alias.metric_errors()
|
|
12617
|
+
))
|
|
12616
12618
|
'''
|
|
12617
12619
|
if __debug__:
|
|
12618
12620
|
type_hints = typing.get_type_hints(_typecheckingstub__b2e7c873c118fbc1f6cf26e1bb5bd3d8549040c626a6450f2d686bb07b87266b)
|
|
@@ -14857,29 +14859,31 @@ class Alarm(
|
|
|
14857
14859
|
|
|
14858
14860
|
Example::
|
|
14859
14861
|
|
|
14860
|
-
|
|
14862
|
+
import aws_cdk.aws_cloudwatch as cloudwatch
|
|
14861
14863
|
|
|
14862
|
-
|
|
14863
|
-
log_group=log_group,
|
|
14864
|
-
metric_namespace="MyApp",
|
|
14865
|
-
metric_name="Latency",
|
|
14866
|
-
filter_pattern=logs.FilterPattern.exists("$.latency"),
|
|
14867
|
-
metric_value="$.latency",
|
|
14868
|
-
dimensions={
|
|
14869
|
-
"ErrorCode": "$.errorCode"
|
|
14870
|
-
},
|
|
14871
|
-
unit=cloudwatch.Unit.MILLISECONDS
|
|
14872
|
-
)
|
|
14864
|
+
# alias: lambda.Alias
|
|
14873
14865
|
|
|
14874
|
-
#
|
|
14875
|
-
|
|
14866
|
+
# or add alarms to an existing group
|
|
14867
|
+
# blue_green_alias: lambda.Alias
|
|
14876
14868
|
|
|
14877
|
-
|
|
14878
|
-
|
|
14879
|
-
|
|
14880
|
-
|
|
14881
|
-
|
|
14869
|
+
alarm = cloudwatch.Alarm(self, "Errors",
|
|
14870
|
+
comparison_operator=cloudwatch.ComparisonOperator.GREATER_THAN_THRESHOLD,
|
|
14871
|
+
threshold=1,
|
|
14872
|
+
evaluation_periods=1,
|
|
14873
|
+
metric=alias.metric_errors()
|
|
14882
14874
|
)
|
|
14875
|
+
deployment_group = codedeploy.LambdaDeploymentGroup(self, "BlueGreenDeployment",
|
|
14876
|
+
alias=alias,
|
|
14877
|
+
deployment_config=codedeploy.LambdaDeploymentConfig.LINEAR_10PERCENT_EVERY_1MINUTE,
|
|
14878
|
+
alarms=[alarm
|
|
14879
|
+
]
|
|
14880
|
+
)
|
|
14881
|
+
deployment_group.add_alarm(cloudwatch.Alarm(self, "BlueGreenErrors",
|
|
14882
|
+
comparison_operator=cloudwatch.ComparisonOperator.GREATER_THAN_THRESHOLD,
|
|
14883
|
+
threshold=1,
|
|
14884
|
+
evaluation_periods=1,
|
|
14885
|
+
metric=blue_green_alias.metric_errors()
|
|
14886
|
+
))
|
|
14883
14887
|
'''
|
|
14884
14888
|
|
|
14885
14889
|
def __init__(
|
|
@@ -11678,6 +11678,18 @@ class LinuxArmBuildImage(
|
|
|
11678
11678
|
'''Image "aws/codebuild/amazonlinux2-aarch64-standard:3.0" based on Amazon Linux 2023.'''
|
|
11679
11679
|
return typing.cast(IBuildImage, jsii.sget(cls, "AMAZON_LINUX_2_STANDARD_3_0"))
|
|
11680
11680
|
|
|
11681
|
+
@jsii.python.classproperty
|
|
11682
|
+
@jsii.member(jsii_name="AMAZON_LINUX_2023_STANDARD_2_0")
|
|
11683
|
+
def AMAZON_LINUX_2023_STANDARD_2_0(cls) -> IBuildImage:
|
|
11684
|
+
'''Image "aws/codebuild/amazonlinux-aarch64-standard:2.0" based on Amazon Linux 2023.'''
|
|
11685
|
+
return typing.cast(IBuildImage, jsii.sget(cls, "AMAZON_LINUX_2023_STANDARD_2_0"))
|
|
11686
|
+
|
|
11687
|
+
@jsii.python.classproperty
|
|
11688
|
+
@jsii.member(jsii_name="AMAZON_LINUX_2023_STANDARD_3_0")
|
|
11689
|
+
def AMAZON_LINUX_2023_STANDARD_3_0(cls) -> IBuildImage:
|
|
11690
|
+
'''Image "aws/codebuild/amazonlinux-aarch64-standard:3.0" based on Amazon Linux 2023.'''
|
|
11691
|
+
return typing.cast(IBuildImage, jsii.sget(cls, "AMAZON_LINUX_2023_STANDARD_3_0"))
|
|
11692
|
+
|
|
11681
11693
|
@builtins.property
|
|
11682
11694
|
@jsii.member(jsii_name="defaultComputeType")
|
|
11683
11695
|
def default_compute_type(self) -> ComputeType:
|
|
@@ -12183,6 +12195,30 @@ class LinuxBuildImage(
|
|
|
12183
12195
|
'''The Amazon Coretto 8 image x86_64, based on Amazon Linux 2.'''
|
|
12184
12196
|
return typing.cast(IBuildImage, jsii.sget(cls, "AMAZON_LINUX_2_CORETTO_8"))
|
|
12185
12197
|
|
|
12198
|
+
@jsii.python.classproperty
|
|
12199
|
+
@jsii.member(jsii_name="AMAZON_LINUX_2023_4")
|
|
12200
|
+
def AMAZON_LINUX_2023_4(cls) -> IBuildImage:
|
|
12201
|
+
'''The Amazon Linux 2023 x86_64 standard image, version ``4.0``.'''
|
|
12202
|
+
return typing.cast(IBuildImage, jsii.sget(cls, "AMAZON_LINUX_2023_4"))
|
|
12203
|
+
|
|
12204
|
+
@jsii.python.classproperty
|
|
12205
|
+
@jsii.member(jsii_name="AMAZON_LINUX_2023_5")
|
|
12206
|
+
def AMAZON_LINUX_2023_5(cls) -> IBuildImage:
|
|
12207
|
+
'''The Amazon Linux 2023 x86_64 standard image, version ``5.0``.'''
|
|
12208
|
+
return typing.cast(IBuildImage, jsii.sget(cls, "AMAZON_LINUX_2023_5"))
|
|
12209
|
+
|
|
12210
|
+
@jsii.python.classproperty
|
|
12211
|
+
@jsii.member(jsii_name="AMAZON_LINUX_2023_CORETTO_11")
|
|
12212
|
+
def AMAZON_LINUX_2023_CORETTO_11(cls) -> IBuildImage:
|
|
12213
|
+
'''The Amazon Coretto 11 image x86_64, based on Amazon Linux 2023.'''
|
|
12214
|
+
return typing.cast(IBuildImage, jsii.sget(cls, "AMAZON_LINUX_2023_CORETTO_11"))
|
|
12215
|
+
|
|
12216
|
+
@jsii.python.classproperty
|
|
12217
|
+
@jsii.member(jsii_name="AMAZON_LINUX_2023_CORETTO_8")
|
|
12218
|
+
def AMAZON_LINUX_2023_CORETTO_8(cls) -> IBuildImage:
|
|
12219
|
+
'''The Amazon Coretto 8 image x86_64, based on Amazon Linux 2023.'''
|
|
12220
|
+
return typing.cast(IBuildImage, jsii.sget(cls, "AMAZON_LINUX_2023_CORETTO_8"))
|
|
12221
|
+
|
|
12186
12222
|
@jsii.python.classproperty
|
|
12187
12223
|
@jsii.member(jsii_name="STANDARD_1_0")
|
|
12188
12224
|
def STANDARD_1_0(cls) -> IBuildImage:
|