aws-cdk-lib 2.201.0__py3-none-any.whl → 2.203.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 +70 -71
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.201.0.jsii.tgz → aws-cdk-lib@2.203.0.jsii.tgz} +0 -0
- aws_cdk/aws_accessanalyzer/__init__.py +310 -4
- aws_cdk/aws_aiops/__init__.py +964 -0
- aws_cdk/aws_amplify/__init__.py +127 -0
- aws_cdk/aws_arczonalshift/__init__.py +8 -8
- aws_cdk/aws_athena/__init__.py +12 -11
- aws_cdk/aws_b2bi/__init__.py +782 -3
- aws_cdk/aws_backup/__init__.py +22 -0
- aws_cdk/aws_batch/__init__.py +53 -1
- aws_cdk/aws_bedrock/__init__.py +123 -9
- aws_cdk/aws_cleanrooms/__init__.py +157 -154
- aws_cdk/aws_cloudformation/__init__.py +28 -28
- aws_cdk/aws_cloudfront/__init__.py +92 -57
- aws_cdk/aws_cloudfront/experimental/__init__.py +42 -3
- aws_cdk/aws_cloudwatch/__init__.py +228 -2
- aws_cdk/aws_connect/__init__.py +120 -8
- aws_cdk/aws_connectcampaignsv2/__init__.py +25 -4
- aws_cdk/aws_customerprofiles/__init__.py +150 -30
- aws_cdk/aws_datazone/__init__.py +23 -4
- aws_cdk/aws_deadline/__init__.py +4 -4
- aws_cdk/aws_dsql/__init__.py +148 -0
- aws_cdk/aws_ec2/__init__.py +321 -19
- aws_cdk/aws_ecr/__init__.py +3 -3
- aws_cdk/aws_ecs/__init__.py +48 -13
- aws_cdk/aws_efs/__init__.py +17 -6
- aws_cdk/aws_eks/__init__.py +180 -158
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +4 -2
- aws_cdk/aws_emrserverless/__init__.py +118 -0
- aws_cdk/aws_fsx/__init__.py +891 -0
- aws_cdk/aws_glue/__init__.py +58 -24
- aws_cdk/aws_iam/__init__.py +11 -11
- aws_cdk/aws_inspectorv2/__init__.py +442 -3
- aws_cdk/aws_kendra/__init__.py +10 -5
- aws_cdk/aws_kms/__init__.py +24 -12
- aws_cdk/aws_lambda/__init__.py +938 -36
- aws_cdk/aws_lambda_event_sources/__init__.py +638 -1
- aws_cdk/aws_lambda_nodejs/__init__.py +37 -3
- aws_cdk/aws_lex/__init__.py +703 -0
- aws_cdk/aws_logs/__init__.py +144 -0
- aws_cdk/aws_mediatailor/__init__.py +399 -0
- aws_cdk/aws_mpa/__init__.py +1475 -0
- aws_cdk/aws_msk/__init__.py +21 -2
- aws_cdk/aws_mwaa/__init__.py +45 -2
- aws_cdk/aws_networkfirewall/__init__.py +4 -2
- aws_cdk/aws_networkmanager/__init__.py +51 -3
- aws_cdk/aws_opsworkscm/__init__.py +44 -2
- aws_cdk/aws_rds/__init__.py +175 -42
- aws_cdk/aws_redshiftserverless/__init__.py +632 -0
- aws_cdk/aws_route53resolver/__init__.py +58 -10
- aws_cdk/aws_s3/__init__.py +19 -1
- aws_cdk/aws_s3tables/__init__.py +230 -0
- aws_cdk/aws_sagemaker/__init__.py +14 -10
- aws_cdk/aws_securityhub/__init__.py +2887 -56
- aws_cdk/aws_synthetics/__init__.py +21 -0
- aws_cdk/aws_vpclattice/__init__.py +6 -4
- aws_cdk/aws_wafv2/__init__.py +849 -18
- aws_cdk/aws_workspacesinstances/__init__.py +3243 -0
- aws_cdk/cloud_assembly_schema/__init__.py +200 -4
- aws_cdk/cx_api/__init__.py +29 -14
- aws_cdk/pipelines/__init__.py +178 -41
- aws_cdk/triggers/__init__.py +41 -4
- {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/METADATA +3 -3
- {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/RECORD +69 -66
- {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/top_level.txt +0 -0
|
@@ -984,6 +984,38 @@ dashboard = cw.Dashboard(self, "Dash",
|
|
|
984
984
|
```
|
|
985
985
|
|
|
986
986
|
You can add a variable after object instantiation with the method `dashboard.addVariable()`.
|
|
987
|
+
|
|
988
|
+
### Cross-Account Visibility
|
|
989
|
+
|
|
990
|
+
Both Log and Metric Widget objects support cross-account visibility by allowing you to specify the AWS Account ID that the data (logs or metrics) originates from.
|
|
991
|
+
|
|
992
|
+
**Prerequisites:**
|
|
993
|
+
|
|
994
|
+
1. The monitoring account must be set up as a monitoring account
|
|
995
|
+
2. The source account must grant permissions to the monitoring account
|
|
996
|
+
3. Appropriate IAM roles and policies must be configured
|
|
997
|
+
|
|
998
|
+
For detailed setup instructions, see [Cross-Account Cross-Region CloudWatch Console](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html).
|
|
999
|
+
|
|
1000
|
+
To use this feature, you can set the `accountId` property on `LogQueryWidget`, `GraphWidget`, `AlarmWidget`, `SingleValueWidget`, and `GaugeWidget` constructs:
|
|
1001
|
+
|
|
1002
|
+
```python
|
|
1003
|
+
# dashboard: cloudwatch.Dashboard
|
|
1004
|
+
|
|
1005
|
+
|
|
1006
|
+
dashboard.add_widgets(cloudwatch.GraphWidget(
|
|
1007
|
+
# ...
|
|
1008
|
+
account_id="123456789012"
|
|
1009
|
+
))
|
|
1010
|
+
|
|
1011
|
+
dashboard.add_widgets(cloudwatch.LogQueryWidget(
|
|
1012
|
+
log_group_names=["my-log-group"],
|
|
1013
|
+
# ...
|
|
1014
|
+
account_id="123456789012",
|
|
1015
|
+
query_lines=["fields @message"
|
|
1016
|
+
]
|
|
1017
|
+
))
|
|
1018
|
+
```
|
|
987
1019
|
'''
|
|
988
1020
|
from pkgutil import extend_path
|
|
989
1021
|
__path__ = extend_path(__path__, __name__)
|
|
@@ -8529,6 +8561,7 @@ class LogQueryVisualizationType(enum.Enum):
|
|
|
8529
8561
|
jsii_struct_bases=[],
|
|
8530
8562
|
name_mapping={
|
|
8531
8563
|
"log_group_names": "logGroupNames",
|
|
8564
|
+
"account_id": "accountId",
|
|
8532
8565
|
"height": "height",
|
|
8533
8566
|
"query_lines": "queryLines",
|
|
8534
8567
|
"query_string": "queryString",
|
|
@@ -8543,6 +8576,7 @@ class LogQueryWidgetProps:
|
|
|
8543
8576
|
self,
|
|
8544
8577
|
*,
|
|
8545
8578
|
log_group_names: typing.Sequence[builtins.str],
|
|
8579
|
+
account_id: typing.Optional[builtins.str] = None,
|
|
8546
8580
|
height: typing.Optional[jsii.Number] = None,
|
|
8547
8581
|
query_lines: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
8548
8582
|
query_string: typing.Optional[builtins.str] = None,
|
|
@@ -8554,6 +8588,7 @@ class LogQueryWidgetProps:
|
|
|
8554
8588
|
'''Properties for a Query widget.
|
|
8555
8589
|
|
|
8556
8590
|
:param log_group_names: Names of log groups to query.
|
|
8591
|
+
:param account_id: The AWS account ID where the log groups are located. This enables cross-account functionality for CloudWatch dashboards. Before using this feature, ensure that proper cross-account sharing is configured between the monitoring account and source account. For more information, see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html Default: - Current account
|
|
8557
8592
|
:param height: Height of the widget. Default: 6
|
|
8558
8593
|
:param query_lines: A sequence of lines to use to build the query. The query will be built by joining the lines together using ``\\n|``. Default: - Exactly one of ``queryString``, ``queryLines`` is required.
|
|
8559
8594
|
:param query_string: Full query string for log insights. Be sure to prepend every new line with a newline and pipe character (``\\n|``). Default: - Exactly one of ``queryString``, ``queryLines`` is required.
|
|
@@ -8580,6 +8615,7 @@ class LogQueryWidgetProps:
|
|
|
8580
8615
|
if __debug__:
|
|
8581
8616
|
type_hints = typing.get_type_hints(_typecheckingstub__b7d4a308b1274696259a35b14b5ae833f34881f95eaba521bb47a74b3a80e8c0)
|
|
8582
8617
|
check_type(argname="argument log_group_names", value=log_group_names, expected_type=type_hints["log_group_names"])
|
|
8618
|
+
check_type(argname="argument account_id", value=account_id, expected_type=type_hints["account_id"])
|
|
8583
8619
|
check_type(argname="argument height", value=height, expected_type=type_hints["height"])
|
|
8584
8620
|
check_type(argname="argument query_lines", value=query_lines, expected_type=type_hints["query_lines"])
|
|
8585
8621
|
check_type(argname="argument query_string", value=query_string, expected_type=type_hints["query_string"])
|
|
@@ -8590,6 +8626,8 @@ class LogQueryWidgetProps:
|
|
|
8590
8626
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
8591
8627
|
"log_group_names": log_group_names,
|
|
8592
8628
|
}
|
|
8629
|
+
if account_id is not None:
|
|
8630
|
+
self._values["account_id"] = account_id
|
|
8593
8631
|
if height is not None:
|
|
8594
8632
|
self._values["height"] = height
|
|
8595
8633
|
if query_lines is not None:
|
|
@@ -8612,6 +8650,22 @@ class LogQueryWidgetProps:
|
|
|
8612
8650
|
assert result is not None, "Required property 'log_group_names' is missing"
|
|
8613
8651
|
return typing.cast(typing.List[builtins.str], result)
|
|
8614
8652
|
|
|
8653
|
+
@builtins.property
|
|
8654
|
+
def account_id(self) -> typing.Optional[builtins.str]:
|
|
8655
|
+
'''The AWS account ID where the log groups are located.
|
|
8656
|
+
|
|
8657
|
+
This enables cross-account functionality for CloudWatch dashboards.
|
|
8658
|
+
Before using this feature, ensure that proper cross-account sharing is configured
|
|
8659
|
+
between the monitoring account and source account.
|
|
8660
|
+
|
|
8661
|
+
For more information, see:
|
|
8662
|
+
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html
|
|
8663
|
+
|
|
8664
|
+
:default: - Current account
|
|
8665
|
+
'''
|
|
8666
|
+
result = self._values.get("account_id")
|
|
8667
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
8668
|
+
|
|
8615
8669
|
@builtins.property
|
|
8616
8670
|
def height(self) -> typing.Optional[jsii.Number]:
|
|
8617
8671
|
'''Height of the widget.
|
|
@@ -10592,6 +10646,7 @@ class MetricStatConfig:
|
|
|
10592
10646
|
jsii_type="aws-cdk-lib.aws_cloudwatch.MetricWidgetProps",
|
|
10593
10647
|
jsii_struct_bases=[],
|
|
10594
10648
|
name_mapping={
|
|
10649
|
+
"account_id": "accountId",
|
|
10595
10650
|
"height": "height",
|
|
10596
10651
|
"region": "region",
|
|
10597
10652
|
"title": "title",
|
|
@@ -10602,6 +10657,7 @@ class MetricWidgetProps:
|
|
|
10602
10657
|
def __init__(
|
|
10603
10658
|
self,
|
|
10604
10659
|
*,
|
|
10660
|
+
account_id: typing.Optional[builtins.str] = None,
|
|
10605
10661
|
height: typing.Optional[jsii.Number] = None,
|
|
10606
10662
|
region: typing.Optional[builtins.str] = None,
|
|
10607
10663
|
title: typing.Optional[builtins.str] = None,
|
|
@@ -10609,6 +10665,7 @@ class MetricWidgetProps:
|
|
|
10609
10665
|
) -> None:
|
|
10610
10666
|
'''Basic properties for widgets that display metrics.
|
|
10611
10667
|
|
|
10668
|
+
:param account_id: The AWS account ID where the metrics are located. This enables cross-account functionality for CloudWatch dashboards. Before using this feature, ensure that proper cross-account sharing is configured between the monitoring account and source account. For more information, see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html Default: - Current account
|
|
10612
10669
|
:param height: Height of the widget. Default: - 6 for Alarm and Graph widgets. 3 for single value widgets where most recent value of a metric is displayed.
|
|
10613
10670
|
:param region: The region the metrics of this graph should be taken from. Default: - Current region
|
|
10614
10671
|
:param title: Title for the graph. Default: - None
|
|
@@ -10623,6 +10680,7 @@ class MetricWidgetProps:
|
|
|
10623
10680
|
from aws_cdk import aws_cloudwatch as cloudwatch
|
|
10624
10681
|
|
|
10625
10682
|
metric_widget_props = cloudwatch.MetricWidgetProps(
|
|
10683
|
+
account_id="accountId",
|
|
10626
10684
|
height=123,
|
|
10627
10685
|
region="region",
|
|
10628
10686
|
title="title",
|
|
@@ -10631,11 +10689,14 @@ class MetricWidgetProps:
|
|
|
10631
10689
|
'''
|
|
10632
10690
|
if __debug__:
|
|
10633
10691
|
type_hints = typing.get_type_hints(_typecheckingstub__028d2c6eccbbf06b74566403b038cac0cdc1c8588c939f4352cc861885b12c38)
|
|
10692
|
+
check_type(argname="argument account_id", value=account_id, expected_type=type_hints["account_id"])
|
|
10634
10693
|
check_type(argname="argument height", value=height, expected_type=type_hints["height"])
|
|
10635
10694
|
check_type(argname="argument region", value=region, expected_type=type_hints["region"])
|
|
10636
10695
|
check_type(argname="argument title", value=title, expected_type=type_hints["title"])
|
|
10637
10696
|
check_type(argname="argument width", value=width, expected_type=type_hints["width"])
|
|
10638
10697
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
10698
|
+
if account_id is not None:
|
|
10699
|
+
self._values["account_id"] = account_id
|
|
10639
10700
|
if height is not None:
|
|
10640
10701
|
self._values["height"] = height
|
|
10641
10702
|
if region is not None:
|
|
@@ -10645,6 +10706,22 @@ class MetricWidgetProps:
|
|
|
10645
10706
|
if width is not None:
|
|
10646
10707
|
self._values["width"] = width
|
|
10647
10708
|
|
|
10709
|
+
@builtins.property
|
|
10710
|
+
def account_id(self) -> typing.Optional[builtins.str]:
|
|
10711
|
+
'''The AWS account ID where the metrics are located.
|
|
10712
|
+
|
|
10713
|
+
This enables cross-account functionality for CloudWatch dashboards.
|
|
10714
|
+
Before using this feature, ensure that proper cross-account sharing is configured
|
|
10715
|
+
between the monitoring account and source account.
|
|
10716
|
+
|
|
10717
|
+
For more information, see:
|
|
10718
|
+
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html
|
|
10719
|
+
|
|
10720
|
+
:default: - Current account
|
|
10721
|
+
'''
|
|
10722
|
+
result = self._values.get("account_id")
|
|
10723
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
10724
|
+
|
|
10648
10725
|
@builtins.property
|
|
10649
10726
|
def height(self) -> typing.Optional[jsii.Number]:
|
|
10650
10727
|
'''Height of the widget.
|
|
@@ -10902,6 +10979,7 @@ class Shading(enum.Enum):
|
|
|
10902
10979
|
jsii_type="aws-cdk-lib.aws_cloudwatch.SingleValueWidgetProps",
|
|
10903
10980
|
jsii_struct_bases=[MetricWidgetProps],
|
|
10904
10981
|
name_mapping={
|
|
10982
|
+
"account_id": "accountId",
|
|
10905
10983
|
"height": "height",
|
|
10906
10984
|
"region": "region",
|
|
10907
10985
|
"title": "title",
|
|
@@ -10919,6 +10997,7 @@ class SingleValueWidgetProps(MetricWidgetProps):
|
|
|
10919
10997
|
def __init__(
|
|
10920
10998
|
self,
|
|
10921
10999
|
*,
|
|
11000
|
+
account_id: typing.Optional[builtins.str] = None,
|
|
10922
11001
|
height: typing.Optional[jsii.Number] = None,
|
|
10923
11002
|
region: typing.Optional[builtins.str] = None,
|
|
10924
11003
|
title: typing.Optional[builtins.str] = None,
|
|
@@ -10933,6 +11012,7 @@ class SingleValueWidgetProps(MetricWidgetProps):
|
|
|
10933
11012
|
) -> None:
|
|
10934
11013
|
'''Properties for a SingleValueWidget.
|
|
10935
11014
|
|
|
11015
|
+
:param account_id: The AWS account ID where the metrics are located. This enables cross-account functionality for CloudWatch dashboards. Before using this feature, ensure that proper cross-account sharing is configured between the monitoring account and source account. For more information, see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html Default: - Current account
|
|
10936
11016
|
:param height: Height of the widget. Default: - 6 for Alarm and Graph widgets. 3 for single value widgets where most recent value of a metric is displayed.
|
|
10937
11017
|
:param region: The region the metrics of this graph should be taken from. Default: - Current region
|
|
10938
11018
|
:param title: Title for the graph. Default: - None
|
|
@@ -10960,6 +11040,7 @@ class SingleValueWidgetProps(MetricWidgetProps):
|
|
|
10960
11040
|
'''
|
|
10961
11041
|
if __debug__:
|
|
10962
11042
|
type_hints = typing.get_type_hints(_typecheckingstub__4596565f40195bdcc9fe939fa585a3bdf484f8a4a6817e427c6f9e1e49650041)
|
|
11043
|
+
check_type(argname="argument account_id", value=account_id, expected_type=type_hints["account_id"])
|
|
10963
11044
|
check_type(argname="argument height", value=height, expected_type=type_hints["height"])
|
|
10964
11045
|
check_type(argname="argument region", value=region, expected_type=type_hints["region"])
|
|
10965
11046
|
check_type(argname="argument title", value=title, expected_type=type_hints["title"])
|
|
@@ -10974,6 +11055,8 @@ class SingleValueWidgetProps(MetricWidgetProps):
|
|
|
10974
11055
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
10975
11056
|
"metrics": metrics,
|
|
10976
11057
|
}
|
|
11058
|
+
if account_id is not None:
|
|
11059
|
+
self._values["account_id"] = account_id
|
|
10977
11060
|
if height is not None:
|
|
10978
11061
|
self._values["height"] = height
|
|
10979
11062
|
if region is not None:
|
|
@@ -10995,6 +11078,22 @@ class SingleValueWidgetProps(MetricWidgetProps):
|
|
|
10995
11078
|
if start is not None:
|
|
10996
11079
|
self._values["start"] = start
|
|
10997
11080
|
|
|
11081
|
+
@builtins.property
|
|
11082
|
+
def account_id(self) -> typing.Optional[builtins.str]:
|
|
11083
|
+
'''The AWS account ID where the metrics are located.
|
|
11084
|
+
|
|
11085
|
+
This enables cross-account functionality for CloudWatch dashboards.
|
|
11086
|
+
Before using this feature, ensure that proper cross-account sharing is configured
|
|
11087
|
+
between the monitoring account and source account.
|
|
11088
|
+
|
|
11089
|
+
For more information, see:
|
|
11090
|
+
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html
|
|
11091
|
+
|
|
11092
|
+
:default: - Current account
|
|
11093
|
+
'''
|
|
11094
|
+
result = self._values.get("account_id")
|
|
11095
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
11096
|
+
|
|
10998
11097
|
@builtins.property
|
|
10999
11098
|
def height(self) -> typing.Optional[jsii.Number]:
|
|
11000
11099
|
'''Height of the widget.
|
|
@@ -11914,6 +12013,7 @@ class TableThreshold(
|
|
|
11914
12013
|
jsii_type="aws-cdk-lib.aws_cloudwatch.TableWidgetProps",
|
|
11915
12014
|
jsii_struct_bases=[MetricWidgetProps],
|
|
11916
12015
|
name_mapping={
|
|
12016
|
+
"account_id": "accountId",
|
|
11917
12017
|
"height": "height",
|
|
11918
12018
|
"region": "region",
|
|
11919
12019
|
"title": "title",
|
|
@@ -11936,6 +12036,7 @@ class TableWidgetProps(MetricWidgetProps):
|
|
|
11936
12036
|
def __init__(
|
|
11937
12037
|
self,
|
|
11938
12038
|
*,
|
|
12039
|
+
account_id: typing.Optional[builtins.str] = None,
|
|
11939
12040
|
height: typing.Optional[jsii.Number] = None,
|
|
11940
12041
|
region: typing.Optional[builtins.str] = None,
|
|
11941
12042
|
title: typing.Optional[builtins.str] = None,
|
|
@@ -11955,6 +12056,7 @@ class TableWidgetProps(MetricWidgetProps):
|
|
|
11955
12056
|
) -> None:
|
|
11956
12057
|
'''Properties for a TableWidget.
|
|
11957
12058
|
|
|
12059
|
+
:param account_id: The AWS account ID where the metrics are located. This enables cross-account functionality for CloudWatch dashboards. Before using this feature, ensure that proper cross-account sharing is configured between the monitoring account and source account. For more information, see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html Default: - Current account
|
|
11958
12060
|
:param height: Height of the widget. Default: - 6 for Alarm and Graph widgets. 3 for single value widgets where most recent value of a metric is displayed.
|
|
11959
12061
|
:param region: The region the metrics of this graph should be taken from. Default: - Current region
|
|
11960
12062
|
:param title: Title for the graph. Default: - None
|
|
@@ -11989,6 +12091,7 @@ class TableWidgetProps(MetricWidgetProps):
|
|
|
11989
12091
|
summary = TableSummaryProps(**summary)
|
|
11990
12092
|
if __debug__:
|
|
11991
12093
|
type_hints = typing.get_type_hints(_typecheckingstub__03726ba90bb01c2a1340af4f73005fffe1b8288cff57d77f31d745d629defb8b)
|
|
12094
|
+
check_type(argname="argument account_id", value=account_id, expected_type=type_hints["account_id"])
|
|
11992
12095
|
check_type(argname="argument height", value=height, expected_type=type_hints["height"])
|
|
11993
12096
|
check_type(argname="argument region", value=region, expected_type=type_hints["region"])
|
|
11994
12097
|
check_type(argname="argument title", value=title, expected_type=type_hints["title"])
|
|
@@ -12006,6 +12109,8 @@ class TableWidgetProps(MetricWidgetProps):
|
|
|
12006
12109
|
check_type(argname="argument summary", value=summary, expected_type=type_hints["summary"])
|
|
12007
12110
|
check_type(argname="argument thresholds", value=thresholds, expected_type=type_hints["thresholds"])
|
|
12008
12111
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
12112
|
+
if account_id is not None:
|
|
12113
|
+
self._values["account_id"] = account_id
|
|
12009
12114
|
if height is not None:
|
|
12010
12115
|
self._values["height"] = height
|
|
12011
12116
|
if region is not None:
|
|
@@ -12039,6 +12144,22 @@ class TableWidgetProps(MetricWidgetProps):
|
|
|
12039
12144
|
if thresholds is not None:
|
|
12040
12145
|
self._values["thresholds"] = thresholds
|
|
12041
12146
|
|
|
12147
|
+
@builtins.property
|
|
12148
|
+
def account_id(self) -> typing.Optional[builtins.str]:
|
|
12149
|
+
'''The AWS account ID where the metrics are located.
|
|
12150
|
+
|
|
12151
|
+
This enables cross-account functionality for CloudWatch dashboards.
|
|
12152
|
+
Before using this feature, ensure that proper cross-account sharing is configured
|
|
12153
|
+
between the monitoring account and source account.
|
|
12154
|
+
|
|
12155
|
+
For more information, see:
|
|
12156
|
+
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html
|
|
12157
|
+
|
|
12158
|
+
:default: - Current account
|
|
12159
|
+
'''
|
|
12160
|
+
result = self._values.get("account_id")
|
|
12161
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
12162
|
+
|
|
12042
12163
|
@builtins.property
|
|
12043
12164
|
def height(self) -> typing.Optional[jsii.Number]:
|
|
12044
12165
|
'''Height of the widget.
|
|
@@ -13179,6 +13300,7 @@ class AlarmProps(CreateAlarmOptions):
|
|
|
13179
13300
|
jsii_type="aws-cdk-lib.aws_cloudwatch.AlarmWidgetProps",
|
|
13180
13301
|
jsii_struct_bases=[MetricWidgetProps],
|
|
13181
13302
|
name_mapping={
|
|
13303
|
+
"account_id": "accountId",
|
|
13182
13304
|
"height": "height",
|
|
13183
13305
|
"region": "region",
|
|
13184
13306
|
"title": "title",
|
|
@@ -13191,6 +13313,7 @@ class AlarmWidgetProps(MetricWidgetProps):
|
|
|
13191
13313
|
def __init__(
|
|
13192
13314
|
self,
|
|
13193
13315
|
*,
|
|
13316
|
+
account_id: typing.Optional[builtins.str] = None,
|
|
13194
13317
|
height: typing.Optional[jsii.Number] = None,
|
|
13195
13318
|
region: typing.Optional[builtins.str] = None,
|
|
13196
13319
|
title: typing.Optional[builtins.str] = None,
|
|
@@ -13200,6 +13323,7 @@ class AlarmWidgetProps(MetricWidgetProps):
|
|
|
13200
13323
|
) -> None:
|
|
13201
13324
|
'''Properties for an AlarmWidget.
|
|
13202
13325
|
|
|
13326
|
+
:param account_id: The AWS account ID where the metrics are located. This enables cross-account functionality for CloudWatch dashboards. Before using this feature, ensure that proper cross-account sharing is configured between the monitoring account and source account. For more information, see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html Default: - Current account
|
|
13203
13327
|
:param height: Height of the widget. Default: - 6 for Alarm and Graph widgets. 3 for single value widgets where most recent value of a metric is displayed.
|
|
13204
13328
|
:param region: The region the metrics of this graph should be taken from. Default: - Current region
|
|
13205
13329
|
:param title: Title for the graph. Default: - None
|
|
@@ -13224,6 +13348,7 @@ class AlarmWidgetProps(MetricWidgetProps):
|
|
|
13224
13348
|
left_y_axis = YAxisProps(**left_y_axis)
|
|
13225
13349
|
if __debug__:
|
|
13226
13350
|
type_hints = typing.get_type_hints(_typecheckingstub__8b6bef2cc64a78bffd68dc95a764829a6c125294deaebcd42b56c493541573d5)
|
|
13351
|
+
check_type(argname="argument account_id", value=account_id, expected_type=type_hints["account_id"])
|
|
13227
13352
|
check_type(argname="argument height", value=height, expected_type=type_hints["height"])
|
|
13228
13353
|
check_type(argname="argument region", value=region, expected_type=type_hints["region"])
|
|
13229
13354
|
check_type(argname="argument title", value=title, expected_type=type_hints["title"])
|
|
@@ -13233,6 +13358,8 @@ class AlarmWidgetProps(MetricWidgetProps):
|
|
|
13233
13358
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
13234
13359
|
"alarm": alarm,
|
|
13235
13360
|
}
|
|
13361
|
+
if account_id is not None:
|
|
13362
|
+
self._values["account_id"] = account_id
|
|
13236
13363
|
if height is not None:
|
|
13237
13364
|
self._values["height"] = height
|
|
13238
13365
|
if region is not None:
|
|
@@ -13244,6 +13371,22 @@ class AlarmWidgetProps(MetricWidgetProps):
|
|
|
13244
13371
|
if left_y_axis is not None:
|
|
13245
13372
|
self._values["left_y_axis"] = left_y_axis
|
|
13246
13373
|
|
|
13374
|
+
@builtins.property
|
|
13375
|
+
def account_id(self) -> typing.Optional[builtins.str]:
|
|
13376
|
+
'''The AWS account ID where the metrics are located.
|
|
13377
|
+
|
|
13378
|
+
This enables cross-account functionality for CloudWatch dashboards.
|
|
13379
|
+
Before using this feature, ensure that proper cross-account sharing is configured
|
|
13380
|
+
between the monitoring account and source account.
|
|
13381
|
+
|
|
13382
|
+
For more information, see:
|
|
13383
|
+
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html
|
|
13384
|
+
|
|
13385
|
+
:default: - Current account
|
|
13386
|
+
'''
|
|
13387
|
+
result = self._values.get("account_id")
|
|
13388
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
13389
|
+
|
|
13247
13390
|
@builtins.property
|
|
13248
13391
|
def height(self) -> typing.Optional[jsii.Number]:
|
|
13249
13392
|
'''Height of the widget.
|
|
@@ -13868,6 +14011,7 @@ class GaugeWidget(
|
|
|
13868
14011
|
set_period_to_time_range: typing.Optional[builtins.bool] = None,
|
|
13869
14012
|
start: typing.Optional[builtins.str] = None,
|
|
13870
14013
|
statistic: typing.Optional[builtins.str] = None,
|
|
14014
|
+
account_id: typing.Optional[builtins.str] = None,
|
|
13871
14015
|
height: typing.Optional[jsii.Number] = None,
|
|
13872
14016
|
region: typing.Optional[builtins.str] = None,
|
|
13873
14017
|
title: typing.Optional[builtins.str] = None,
|
|
@@ -13884,6 +14028,7 @@ class GaugeWidget(
|
|
|
13884
14028
|
:param set_period_to_time_range: Whether to show the value from the entire time range. Only applicable for Bar and Pie charts. If false, values will be from the most recent period of your chosen time range; if true, shows the value from the entire time range. Default: false
|
|
13885
14029
|
:param start: The start of the time range to use for each widget independently from those of the dashboard. You can specify start without specifying end to specify a relative time range that ends with the current time. In this case, the value of start must begin with -P, and you can use M, H, D, W and M as abbreviations for minutes, hours, days, weeks and months. For example, -PT8H shows the last 8 hours and -P3M shows the last three months. You can also use start along with an end field, to specify an absolute time range. When specifying an absolute time range, use the ISO 8601 format. For example, 2018-12-17T06:00:00.000Z. Default: When the dashboard loads, the start time will be the default time range.
|
|
13886
14030
|
:param statistic: The default statistic to be displayed for each metric. This default can be overridden within the definition of each individual metric Default: - The statistic for each metric is used
|
|
14031
|
+
:param account_id: The AWS account ID where the metrics are located. This enables cross-account functionality for CloudWatch dashboards. Before using this feature, ensure that proper cross-account sharing is configured between the monitoring account and source account. For more information, see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html Default: - Current account
|
|
13887
14032
|
:param height: Height of the widget. Default: - 6 for Alarm and Graph widgets. 3 for single value widgets where most recent value of a metric is displayed.
|
|
13888
14033
|
:param region: The region the metrics of this graph should be taken from. Default: - Current region
|
|
13889
14034
|
:param title: Title for the graph. Default: - None
|
|
@@ -13900,6 +14045,7 @@ class GaugeWidget(
|
|
|
13900
14045
|
set_period_to_time_range=set_period_to_time_range,
|
|
13901
14046
|
start=start,
|
|
13902
14047
|
statistic=statistic,
|
|
14048
|
+
account_id=account_id,
|
|
13903
14049
|
height=height,
|
|
13904
14050
|
region=region,
|
|
13905
14051
|
title=title,
|
|
@@ -13929,6 +14075,7 @@ class GaugeWidget(
|
|
|
13929
14075
|
jsii_type="aws-cdk-lib.aws_cloudwatch.GaugeWidgetProps",
|
|
13930
14076
|
jsii_struct_bases=[MetricWidgetProps],
|
|
13931
14077
|
name_mapping={
|
|
14078
|
+
"account_id": "accountId",
|
|
13932
14079
|
"height": "height",
|
|
13933
14080
|
"region": "region",
|
|
13934
14081
|
"title": "title",
|
|
@@ -13949,6 +14096,7 @@ class GaugeWidgetProps(MetricWidgetProps):
|
|
|
13949
14096
|
def __init__(
|
|
13950
14097
|
self,
|
|
13951
14098
|
*,
|
|
14099
|
+
account_id: typing.Optional[builtins.str] = None,
|
|
13952
14100
|
height: typing.Optional[jsii.Number] = None,
|
|
13953
14101
|
region: typing.Optional[builtins.str] = None,
|
|
13954
14102
|
title: typing.Optional[builtins.str] = None,
|
|
@@ -13966,6 +14114,7 @@ class GaugeWidgetProps(MetricWidgetProps):
|
|
|
13966
14114
|
) -> None:
|
|
13967
14115
|
'''Properties for a GaugeWidget.
|
|
13968
14116
|
|
|
14117
|
+
:param account_id: The AWS account ID where the metrics are located. This enables cross-account functionality for CloudWatch dashboards. Before using this feature, ensure that proper cross-account sharing is configured between the monitoring account and source account. For more information, see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html Default: - Current account
|
|
13969
14118
|
:param height: Height of the widget. Default: - 6 for Alarm and Graph widgets. 3 for single value widgets where most recent value of a metric is displayed.
|
|
13970
14119
|
:param region: The region the metrics of this graph should be taken from. Default: - Current region
|
|
13971
14120
|
:param title: Title for the graph. Default: - None
|
|
@@ -14002,6 +14151,7 @@ class GaugeWidgetProps(MetricWidgetProps):
|
|
|
14002
14151
|
left_y_axis = YAxisProps(**left_y_axis)
|
|
14003
14152
|
if __debug__:
|
|
14004
14153
|
type_hints = typing.get_type_hints(_typecheckingstub__c1f8fe2511861f7fc6d2225bf5821fc9134b7036355dffb1d0ddd86a99b53dc5)
|
|
14154
|
+
check_type(argname="argument account_id", value=account_id, expected_type=type_hints["account_id"])
|
|
14005
14155
|
check_type(argname="argument height", value=height, expected_type=type_hints["height"])
|
|
14006
14156
|
check_type(argname="argument region", value=region, expected_type=type_hints["region"])
|
|
14007
14157
|
check_type(argname="argument title", value=title, expected_type=type_hints["title"])
|
|
@@ -14017,6 +14167,8 @@ class GaugeWidgetProps(MetricWidgetProps):
|
|
|
14017
14167
|
check_type(argname="argument start", value=start, expected_type=type_hints["start"])
|
|
14018
14168
|
check_type(argname="argument statistic", value=statistic, expected_type=type_hints["statistic"])
|
|
14019
14169
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
14170
|
+
if account_id is not None:
|
|
14171
|
+
self._values["account_id"] = account_id
|
|
14020
14172
|
if height is not None:
|
|
14021
14173
|
self._values["height"] = height
|
|
14022
14174
|
if region is not None:
|
|
@@ -14046,6 +14198,22 @@ class GaugeWidgetProps(MetricWidgetProps):
|
|
|
14046
14198
|
if statistic is not None:
|
|
14047
14199
|
self._values["statistic"] = statistic
|
|
14048
14200
|
|
|
14201
|
+
@builtins.property
|
|
14202
|
+
def account_id(self) -> typing.Optional[builtins.str]:
|
|
14203
|
+
'''The AWS account ID where the metrics are located.
|
|
14204
|
+
|
|
14205
|
+
This enables cross-account functionality for CloudWatch dashboards.
|
|
14206
|
+
Before using this feature, ensure that proper cross-account sharing is configured
|
|
14207
|
+
between the monitoring account and source account.
|
|
14208
|
+
|
|
14209
|
+
For more information, see:
|
|
14210
|
+
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html
|
|
14211
|
+
|
|
14212
|
+
:default: - Current account
|
|
14213
|
+
'''
|
|
14214
|
+
result = self._values.get("account_id")
|
|
14215
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
14216
|
+
|
|
14049
14217
|
@builtins.property
|
|
14050
14218
|
def height(self) -> typing.Optional[jsii.Number]:
|
|
14051
14219
|
'''Height of the widget.
|
|
@@ -14220,8 +14388,15 @@ class GraphWidget(
|
|
|
14220
14388
|
|
|
14221
14389
|
dashboard.add_widgets(cloudwatch.GraphWidget(
|
|
14222
14390
|
# ...
|
|
14391
|
+
account_id="123456789012"
|
|
14392
|
+
))
|
|
14223
14393
|
|
|
14224
|
-
|
|
14394
|
+
dashboard.add_widgets(cloudwatch.LogQueryWidget(
|
|
14395
|
+
log_group_names=["my-log-group"],
|
|
14396
|
+
# ...
|
|
14397
|
+
account_id="123456789012",
|
|
14398
|
+
query_lines=["fields @message"
|
|
14399
|
+
]
|
|
14225
14400
|
))
|
|
14226
14401
|
'''
|
|
14227
14402
|
|
|
@@ -14244,6 +14419,7 @@ class GraphWidget(
|
|
|
14244
14419
|
statistic: typing.Optional[builtins.str] = None,
|
|
14245
14420
|
vertical_annotations: typing.Optional[typing.Sequence[typing.Union[VerticalAnnotation, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
14246
14421
|
view: typing.Optional[GraphWidgetView] = None,
|
|
14422
|
+
account_id: typing.Optional[builtins.str] = None,
|
|
14247
14423
|
height: typing.Optional[jsii.Number] = None,
|
|
14248
14424
|
region: typing.Optional[builtins.str] = None,
|
|
14249
14425
|
title: typing.Optional[builtins.str] = None,
|
|
@@ -14266,6 +14442,7 @@ class GraphWidget(
|
|
|
14266
14442
|
:param statistic: The default statistic to be displayed for each metric. This default can be overridden within the definition of each individual metric Default: - The statistic for each metric is used
|
|
14267
14443
|
:param vertical_annotations: Annotations for the X axis. Default: - No annotations
|
|
14268
14444
|
:param view: Display this metric. Default: TimeSeries
|
|
14445
|
+
:param account_id: The AWS account ID where the metrics are located. This enables cross-account functionality for CloudWatch dashboards. Before using this feature, ensure that proper cross-account sharing is configured between the monitoring account and source account. For more information, see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html Default: - Current account
|
|
14269
14446
|
:param height: Height of the widget. Default: - 6 for Alarm and Graph widgets. 3 for single value widgets where most recent value of a metric is displayed.
|
|
14270
14447
|
:param region: The region the metrics of this graph should be taken from. Default: - Current region
|
|
14271
14448
|
:param title: Title for the graph. Default: - None
|
|
@@ -14288,6 +14465,7 @@ class GraphWidget(
|
|
|
14288
14465
|
statistic=statistic,
|
|
14289
14466
|
vertical_annotations=vertical_annotations,
|
|
14290
14467
|
view=view,
|
|
14468
|
+
account_id=account_id,
|
|
14291
14469
|
height=height,
|
|
14292
14470
|
region=region,
|
|
14293
14471
|
title=title,
|
|
@@ -14328,6 +14506,7 @@ class GraphWidget(
|
|
|
14328
14506
|
jsii_type="aws-cdk-lib.aws_cloudwatch.GraphWidgetProps",
|
|
14329
14507
|
jsii_struct_bases=[MetricWidgetProps],
|
|
14330
14508
|
name_mapping={
|
|
14509
|
+
"account_id": "accountId",
|
|
14331
14510
|
"height": "height",
|
|
14332
14511
|
"region": "region",
|
|
14333
14512
|
"title": "title",
|
|
@@ -14354,6 +14533,7 @@ class GraphWidgetProps(MetricWidgetProps):
|
|
|
14354
14533
|
def __init__(
|
|
14355
14534
|
self,
|
|
14356
14535
|
*,
|
|
14536
|
+
account_id: typing.Optional[builtins.str] = None,
|
|
14357
14537
|
height: typing.Optional[jsii.Number] = None,
|
|
14358
14538
|
region: typing.Optional[builtins.str] = None,
|
|
14359
14539
|
title: typing.Optional[builtins.str] = None,
|
|
@@ -14377,6 +14557,7 @@ class GraphWidgetProps(MetricWidgetProps):
|
|
|
14377
14557
|
) -> None:
|
|
14378
14558
|
'''Properties for a GraphWidget.
|
|
14379
14559
|
|
|
14560
|
+
:param account_id: The AWS account ID where the metrics are located. This enables cross-account functionality for CloudWatch dashboards. Before using this feature, ensure that proper cross-account sharing is configured between the monitoring account and source account. For more information, see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html Default: - Current account
|
|
14380
14561
|
:param height: Height of the widget. Default: - 6 for Alarm and Graph widgets. 3 for single value widgets where most recent value of a metric is displayed.
|
|
14381
14562
|
:param region: The region the metrics of this graph should be taken from. Default: - Current region
|
|
14382
14563
|
:param title: Title for the graph. Default: - None
|
|
@@ -14407,8 +14588,15 @@ class GraphWidgetProps(MetricWidgetProps):
|
|
|
14407
14588
|
|
|
14408
14589
|
dashboard.add_widgets(cloudwatch.GraphWidget(
|
|
14409
14590
|
# ...
|
|
14591
|
+
account_id="123456789012"
|
|
14592
|
+
))
|
|
14410
14593
|
|
|
14411
|
-
|
|
14594
|
+
dashboard.add_widgets(cloudwatch.LogQueryWidget(
|
|
14595
|
+
log_group_names=["my-log-group"],
|
|
14596
|
+
# ...
|
|
14597
|
+
account_id="123456789012",
|
|
14598
|
+
query_lines=["fields @message"
|
|
14599
|
+
]
|
|
14412
14600
|
))
|
|
14413
14601
|
'''
|
|
14414
14602
|
if isinstance(left_y_axis, dict):
|
|
@@ -14417,6 +14605,7 @@ class GraphWidgetProps(MetricWidgetProps):
|
|
|
14417
14605
|
right_y_axis = YAxisProps(**right_y_axis)
|
|
14418
14606
|
if __debug__:
|
|
14419
14607
|
type_hints = typing.get_type_hints(_typecheckingstub__3471ad100c9e34a517506d76368276ef9b137a3c7b33aecc91910b5dc9263b3b)
|
|
14608
|
+
check_type(argname="argument account_id", value=account_id, expected_type=type_hints["account_id"])
|
|
14420
14609
|
check_type(argname="argument height", value=height, expected_type=type_hints["height"])
|
|
14421
14610
|
check_type(argname="argument region", value=region, expected_type=type_hints["region"])
|
|
14422
14611
|
check_type(argname="argument title", value=title, expected_type=type_hints["title"])
|
|
@@ -14438,6 +14627,8 @@ class GraphWidgetProps(MetricWidgetProps):
|
|
|
14438
14627
|
check_type(argname="argument vertical_annotations", value=vertical_annotations, expected_type=type_hints["vertical_annotations"])
|
|
14439
14628
|
check_type(argname="argument view", value=view, expected_type=type_hints["view"])
|
|
14440
14629
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
14630
|
+
if account_id is not None:
|
|
14631
|
+
self._values["account_id"] = account_id
|
|
14441
14632
|
if height is not None:
|
|
14442
14633
|
self._values["height"] = height
|
|
14443
14634
|
if region is not None:
|
|
@@ -14479,6 +14670,22 @@ class GraphWidgetProps(MetricWidgetProps):
|
|
|
14479
14670
|
if view is not None:
|
|
14480
14671
|
self._values["view"] = view
|
|
14481
14672
|
|
|
14673
|
+
@builtins.property
|
|
14674
|
+
def account_id(self) -> typing.Optional[builtins.str]:
|
|
14675
|
+
'''The AWS account ID where the metrics are located.
|
|
14676
|
+
|
|
14677
|
+
This enables cross-account functionality for CloudWatch dashboards.
|
|
14678
|
+
Before using this feature, ensure that proper cross-account sharing is configured
|
|
14679
|
+
between the monitoring account and source account.
|
|
14680
|
+
|
|
14681
|
+
For more information, see:
|
|
14682
|
+
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html
|
|
14683
|
+
|
|
14684
|
+
:default: - Current account
|
|
14685
|
+
'''
|
|
14686
|
+
result = self._values.get("account_id")
|
|
14687
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
14688
|
+
|
|
14482
14689
|
@builtins.property
|
|
14483
14690
|
def height(self) -> typing.Optional[jsii.Number]:
|
|
14484
14691
|
'''Height of the widget.
|
|
@@ -14771,6 +14978,7 @@ class LogQueryWidget(
|
|
|
14771
14978
|
self,
|
|
14772
14979
|
*,
|
|
14773
14980
|
log_group_names: typing.Sequence[builtins.str],
|
|
14981
|
+
account_id: typing.Optional[builtins.str] = None,
|
|
14774
14982
|
height: typing.Optional[jsii.Number] = None,
|
|
14775
14983
|
query_lines: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
14776
14984
|
query_string: typing.Optional[builtins.str] = None,
|
|
@@ -14781,6 +14989,7 @@ class LogQueryWidget(
|
|
|
14781
14989
|
) -> None:
|
|
14782
14990
|
'''
|
|
14783
14991
|
:param log_group_names: Names of log groups to query.
|
|
14992
|
+
:param account_id: The AWS account ID where the log groups are located. This enables cross-account functionality for CloudWatch dashboards. Before using this feature, ensure that proper cross-account sharing is configured between the monitoring account and source account. For more information, see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html Default: - Current account
|
|
14784
14993
|
:param height: Height of the widget. Default: 6
|
|
14785
14994
|
:param query_lines: A sequence of lines to use to build the query. The query will be built by joining the lines together using ``\\n|``. Default: - Exactly one of ``queryString``, ``queryLines`` is required.
|
|
14786
14995
|
:param query_string: Full query string for log insights. Be sure to prepend every new line with a newline and pipe character (``\\n|``). Default: - Exactly one of ``queryString``, ``queryLines`` is required.
|
|
@@ -14791,6 +15000,7 @@ class LogQueryWidget(
|
|
|
14791
15000
|
'''
|
|
14792
15001
|
props = LogQueryWidgetProps(
|
|
14793
15002
|
log_group_names=log_group_names,
|
|
15003
|
+
account_id=account_id,
|
|
14794
15004
|
height=height,
|
|
14795
15005
|
query_lines=query_lines,
|
|
14796
15006
|
query_string=query_string,
|
|
@@ -14839,6 +15049,7 @@ class SingleValueWidget(
|
|
|
14839
15049
|
set_period_to_time_range: typing.Optional[builtins.bool] = None,
|
|
14840
15050
|
sparkline: typing.Optional[builtins.bool] = None,
|
|
14841
15051
|
start: typing.Optional[builtins.str] = None,
|
|
15052
|
+
account_id: typing.Optional[builtins.str] = None,
|
|
14842
15053
|
height: typing.Optional[jsii.Number] = None,
|
|
14843
15054
|
region: typing.Optional[builtins.str] = None,
|
|
14844
15055
|
title: typing.Optional[builtins.str] = None,
|
|
@@ -14852,6 +15063,7 @@ class SingleValueWidget(
|
|
|
14852
15063
|
:param set_period_to_time_range: Whether to show the value from the entire time range. Default: false
|
|
14853
15064
|
:param sparkline: Whether to show a graph below the value illustrating the value for the whole time range. Cannot be used in combination with ``setPeriodToTimeRange`` Default: false
|
|
14854
15065
|
:param start: The start of the time range to use for each widget independently from those of the dashboard. You can specify start without specifying end to specify a relative time range that ends with the current time. In this case, the value of start must begin with -P, and you can use M, H, D, W and M as abbreviations for minutes, hours, days, weeks and months. For example, -PT8H shows the last 8 hours and -P3M shows the last three months. You can also use start along with an end field, to specify an absolute time range. When specifying an absolute time range, use the ISO 8601 format. For example, 2018-12-17T06:00:00.000Z. Default: When the dashboard loads, the start time will be the default time range.
|
|
15066
|
+
:param account_id: The AWS account ID where the metrics are located. This enables cross-account functionality for CloudWatch dashboards. Before using this feature, ensure that proper cross-account sharing is configured between the monitoring account and source account. For more information, see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html Default: - Current account
|
|
14855
15067
|
:param height: Height of the widget. Default: - 6 for Alarm and Graph widgets. 3 for single value widgets where most recent value of a metric is displayed.
|
|
14856
15068
|
:param region: The region the metrics of this graph should be taken from. Default: - Current region
|
|
14857
15069
|
:param title: Title for the graph. Default: - None
|
|
@@ -14865,6 +15077,7 @@ class SingleValueWidget(
|
|
|
14865
15077
|
set_period_to_time_range=set_period_to_time_range,
|
|
14866
15078
|
sparkline=sparkline,
|
|
14867
15079
|
start=start,
|
|
15080
|
+
account_id=account_id,
|
|
14868
15081
|
height=height,
|
|
14869
15082
|
region=region,
|
|
14870
15083
|
title=title,
|
|
@@ -14915,6 +15128,7 @@ class TableWidget(
|
|
|
14915
15128
|
statistic: typing.Optional[builtins.str] = None,
|
|
14916
15129
|
summary: typing.Optional[typing.Union[TableSummaryProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
14917
15130
|
thresholds: typing.Optional[typing.Sequence[TableThreshold]] = None,
|
|
15131
|
+
account_id: typing.Optional[builtins.str] = None,
|
|
14918
15132
|
height: typing.Optional[jsii.Number] = None,
|
|
14919
15133
|
region: typing.Optional[builtins.str] = None,
|
|
14920
15134
|
title: typing.Optional[builtins.str] = None,
|
|
@@ -14933,6 +15147,7 @@ class TableWidget(
|
|
|
14933
15147
|
:param statistic: The default statistic to be displayed for each metric. This default can be overridden within the definition of each individual metric Default: - The statistic for each metric is used
|
|
14934
15148
|
:param summary: Properties for displaying summary columns. Default: - no summary columns are shown
|
|
14935
15149
|
:param thresholds: Thresholds for highlighting table cells. Default: - No thresholds
|
|
15150
|
+
:param account_id: The AWS account ID where the metrics are located. This enables cross-account functionality for CloudWatch dashboards. Before using this feature, ensure that proper cross-account sharing is configured between the monitoring account and source account. For more information, see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html Default: - Current account
|
|
14936
15151
|
:param height: Height of the widget. Default: - 6 for Alarm and Graph widgets. 3 for single value widgets where most recent value of a metric is displayed.
|
|
14937
15152
|
:param region: The region the metrics of this graph should be taken from. Default: - Current region
|
|
14938
15153
|
:param title: Title for the graph. Default: - None
|
|
@@ -14951,6 +15166,7 @@ class TableWidget(
|
|
|
14951
15166
|
statistic=statistic,
|
|
14952
15167
|
summary=summary,
|
|
14953
15168
|
thresholds=thresholds,
|
|
15169
|
+
account_id=account_id,
|
|
14954
15170
|
height=height,
|
|
14955
15171
|
region=region,
|
|
14956
15172
|
title=title,
|
|
@@ -15300,6 +15516,7 @@ class AlarmWidget(
|
|
|
15300
15516
|
*,
|
|
15301
15517
|
alarm: IAlarm,
|
|
15302
15518
|
left_y_axis: typing.Optional[typing.Union[YAxisProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
15519
|
+
account_id: typing.Optional[builtins.str] = None,
|
|
15303
15520
|
height: typing.Optional[jsii.Number] = None,
|
|
15304
15521
|
region: typing.Optional[builtins.str] = None,
|
|
15305
15522
|
title: typing.Optional[builtins.str] = None,
|
|
@@ -15308,6 +15525,7 @@ class AlarmWidget(
|
|
|
15308
15525
|
'''
|
|
15309
15526
|
:param alarm: The alarm to show.
|
|
15310
15527
|
:param left_y_axis: Left Y axis. Default: - No minimum or maximum values for the left Y-axis
|
|
15528
|
+
:param account_id: The AWS account ID where the metrics are located. This enables cross-account functionality for CloudWatch dashboards. Before using this feature, ensure that proper cross-account sharing is configured between the monitoring account and source account. For more information, see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html Default: - Current account
|
|
15311
15529
|
:param height: Height of the widget. Default: - 6 for Alarm and Graph widgets. 3 for single value widgets where most recent value of a metric is displayed.
|
|
15312
15530
|
:param region: The region the metrics of this graph should be taken from. Default: - Current region
|
|
15313
15531
|
:param title: Title for the graph. Default: - None
|
|
@@ -15316,6 +15534,7 @@ class AlarmWidget(
|
|
|
15316
15534
|
props = AlarmWidgetProps(
|
|
15317
15535
|
alarm=alarm,
|
|
15318
15536
|
left_y_axis=left_y_axis,
|
|
15537
|
+
account_id=account_id,
|
|
15319
15538
|
height=height,
|
|
15320
15539
|
region=region,
|
|
15321
15540
|
title=title,
|
|
@@ -16855,6 +17074,7 @@ def _typecheckingstub__f09026a4cce4261b0c1f425d42f625c9bd8f0ba4495e11743f621a2cd
|
|
|
16855
17074
|
def _typecheckingstub__b7d4a308b1274696259a35b14b5ae833f34881f95eaba521bb47a74b3a80e8c0(
|
|
16856
17075
|
*,
|
|
16857
17076
|
log_group_names: typing.Sequence[builtins.str],
|
|
17077
|
+
account_id: typing.Optional[builtins.str] = None,
|
|
16858
17078
|
height: typing.Optional[jsii.Number] = None,
|
|
16859
17079
|
query_lines: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
16860
17080
|
query_string: typing.Optional[builtins.str] = None,
|
|
@@ -17008,6 +17228,7 @@ def _typecheckingstub__b4491ad5e5a4b9301258f50e45d0278fe9bbf165c840e3c65f8feab63
|
|
|
17008
17228
|
|
|
17009
17229
|
def _typecheckingstub__028d2c6eccbbf06b74566403b038cac0cdc1c8588c939f4352cc861885b12c38(
|
|
17010
17230
|
*,
|
|
17231
|
+
account_id: typing.Optional[builtins.str] = None,
|
|
17011
17232
|
height: typing.Optional[jsii.Number] = None,
|
|
17012
17233
|
region: typing.Optional[builtins.str] = None,
|
|
17013
17234
|
title: typing.Optional[builtins.str] = None,
|
|
@@ -17047,6 +17268,7 @@ def _typecheckingstub__834c69a269555056b1b73146ff2784af68174eb591f39133c58560704
|
|
|
17047
17268
|
|
|
17048
17269
|
def _typecheckingstub__4596565f40195bdcc9fe939fa585a3bdf484f8a4a6817e427c6f9e1e49650041(
|
|
17049
17270
|
*,
|
|
17271
|
+
account_id: typing.Optional[builtins.str] = None,
|
|
17050
17272
|
height: typing.Optional[jsii.Number] = None,
|
|
17051
17273
|
region: typing.Optional[builtins.str] = None,
|
|
17052
17274
|
title: typing.Optional[builtins.str] = None,
|
|
@@ -17192,6 +17414,7 @@ def _typecheckingstub__837fdebf81b3f53de6d99624ebde152b4aba1d764a0cc2bd930440701
|
|
|
17192
17414
|
|
|
17193
17415
|
def _typecheckingstub__03726ba90bb01c2a1340af4f73005fffe1b8288cff57d77f31d745d629defb8b(
|
|
17194
17416
|
*,
|
|
17417
|
+
account_id: typing.Optional[builtins.str] = None,
|
|
17195
17418
|
height: typing.Optional[jsii.Number] = None,
|
|
17196
17419
|
region: typing.Optional[builtins.str] = None,
|
|
17197
17420
|
title: typing.Optional[builtins.str] = None,
|
|
@@ -17282,6 +17505,7 @@ def _typecheckingstub__b2e7c873c118fbc1f6cf26e1bb5bd3d8549040c626a6450f2d686bb07
|
|
|
17282
17505
|
|
|
17283
17506
|
def _typecheckingstub__8b6bef2cc64a78bffd68dc95a764829a6c125294deaebcd42b56c493541573d5(
|
|
17284
17507
|
*,
|
|
17508
|
+
account_id: typing.Optional[builtins.str] = None,
|
|
17285
17509
|
height: typing.Optional[jsii.Number] = None,
|
|
17286
17510
|
region: typing.Optional[builtins.str] = None,
|
|
17287
17511
|
title: typing.Optional[builtins.str] = None,
|
|
@@ -17364,6 +17588,7 @@ def _typecheckingstub__11f194bd6989eaa4279174f388eb1c44a7faf424b684d189ffe90647d
|
|
|
17364
17588
|
|
|
17365
17589
|
def _typecheckingstub__c1f8fe2511861f7fc6d2225bf5821fc9134b7036355dffb1d0ddd86a99b53dc5(
|
|
17366
17590
|
*,
|
|
17591
|
+
account_id: typing.Optional[builtins.str] = None,
|
|
17367
17592
|
height: typing.Optional[jsii.Number] = None,
|
|
17368
17593
|
region: typing.Optional[builtins.str] = None,
|
|
17369
17594
|
title: typing.Optional[builtins.str] = None,
|
|
@@ -17396,6 +17621,7 @@ def _typecheckingstub__d98276ba6bbea7a9a5b2efedfda4a862eeca9b42a2aaca743679984a1
|
|
|
17396
17621
|
|
|
17397
17622
|
def _typecheckingstub__3471ad100c9e34a517506d76368276ef9b137a3c7b33aecc91910b5dc9263b3b(
|
|
17398
17623
|
*,
|
|
17624
|
+
account_id: typing.Optional[builtins.str] = None,
|
|
17399
17625
|
height: typing.Optional[jsii.Number] = None,
|
|
17400
17626
|
region: typing.Optional[builtins.str] = None,
|
|
17401
17627
|
title: typing.Optional[builtins.str] = None,
|