aws-cdk-lib 2.175.1__py3-none-any.whl → 2.177.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.

Files changed (64) hide show
  1. aws_cdk/__init__.py +26 -7
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.175.1.jsii.tgz → aws-cdk-lib@2.177.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_apigatewayv2_integrations/__init__.py +161 -9
  5. aws_cdk/aws_appconfig/__init__.py +106 -24
  6. aws_cdk/aws_appsync/__init__.py +4 -3
  7. aws_cdk/aws_backup/__init__.py +18 -84
  8. aws_cdk/aws_batch/__init__.py +4 -2
  9. aws_cdk/aws_bedrock/__init__.py +5395 -2508
  10. aws_cdk/aws_cleanrooms/__init__.py +77 -34
  11. aws_cdk/aws_cloudformation/__init__.py +4 -2
  12. aws_cdk/aws_cloudfront/__init__.py +12 -2
  13. aws_cdk/aws_cloudfront/experimental/__init__.py +1 -1
  14. aws_cdk/aws_cloudfront_origins/__init__.py +33 -2
  15. aws_cdk/aws_cloudwatch/__init__.py +53 -49
  16. aws_cdk/aws_codebuild/__init__.py +36 -0
  17. aws_cdk/aws_codepipeline/__init__.py +35 -0
  18. aws_cdk/aws_cognito/__init__.py +285 -253
  19. aws_cdk/aws_customerprofiles/__init__.py +1060 -0
  20. aws_cdk/aws_datazone/__init__.py +195 -125
  21. aws_cdk/aws_docdb/__init__.py +29 -9
  22. aws_cdk/aws_dynamodb/__init__.py +77 -58
  23. aws_cdk/aws_ec2/__init__.py +16 -11
  24. aws_cdk/aws_ecs/__init__.py +127 -43
  25. aws_cdk/aws_efs/__init__.py +5 -5
  26. aws_cdk/aws_eks/__init__.py +24 -3
  27. aws_cdk/aws_elasticloadbalancingv2/__init__.py +41 -5
  28. aws_cdk/aws_emrserverless/__init__.py +86 -0
  29. aws_cdk/aws_fms/__init__.py +42 -0
  30. aws_cdk/aws_gamelift/__init__.py +8 -10
  31. aws_cdk/aws_healthlake/__init__.py +36 -40
  32. aws_cdk/aws_iam/__init__.py +8 -0
  33. aws_cdk/aws_imagebuilder/__init__.py +62 -48
  34. aws_cdk/aws_lambda/__init__.py +21 -8
  35. aws_cdk/aws_lambda_event_sources/__init__.py +9 -9
  36. aws_cdk/aws_lex/__init__.py +105 -0
  37. aws_cdk/aws_logs/__init__.py +59 -59
  38. aws_cdk/aws_mediaconvert/__init__.py +7 -3
  39. aws_cdk/aws_notifications/__init__.py +1390 -0
  40. aws_cdk/aws_notificationscontacts/__init__.py +593 -0
  41. aws_cdk/aws_organizations/__init__.py +5 -9
  42. aws_cdk/aws_rds/__init__.py +99 -30
  43. aws_cdk/aws_redshift/__init__.py +9 -5
  44. aws_cdk/aws_resiliencehub/__init__.py +41 -0
  45. aws_cdk/aws_route53/__init__.py +4 -4
  46. aws_cdk/aws_route53_targets/__init__.py +15 -15
  47. aws_cdk/aws_s3/__init__.py +794 -5
  48. aws_cdk/aws_s3_notifications/__init__.py +5 -5
  49. aws_cdk/aws_s3tables/__init__.py +2 -2
  50. aws_cdk/aws_ses/__init__.py +25 -4
  51. aws_cdk/aws_sns/__init__.py +39 -0
  52. aws_cdk/aws_ssm/__init__.py +14 -7
  53. aws_cdk/aws_ssmquicksetup/__init__.py +84 -84
  54. aws_cdk/aws_sso/__init__.py +9 -5
  55. aws_cdk/aws_synthetics/__init__.py +105 -32
  56. aws_cdk/cloud_assembly_schema/__init__.py +63 -4
  57. aws_cdk/cx_api/__init__.py +69 -8
  58. {aws_cdk_lib-2.175.1.dist-info → aws_cdk_lib-2.177.0.dist-info}/METADATA +3 -3
  59. {aws_cdk_lib-2.175.1.dist-info → aws_cdk_lib-2.177.0.dist-info}/RECORD +63 -62
  60. aws_cdk/aws_iot1click/__init__.py +0 -1193
  61. {aws_cdk_lib-2.175.1.dist-info → aws_cdk_lib-2.177.0.dist-info}/LICENSE +0 -0
  62. {aws_cdk_lib-2.175.1.dist-info → aws_cdk_lib-2.177.0.dist-info}/NOTICE +0 -0
  63. {aws_cdk_lib-2.175.1.dist-info → aws_cdk_lib-2.177.0.dist-info}/WHEEL +0 -0
  64. {aws_cdk_lib-2.175.1.dist-info → aws_cdk_lib-2.177.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
- # log_group: logs.LogGroup
12593
+ import aws_cdk.aws_cloudwatch as cloudwatch
12594
12594
 
12595
- mf = logs.MetricFilter(self, "MetricFilter",
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
- # expose a metric from the metric filter
12608
- metric = mf.metric()
12597
+ # or add alarms to an existing group
12598
+ # blue_green_alias: lambda.Alias
12609
12599
 
12610
- # you can use the metric to create a new alarm
12611
- cloudwatch.Alarm(self, "alarm from metric filter",
12612
- metric=metric,
12613
- threshold=100,
12614
- evaluation_periods=2
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
- # log_group: logs.LogGroup
14862
+ import aws_cdk.aws_cloudwatch as cloudwatch
14861
14863
 
14862
- mf = logs.MetricFilter(self, "MetricFilter",
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
- # expose a metric from the metric filter
14875
- metric = mf.metric()
14866
+ # or add alarms to an existing group
14867
+ # blue_green_alias: lambda.Alias
14876
14868
 
14877
- # you can use the metric to create a new alarm
14878
- cloudwatch.Alarm(self, "alarm from metric filter",
14879
- metric=metric,
14880
- threshold=100,
14881
- evaluation_periods=2
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:
@@ -2499,6 +2499,7 @@ class CfnPipeline(
2499
2499
  conditions=[codepipeline.CfnPipeline.ConditionProperty(
2500
2500
  result="result",
2501
2501
  rules=[codepipeline.CfnPipeline.RuleDeclarationProperty(
2502
+ commands=["commands"],
2502
2503
  configuration=configuration,
2503
2504
  input_artifacts=[codepipeline.CfnPipeline.InputArtifactProperty(
2504
2505
  name="name"
@@ -2523,6 +2524,7 @@ class CfnPipeline(
2523
2524
  conditions=[codepipeline.CfnPipeline.ConditionProperty(
2524
2525
  result="result",
2525
2526
  rules=[codepipeline.CfnPipeline.RuleDeclarationProperty(
2527
+ commands=["commands"],
2526
2528
  configuration=configuration,
2527
2529
  input_artifacts=[codepipeline.CfnPipeline.InputArtifactProperty(
2528
2530
  name="name"
@@ -2547,6 +2549,7 @@ class CfnPipeline(
2547
2549
  conditions=[codepipeline.CfnPipeline.ConditionProperty(
2548
2550
  result="result",
2549
2551
  rules=[codepipeline.CfnPipeline.RuleDeclarationProperty(
2552
+ commands=["commands"],
2550
2553
  configuration=configuration,
2551
2554
  input_artifacts=[codepipeline.CfnPipeline.InputArtifactProperty(
2552
2555
  name="name"
@@ -3574,6 +3577,7 @@ class CfnPipeline(
3574
3577
  conditions=[codepipeline.CfnPipeline.ConditionProperty(
3575
3578
  result="result",
3576
3579
  rules=[codepipeline.CfnPipeline.RuleDeclarationProperty(
3580
+ commands=["commands"],
3577
3581
  configuration=configuration,
3578
3582
  input_artifacts=[codepipeline.CfnPipeline.InputArtifactProperty(
3579
3583
  name="name"
@@ -3719,6 +3723,7 @@ class CfnPipeline(
3719
3723
  condition_property = codepipeline.CfnPipeline.ConditionProperty(
3720
3724
  result="result",
3721
3725
  rules=[codepipeline.CfnPipeline.RuleDeclarationProperty(
3726
+ commands=["commands"],
3722
3727
  configuration=configuration,
3723
3728
  input_artifacts=[codepipeline.CfnPipeline.InputArtifactProperty(
3724
3729
  name="name"
@@ -3891,6 +3896,7 @@ class CfnPipeline(
3891
3896
  conditions=[codepipeline.CfnPipeline.ConditionProperty(
3892
3897
  result="result",
3893
3898
  rules=[codepipeline.CfnPipeline.RuleDeclarationProperty(
3899
+ commands=["commands"],
3894
3900
  configuration=configuration,
3895
3901
  input_artifacts=[codepipeline.CfnPipeline.InputArtifactProperty(
3896
3902
  name="name"
@@ -4809,6 +4815,7 @@ class CfnPipeline(
4809
4815
  jsii_type="aws-cdk-lib.aws_codepipeline.CfnPipeline.RuleDeclarationProperty",
4810
4816
  jsii_struct_bases=[],
4811
4817
  name_mapping={
4818
+ "commands": "commands",
4812
4819
  "configuration": "configuration",
4813
4820
  "input_artifacts": "inputArtifacts",
4814
4821
  "name": "name",
@@ -4821,6 +4828,7 @@ class CfnPipeline(
4821
4828
  def __init__(
4822
4829
  self,
4823
4830
  *,
4831
+ commands: typing.Optional[typing.Sequence[builtins.str]] = None,
4824
4832
  configuration: typing.Any = None,
4825
4833
  input_artifacts: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPipeline.InputArtifactProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
4826
4834
  name: typing.Optional[builtins.str] = None,
@@ -4832,6 +4840,7 @@ class CfnPipeline(
4832
4840
 
4833
4841
  An example would be creating a new rule for an entry condition, such as a rule that checks for a test result before allowing the run to enter the deployment stage. For more information about conditions, see `Stage conditions <https://docs.aws.amazon.com/codepipeline/latest/userguide/stage-conditions.html>`_ . For more information about rules, see the `AWS CodePipeline rule reference <https://docs.aws.amazon.com/codepipeline/latest/userguide/rule-reference.html>`_ .
4834
4842
 
4843
+ :param commands: The shell commands to run with your commands rule in CodePipeline. All commands are supported except multi-line formats. While CodeBuild logs and permissions are used, you do not need to create any resources in CodeBuild. .. epigraph:: Using compute time for this action will incur separate charges in AWS CodeBuild .
4835
4844
  :param configuration: The action configuration fields for the rule.
4836
4845
  :param input_artifacts: The input artifacts fields for the rule, such as specifying an input file for the rule.
4837
4846
  :param name: The name of the rule that is created for the condition, such as ``VariableCheck`` .
@@ -4851,6 +4860,7 @@ class CfnPipeline(
4851
4860
  # configuration: Any
4852
4861
 
4853
4862
  rule_declaration_property = codepipeline.CfnPipeline.RuleDeclarationProperty(
4863
+ commands=["commands"],
4854
4864
  configuration=configuration,
4855
4865
  input_artifacts=[codepipeline.CfnPipeline.InputArtifactProperty(
4856
4866
  name="name"
@@ -4868,6 +4878,7 @@ class CfnPipeline(
4868
4878
  '''
4869
4879
  if __debug__:
4870
4880
  type_hints = typing.get_type_hints(_typecheckingstub__8b4c62f005bd4f9080fa5e8c7f7671821e7ac1c9314d5d3b1130fbf53e40fa51)
4881
+ check_type(argname="argument commands", value=commands, expected_type=type_hints["commands"])
4871
4882
  check_type(argname="argument configuration", value=configuration, expected_type=type_hints["configuration"])
4872
4883
  check_type(argname="argument input_artifacts", value=input_artifacts, expected_type=type_hints["input_artifacts"])
4873
4884
  check_type(argname="argument name", value=name, expected_type=type_hints["name"])
@@ -4875,6 +4886,8 @@ class CfnPipeline(
4875
4886
  check_type(argname="argument role_arn", value=role_arn, expected_type=type_hints["role_arn"])
4876
4887
  check_type(argname="argument rule_type_id", value=rule_type_id, expected_type=type_hints["rule_type_id"])
4877
4888
  self._values: typing.Dict[builtins.str, typing.Any] = {}
4889
+ if commands is not None:
4890
+ self._values["commands"] = commands
4878
4891
  if configuration is not None:
4879
4892
  self._values["configuration"] = configuration
4880
4893
  if input_artifacts is not None:
@@ -4888,6 +4901,20 @@ class CfnPipeline(
4888
4901
  if rule_type_id is not None:
4889
4902
  self._values["rule_type_id"] = rule_type_id
4890
4903
 
4904
+ @builtins.property
4905
+ def commands(self) -> typing.Optional[typing.List[builtins.str]]:
4906
+ '''The shell commands to run with your commands rule in CodePipeline.
4907
+
4908
+ All commands are supported except multi-line formats. While CodeBuild logs and permissions are used, you do not need to create any resources in CodeBuild.
4909
+ .. epigraph::
4910
+
4911
+ Using compute time for this action will incur separate charges in AWS CodeBuild .
4912
+
4913
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-ruledeclaration.html#cfn-codepipeline-pipeline-ruledeclaration-commands
4914
+ '''
4915
+ result = self._values.get("commands")
4916
+ return typing.cast(typing.Optional[typing.List[builtins.str]], result)
4917
+
4891
4918
  @builtins.property
4892
4919
  def configuration(self) -> typing.Any:
4893
4920
  '''The action configuration fields for the rule.
@@ -5145,6 +5172,7 @@ class CfnPipeline(
5145
5172
  conditions=[codepipeline.CfnPipeline.ConditionProperty(
5146
5173
  result="result",
5147
5174
  rules=[codepipeline.CfnPipeline.RuleDeclarationProperty(
5175
+ commands=["commands"],
5148
5176
  configuration=configuration,
5149
5177
  input_artifacts=[codepipeline.CfnPipeline.InputArtifactProperty(
5150
5178
  name="name"
@@ -5169,6 +5197,7 @@ class CfnPipeline(
5169
5197
  conditions=[codepipeline.CfnPipeline.ConditionProperty(
5170
5198
  result="result",
5171
5199
  rules=[codepipeline.CfnPipeline.RuleDeclarationProperty(
5200
+ commands=["commands"],
5172
5201
  configuration=configuration,
5173
5202
  input_artifacts=[codepipeline.CfnPipeline.InputArtifactProperty(
5174
5203
  name="name"
@@ -5193,6 +5222,7 @@ class CfnPipeline(
5193
5222
  conditions=[codepipeline.CfnPipeline.ConditionProperty(
5194
5223
  result="result",
5195
5224
  rules=[codepipeline.CfnPipeline.RuleDeclarationProperty(
5225
+ commands=["commands"],
5196
5226
  configuration=configuration,
5197
5227
  input_artifacts=[codepipeline.CfnPipeline.InputArtifactProperty(
5198
5228
  name="name"
@@ -5413,6 +5443,7 @@ class CfnPipeline(
5413
5443
  conditions=[codepipeline.CfnPipeline.ConditionProperty(
5414
5444
  result="result",
5415
5445
  rules=[codepipeline.CfnPipeline.RuleDeclarationProperty(
5446
+ commands=["commands"],
5416
5447
  configuration=configuration,
5417
5448
  input_artifacts=[codepipeline.CfnPipeline.InputArtifactProperty(
5418
5449
  name="name"
@@ -5653,6 +5684,7 @@ class CfnPipelineProps:
5653
5684
  conditions=[codepipeline.CfnPipeline.ConditionProperty(
5654
5685
  result="result",
5655
5686
  rules=[codepipeline.CfnPipeline.RuleDeclarationProperty(
5687
+ commands=["commands"],
5656
5688
  configuration=configuration,
5657
5689
  input_artifacts=[codepipeline.CfnPipeline.InputArtifactProperty(
5658
5690
  name="name"
@@ -5677,6 +5709,7 @@ class CfnPipelineProps:
5677
5709
  conditions=[codepipeline.CfnPipeline.ConditionProperty(
5678
5710
  result="result",
5679
5711
  rules=[codepipeline.CfnPipeline.RuleDeclarationProperty(
5712
+ commands=["commands"],
5680
5713
  configuration=configuration,
5681
5714
  input_artifacts=[codepipeline.CfnPipeline.InputArtifactProperty(
5682
5715
  name="name"
@@ -5701,6 +5734,7 @@ class CfnPipelineProps:
5701
5734
  conditions=[codepipeline.CfnPipeline.ConditionProperty(
5702
5735
  result="result",
5703
5736
  rules=[codepipeline.CfnPipeline.RuleDeclarationProperty(
5737
+ commands=["commands"],
5704
5738
  configuration=configuration,
5705
5739
  input_artifacts=[codepipeline.CfnPipeline.InputArtifactProperty(
5706
5740
  name="name"
@@ -10978,6 +11012,7 @@ def _typecheckingstub__ffc8deb7765afd70d3fe572ffa86634cd8936e44aafd092f3182c532d
10978
11012
 
10979
11013
  def _typecheckingstub__8b4c62f005bd4f9080fa5e8c7f7671821e7ac1c9314d5d3b1130fbf53e40fa51(
10980
11014
  *,
11015
+ commands: typing.Optional[typing.Sequence[builtins.str]] = None,
10981
11016
  configuration: typing.Any = None,
10982
11017
  input_artifacts: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPipeline.InputArtifactProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
10983
11018
  name: typing.Optional[builtins.str] = None,