aws-cdk-lib 2.96.2__py3-none-any.whl → 2.97.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.
- aws_cdk/__init__.py +246 -62
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.96.2.jsii.tgz → aws-cdk-lib@2.97.1.jsii.tgz} +0 -0
- aws_cdk/aws_apigatewayv2/__init__.py +1 -1
- aws_cdk/aws_appflow/__init__.py +205 -7
- aws_cdk/aws_appstream/__init__.py +33 -28
- aws_cdk/aws_appsync/__init__.py +555 -71
- aws_cdk/aws_autoscaling/__init__.py +5 -11
- aws_cdk/aws_billingconductor/__init__.py +145 -1
- aws_cdk/aws_cleanrooms/__init__.py +1198 -86
- aws_cdk/aws_cloudformation/__init__.py +221 -55
- aws_cdk/aws_cloudwatch/__init__.py +325 -2
- aws_cdk/aws_cognito/__init__.py +9 -13
- aws_cdk/aws_config/__init__.py +68 -73
- aws_cdk/aws_connect/__init__.py +909 -164
- aws_cdk/aws_customerprofiles/__init__.py +44 -0
- aws_cdk/aws_dms/__init__.py +198 -0
- aws_cdk/aws_ec2/__init__.py +593 -73
- aws_cdk/aws_ecr/__init__.py +7 -2
- aws_cdk/aws_ecs/__init__.py +2 -2
- aws_cdk/aws_efs/__init__.py +237 -0
- aws_cdk/aws_emr/__init__.py +232 -0
- aws_cdk/aws_entityresolution/__init__.py +1702 -0
- aws_cdk/aws_events/__init__.py +13 -18
- aws_cdk/aws_fms/__init__.py +3 -3
- aws_cdk/aws_gamelift/__init__.py +10 -15
- aws_cdk/aws_grafana/__init__.py +9 -5
- aws_cdk/aws_guardduty/__init__.py +272 -205
- aws_cdk/aws_iam/__init__.py +20 -18
- aws_cdk/aws_iotwireless/__init__.py +38 -54
- aws_cdk/aws_lakeformation/__init__.py +18 -6
- aws_cdk/aws_lambda/__init__.py +1 -1
- aws_cdk/aws_lightsail/__init__.py +225 -0
- aws_cdk/aws_lookoutequipment/__init__.py +4 -4
- aws_cdk/aws_macie/__init__.py +5 -3
- aws_cdk/aws_mediapackagev2/__init__.py +3227 -0
- aws_cdk/aws_pcaconnectorad/__init__.py +6785 -0
- aws_cdk/aws_quicksight/__init__.py +189 -116
- aws_cdk/aws_rds/__init__.py +316 -9
- aws_cdk/aws_resiliencehub/__init__.py +38 -21
- aws_cdk/aws_route53resolver/__init__.py +429 -0
- aws_cdk/aws_sagemaker/__init__.py +34 -34
- aws_cdk/aws_stepfunctions/__init__.py +111 -14
- aws_cdk/aws_transfer/__init__.py +2 -2
- aws_cdk/aws_vpclattice/__init__.py +128 -120
- aws_cdk/aws_workspacesweb/__init__.py +3790 -0
- aws_cdk/region_info/__init__.py +49 -0
- {aws_cdk_lib-2.96.2.dist-info → aws_cdk_lib-2.97.1.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.96.2.dist-info → aws_cdk_lib-2.97.1.dist-info}/RECORD +53 -49
- {aws_cdk_lib-2.96.2.dist-info → aws_cdk_lib-2.97.1.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.96.2.dist-info → aws_cdk_lib-2.97.1.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.96.2.dist-info → aws_cdk_lib-2.97.1.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.96.2.dist-info → aws_cdk_lib-2.97.1.dist-info}/top_level.txt +0 -0
|
@@ -434,7 +434,7 @@ dashboard.add_widgets(cloudwatch.GraphWidget(
|
|
|
434
434
|
|
|
435
435
|
Using the methods `addLeftMetric()` and `addRightMetric()` you can add metrics to a graph widget later on.
|
|
436
436
|
|
|
437
|
-
Graph widgets can also display annotations attached to the left or
|
|
437
|
+
Graph widgets can also display annotations attached to the left or right y-axis or the x-axis.
|
|
438
438
|
|
|
439
439
|
```python
|
|
440
440
|
# dashboard: cloudwatch.Dashboard
|
|
@@ -444,6 +444,8 @@ dashboard.add_widgets(cloudwatch.GraphWidget(
|
|
|
444
444
|
# ...
|
|
445
445
|
|
|
446
446
|
left_annotations=[cloudwatch.HorizontalAnnotation(value=1800, label=Duration.minutes(30).to_human_string(), color=cloudwatch.Color.RED), cloudwatch.HorizontalAnnotation(value=3600, label="1 hour", color="#2ca02c")
|
|
447
|
+
],
|
|
448
|
+
vertical_annotations=[cloudwatch.VerticalAnnotation(date="2022-10-19T00:00:00Z", label="Deployment", color=cloudwatch.Color.RED)
|
|
447
449
|
]
|
|
448
450
|
))
|
|
449
451
|
```
|
|
@@ -487,6 +489,21 @@ dashboard.add_widgets(cloudwatch.GraphWidget(
|
|
|
487
489
|
))
|
|
488
490
|
```
|
|
489
491
|
|
|
492
|
+
The `start` and `end` properties can be used to specify the time range for each graph widget independently from those of the dashboard.
|
|
493
|
+
The parameters can be specified at `GraphWidget`, `GaugeWidget`, and `SingleValueWidget`.
|
|
494
|
+
|
|
495
|
+
```python
|
|
496
|
+
# dashboard: cloudwatch.Dashboard
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
dashboard.add_widgets(cloudwatch.GraphWidget(
|
|
500
|
+
# ...
|
|
501
|
+
|
|
502
|
+
start="-P7D",
|
|
503
|
+
end="2018-12-17T06:00:00.000Z"
|
|
504
|
+
))
|
|
505
|
+
```
|
|
506
|
+
|
|
490
507
|
### Gauge widget
|
|
491
508
|
|
|
492
509
|
Gauge graph requires the max and min value of the left Y axis, if no value is informed the limits will be from 0 to 100.
|
|
@@ -9950,7 +9967,7 @@ class SearchComponents:
|
|
|
9950
9967
|
|
|
9951
9968
|
@jsii.enum(jsii_type="aws-cdk-lib.aws_cloudwatch.Shading")
|
|
9952
9969
|
class Shading(enum.Enum):
|
|
9953
|
-
'''Fill shading options that will be used with
|
|
9970
|
+
'''Fill shading options that will be used with a horizontal annotation.'''
|
|
9954
9971
|
|
|
9955
9972
|
NONE = "NONE"
|
|
9956
9973
|
'''Don't add shading.'''
|
|
@@ -9969,10 +9986,12 @@ class Shading(enum.Enum):
|
|
|
9969
9986
|
"title": "title",
|
|
9970
9987
|
"width": "width",
|
|
9971
9988
|
"metrics": "metrics",
|
|
9989
|
+
"end": "end",
|
|
9972
9990
|
"full_precision": "fullPrecision",
|
|
9973
9991
|
"period": "period",
|
|
9974
9992
|
"set_period_to_time_range": "setPeriodToTimeRange",
|
|
9975
9993
|
"sparkline": "sparkline",
|
|
9994
|
+
"start": "start",
|
|
9976
9995
|
},
|
|
9977
9996
|
)
|
|
9978
9997
|
class SingleValueWidgetProps(MetricWidgetProps):
|
|
@@ -9984,10 +10003,12 @@ class SingleValueWidgetProps(MetricWidgetProps):
|
|
|
9984
10003
|
title: typing.Optional[builtins.str] = None,
|
|
9985
10004
|
width: typing.Optional[jsii.Number] = None,
|
|
9986
10005
|
metrics: typing.Sequence[IMetric],
|
|
10006
|
+
end: typing.Optional[builtins.str] = None,
|
|
9987
10007
|
full_precision: typing.Optional[builtins.bool] = None,
|
|
9988
10008
|
period: typing.Optional[_Duration_4839e8c3] = None,
|
|
9989
10009
|
set_period_to_time_range: typing.Optional[builtins.bool] = None,
|
|
9990
10010
|
sparkline: typing.Optional[builtins.bool] = None,
|
|
10011
|
+
start: typing.Optional[builtins.str] = None,
|
|
9991
10012
|
) -> None:
|
|
9992
10013
|
'''Properties for a SingleValueWidget.
|
|
9993
10014
|
|
|
@@ -9996,10 +10017,12 @@ class SingleValueWidgetProps(MetricWidgetProps):
|
|
|
9996
10017
|
:param title: Title for the graph. Default: - None
|
|
9997
10018
|
:param width: Width of the widget, in a grid of 24 units wide. Default: 6
|
|
9998
10019
|
:param metrics: Metrics to display.
|
|
10020
|
+
:param end: The end of the time range to use for each widget independently from those of the dashboard. If you specify a value for end, you must also specify a value for start. Specify an absolute time in the ISO 8601 format. For example, 2018-12-17T06:00:00.000Z. Default: When the dashboard loads, the end date will be the current time.
|
|
9999
10021
|
:param full_precision: Whether to show as many digits as can fit, before rounding. Default: false
|
|
10000
10022
|
:param period: The default period for all metrics in this widget. The period is the length of time represented by one data point on the graph. This default can be overridden within each metric definition. Default: cdk.Duration.seconds(300)
|
|
10001
10023
|
:param set_period_to_time_range: Whether to show the value from the entire time range. Default: false
|
|
10002
10024
|
: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
|
|
10025
|
+
: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.
|
|
10003
10026
|
|
|
10004
10027
|
:exampleMetadata: infused
|
|
10005
10028
|
|
|
@@ -10021,10 +10044,12 @@ class SingleValueWidgetProps(MetricWidgetProps):
|
|
|
10021
10044
|
check_type(argname="argument title", value=title, expected_type=type_hints["title"])
|
|
10022
10045
|
check_type(argname="argument width", value=width, expected_type=type_hints["width"])
|
|
10023
10046
|
check_type(argname="argument metrics", value=metrics, expected_type=type_hints["metrics"])
|
|
10047
|
+
check_type(argname="argument end", value=end, expected_type=type_hints["end"])
|
|
10024
10048
|
check_type(argname="argument full_precision", value=full_precision, expected_type=type_hints["full_precision"])
|
|
10025
10049
|
check_type(argname="argument period", value=period, expected_type=type_hints["period"])
|
|
10026
10050
|
check_type(argname="argument set_period_to_time_range", value=set_period_to_time_range, expected_type=type_hints["set_period_to_time_range"])
|
|
10027
10051
|
check_type(argname="argument sparkline", value=sparkline, expected_type=type_hints["sparkline"])
|
|
10052
|
+
check_type(argname="argument start", value=start, expected_type=type_hints["start"])
|
|
10028
10053
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
10029
10054
|
"metrics": metrics,
|
|
10030
10055
|
}
|
|
@@ -10036,6 +10061,8 @@ class SingleValueWidgetProps(MetricWidgetProps):
|
|
|
10036
10061
|
self._values["title"] = title
|
|
10037
10062
|
if width is not None:
|
|
10038
10063
|
self._values["width"] = width
|
|
10064
|
+
if end is not None:
|
|
10065
|
+
self._values["end"] = end
|
|
10039
10066
|
if full_precision is not None:
|
|
10040
10067
|
self._values["full_precision"] = full_precision
|
|
10041
10068
|
if period is not None:
|
|
@@ -10044,6 +10071,8 @@ class SingleValueWidgetProps(MetricWidgetProps):
|
|
|
10044
10071
|
self._values["set_period_to_time_range"] = set_period_to_time_range
|
|
10045
10072
|
if sparkline is not None:
|
|
10046
10073
|
self._values["sparkline"] = sparkline
|
|
10074
|
+
if start is not None:
|
|
10075
|
+
self._values["start"] = start
|
|
10047
10076
|
|
|
10048
10077
|
@builtins.property
|
|
10049
10078
|
def height(self) -> typing.Optional[jsii.Number]:
|
|
@@ -10091,6 +10120,18 @@ class SingleValueWidgetProps(MetricWidgetProps):
|
|
|
10091
10120
|
assert result is not None, "Required property 'metrics' is missing"
|
|
10092
10121
|
return typing.cast(typing.List[IMetric], result)
|
|
10093
10122
|
|
|
10123
|
+
@builtins.property
|
|
10124
|
+
def end(self) -> typing.Optional[builtins.str]:
|
|
10125
|
+
'''The end of the time range to use for each widget independently from those of the dashboard.
|
|
10126
|
+
|
|
10127
|
+
If you specify a value for end, you must also specify a value for start.
|
|
10128
|
+
Specify an absolute time in the ISO 8601 format. For example, 2018-12-17T06:00:00.000Z.
|
|
10129
|
+
|
|
10130
|
+
:default: When the dashboard loads, the end date will be the current time.
|
|
10131
|
+
'''
|
|
10132
|
+
result = self._values.get("end")
|
|
10133
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
10134
|
+
|
|
10094
10135
|
@builtins.property
|
|
10095
10136
|
def full_precision(self) -> typing.Optional[builtins.bool]:
|
|
10096
10137
|
'''Whether to show as many digits as can fit, before rounding.
|
|
@@ -10132,6 +10173,21 @@ class SingleValueWidgetProps(MetricWidgetProps):
|
|
|
10132
10173
|
result = self._values.get("sparkline")
|
|
10133
10174
|
return typing.cast(typing.Optional[builtins.bool], result)
|
|
10134
10175
|
|
|
10176
|
+
@builtins.property
|
|
10177
|
+
def start(self) -> typing.Optional[builtins.str]:
|
|
10178
|
+
'''The start of the time range to use for each widget independently from those of the dashboard.
|
|
10179
|
+
|
|
10180
|
+
You can specify start without specifying end to specify a relative time range that ends with the current time.
|
|
10181
|
+
In this case, the value of start must begin with -P, and you can use M, H, D, W and M as abbreviations for
|
|
10182
|
+
minutes, hours, days, weeks and months. For example, -PT8H shows the last 8 hours and -P3M shows the last three months.
|
|
10183
|
+
You can also use start along with an end field, to specify an absolute time range.
|
|
10184
|
+
When specifying an absolute time range, use the ISO 8601 format. For example, 2018-12-17T06:00:00.000Z.
|
|
10185
|
+
|
|
10186
|
+
:default: When the dashboard loads, the start time will be the default time range.
|
|
10187
|
+
'''
|
|
10188
|
+
result = self._values.get("start")
|
|
10189
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
10190
|
+
|
|
10135
10191
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
10136
10192
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
10137
10193
|
|
|
@@ -11205,6 +11261,139 @@ class VariableValue:
|
|
|
11205
11261
|
)
|
|
11206
11262
|
|
|
11207
11263
|
|
|
11264
|
+
@jsii.data_type(
|
|
11265
|
+
jsii_type="aws-cdk-lib.aws_cloudwatch.VerticalAnnotation",
|
|
11266
|
+
jsii_struct_bases=[],
|
|
11267
|
+
name_mapping={
|
|
11268
|
+
"date": "date",
|
|
11269
|
+
"color": "color",
|
|
11270
|
+
"fill": "fill",
|
|
11271
|
+
"label": "label",
|
|
11272
|
+
"visible": "visible",
|
|
11273
|
+
},
|
|
11274
|
+
)
|
|
11275
|
+
class VerticalAnnotation:
|
|
11276
|
+
def __init__(
|
|
11277
|
+
self,
|
|
11278
|
+
*,
|
|
11279
|
+
date: builtins.str,
|
|
11280
|
+
color: typing.Optional[builtins.str] = None,
|
|
11281
|
+
fill: typing.Optional["VerticalShading"] = None,
|
|
11282
|
+
label: typing.Optional[builtins.str] = None,
|
|
11283
|
+
visible: typing.Optional[builtins.bool] = None,
|
|
11284
|
+
) -> None:
|
|
11285
|
+
'''Vertical annotation to be added to a graph.
|
|
11286
|
+
|
|
11287
|
+
:param date: The date and time (in ISO 8601 format) in the graph where the vertical annotation line is to appear.
|
|
11288
|
+
:param color: The hex color code, prefixed with '#' (e.g. '#00ff00'), to be used for the annotation. The ``Color`` class has a set of standard colors that can be used here. Default: - Automatic color
|
|
11289
|
+
:param fill: Add shading before or after the annotation. Default: No shading
|
|
11290
|
+
:param label: Label for the annotation. Default: - No label
|
|
11291
|
+
:param visible: Whether the annotation is visible. Default: true
|
|
11292
|
+
|
|
11293
|
+
:exampleMetadata: fixture=_generated
|
|
11294
|
+
|
|
11295
|
+
Example::
|
|
11296
|
+
|
|
11297
|
+
# The code below shows an example of how to instantiate this type.
|
|
11298
|
+
# The values are placeholders you should change.
|
|
11299
|
+
from aws_cdk import aws_cloudwatch as cloudwatch
|
|
11300
|
+
|
|
11301
|
+
vertical_annotation = cloudwatch.VerticalAnnotation(
|
|
11302
|
+
date="date",
|
|
11303
|
+
|
|
11304
|
+
# the properties below are optional
|
|
11305
|
+
color="color",
|
|
11306
|
+
fill=cloudwatch.VerticalShading.NONE,
|
|
11307
|
+
label="label",
|
|
11308
|
+
visible=False
|
|
11309
|
+
)
|
|
11310
|
+
'''
|
|
11311
|
+
if __debug__:
|
|
11312
|
+
type_hints = typing.get_type_hints(_typecheckingstub__c903f8a4aafff9c3e6b2539c8372df8551aba4035bb4187c0e0930b0ee60ff00)
|
|
11313
|
+
check_type(argname="argument date", value=date, expected_type=type_hints["date"])
|
|
11314
|
+
check_type(argname="argument color", value=color, expected_type=type_hints["color"])
|
|
11315
|
+
check_type(argname="argument fill", value=fill, expected_type=type_hints["fill"])
|
|
11316
|
+
check_type(argname="argument label", value=label, expected_type=type_hints["label"])
|
|
11317
|
+
check_type(argname="argument visible", value=visible, expected_type=type_hints["visible"])
|
|
11318
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
11319
|
+
"date": date,
|
|
11320
|
+
}
|
|
11321
|
+
if color is not None:
|
|
11322
|
+
self._values["color"] = color
|
|
11323
|
+
if fill is not None:
|
|
11324
|
+
self._values["fill"] = fill
|
|
11325
|
+
if label is not None:
|
|
11326
|
+
self._values["label"] = label
|
|
11327
|
+
if visible is not None:
|
|
11328
|
+
self._values["visible"] = visible
|
|
11329
|
+
|
|
11330
|
+
@builtins.property
|
|
11331
|
+
def date(self) -> builtins.str:
|
|
11332
|
+
'''The date and time (in ISO 8601 format) in the graph where the vertical annotation line is to appear.'''
|
|
11333
|
+
result = self._values.get("date")
|
|
11334
|
+
assert result is not None, "Required property 'date' is missing"
|
|
11335
|
+
return typing.cast(builtins.str, result)
|
|
11336
|
+
|
|
11337
|
+
@builtins.property
|
|
11338
|
+
def color(self) -> typing.Optional[builtins.str]:
|
|
11339
|
+
'''The hex color code, prefixed with '#' (e.g. '#00ff00'), to be used for the annotation. The ``Color`` class has a set of standard colors that can be used here.
|
|
11340
|
+
|
|
11341
|
+
:default: - Automatic color
|
|
11342
|
+
'''
|
|
11343
|
+
result = self._values.get("color")
|
|
11344
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
11345
|
+
|
|
11346
|
+
@builtins.property
|
|
11347
|
+
def fill(self) -> typing.Optional["VerticalShading"]:
|
|
11348
|
+
'''Add shading before or after the annotation.
|
|
11349
|
+
|
|
11350
|
+
:default: No shading
|
|
11351
|
+
'''
|
|
11352
|
+
result = self._values.get("fill")
|
|
11353
|
+
return typing.cast(typing.Optional["VerticalShading"], result)
|
|
11354
|
+
|
|
11355
|
+
@builtins.property
|
|
11356
|
+
def label(self) -> typing.Optional[builtins.str]:
|
|
11357
|
+
'''Label for the annotation.
|
|
11358
|
+
|
|
11359
|
+
:default: - No label
|
|
11360
|
+
'''
|
|
11361
|
+
result = self._values.get("label")
|
|
11362
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
11363
|
+
|
|
11364
|
+
@builtins.property
|
|
11365
|
+
def visible(self) -> typing.Optional[builtins.bool]:
|
|
11366
|
+
'''Whether the annotation is visible.
|
|
11367
|
+
|
|
11368
|
+
:default: true
|
|
11369
|
+
'''
|
|
11370
|
+
result = self._values.get("visible")
|
|
11371
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
11372
|
+
|
|
11373
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
11374
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
11375
|
+
|
|
11376
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
11377
|
+
return not (rhs == self)
|
|
11378
|
+
|
|
11379
|
+
def __repr__(self) -> str:
|
|
11380
|
+
return "VerticalAnnotation(%s)" % ", ".join(
|
|
11381
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
11382
|
+
)
|
|
11383
|
+
|
|
11384
|
+
|
|
11385
|
+
@jsii.enum(jsii_type="aws-cdk-lib.aws_cloudwatch.VerticalShading")
|
|
11386
|
+
class VerticalShading(enum.Enum):
|
|
11387
|
+
'''Fill shading options that will be used with a vertical annotation.'''
|
|
11388
|
+
|
|
11389
|
+
NONE = "NONE"
|
|
11390
|
+
'''Don't add shading.'''
|
|
11391
|
+
BEFORE = "BEFORE"
|
|
11392
|
+
'''Add shading before the annotation.'''
|
|
11393
|
+
AFTER = "AFTER"
|
|
11394
|
+
'''Add shading after the annotation.'''
|
|
11395
|
+
|
|
11396
|
+
|
|
11208
11397
|
@jsii.data_type(
|
|
11209
11398
|
jsii_type="aws-cdk-lib.aws_cloudwatch.YAxisProps",
|
|
11210
11399
|
jsii_struct_bases=[],
|
|
@@ -12017,12 +12206,14 @@ class GaugeWidget(
|
|
|
12017
12206
|
self,
|
|
12018
12207
|
*,
|
|
12019
12208
|
annotations: typing.Optional[typing.Sequence[typing.Union[HorizontalAnnotation, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
12209
|
+
end: typing.Optional[builtins.str] = None,
|
|
12020
12210
|
left_y_axis: typing.Optional[typing.Union[YAxisProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
12021
12211
|
legend_position: typing.Optional[LegendPosition] = None,
|
|
12022
12212
|
live_data: typing.Optional[builtins.bool] = None,
|
|
12023
12213
|
metrics: typing.Optional[typing.Sequence[IMetric]] = None,
|
|
12024
12214
|
period: typing.Optional[_Duration_4839e8c3] = None,
|
|
12025
12215
|
set_period_to_time_range: typing.Optional[builtins.bool] = None,
|
|
12216
|
+
start: typing.Optional[builtins.str] = None,
|
|
12026
12217
|
statistic: typing.Optional[builtins.str] = None,
|
|
12027
12218
|
height: typing.Optional[jsii.Number] = None,
|
|
12028
12219
|
region: typing.Optional[builtins.str] = None,
|
|
@@ -12031,12 +12222,14 @@ class GaugeWidget(
|
|
|
12031
12222
|
) -> None:
|
|
12032
12223
|
'''
|
|
12033
12224
|
:param annotations: Annotations for the left Y axis. Default: - No annotations
|
|
12225
|
+
:param end: The end of the time range to use for each widget independently from those of the dashboard. If you specify a value for end, you must also specify a value for start. Specify an absolute time in the ISO 8601 format. For example, 2018-12-17T06:00:00.000Z. Default: When the dashboard loads, the end date will be the current time.
|
|
12034
12226
|
:param left_y_axis: Left Y axis. Default: - None
|
|
12035
12227
|
:param legend_position: Position of the legend. Default: - bottom
|
|
12036
12228
|
:param live_data: Whether the graph should show live data. Default: false
|
|
12037
12229
|
:param metrics: Metrics to display on left Y axis. Default: - No metrics
|
|
12038
12230
|
:param period: The default period for all metrics in this widget. The period is the length of time represented by one data point on the graph. This default can be overridden within each metric definition. Default: cdk.Duration.seconds(300)
|
|
12039
12231
|
: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
|
|
12232
|
+
: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.
|
|
12040
12233
|
: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
|
|
12041
12234
|
: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.
|
|
12042
12235
|
:param region: The region the metrics of this graph should be taken from. Default: - Current region
|
|
@@ -12045,12 +12238,14 @@ class GaugeWidget(
|
|
|
12045
12238
|
'''
|
|
12046
12239
|
props = GaugeWidgetProps(
|
|
12047
12240
|
annotations=annotations,
|
|
12241
|
+
end=end,
|
|
12048
12242
|
left_y_axis=left_y_axis,
|
|
12049
12243
|
legend_position=legend_position,
|
|
12050
12244
|
live_data=live_data,
|
|
12051
12245
|
metrics=metrics,
|
|
12052
12246
|
period=period,
|
|
12053
12247
|
set_period_to_time_range=set_period_to_time_range,
|
|
12248
|
+
start=start,
|
|
12054
12249
|
statistic=statistic,
|
|
12055
12250
|
height=height,
|
|
12056
12251
|
region=region,
|
|
@@ -12086,12 +12281,14 @@ class GaugeWidget(
|
|
|
12086
12281
|
"title": "title",
|
|
12087
12282
|
"width": "width",
|
|
12088
12283
|
"annotations": "annotations",
|
|
12284
|
+
"end": "end",
|
|
12089
12285
|
"left_y_axis": "leftYAxis",
|
|
12090
12286
|
"legend_position": "legendPosition",
|
|
12091
12287
|
"live_data": "liveData",
|
|
12092
12288
|
"metrics": "metrics",
|
|
12093
12289
|
"period": "period",
|
|
12094
12290
|
"set_period_to_time_range": "setPeriodToTimeRange",
|
|
12291
|
+
"start": "start",
|
|
12095
12292
|
"statistic": "statistic",
|
|
12096
12293
|
},
|
|
12097
12294
|
)
|
|
@@ -12104,12 +12301,14 @@ class GaugeWidgetProps(MetricWidgetProps):
|
|
|
12104
12301
|
title: typing.Optional[builtins.str] = None,
|
|
12105
12302
|
width: typing.Optional[jsii.Number] = None,
|
|
12106
12303
|
annotations: typing.Optional[typing.Sequence[typing.Union[HorizontalAnnotation, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
12304
|
+
end: typing.Optional[builtins.str] = None,
|
|
12107
12305
|
left_y_axis: typing.Optional[typing.Union[YAxisProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
12108
12306
|
legend_position: typing.Optional[LegendPosition] = None,
|
|
12109
12307
|
live_data: typing.Optional[builtins.bool] = None,
|
|
12110
12308
|
metrics: typing.Optional[typing.Sequence[IMetric]] = None,
|
|
12111
12309
|
period: typing.Optional[_Duration_4839e8c3] = None,
|
|
12112
12310
|
set_period_to_time_range: typing.Optional[builtins.bool] = None,
|
|
12311
|
+
start: typing.Optional[builtins.str] = None,
|
|
12113
12312
|
statistic: typing.Optional[builtins.str] = None,
|
|
12114
12313
|
) -> None:
|
|
12115
12314
|
'''Properties for a GaugeWidget.
|
|
@@ -12119,12 +12318,14 @@ class GaugeWidgetProps(MetricWidgetProps):
|
|
|
12119
12318
|
:param title: Title for the graph. Default: - None
|
|
12120
12319
|
:param width: Width of the widget, in a grid of 24 units wide. Default: 6
|
|
12121
12320
|
:param annotations: Annotations for the left Y axis. Default: - No annotations
|
|
12321
|
+
:param end: The end of the time range to use for each widget independently from those of the dashboard. If you specify a value for end, you must also specify a value for start. Specify an absolute time in the ISO 8601 format. For example, 2018-12-17T06:00:00.000Z. Default: When the dashboard loads, the end date will be the current time.
|
|
12122
12322
|
:param left_y_axis: Left Y axis. Default: - None
|
|
12123
12323
|
:param legend_position: Position of the legend. Default: - bottom
|
|
12124
12324
|
:param live_data: Whether the graph should show live data. Default: false
|
|
12125
12325
|
:param metrics: Metrics to display on left Y axis. Default: - No metrics
|
|
12126
12326
|
:param period: The default period for all metrics in this widget. The period is the length of time represented by one data point on the graph. This default can be overridden within each metric definition. Default: cdk.Duration.seconds(300)
|
|
12127
12327
|
: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
|
|
12328
|
+
: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.
|
|
12128
12329
|
: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
|
|
12129
12330
|
|
|
12130
12331
|
:exampleMetadata: infused
|
|
@@ -12153,12 +12354,14 @@ class GaugeWidgetProps(MetricWidgetProps):
|
|
|
12153
12354
|
check_type(argname="argument title", value=title, expected_type=type_hints["title"])
|
|
12154
12355
|
check_type(argname="argument width", value=width, expected_type=type_hints["width"])
|
|
12155
12356
|
check_type(argname="argument annotations", value=annotations, expected_type=type_hints["annotations"])
|
|
12357
|
+
check_type(argname="argument end", value=end, expected_type=type_hints["end"])
|
|
12156
12358
|
check_type(argname="argument left_y_axis", value=left_y_axis, expected_type=type_hints["left_y_axis"])
|
|
12157
12359
|
check_type(argname="argument legend_position", value=legend_position, expected_type=type_hints["legend_position"])
|
|
12158
12360
|
check_type(argname="argument live_data", value=live_data, expected_type=type_hints["live_data"])
|
|
12159
12361
|
check_type(argname="argument metrics", value=metrics, expected_type=type_hints["metrics"])
|
|
12160
12362
|
check_type(argname="argument period", value=period, expected_type=type_hints["period"])
|
|
12161
12363
|
check_type(argname="argument set_period_to_time_range", value=set_period_to_time_range, expected_type=type_hints["set_period_to_time_range"])
|
|
12364
|
+
check_type(argname="argument start", value=start, expected_type=type_hints["start"])
|
|
12162
12365
|
check_type(argname="argument statistic", value=statistic, expected_type=type_hints["statistic"])
|
|
12163
12366
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
12164
12367
|
if height is not None:
|
|
@@ -12171,6 +12374,8 @@ class GaugeWidgetProps(MetricWidgetProps):
|
|
|
12171
12374
|
self._values["width"] = width
|
|
12172
12375
|
if annotations is not None:
|
|
12173
12376
|
self._values["annotations"] = annotations
|
|
12377
|
+
if end is not None:
|
|
12378
|
+
self._values["end"] = end
|
|
12174
12379
|
if left_y_axis is not None:
|
|
12175
12380
|
self._values["left_y_axis"] = left_y_axis
|
|
12176
12381
|
if legend_position is not None:
|
|
@@ -12183,6 +12388,8 @@ class GaugeWidgetProps(MetricWidgetProps):
|
|
|
12183
12388
|
self._values["period"] = period
|
|
12184
12389
|
if set_period_to_time_range is not None:
|
|
12185
12390
|
self._values["set_period_to_time_range"] = set_period_to_time_range
|
|
12391
|
+
if start is not None:
|
|
12392
|
+
self._values["start"] = start
|
|
12186
12393
|
if statistic is not None:
|
|
12187
12394
|
self._values["statistic"] = statistic
|
|
12188
12395
|
|
|
@@ -12234,6 +12441,18 @@ class GaugeWidgetProps(MetricWidgetProps):
|
|
|
12234
12441
|
result = self._values.get("annotations")
|
|
12235
12442
|
return typing.cast(typing.Optional[typing.List[HorizontalAnnotation]], result)
|
|
12236
12443
|
|
|
12444
|
+
@builtins.property
|
|
12445
|
+
def end(self) -> typing.Optional[builtins.str]:
|
|
12446
|
+
'''The end of the time range to use for each widget independently from those of the dashboard.
|
|
12447
|
+
|
|
12448
|
+
If you specify a value for end, you must also specify a value for start.
|
|
12449
|
+
Specify an absolute time in the ISO 8601 format. For example, 2018-12-17T06:00:00.000Z.
|
|
12450
|
+
|
|
12451
|
+
:default: When the dashboard loads, the end date will be the current time.
|
|
12452
|
+
'''
|
|
12453
|
+
result = self._values.get("end")
|
|
12454
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
12455
|
+
|
|
12237
12456
|
@builtins.property
|
|
12238
12457
|
def left_y_axis(self) -> typing.Optional[YAxisProps]:
|
|
12239
12458
|
'''Left Y axis.
|
|
@@ -12294,6 +12513,21 @@ class GaugeWidgetProps(MetricWidgetProps):
|
|
|
12294
12513
|
result = self._values.get("set_period_to_time_range")
|
|
12295
12514
|
return typing.cast(typing.Optional[builtins.bool], result)
|
|
12296
12515
|
|
|
12516
|
+
@builtins.property
|
|
12517
|
+
def start(self) -> typing.Optional[builtins.str]:
|
|
12518
|
+
'''The start of the time range to use for each widget independently from those of the dashboard.
|
|
12519
|
+
|
|
12520
|
+
You can specify start without specifying end to specify a relative time range that ends with the current time.
|
|
12521
|
+
In this case, the value of start must begin with -P, and you can use M, H, D, W and M as abbreviations for
|
|
12522
|
+
minutes, hours, days, weeks and months. For example, -PT8H shows the last 8 hours and -P3M shows the last three months.
|
|
12523
|
+
You can also use start along with an end field, to specify an absolute time range.
|
|
12524
|
+
When specifying an absolute time range, use the ISO 8601 format. For example, 2018-12-17T06:00:00.000Z.
|
|
12525
|
+
|
|
12526
|
+
:default: When the dashboard loads, the start time will be the default time range.
|
|
12527
|
+
'''
|
|
12528
|
+
result = self._values.get("start")
|
|
12529
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
12530
|
+
|
|
12297
12531
|
@builtins.property
|
|
12298
12532
|
def statistic(self) -> typing.Optional[builtins.str]:
|
|
12299
12533
|
'''The default statistic to be displayed for each metric.
|
|
@@ -12341,6 +12575,7 @@ class GraphWidget(
|
|
|
12341
12575
|
def __init__(
|
|
12342
12576
|
self,
|
|
12343
12577
|
*,
|
|
12578
|
+
end: typing.Optional[builtins.str] = None,
|
|
12344
12579
|
left: typing.Optional[typing.Sequence[IMetric]] = None,
|
|
12345
12580
|
left_annotations: typing.Optional[typing.Sequence[typing.Union[HorizontalAnnotation, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
12346
12581
|
left_y_axis: typing.Optional[typing.Union[YAxisProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -12352,7 +12587,9 @@ class GraphWidget(
|
|
|
12352
12587
|
right_y_axis: typing.Optional[typing.Union[YAxisProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
12353
12588
|
set_period_to_time_range: typing.Optional[builtins.bool] = None,
|
|
12354
12589
|
stacked: typing.Optional[builtins.bool] = None,
|
|
12590
|
+
start: typing.Optional[builtins.str] = None,
|
|
12355
12591
|
statistic: typing.Optional[builtins.str] = None,
|
|
12592
|
+
vertical_annotations: typing.Optional[typing.Sequence[typing.Union[VerticalAnnotation, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
12356
12593
|
view: typing.Optional[GraphWidgetView] = None,
|
|
12357
12594
|
height: typing.Optional[jsii.Number] = None,
|
|
12358
12595
|
region: typing.Optional[builtins.str] = None,
|
|
@@ -12360,6 +12597,7 @@ class GraphWidget(
|
|
|
12360
12597
|
width: typing.Optional[jsii.Number] = None,
|
|
12361
12598
|
) -> None:
|
|
12362
12599
|
'''
|
|
12600
|
+
:param end: The end of the time range to use for each widget independently from those of the dashboard. If you specify a value for end, you must also specify a value for start. Specify an absolute time in the ISO 8601 format. For example, 2018-12-17T06:00:00.000Z. Default: When the dashboard loads, the end date will be the current time.
|
|
12363
12601
|
:param left: Metrics to display on left Y axis. Default: - No metrics
|
|
12364
12602
|
:param left_annotations: Annotations for the left Y axis. Default: - No annotations
|
|
12365
12603
|
:param left_y_axis: Left Y axis. Default: - None
|
|
@@ -12371,7 +12609,9 @@ class GraphWidget(
|
|
|
12371
12609
|
:param right_y_axis: Right Y axis. Default: - None
|
|
12372
12610
|
: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
|
|
12373
12611
|
:param stacked: Whether the graph should be shown as stacked lines. Default: false
|
|
12612
|
+
: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.
|
|
12374
12613
|
: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
|
|
12614
|
+
:param vertical_annotations: Annotations for the X axis. Default: - No annotations
|
|
12375
12615
|
:param view: Display this metric. Default: TimeSeries
|
|
12376
12616
|
: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.
|
|
12377
12617
|
:param region: The region the metrics of this graph should be taken from. Default: - Current region
|
|
@@ -12379,6 +12619,7 @@ class GraphWidget(
|
|
|
12379
12619
|
:param width: Width of the widget, in a grid of 24 units wide. Default: 6
|
|
12380
12620
|
'''
|
|
12381
12621
|
props = GraphWidgetProps(
|
|
12622
|
+
end=end,
|
|
12382
12623
|
left=left,
|
|
12383
12624
|
left_annotations=left_annotations,
|
|
12384
12625
|
left_y_axis=left_y_axis,
|
|
@@ -12390,7 +12631,9 @@ class GraphWidget(
|
|
|
12390
12631
|
right_y_axis=right_y_axis,
|
|
12391
12632
|
set_period_to_time_range=set_period_to_time_range,
|
|
12392
12633
|
stacked=stacked,
|
|
12634
|
+
start=start,
|
|
12393
12635
|
statistic=statistic,
|
|
12636
|
+
vertical_annotations=vertical_annotations,
|
|
12394
12637
|
view=view,
|
|
12395
12638
|
height=height,
|
|
12396
12639
|
region=region,
|
|
@@ -12436,6 +12679,7 @@ class GraphWidget(
|
|
|
12436
12679
|
"region": "region",
|
|
12437
12680
|
"title": "title",
|
|
12438
12681
|
"width": "width",
|
|
12682
|
+
"end": "end",
|
|
12439
12683
|
"left": "left",
|
|
12440
12684
|
"left_annotations": "leftAnnotations",
|
|
12441
12685
|
"left_y_axis": "leftYAxis",
|
|
@@ -12447,7 +12691,9 @@ class GraphWidget(
|
|
|
12447
12691
|
"right_y_axis": "rightYAxis",
|
|
12448
12692
|
"set_period_to_time_range": "setPeriodToTimeRange",
|
|
12449
12693
|
"stacked": "stacked",
|
|
12694
|
+
"start": "start",
|
|
12450
12695
|
"statistic": "statistic",
|
|
12696
|
+
"vertical_annotations": "verticalAnnotations",
|
|
12451
12697
|
"view": "view",
|
|
12452
12698
|
},
|
|
12453
12699
|
)
|
|
@@ -12459,6 +12705,7 @@ class GraphWidgetProps(MetricWidgetProps):
|
|
|
12459
12705
|
region: typing.Optional[builtins.str] = None,
|
|
12460
12706
|
title: typing.Optional[builtins.str] = None,
|
|
12461
12707
|
width: typing.Optional[jsii.Number] = None,
|
|
12708
|
+
end: typing.Optional[builtins.str] = None,
|
|
12462
12709
|
left: typing.Optional[typing.Sequence[IMetric]] = None,
|
|
12463
12710
|
left_annotations: typing.Optional[typing.Sequence[typing.Union[HorizontalAnnotation, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
12464
12711
|
left_y_axis: typing.Optional[typing.Union[YAxisProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -12470,7 +12717,9 @@ class GraphWidgetProps(MetricWidgetProps):
|
|
|
12470
12717
|
right_y_axis: typing.Optional[typing.Union[YAxisProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
12471
12718
|
set_period_to_time_range: typing.Optional[builtins.bool] = None,
|
|
12472
12719
|
stacked: typing.Optional[builtins.bool] = None,
|
|
12720
|
+
start: typing.Optional[builtins.str] = None,
|
|
12473
12721
|
statistic: typing.Optional[builtins.str] = None,
|
|
12722
|
+
vertical_annotations: typing.Optional[typing.Sequence[typing.Union[VerticalAnnotation, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
12474
12723
|
view: typing.Optional[GraphWidgetView] = None,
|
|
12475
12724
|
) -> None:
|
|
12476
12725
|
'''Properties for a GraphWidget.
|
|
@@ -12479,6 +12728,7 @@ class GraphWidgetProps(MetricWidgetProps):
|
|
|
12479
12728
|
:param region: The region the metrics of this graph should be taken from. Default: - Current region
|
|
12480
12729
|
:param title: Title for the graph. Default: - None
|
|
12481
12730
|
:param width: Width of the widget, in a grid of 24 units wide. Default: 6
|
|
12731
|
+
:param end: The end of the time range to use for each widget independently from those of the dashboard. If you specify a value for end, you must also specify a value for start. Specify an absolute time in the ISO 8601 format. For example, 2018-12-17T06:00:00.000Z. Default: When the dashboard loads, the end date will be the current time.
|
|
12482
12732
|
:param left: Metrics to display on left Y axis. Default: - No metrics
|
|
12483
12733
|
:param left_annotations: Annotations for the left Y axis. Default: - No annotations
|
|
12484
12734
|
:param left_y_axis: Left Y axis. Default: - None
|
|
@@ -12490,7 +12740,9 @@ class GraphWidgetProps(MetricWidgetProps):
|
|
|
12490
12740
|
:param right_y_axis: Right Y axis. Default: - None
|
|
12491
12741
|
: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
|
|
12492
12742
|
:param stacked: Whether the graph should be shown as stacked lines. Default: false
|
|
12743
|
+
: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.
|
|
12493
12744
|
: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
|
|
12745
|
+
:param vertical_annotations: Annotations for the X axis. Default: - No annotations
|
|
12494
12746
|
:param view: Display this metric. Default: TimeSeries
|
|
12495
12747
|
|
|
12496
12748
|
:exampleMetadata: infused
|
|
@@ -12516,6 +12768,7 @@ class GraphWidgetProps(MetricWidgetProps):
|
|
|
12516
12768
|
check_type(argname="argument region", value=region, expected_type=type_hints["region"])
|
|
12517
12769
|
check_type(argname="argument title", value=title, expected_type=type_hints["title"])
|
|
12518
12770
|
check_type(argname="argument width", value=width, expected_type=type_hints["width"])
|
|
12771
|
+
check_type(argname="argument end", value=end, expected_type=type_hints["end"])
|
|
12519
12772
|
check_type(argname="argument left", value=left, expected_type=type_hints["left"])
|
|
12520
12773
|
check_type(argname="argument left_annotations", value=left_annotations, expected_type=type_hints["left_annotations"])
|
|
12521
12774
|
check_type(argname="argument left_y_axis", value=left_y_axis, expected_type=type_hints["left_y_axis"])
|
|
@@ -12527,7 +12780,9 @@ class GraphWidgetProps(MetricWidgetProps):
|
|
|
12527
12780
|
check_type(argname="argument right_y_axis", value=right_y_axis, expected_type=type_hints["right_y_axis"])
|
|
12528
12781
|
check_type(argname="argument set_period_to_time_range", value=set_period_to_time_range, expected_type=type_hints["set_period_to_time_range"])
|
|
12529
12782
|
check_type(argname="argument stacked", value=stacked, expected_type=type_hints["stacked"])
|
|
12783
|
+
check_type(argname="argument start", value=start, expected_type=type_hints["start"])
|
|
12530
12784
|
check_type(argname="argument statistic", value=statistic, expected_type=type_hints["statistic"])
|
|
12785
|
+
check_type(argname="argument vertical_annotations", value=vertical_annotations, expected_type=type_hints["vertical_annotations"])
|
|
12531
12786
|
check_type(argname="argument view", value=view, expected_type=type_hints["view"])
|
|
12532
12787
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
12533
12788
|
if height is not None:
|
|
@@ -12538,6 +12793,8 @@ class GraphWidgetProps(MetricWidgetProps):
|
|
|
12538
12793
|
self._values["title"] = title
|
|
12539
12794
|
if width is not None:
|
|
12540
12795
|
self._values["width"] = width
|
|
12796
|
+
if end is not None:
|
|
12797
|
+
self._values["end"] = end
|
|
12541
12798
|
if left is not None:
|
|
12542
12799
|
self._values["left"] = left
|
|
12543
12800
|
if left_annotations is not None:
|
|
@@ -12560,8 +12817,12 @@ class GraphWidgetProps(MetricWidgetProps):
|
|
|
12560
12817
|
self._values["set_period_to_time_range"] = set_period_to_time_range
|
|
12561
12818
|
if stacked is not None:
|
|
12562
12819
|
self._values["stacked"] = stacked
|
|
12820
|
+
if start is not None:
|
|
12821
|
+
self._values["start"] = start
|
|
12563
12822
|
if statistic is not None:
|
|
12564
12823
|
self._values["statistic"] = statistic
|
|
12824
|
+
if vertical_annotations is not None:
|
|
12825
|
+
self._values["vertical_annotations"] = vertical_annotations
|
|
12565
12826
|
if view is not None:
|
|
12566
12827
|
self._values["view"] = view
|
|
12567
12828
|
|
|
@@ -12604,6 +12865,18 @@ class GraphWidgetProps(MetricWidgetProps):
|
|
|
12604
12865
|
result = self._values.get("width")
|
|
12605
12866
|
return typing.cast(typing.Optional[jsii.Number], result)
|
|
12606
12867
|
|
|
12868
|
+
@builtins.property
|
|
12869
|
+
def end(self) -> typing.Optional[builtins.str]:
|
|
12870
|
+
'''The end of the time range to use for each widget independently from those of the dashboard.
|
|
12871
|
+
|
|
12872
|
+
If you specify a value for end, you must also specify a value for start.
|
|
12873
|
+
Specify an absolute time in the ISO 8601 format. For example, 2018-12-17T06:00:00.000Z.
|
|
12874
|
+
|
|
12875
|
+
:default: When the dashboard loads, the end date will be the current time.
|
|
12876
|
+
'''
|
|
12877
|
+
result = self._values.get("end")
|
|
12878
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
12879
|
+
|
|
12607
12880
|
@builtins.property
|
|
12608
12881
|
def left(self) -> typing.Optional[typing.List[IMetric]]:
|
|
12609
12882
|
'''Metrics to display on left Y axis.
|
|
@@ -12709,6 +12982,21 @@ class GraphWidgetProps(MetricWidgetProps):
|
|
|
12709
12982
|
result = self._values.get("stacked")
|
|
12710
12983
|
return typing.cast(typing.Optional[builtins.bool], result)
|
|
12711
12984
|
|
|
12985
|
+
@builtins.property
|
|
12986
|
+
def start(self) -> typing.Optional[builtins.str]:
|
|
12987
|
+
'''The start of the time range to use for each widget independently from those of the dashboard.
|
|
12988
|
+
|
|
12989
|
+
You can specify start without specifying end to specify a relative time range that ends with the current time.
|
|
12990
|
+
In this case, the value of start must begin with -P, and you can use M, H, D, W and M as abbreviations for
|
|
12991
|
+
minutes, hours, days, weeks and months. For example, -PT8H shows the last 8 hours and -P3M shows the last three months.
|
|
12992
|
+
You can also use start along with an end field, to specify an absolute time range.
|
|
12993
|
+
When specifying an absolute time range, use the ISO 8601 format. For example, 2018-12-17T06:00:00.000Z.
|
|
12994
|
+
|
|
12995
|
+
:default: When the dashboard loads, the start time will be the default time range.
|
|
12996
|
+
'''
|
|
12997
|
+
result = self._values.get("start")
|
|
12998
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
12999
|
+
|
|
12712
13000
|
@builtins.property
|
|
12713
13001
|
def statistic(self) -> typing.Optional[builtins.str]:
|
|
12714
13002
|
'''The default statistic to be displayed for each metric.
|
|
@@ -12720,6 +13008,15 @@ class GraphWidgetProps(MetricWidgetProps):
|
|
|
12720
13008
|
result = self._values.get("statistic")
|
|
12721
13009
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
12722
13010
|
|
|
13011
|
+
@builtins.property
|
|
13012
|
+
def vertical_annotations(self) -> typing.Optional[typing.List[VerticalAnnotation]]:
|
|
13013
|
+
'''Annotations for the X axis.
|
|
13014
|
+
|
|
13015
|
+
:default: - No annotations
|
|
13016
|
+
'''
|
|
13017
|
+
result = self._values.get("vertical_annotations")
|
|
13018
|
+
return typing.cast(typing.Optional[typing.List[VerticalAnnotation]], result)
|
|
13019
|
+
|
|
12723
13020
|
@builtins.property
|
|
12724
13021
|
def view(self) -> typing.Optional[GraphWidgetView]:
|
|
12725
13022
|
'''Display this metric.
|
|
@@ -12883,10 +13180,12 @@ class SingleValueWidget(
|
|
|
12883
13180
|
self,
|
|
12884
13181
|
*,
|
|
12885
13182
|
metrics: typing.Sequence[IMetric],
|
|
13183
|
+
end: typing.Optional[builtins.str] = None,
|
|
12886
13184
|
full_precision: typing.Optional[builtins.bool] = None,
|
|
12887
13185
|
period: typing.Optional[_Duration_4839e8c3] = None,
|
|
12888
13186
|
set_period_to_time_range: typing.Optional[builtins.bool] = None,
|
|
12889
13187
|
sparkline: typing.Optional[builtins.bool] = None,
|
|
13188
|
+
start: typing.Optional[builtins.str] = None,
|
|
12890
13189
|
height: typing.Optional[jsii.Number] = None,
|
|
12891
13190
|
region: typing.Optional[builtins.str] = None,
|
|
12892
13191
|
title: typing.Optional[builtins.str] = None,
|
|
@@ -12894,10 +13193,12 @@ class SingleValueWidget(
|
|
|
12894
13193
|
) -> None:
|
|
12895
13194
|
'''
|
|
12896
13195
|
:param metrics: Metrics to display.
|
|
13196
|
+
:param end: The end of the time range to use for each widget independently from those of the dashboard. If you specify a value for end, you must also specify a value for start. Specify an absolute time in the ISO 8601 format. For example, 2018-12-17T06:00:00.000Z. Default: When the dashboard loads, the end date will be the current time.
|
|
12897
13197
|
:param full_precision: Whether to show as many digits as can fit, before rounding. Default: false
|
|
12898
13198
|
:param period: The default period for all metrics in this widget. The period is the length of time represented by one data point on the graph. This default can be overridden within each metric definition. Default: cdk.Duration.seconds(300)
|
|
12899
13199
|
:param set_period_to_time_range: Whether to show the value from the entire time range. Default: false
|
|
12900
13200
|
: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
|
|
13201
|
+
: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.
|
|
12901
13202
|
: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.
|
|
12902
13203
|
:param region: The region the metrics of this graph should be taken from. Default: - Current region
|
|
12903
13204
|
:param title: Title for the graph. Default: - None
|
|
@@ -12905,10 +13206,12 @@ class SingleValueWidget(
|
|
|
12905
13206
|
'''
|
|
12906
13207
|
props = SingleValueWidgetProps(
|
|
12907
13208
|
metrics=metrics,
|
|
13209
|
+
end=end,
|
|
12908
13210
|
full_precision=full_precision,
|
|
12909
13211
|
period=period,
|
|
12910
13212
|
set_period_to_time_range=set_period_to_time_range,
|
|
12911
13213
|
sparkline=sparkline,
|
|
13214
|
+
start=start,
|
|
12912
13215
|
height=height,
|
|
12913
13216
|
region=region,
|
|
12914
13217
|
title=title,
|
|
@@ -13677,6 +13980,8 @@ __all__ = [
|
|
|
13677
13980
|
"VariableInputType",
|
|
13678
13981
|
"VariableType",
|
|
13679
13982
|
"VariableValue",
|
|
13983
|
+
"VerticalAnnotation",
|
|
13984
|
+
"VerticalShading",
|
|
13680
13985
|
"YAxisProps",
|
|
13681
13986
|
]
|
|
13682
13987
|
|
|
@@ -14798,10 +15103,12 @@ def _typecheckingstub__4596565f40195bdcc9fe939fa585a3bdf484f8a4a6817e427c6f9e1e4
|
|
|
14798
15103
|
title: typing.Optional[builtins.str] = None,
|
|
14799
15104
|
width: typing.Optional[jsii.Number] = None,
|
|
14800
15105
|
metrics: typing.Sequence[IMetric],
|
|
15106
|
+
end: typing.Optional[builtins.str] = None,
|
|
14801
15107
|
full_precision: typing.Optional[builtins.bool] = None,
|
|
14802
15108
|
period: typing.Optional[_Duration_4839e8c3] = None,
|
|
14803
15109
|
set_period_to_time_range: typing.Optional[builtins.bool] = None,
|
|
14804
15110
|
sparkline: typing.Optional[builtins.bool] = None,
|
|
15111
|
+
start: typing.Optional[builtins.str] = None,
|
|
14805
15112
|
) -> None:
|
|
14806
15113
|
"""Type checking stubs"""
|
|
14807
15114
|
pass
|
|
@@ -14934,6 +15241,17 @@ def _typecheckingstub__03c9a6d1a1a0197c51468b97744230720e131da2f17bd50bfcfa9f7a3
|
|
|
14934
15241
|
"""Type checking stubs"""
|
|
14935
15242
|
pass
|
|
14936
15243
|
|
|
15244
|
+
def _typecheckingstub__c903f8a4aafff9c3e6b2539c8372df8551aba4035bb4187c0e0930b0ee60ff00(
|
|
15245
|
+
*,
|
|
15246
|
+
date: builtins.str,
|
|
15247
|
+
color: typing.Optional[builtins.str] = None,
|
|
15248
|
+
fill: typing.Optional[VerticalShading] = None,
|
|
15249
|
+
label: typing.Optional[builtins.str] = None,
|
|
15250
|
+
visible: typing.Optional[builtins.bool] = None,
|
|
15251
|
+
) -> None:
|
|
15252
|
+
"""Type checking stubs"""
|
|
15253
|
+
pass
|
|
15254
|
+
|
|
14937
15255
|
def _typecheckingstub__ec63852e8e70001b1e7a1554d96ad9ddb32bcfee6e3c022b5ba672bf9259a3be(
|
|
14938
15256
|
*,
|
|
14939
15257
|
label: typing.Optional[builtins.str] = None,
|
|
@@ -15036,12 +15354,14 @@ def _typecheckingstub__c1f8fe2511861f7fc6d2225bf5821fc9134b7036355dffb1d0ddd86a9
|
|
|
15036
15354
|
title: typing.Optional[builtins.str] = None,
|
|
15037
15355
|
width: typing.Optional[jsii.Number] = None,
|
|
15038
15356
|
annotations: typing.Optional[typing.Sequence[typing.Union[HorizontalAnnotation, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
15357
|
+
end: typing.Optional[builtins.str] = None,
|
|
15039
15358
|
left_y_axis: typing.Optional[typing.Union[YAxisProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
15040
15359
|
legend_position: typing.Optional[LegendPosition] = None,
|
|
15041
15360
|
live_data: typing.Optional[builtins.bool] = None,
|
|
15042
15361
|
metrics: typing.Optional[typing.Sequence[IMetric]] = None,
|
|
15043
15362
|
period: typing.Optional[_Duration_4839e8c3] = None,
|
|
15044
15363
|
set_period_to_time_range: typing.Optional[builtins.bool] = None,
|
|
15364
|
+
start: typing.Optional[builtins.str] = None,
|
|
15045
15365
|
statistic: typing.Optional[builtins.str] = None,
|
|
15046
15366
|
) -> None:
|
|
15047
15367
|
"""Type checking stubs"""
|
|
@@ -15065,6 +15385,7 @@ def _typecheckingstub__3471ad100c9e34a517506d76368276ef9b137a3c7b33aecc91910b5dc
|
|
|
15065
15385
|
region: typing.Optional[builtins.str] = None,
|
|
15066
15386
|
title: typing.Optional[builtins.str] = None,
|
|
15067
15387
|
width: typing.Optional[jsii.Number] = None,
|
|
15388
|
+
end: typing.Optional[builtins.str] = None,
|
|
15068
15389
|
left: typing.Optional[typing.Sequence[IMetric]] = None,
|
|
15069
15390
|
left_annotations: typing.Optional[typing.Sequence[typing.Union[HorizontalAnnotation, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
15070
15391
|
left_y_axis: typing.Optional[typing.Union[YAxisProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -15076,7 +15397,9 @@ def _typecheckingstub__3471ad100c9e34a517506d76368276ef9b137a3c7b33aecc91910b5dc
|
|
|
15076
15397
|
right_y_axis: typing.Optional[typing.Union[YAxisProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
15077
15398
|
set_period_to_time_range: typing.Optional[builtins.bool] = None,
|
|
15078
15399
|
stacked: typing.Optional[builtins.bool] = None,
|
|
15400
|
+
start: typing.Optional[builtins.str] = None,
|
|
15079
15401
|
statistic: typing.Optional[builtins.str] = None,
|
|
15402
|
+
vertical_annotations: typing.Optional[typing.Sequence[typing.Union[VerticalAnnotation, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
15080
15403
|
view: typing.Optional[GraphWidgetView] = None,
|
|
15081
15404
|
) -> None:
|
|
15082
15405
|
"""Type checking stubs"""
|