aws-cdk-lib 2.174.1__py3-none-any.whl → 2.175.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of aws-cdk-lib might be problematic. Click here for more details.

Files changed (36) hide show
  1. aws_cdk/_jsii/__init__.py +1 -1
  2. aws_cdk/_jsii/{aws-cdk-lib@2.174.1.jsii.tgz → aws-cdk-lib@2.175.1.jsii.tgz} +0 -0
  3. aws_cdk/aws_apigateway/__init__.py +164 -0
  4. aws_cdk/aws_apigatewayv2/__init__.py +248 -0
  5. aws_cdk/aws_applicationautoscaling/__init__.py +6 -3
  6. aws_cdk/aws_autoscaling/__init__.py +8 -8
  7. aws_cdk/aws_certificatemanager/__init__.py +28 -0
  8. aws_cdk/aws_chatbot/__init__.py +28 -0
  9. aws_cdk/aws_cloudfront/__init__.py +92 -0
  10. aws_cdk/aws_cloudfront/experimental/__init__.py +32 -0
  11. aws_cdk/aws_cloudwatch/__init__.py +146 -0
  12. aws_cdk/aws_codebuild/__init__.py +84 -0
  13. aws_cdk/aws_dynamodb/__init__.py +300 -0
  14. aws_cdk/aws_ec2/__init__.py +97 -0
  15. aws_cdk/aws_ecs/__init__.py +351 -110
  16. aws_cdk/aws_ecs_patterns/__init__.py +77 -42
  17. aws_cdk/aws_elasticloadbalancing/__init__.py +3 -6
  18. aws_cdk/aws_elasticloadbalancingv2/__init__.py +732 -7
  19. aws_cdk/aws_elasticsearch/__init__.py +260 -0
  20. aws_cdk/aws_kinesis/__init__.py +324 -0
  21. aws_cdk/aws_kms/__init__.py +197 -0
  22. aws_cdk/aws_lambda/__init__.py +144 -0
  23. aws_cdk/aws_logs/__init__.py +58 -0
  24. aws_cdk/aws_opensearchservice/__init__.py +260 -0
  25. aws_cdk/aws_rds/__init__.py +384 -0
  26. aws_cdk/aws_sns/__init__.py +164 -0
  27. aws_cdk/aws_sqs/__init__.py +164 -0
  28. aws_cdk/aws_stepfunctions/__init__.py +288 -0
  29. aws_cdk/aws_synthetics/__init__.py +18 -0
  30. aws_cdk/cx_api/__init__.py +42 -0
  31. {aws_cdk_lib-2.174.1.dist-info → aws_cdk_lib-2.175.1.dist-info}/METADATA +1 -1
  32. {aws_cdk_lib-2.174.1.dist-info → aws_cdk_lib-2.175.1.dist-info}/RECORD +36 -36
  33. {aws_cdk_lib-2.174.1.dist-info → aws_cdk_lib-2.175.1.dist-info}/LICENSE +0 -0
  34. {aws_cdk_lib-2.174.1.dist-info → aws_cdk_lib-2.175.1.dist-info}/NOTICE +0 -0
  35. {aws_cdk_lib-2.174.1.dist-info → aws_cdk_lib-2.175.1.dist-info}/WHEEL +0 -0
  36. {aws_cdk_lib-2.174.1.dist-info → aws_cdk_lib-2.175.1.dist-info}/top_level.txt +0 -0
@@ -6295,6 +6295,8 @@ class Color(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_cloudwatch.Color
6295
6295
  "label": "label",
6296
6296
  "period": "period",
6297
6297
  "region": "region",
6298
+ "stack_account": "stackAccount",
6299
+ "stack_region": "stackRegion",
6298
6300
  "statistic": "statistic",
6299
6301
  "unit": "unit",
6300
6302
  },
@@ -6309,6 +6311,8 @@ class CommonMetricOptions:
6309
6311
  label: typing.Optional[builtins.str] = None,
6310
6312
  period: typing.Optional[_Duration_4839e8c3] = None,
6311
6313
  region: typing.Optional[builtins.str] = None,
6314
+ stack_account: typing.Optional[builtins.str] = None,
6315
+ stack_region: typing.Optional[builtins.str] = None,
6312
6316
  statistic: typing.Optional[builtins.str] = None,
6313
6317
  unit: typing.Optional["Unit"] = None,
6314
6318
  ) -> None:
@@ -6320,6 +6324,8 @@ class CommonMetricOptions:
6320
6324
  :param label: Label for this metric when added to a Graph in a Dashboard. You can use `dynamic labels <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html>`_ to show summary information about the entire displayed time series in the legend. For example, if you use:: [max: ${MAX}] MyMetric As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend. Default: - No label
6321
6325
  :param period: The period over which the specified statistic is applied. Default: Duration.minutes(5)
6322
6326
  :param region: Region which this metric comes from. Default: - Deployment region.
6327
+ :param stack_account: Account of the stack this metric is attached to. Default: - Deployment account.
6328
+ :param stack_region: Region of the stack this metric is attached to. Default: - Deployment region.
6323
6329
  :param statistic: What function to use for aggregating. Use the ``aws_cloudwatch.Stats`` helper class to construct valid input strings. Can be one of the following: - "Minimum" | "min" - "Maximum" | "max" - "Average" | "avg" - "Sum" | "sum" - "SampleCount | "n" - "pNN.NN" - "tmNN.NN" | "tm(NN.NN%:NN.NN%)" - "iqm" - "wmNN.NN" | "wm(NN.NN%:NN.NN%)" - "tcNN.NN" | "tc(NN.NN%:NN.NN%)" - "tsNN.NN" | "ts(NN.NN%:NN.NN%)" Default: Average
6324
6330
  :param unit: Unit used to filter the metric stream. Only refer to datums emitted to the metric stream with the given unit and ignore all others. Only useful when datums are being emitted to the same metric stream under different units. The default is to use all matric datums in the stream, regardless of unit, which is recommended in nearly all cases. CloudWatch does not honor this property for graphs. Default: - All metric datums in the given metric stream
6325
6331
 
@@ -6341,6 +6347,8 @@ class CommonMetricOptions:
6341
6347
  label="label",
6342
6348
  period=cdk.Duration.minutes(30),
6343
6349
  region="region",
6350
+ stack_account="stackAccount",
6351
+ stack_region="stackRegion",
6344
6352
  statistic="statistic",
6345
6353
  unit=cloudwatch.Unit.SECONDS
6346
6354
  )
@@ -6353,6 +6361,8 @@ class CommonMetricOptions:
6353
6361
  check_type(argname="argument label", value=label, expected_type=type_hints["label"])
6354
6362
  check_type(argname="argument period", value=period, expected_type=type_hints["period"])
6355
6363
  check_type(argname="argument region", value=region, expected_type=type_hints["region"])
6364
+ check_type(argname="argument stack_account", value=stack_account, expected_type=type_hints["stack_account"])
6365
+ check_type(argname="argument stack_region", value=stack_region, expected_type=type_hints["stack_region"])
6356
6366
  check_type(argname="argument statistic", value=statistic, expected_type=type_hints["statistic"])
6357
6367
  check_type(argname="argument unit", value=unit, expected_type=type_hints["unit"])
6358
6368
  self._values: typing.Dict[builtins.str, typing.Any] = {}
@@ -6368,6 +6378,10 @@ class CommonMetricOptions:
6368
6378
  self._values["period"] = period
6369
6379
  if region is not None:
6370
6380
  self._values["region"] = region
6381
+ if stack_account is not None:
6382
+ self._values["stack_account"] = stack_account
6383
+ if stack_region is not None:
6384
+ self._values["stack_region"] = stack_region
6371
6385
  if statistic is not None:
6372
6386
  self._values["statistic"] = statistic
6373
6387
  if unit is not None:
@@ -6438,6 +6452,24 @@ class CommonMetricOptions:
6438
6452
  result = self._values.get("region")
6439
6453
  return typing.cast(typing.Optional[builtins.str], result)
6440
6454
 
6455
+ @builtins.property
6456
+ def stack_account(self) -> typing.Optional[builtins.str]:
6457
+ '''Account of the stack this metric is attached to.
6458
+
6459
+ :default: - Deployment account.
6460
+ '''
6461
+ result = self._values.get("stack_account")
6462
+ return typing.cast(typing.Optional[builtins.str], result)
6463
+
6464
+ @builtins.property
6465
+ def stack_region(self) -> typing.Optional[builtins.str]:
6466
+ '''Region of the stack this metric is attached to.
6467
+
6468
+ :default: - Deployment region.
6469
+ '''
6470
+ result = self._values.get("stack_region")
6471
+ return typing.cast(typing.Optional[builtins.str], result)
6472
+
6441
6473
  @builtins.property
6442
6474
  def statistic(self) -> typing.Optional[builtins.str]:
6443
6475
  '''What function to use for aggregating.
@@ -8915,6 +8947,8 @@ class Metric(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_cloudwatch.Metr
8915
8947
  label: typing.Optional[builtins.str] = None,
8916
8948
  period: typing.Optional[_Duration_4839e8c3] = None,
8917
8949
  region: typing.Optional[builtins.str] = None,
8950
+ stack_account: typing.Optional[builtins.str] = None,
8951
+ stack_region: typing.Optional[builtins.str] = None,
8918
8952
  statistic: typing.Optional[builtins.str] = None,
8919
8953
  unit: typing.Optional["Unit"] = None,
8920
8954
  ) -> None:
@@ -8927,6 +8961,8 @@ class Metric(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_cloudwatch.Metr
8927
8961
  :param label: Label for this metric when added to a Graph in a Dashboard. You can use `dynamic labels <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html>`_ to show summary information about the entire displayed time series in the legend. For example, if you use:: [max: ${MAX}] MyMetric As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend. Default: - No label
8928
8962
  :param period: The period over which the specified statistic is applied. Default: Duration.minutes(5)
8929
8963
  :param region: Region which this metric comes from. Default: - Deployment region.
8964
+ :param stack_account: Account of the stack this metric is attached to. Default: - Deployment account.
8965
+ :param stack_region: Region of the stack this metric is attached to. Default: - Deployment region.
8930
8966
  :param statistic: What function to use for aggregating. Use the ``aws_cloudwatch.Stats`` helper class to construct valid input strings. Can be one of the following: - "Minimum" | "min" - "Maximum" | "max" - "Average" | "avg" - "Sum" | "sum" - "SampleCount | "n" - "pNN.NN" - "tmNN.NN" | "tm(NN.NN%:NN.NN%)" - "iqm" - "wmNN.NN" | "wm(NN.NN%:NN.NN%)" - "tcNN.NN" | "tc(NN.NN%:NN.NN%)" - "tsNN.NN" | "ts(NN.NN%:NN.NN%)" Default: Average
8931
8967
  :param unit: Unit used to filter the metric stream. Only refer to datums emitted to the metric stream with the given unit and ignore all others. Only useful when datums are being emitted to the same metric stream under different units. The default is to use all matric datums in the stream, regardless of unit, which is recommended in nearly all cases. CloudWatch does not honor this property for graphs. Default: - All metric datums in the given metric stream
8932
8968
  '''
@@ -8939,6 +8975,8 @@ class Metric(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_cloudwatch.Metr
8939
8975
  label=label,
8940
8976
  period=period,
8941
8977
  region=region,
8978
+ stack_account=stack_account,
8979
+ stack_region=stack_region,
8942
8980
  statistic=statistic,
8943
8981
  unit=unit,
8944
8982
  )
@@ -9048,6 +9086,8 @@ class Metric(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_cloudwatch.Metr
9048
9086
  label: typing.Optional[builtins.str] = None,
9049
9087
  period: typing.Optional[_Duration_4839e8c3] = None,
9050
9088
  region: typing.Optional[builtins.str] = None,
9089
+ stack_account: typing.Optional[builtins.str] = None,
9090
+ stack_region: typing.Optional[builtins.str] = None,
9051
9091
  statistic: typing.Optional[builtins.str] = None,
9052
9092
  unit: typing.Optional["Unit"] = None,
9053
9093
  ) -> "Metric":
@@ -9061,6 +9101,8 @@ class Metric(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_cloudwatch.Metr
9061
9101
  :param label: Label for this metric when added to a Graph in a Dashboard. You can use `dynamic labels <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html>`_ to show summary information about the entire displayed time series in the legend. For example, if you use:: [max: ${MAX}] MyMetric As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend. Default: - No label
9062
9102
  :param period: The period over which the specified statistic is applied. Default: Duration.minutes(5)
9063
9103
  :param region: Region which this metric comes from. Default: - Deployment region.
9104
+ :param stack_account: Account of the stack this metric is attached to. Default: - Deployment account.
9105
+ :param stack_region: Region of the stack this metric is attached to. Default: - Deployment region.
9064
9106
  :param statistic: What function to use for aggregating. Use the ``aws_cloudwatch.Stats`` helper class to construct valid input strings. Can be one of the following: - "Minimum" | "min" - "Maximum" | "max" - "Average" | "avg" - "Sum" | "sum" - "SampleCount | "n" - "pNN.NN" - "tmNN.NN" | "tm(NN.NN%:NN.NN%)" - "iqm" - "wmNN.NN" | "wm(NN.NN%:NN.NN%)" - "tcNN.NN" | "tc(NN.NN%:NN.NN%)" - "tsNN.NN" | "ts(NN.NN%:NN.NN%)" Default: Average
9065
9107
  :param unit: Unit used to filter the metric stream. Only refer to datums emitted to the metric stream with the given unit and ignore all others. Only useful when datums are being emitted to the same metric stream under different units. The default is to use all matric datums in the stream, regardless of unit, which is recommended in nearly all cases. CloudWatch does not honor this property for graphs. Default: - All metric datums in the given metric stream
9066
9108
  '''
@@ -9071,6 +9113,8 @@ class Metric(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_cloudwatch.Metr
9071
9113
  label=label,
9072
9114
  period=period,
9073
9115
  region=region,
9116
+ stack_account=stack_account,
9117
+ stack_region=stack_region,
9074
9118
  statistic=statistic,
9075
9119
  unit=unit,
9076
9120
  )
@@ -9213,11 +9257,13 @@ class MetricConfig:
9213
9257
 
9214
9258
  # the properties below are optional
9215
9259
  account="account",
9260
+ account_override="accountOverride",
9216
9261
  dimensions=[cloudwatch.Dimension(
9217
9262
  name="name",
9218
9263
  value=value
9219
9264
  )],
9220
9265
  region="region",
9266
+ region_override="regionOverride",
9221
9267
  unit_filter=cloudwatch.Unit.SECONDS
9222
9268
  ),
9223
9269
  rendering_properties={
@@ -9415,6 +9461,8 @@ class MetricExpressionConfig:
9415
9461
  "label": "label",
9416
9462
  "period": "period",
9417
9463
  "region": "region",
9464
+ "stack_account": "stackAccount",
9465
+ "stack_region": "stackRegion",
9418
9466
  "statistic": "statistic",
9419
9467
  "unit": "unit",
9420
9468
  },
@@ -9429,6 +9477,8 @@ class MetricOptions(CommonMetricOptions):
9429
9477
  label: typing.Optional[builtins.str] = None,
9430
9478
  period: typing.Optional[_Duration_4839e8c3] = None,
9431
9479
  region: typing.Optional[builtins.str] = None,
9480
+ stack_account: typing.Optional[builtins.str] = None,
9481
+ stack_region: typing.Optional[builtins.str] = None,
9432
9482
  statistic: typing.Optional[builtins.str] = None,
9433
9483
  unit: typing.Optional["Unit"] = None,
9434
9484
  ) -> None:
@@ -9440,6 +9490,8 @@ class MetricOptions(CommonMetricOptions):
9440
9490
  :param label: Label for this metric when added to a Graph in a Dashboard. You can use `dynamic labels <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html>`_ to show summary information about the entire displayed time series in the legend. For example, if you use:: [max: ${MAX}] MyMetric As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend. Default: - No label
9441
9491
  :param period: The period over which the specified statistic is applied. Default: Duration.minutes(5)
9442
9492
  :param region: Region which this metric comes from. Default: - Deployment region.
9493
+ :param stack_account: Account of the stack this metric is attached to. Default: - Deployment account.
9494
+ :param stack_region: Region of the stack this metric is attached to. Default: - Deployment region.
9443
9495
  :param statistic: What function to use for aggregating. Use the ``aws_cloudwatch.Stats`` helper class to construct valid input strings. Can be one of the following: - "Minimum" | "min" - "Maximum" | "max" - "Average" | "avg" - "Sum" | "sum" - "SampleCount | "n" - "pNN.NN" - "tmNN.NN" | "tm(NN.NN%:NN.NN%)" - "iqm" - "wmNN.NN" | "wm(NN.NN%:NN.NN%)" - "tcNN.NN" | "tc(NN.NN%:NN.NN%)" - "tsNN.NN" | "ts(NN.NN%:NN.NN%)" Default: Average
9444
9496
  :param unit: Unit used to filter the metric stream. Only refer to datums emitted to the metric stream with the given unit and ignore all others. Only useful when datums are being emitted to the same metric stream under different units. The default is to use all matric datums in the stream, regardless of unit, which is recommended in nearly all cases. CloudWatch does not honor this property for graphs. Default: - All metric datums in the given metric stream
9445
9497
 
@@ -9475,6 +9527,8 @@ class MetricOptions(CommonMetricOptions):
9475
9527
  check_type(argname="argument label", value=label, expected_type=type_hints["label"])
9476
9528
  check_type(argname="argument period", value=period, expected_type=type_hints["period"])
9477
9529
  check_type(argname="argument region", value=region, expected_type=type_hints["region"])
9530
+ check_type(argname="argument stack_account", value=stack_account, expected_type=type_hints["stack_account"])
9531
+ check_type(argname="argument stack_region", value=stack_region, expected_type=type_hints["stack_region"])
9478
9532
  check_type(argname="argument statistic", value=statistic, expected_type=type_hints["statistic"])
9479
9533
  check_type(argname="argument unit", value=unit, expected_type=type_hints["unit"])
9480
9534
  self._values: typing.Dict[builtins.str, typing.Any] = {}
@@ -9490,6 +9544,10 @@ class MetricOptions(CommonMetricOptions):
9490
9544
  self._values["period"] = period
9491
9545
  if region is not None:
9492
9546
  self._values["region"] = region
9547
+ if stack_account is not None:
9548
+ self._values["stack_account"] = stack_account
9549
+ if stack_region is not None:
9550
+ self._values["stack_region"] = stack_region
9493
9551
  if statistic is not None:
9494
9552
  self._values["statistic"] = statistic
9495
9553
  if unit is not None:
@@ -9560,6 +9618,24 @@ class MetricOptions(CommonMetricOptions):
9560
9618
  result = self._values.get("region")
9561
9619
  return typing.cast(typing.Optional[builtins.str], result)
9562
9620
 
9621
+ @builtins.property
9622
+ def stack_account(self) -> typing.Optional[builtins.str]:
9623
+ '''Account of the stack this metric is attached to.
9624
+
9625
+ :default: - Deployment account.
9626
+ '''
9627
+ result = self._values.get("stack_account")
9628
+ return typing.cast(typing.Optional[builtins.str], result)
9629
+
9630
+ @builtins.property
9631
+ def stack_region(self) -> typing.Optional[builtins.str]:
9632
+ '''Region of the stack this metric is attached to.
9633
+
9634
+ :default: - Deployment region.
9635
+ '''
9636
+ result = self._values.get("stack_region")
9637
+ return typing.cast(typing.Optional[builtins.str], result)
9638
+
9563
9639
  @builtins.property
9564
9640
  def statistic(self) -> typing.Optional[builtins.str]:
9565
9641
  '''What function to use for aggregating.
@@ -9625,6 +9701,8 @@ class MetricOptions(CommonMetricOptions):
9625
9701
  "label": "label",
9626
9702
  "period": "period",
9627
9703
  "region": "region",
9704
+ "stack_account": "stackAccount",
9705
+ "stack_region": "stackRegion",
9628
9706
  "statistic": "statistic",
9629
9707
  "unit": "unit",
9630
9708
  "metric_name": "metricName",
@@ -9641,6 +9719,8 @@ class MetricProps(CommonMetricOptions):
9641
9719
  label: typing.Optional[builtins.str] = None,
9642
9720
  period: typing.Optional[_Duration_4839e8c3] = None,
9643
9721
  region: typing.Optional[builtins.str] = None,
9722
+ stack_account: typing.Optional[builtins.str] = None,
9723
+ stack_region: typing.Optional[builtins.str] = None,
9644
9724
  statistic: typing.Optional[builtins.str] = None,
9645
9725
  unit: typing.Optional["Unit"] = None,
9646
9726
  metric_name: builtins.str,
@@ -9654,6 +9734,8 @@ class MetricProps(CommonMetricOptions):
9654
9734
  :param label: Label for this metric when added to a Graph in a Dashboard. You can use `dynamic labels <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html>`_ to show summary information about the entire displayed time series in the legend. For example, if you use:: [max: ${MAX}] MyMetric As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend. Default: - No label
9655
9735
  :param period: The period over which the specified statistic is applied. Default: Duration.minutes(5)
9656
9736
  :param region: Region which this metric comes from. Default: - Deployment region.
9737
+ :param stack_account: Account of the stack this metric is attached to. Default: - Deployment account.
9738
+ :param stack_region: Region of the stack this metric is attached to. Default: - Deployment region.
9657
9739
  :param statistic: What function to use for aggregating. Use the ``aws_cloudwatch.Stats`` helper class to construct valid input strings. Can be one of the following: - "Minimum" | "min" - "Maximum" | "max" - "Average" | "avg" - "Sum" | "sum" - "SampleCount | "n" - "pNN.NN" - "tmNN.NN" | "tm(NN.NN%:NN.NN%)" - "iqm" - "wmNN.NN" | "wm(NN.NN%:NN.NN%)" - "tcNN.NN" | "tc(NN.NN%:NN.NN%)" - "tsNN.NN" | "ts(NN.NN%:NN.NN%)" Default: Average
9658
9740
  :param unit: Unit used to filter the metric stream. Only refer to datums emitted to the metric stream with the given unit and ignore all others. Only useful when datums are being emitted to the same metric stream under different units. The default is to use all matric datums in the stream, regardless of unit, which is recommended in nearly all cases. CloudWatch does not honor this property for graphs. Default: - All metric datums in the given metric stream
9659
9741
  :param metric_name: Name of the metric.
@@ -9696,6 +9778,8 @@ class MetricProps(CommonMetricOptions):
9696
9778
  check_type(argname="argument label", value=label, expected_type=type_hints["label"])
9697
9779
  check_type(argname="argument period", value=period, expected_type=type_hints["period"])
9698
9780
  check_type(argname="argument region", value=region, expected_type=type_hints["region"])
9781
+ check_type(argname="argument stack_account", value=stack_account, expected_type=type_hints["stack_account"])
9782
+ check_type(argname="argument stack_region", value=stack_region, expected_type=type_hints["stack_region"])
9699
9783
  check_type(argname="argument statistic", value=statistic, expected_type=type_hints["statistic"])
9700
9784
  check_type(argname="argument unit", value=unit, expected_type=type_hints["unit"])
9701
9785
  check_type(argname="argument metric_name", value=metric_name, expected_type=type_hints["metric_name"])
@@ -9716,6 +9800,10 @@ class MetricProps(CommonMetricOptions):
9716
9800
  self._values["period"] = period
9717
9801
  if region is not None:
9718
9802
  self._values["region"] = region
9803
+ if stack_account is not None:
9804
+ self._values["stack_account"] = stack_account
9805
+ if stack_region is not None:
9806
+ self._values["stack_region"] = stack_region
9719
9807
  if statistic is not None:
9720
9808
  self._values["statistic"] = statistic
9721
9809
  if unit is not None:
@@ -9786,6 +9874,24 @@ class MetricProps(CommonMetricOptions):
9786
9874
  result = self._values.get("region")
9787
9875
  return typing.cast(typing.Optional[builtins.str], result)
9788
9876
 
9877
+ @builtins.property
9878
+ def stack_account(self) -> typing.Optional[builtins.str]:
9879
+ '''Account of the stack this metric is attached to.
9880
+
9881
+ :default: - Deployment account.
9882
+ '''
9883
+ result = self._values.get("stack_account")
9884
+ return typing.cast(typing.Optional[builtins.str], result)
9885
+
9886
+ @builtins.property
9887
+ def stack_region(self) -> typing.Optional[builtins.str]:
9888
+ '''Region of the stack this metric is attached to.
9889
+
9890
+ :default: - Deployment region.
9891
+ '''
9892
+ result = self._values.get("stack_region")
9893
+ return typing.cast(typing.Optional[builtins.str], result)
9894
+
9789
9895
  @builtins.property
9790
9896
  def statistic(self) -> typing.Optional[builtins.str]:
9791
9897
  '''What function to use for aggregating.
@@ -9864,8 +9970,10 @@ class MetricProps(CommonMetricOptions):
9864
9970
  "period": "period",
9865
9971
  "statistic": "statistic",
9866
9972
  "account": "account",
9973
+ "account_override": "accountOverride",
9867
9974
  "dimensions": "dimensions",
9868
9975
  "region": "region",
9976
+ "region_override": "regionOverride",
9869
9977
  "unit_filter": "unitFilter",
9870
9978
  },
9871
9979
  )
@@ -9878,8 +9986,10 @@ class MetricStatConfig:
9878
9986
  period: _Duration_4839e8c3,
9879
9987
  statistic: builtins.str,
9880
9988
  account: typing.Optional[builtins.str] = None,
9989
+ account_override: typing.Optional[builtins.str] = None,
9881
9990
  dimensions: typing.Optional[typing.Sequence[typing.Union[Dimension, typing.Dict[builtins.str, typing.Any]]]] = None,
9882
9991
  region: typing.Optional[builtins.str] = None,
9992
+ region_override: typing.Optional[builtins.str] = None,
9883
9993
  unit_filter: typing.Optional["Unit"] = None,
9884
9994
  ) -> None:
9885
9995
  '''Properties for a concrete metric.
@@ -9892,8 +10002,10 @@ class MetricStatConfig:
9892
10002
  :param period: How many seconds to aggregate over.
9893
10003
  :param statistic: Aggregation function to use (can be either simple or a percentile).
9894
10004
  :param account: Account which this metric comes from. Default: Deployment account.
10005
+ :param account_override: Account set directly on the metric, not inherited from the attached stack. Default: No override.
9895
10006
  :param dimensions: The dimensions to apply to the alarm. Default: []
9896
10007
  :param region: Region which this metric comes from. Default: Deployment region.
10008
+ :param region_override: Region set directly on the metric, not inherited from the attached stack. Default: No override.
9897
10009
  :param unit_filter: Unit used to filter the metric stream. Only refer to datums emitted to the metric stream with the given unit and ignore all others. Only useful when datums are being emitted to the same metric stream under different units. This field has been renamed from plain ``unit`` to clearly communicate its purpose. Default: - Refer to all metric datums
9898
10010
 
9899
10011
  :exampleMetadata: fixture=_generated
@@ -9915,11 +10027,13 @@ class MetricStatConfig:
9915
10027
 
9916
10028
  # the properties below are optional
9917
10029
  account="account",
10030
+ account_override="accountOverride",
9918
10031
  dimensions=[cloudwatch.Dimension(
9919
10032
  name="name",
9920
10033
  value=value
9921
10034
  )],
9922
10035
  region="region",
10036
+ region_override="regionOverride",
9923
10037
  unit_filter=cloudwatch.Unit.SECONDS
9924
10038
  )
9925
10039
  '''
@@ -9930,8 +10044,10 @@ class MetricStatConfig:
9930
10044
  check_type(argname="argument period", value=period, expected_type=type_hints["period"])
9931
10045
  check_type(argname="argument statistic", value=statistic, expected_type=type_hints["statistic"])
9932
10046
  check_type(argname="argument account", value=account, expected_type=type_hints["account"])
10047
+ check_type(argname="argument account_override", value=account_override, expected_type=type_hints["account_override"])
9933
10048
  check_type(argname="argument dimensions", value=dimensions, expected_type=type_hints["dimensions"])
9934
10049
  check_type(argname="argument region", value=region, expected_type=type_hints["region"])
10050
+ check_type(argname="argument region_override", value=region_override, expected_type=type_hints["region_override"])
9935
10051
  check_type(argname="argument unit_filter", value=unit_filter, expected_type=type_hints["unit_filter"])
9936
10052
  self._values: typing.Dict[builtins.str, typing.Any] = {
9937
10053
  "metric_name": metric_name,
@@ -9941,10 +10057,14 @@ class MetricStatConfig:
9941
10057
  }
9942
10058
  if account is not None:
9943
10059
  self._values["account"] = account
10060
+ if account_override is not None:
10061
+ self._values["account_override"] = account_override
9944
10062
  if dimensions is not None:
9945
10063
  self._values["dimensions"] = dimensions
9946
10064
  if region is not None:
9947
10065
  self._values["region"] = region
10066
+ if region_override is not None:
10067
+ self._values["region_override"] = region_override
9948
10068
  if unit_filter is not None:
9949
10069
  self._values["unit_filter"] = unit_filter
9950
10070
 
@@ -9985,6 +10105,15 @@ class MetricStatConfig:
9985
10105
  result = self._values.get("account")
9986
10106
  return typing.cast(typing.Optional[builtins.str], result)
9987
10107
 
10108
+ @builtins.property
10109
+ def account_override(self) -> typing.Optional[builtins.str]:
10110
+ '''Account set directly on the metric, not inherited from the attached stack.
10111
+
10112
+ :default: No override.
10113
+ '''
10114
+ result = self._values.get("account_override")
10115
+ return typing.cast(typing.Optional[builtins.str], result)
10116
+
9988
10117
  @builtins.property
9989
10118
  def dimensions(self) -> typing.Optional[typing.List[Dimension]]:
9990
10119
  '''The dimensions to apply to the alarm.
@@ -10003,6 +10132,15 @@ class MetricStatConfig:
10003
10132
  result = self._values.get("region")
10004
10133
  return typing.cast(typing.Optional[builtins.str], result)
10005
10134
 
10135
+ @builtins.property
10136
+ def region_override(self) -> typing.Optional[builtins.str]:
10137
+ '''Region set directly on the metric, not inherited from the attached stack.
10138
+
10139
+ :default: No override.
10140
+ '''
10141
+ result = self._values.get("region_override")
10142
+ return typing.cast(typing.Optional[builtins.str], result)
10143
+
10006
10144
  @builtins.property
10007
10145
  def unit_filter(self) -> typing.Optional["Unit"]:
10008
10146
  '''Unit used to filter the metric stream.
@@ -15802,6 +15940,8 @@ def _typecheckingstub__dd18f372aac3bb8d4a678dd4ee7a3b5bd34447637695b896086139ee2
15802
15940
  label: typing.Optional[builtins.str] = None,
15803
15941
  period: typing.Optional[_Duration_4839e8c3] = None,
15804
15942
  region: typing.Optional[builtins.str] = None,
15943
+ stack_account: typing.Optional[builtins.str] = None,
15944
+ stack_region: typing.Optional[builtins.str] = None,
15805
15945
  statistic: typing.Optional[builtins.str] = None,
15806
15946
  unit: typing.Optional[Unit] = None,
15807
15947
  ) -> None:
@@ -16055,6 +16195,8 @@ def _typecheckingstub__0dbe737a4d124c27184430b7c20048e16171cb8b5b94bdac632b26d84
16055
16195
  label: typing.Optional[builtins.str] = None,
16056
16196
  period: typing.Optional[_Duration_4839e8c3] = None,
16057
16197
  region: typing.Optional[builtins.str] = None,
16198
+ stack_account: typing.Optional[builtins.str] = None,
16199
+ stack_region: typing.Optional[builtins.str] = None,
16058
16200
  statistic: typing.Optional[builtins.str] = None,
16059
16201
  unit: typing.Optional[Unit] = None,
16060
16202
  ) -> None:
@@ -16069,6 +16211,8 @@ def _typecheckingstub__5e1e153a11ab88ed91297aedb5d7a78a81e7bf88f8aeda51bc11ff42e
16069
16211
  label: typing.Optional[builtins.str] = None,
16070
16212
  period: typing.Optional[_Duration_4839e8c3] = None,
16071
16213
  region: typing.Optional[builtins.str] = None,
16214
+ stack_account: typing.Optional[builtins.str] = None,
16215
+ stack_region: typing.Optional[builtins.str] = None,
16072
16216
  statistic: typing.Optional[builtins.str] = None,
16073
16217
  unit: typing.Optional[Unit] = None,
16074
16218
  metric_name: builtins.str,
@@ -16084,8 +16228,10 @@ def _typecheckingstub__b4491ad5e5a4b9301258f50e45d0278fe9bbf165c840e3c65f8feab63
16084
16228
  period: _Duration_4839e8c3,
16085
16229
  statistic: builtins.str,
16086
16230
  account: typing.Optional[builtins.str] = None,
16231
+ account_override: typing.Optional[builtins.str] = None,
16087
16232
  dimensions: typing.Optional[typing.Sequence[typing.Union[Dimension, typing.Dict[builtins.str, typing.Any]]]] = None,
16088
16233
  region: typing.Optional[builtins.str] = None,
16234
+ region_override: typing.Optional[builtins.str] = None,
16089
16235
  unit_filter: typing.Optional[Unit] = None,
16090
16236
  ) -> None:
16091
16237
  """Type checking stubs"""