aws-cdk-lib 2.172.0__py3-none-any.whl → 2.173.1__py3-none-any.whl

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

Potentially problematic release.


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

Files changed (69) hide show
  1. aws_cdk/__init__.py +57 -0
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.172.0.jsii.tgz → aws-cdk-lib@2.173.1.jsii.tgz} +0 -0
  4. aws_cdk/aws_amazonmq/__init__.py +40 -40
  5. aws_cdk/aws_apigateway/__init__.py +111 -64
  6. aws_cdk/aws_applicationautoscaling/__init__.py +141 -66
  7. aws_cdk/aws_appsync/__init__.py +4 -3
  8. aws_cdk/aws_autoscaling/__init__.py +15 -6
  9. aws_cdk/aws_bedrock/__init__.py +32 -44
  10. aws_cdk/aws_chatbot/__init__.py +72 -46
  11. aws_cdk/aws_cleanrooms/__init__.py +4 -6
  12. aws_cdk/aws_cloudfront/__init__.py +4 -2
  13. aws_cdk/aws_cloudtrail/__init__.py +104 -68
  14. aws_cdk/aws_cloudwatch/__init__.py +51 -14
  15. aws_cdk/aws_codebuild/__init__.py +39 -0
  16. aws_cdk/aws_codepipeline/__init__.py +4 -4
  17. aws_cdk/aws_cognito/__init__.py +221 -53
  18. aws_cdk/aws_config/__init__.py +13 -10
  19. aws_cdk/aws_connect/__init__.py +25 -23
  20. aws_cdk/aws_connectcampaignsv2/__init__.py +187 -176
  21. aws_cdk/aws_docdb/__init__.py +128 -0
  22. aws_cdk/aws_dynamodb/__init__.py +256 -0
  23. aws_cdk/aws_ec2/__init__.py +130 -48
  24. aws_cdk/aws_ecs/__init__.py +25 -13
  25. aws_cdk/aws_eks/__init__.py +86 -24
  26. aws_cdk/aws_elasticache/__init__.py +22 -22
  27. aws_cdk/aws_elasticloadbalancingv2/__init__.py +138 -128
  28. aws_cdk/aws_events/__init__.py +39 -26
  29. aws_cdk/aws_fsx/__init__.py +134 -10
  30. aws_cdk/aws_imagebuilder/__init__.py +8 -8
  31. aws_cdk/aws_invoicing/__init__.py +651 -0
  32. aws_cdk/aws_iot/__init__.py +28 -22
  33. aws_cdk/aws_iotfleetwise/__init__.py +473 -332
  34. aws_cdk/aws_iotsitewise/__init__.py +6 -4
  35. aws_cdk/aws_ivs/__init__.py +43 -31
  36. aws_cdk/aws_kendra/__init__.py +4 -0
  37. aws_cdk/aws_lakeformation/__init__.py +2 -1
  38. aws_cdk/aws_lambda/__init__.py +258 -156
  39. aws_cdk/aws_logs/__init__.py +532 -0
  40. aws_cdk/aws_m2/__init__.py +15 -15
  41. aws_cdk/aws_mediaconnect/__init__.py +24 -14
  42. aws_cdk/aws_medialive/__init__.py +2359 -5
  43. aws_cdk/aws_mediapackage/__init__.py +3 -9
  44. aws_cdk/aws_mediapackagev2/__init__.py +19 -17
  45. aws_cdk/aws_memorydb/__init__.py +664 -4
  46. aws_cdk/aws_qbusiness/__init__.py +2018 -66
  47. aws_cdk/aws_rds/__init__.py +30 -0
  48. aws_cdk/aws_resourcegroups/__init__.py +26 -17
  49. aws_cdk/aws_route53/__init__.py +1177 -10
  50. aws_cdk/aws_route53_targets/__init__.py +224 -100
  51. aws_cdk/aws_route53resolver/__init__.py +4 -2
  52. aws_cdk/aws_s3/__init__.py +4 -4
  53. aws_cdk/aws_s3express/__init__.py +30 -19
  54. aws_cdk/aws_sagemaker/__init__.py +783 -9
  55. aws_cdk/aws_secretsmanager/__init__.py +20 -6
  56. aws_cdk/aws_securityhub/__init__.py +64 -32
  57. aws_cdk/aws_servicediscovery/__init__.py +43 -0
  58. aws_cdk/aws_ses/__init__.py +109 -0
  59. aws_cdk/aws_stepfunctions_tasks/__init__.py +190 -35
  60. aws_cdk/aws_synthetics/__init__.py +7 -5
  61. aws_cdk/aws_vpclattice/__init__.py +1479 -122
  62. aws_cdk/aws_wisdom/__init__.py +2698 -232
  63. aws_cdk/aws_workspacesweb/__init__.py +118 -61
  64. {aws_cdk_lib-2.172.0.dist-info → aws_cdk_lib-2.173.1.dist-info}/METADATA +1 -1
  65. {aws_cdk_lib-2.172.0.dist-info → aws_cdk_lib-2.173.1.dist-info}/RECORD +69 -68
  66. {aws_cdk_lib-2.172.0.dist-info → aws_cdk_lib-2.173.1.dist-info}/LICENSE +0 -0
  67. {aws_cdk_lib-2.172.0.dist-info → aws_cdk_lib-2.173.1.dist-info}/NOTICE +0 -0
  68. {aws_cdk_lib-2.172.0.dist-info → aws_cdk_lib-2.173.1.dist-info}/WHEEL +0 -0
  69. {aws_cdk_lib-2.172.0.dist-info → aws_cdk_lib-2.173.1.dist-info}/top_level.txt +0 -0
@@ -725,9 +725,16 @@ class CfnDashboard(
725
725
  metaclass=jsii.JSIIMeta,
726
726
  jsii_type="aws-cdk-lib.aws_cloudtrail.CfnDashboard",
727
727
  ):
728
- '''The Amazon CloudTrail dashboard resource allows customers to manage managed dashboards and create custom dashboards.
728
+ '''Creates a custom dashboard or the Highlights dashboard.
729
729
 
730
- You can manually refresh custom and managed dashboards. For custom dashboards, you can also set up an automatic refresh schedule and modify dashboard widgets.
730
+ - *Custom dashboards* - Custom dashboards allow you to query events in any event data store type. You can add up to 10 widgets to a custom dashboard. You can manually refresh a custom dashboard, or you can set a refresh schedule.
731
+ - *Highlights dashboard* - You can create the Highlights dashboard to see a summary of key user activities and API usage across all your event data stores. CloudTrail Lake manages the Highlights dashboard and refreshes the dashboard every 6 hours. To create the Highlights dashboard, you must set and enable a refresh schedule.
732
+
733
+ CloudTrail runs queries to populate the dashboard's widgets during a manual or scheduled refresh. CloudTrail must be granted permissions to run the ``StartQuery`` operation on your behalf. To provide permissions, run the ``PutResourcePolicy`` operation to attach a resource-based policy to each event data store. For more information, see `Example: Allow CloudTrail to run queries to populate a dashboard <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/security_iam_resource-based-policy-examples.html#security_iam_resource-based-policy-examples-eds-dashboard>`_ in the *AWS CloudTrail User Guide* .
734
+
735
+ To set a refresh schedule, CloudTrail must be granted permissions to run the ``StartDashboardRefresh`` operation to refresh the dashboard on your behalf. To provide permissions, run the ``PutResourcePolicy`` operation to attach a resource-based policy to the dashboard. For more information, see `Resource-based policy example for a dashboard <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/security_iam_resource-based-policy-examples.html#security_iam_resource-based-policy-examples-dashboards>`_ in the *AWS CloudTrail User Guide* .
736
+
737
+ For more information about dashboards, see `CloudTrail Lake dashboards <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-dashboard.html>`_ in the *AWS CloudTrail User Guide* .
731
738
 
732
739
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-dashboard.html
733
740
  :cloudformationResource: AWS::CloudTrail::Dashboard
@@ -780,11 +787,11 @@ class CfnDashboard(
780
787
  '''
781
788
  :param scope: Scope in which this resource is defined.
782
789
  :param id: Construct identifier for this resource (unique in its scope).
783
- :param name: The name of the dashboard.
784
- :param refresh_schedule: Configures the automatic refresh schedule for the dashboard. Includes the frequency unit (DAYS or HOURS) and value, as well as the status (ENABLED or DISABLED) of the refresh schedule.
785
- :param tags:
786
- :param termination_protection_enabled: Indicates whether the dashboard is protected from termination.
787
- :param widgets: List of widgets on the dashboard.
790
+ :param name: The name of the dashboard. The name must be unique to your account. To create the Highlights dashboard, the name must be ``AWSCloudTrail-Highlights`` .
791
+ :param refresh_schedule: The schedule for a dashboard refresh.
792
+ :param tags: A list of tags.
793
+ :param termination_protection_enabled: Specifies whether termination protection is enabled for the dashboard. If termination protection is enabled, you cannot delete the dashboard until termination protection is disabled.
794
+ :param widgets: An array of widgets for a custom dashboard. A custom dashboard can have a maximum of ten widgets. You do not need to specify widgets for the Highlights dashboard.
788
795
  '''
789
796
  if __debug__:
790
797
  type_hints = typing.get_type_hints(_typecheckingstub__65875e3ceabcc57155f97b1541ff9d435e4456c9c7f0c980c1dea0ac9bffc3ce)
@@ -833,7 +840,8 @@ class CfnDashboard(
833
840
  @builtins.property
834
841
  @jsii.member(jsii_name="attrCreatedTimestamp")
835
842
  def attr_created_timestamp(self) -> builtins.str:
836
- '''
843
+ '''The timestamp that shows when the dashboard was created.
844
+
837
845
  :cloudformationAttribute: CreatedTimestamp
838
846
  '''
839
847
  return typing.cast(builtins.str, jsii.get(self, "attrCreatedTimestamp"))
@@ -841,7 +849,7 @@ class CfnDashboard(
841
849
  @builtins.property
842
850
  @jsii.member(jsii_name="attrDashboardArn")
843
851
  def attr_dashboard_arn(self) -> builtins.str:
844
- '''The ARN of the dashboard.
852
+ '''The ARN for the dashboard.
845
853
 
846
854
  :cloudformationAttribute: DashboardArn
847
855
  '''
@@ -852,8 +860,6 @@ class CfnDashboard(
852
860
  def attr_status(self) -> builtins.str:
853
861
  '''The status of the dashboard.
854
862
 
855
- Values are CREATING, CREATED, UPDATING, UPDATED and DELETING.
856
-
857
863
  :cloudformationAttribute: Status
858
864
  '''
859
865
  return typing.cast(builtins.str, jsii.get(self, "attrStatus"))
@@ -861,9 +867,7 @@ class CfnDashboard(
861
867
  @builtins.property
862
868
  @jsii.member(jsii_name="attrType")
863
869
  def attr_type(self) -> builtins.str:
864
- '''The type of the dashboard.
865
-
866
- Values are CUSTOM and MANAGED.
870
+ '''The type of dashboard.
867
871
 
868
872
  :cloudformationAttribute: Type
869
873
  '''
@@ -872,7 +876,8 @@ class CfnDashboard(
872
876
  @builtins.property
873
877
  @jsii.member(jsii_name="attrUpdatedTimestamp")
874
878
  def attr_updated_timestamp(self) -> builtins.str:
875
- '''
879
+ '''The timestamp that shows when the dashboard was updated.
880
+
876
881
  :cloudformationAttribute: UpdatedTimestamp
877
882
  '''
878
883
  return typing.cast(builtins.str, jsii.get(self, "attrUpdatedTimestamp"))
@@ -891,7 +896,10 @@ class CfnDashboard(
891
896
  @builtins.property
892
897
  @jsii.member(jsii_name="name")
893
898
  def name(self) -> typing.Optional[builtins.str]:
894
- '''The name of the dashboard.'''
899
+ '''The name of the dashboard.
900
+
901
+ The name must be unique to your account.
902
+ '''
895
903
  return typing.cast(typing.Optional[builtins.str], jsii.get(self, "name"))
896
904
 
897
905
  @name.setter
@@ -906,7 +914,7 @@ class CfnDashboard(
906
914
  def refresh_schedule(
907
915
  self,
908
916
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDashboard.RefreshScheduleProperty"]]:
909
- '''Configures the automatic refresh schedule for the dashboard.'''
917
+ '''The schedule for a dashboard refresh.'''
910
918
  return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDashboard.RefreshScheduleProperty"]], jsii.get(self, "refreshSchedule"))
911
919
 
912
920
  @refresh_schedule.setter
@@ -922,6 +930,7 @@ class CfnDashboard(
922
930
  @builtins.property
923
931
  @jsii.member(jsii_name="tags")
924
932
  def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
933
+ '''A list of tags.'''
925
934
  return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tags"))
926
935
 
927
936
  @tags.setter
@@ -936,7 +945,7 @@ class CfnDashboard(
936
945
  def termination_protection_enabled(
937
946
  self,
938
947
  ) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
939
- '''Indicates whether the dashboard is protected from termination.'''
948
+ '''Specifies whether termination protection is enabled for the dashboard.'''
940
949
  return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], jsii.get(self, "terminationProtectionEnabled"))
941
950
 
942
951
  @termination_protection_enabled.setter
@@ -954,7 +963,10 @@ class CfnDashboard(
954
963
  def widgets(
955
964
  self,
956
965
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnDashboard.WidgetProperty"]]]]:
957
- '''List of widgets on the dashboard.'''
966
+ '''An array of widgets for a custom dashboard.
967
+
968
+ A custom dashboard can have a maximum of ten widgets.
969
+ '''
958
970
  return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnDashboard.WidgetProperty"]]]], jsii.get(self, "widgets"))
959
971
 
960
972
  @widgets.setter
@@ -974,9 +986,12 @@ class CfnDashboard(
974
986
  )
975
987
  class FrequencyProperty:
976
988
  def __init__(self, *, unit: builtins.str, value: jsii.Number) -> None:
977
- '''
978
- :param unit: The frequency unit. Supported values are HOURS and DAYS.
979
- :param value: The frequency value.
989
+ '''Specifies the frequency for a dashboard refresh schedule.
990
+
991
+ For a custom dashboard, you can schedule a refresh for every 1, 6, 12, or 24 hours, or every day.
992
+
993
+ :param unit: The unit to use for the refresh. For custom dashboards, the unit can be ``HOURS`` or ``DAYS`` . For the Highlights dashboard, the ``Unit`` must be ``HOURS`` .
994
+ :param value: The value for the refresh schedule. For custom dashboards, the following values are valid when the unit is ``HOURS`` : ``1`` , ``6`` , ``12`` , ``24`` For custom dashboards, the only valid value when the unit is ``DAYS`` is ``1`` . For the Highlights dashboard, the ``Value`` must be ``6`` .
980
995
 
981
996
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-dashboard-frequency.html
982
997
  :exampleMetadata: fixture=_generated
@@ -1003,9 +1018,11 @@ class CfnDashboard(
1003
1018
 
1004
1019
  @builtins.property
1005
1020
  def unit(self) -> builtins.str:
1006
- '''The frequency unit.
1021
+ '''The unit to use for the refresh.
1022
+
1023
+ For custom dashboards, the unit can be ``HOURS`` or ``DAYS`` .
1007
1024
 
1008
- Supported values are HOURS and DAYS.
1025
+ For the Highlights dashboard, the ``Unit`` must be ``HOURS`` .
1009
1026
 
1010
1027
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-dashboard-frequency.html#cfn-cloudtrail-dashboard-frequency-unit
1011
1028
  '''
@@ -1015,7 +1032,13 @@ class CfnDashboard(
1015
1032
 
1016
1033
  @builtins.property
1017
1034
  def value(self) -> jsii.Number:
1018
- '''The frequency value.
1035
+ '''The value for the refresh schedule.
1036
+
1037
+ For custom dashboards, the following values are valid when the unit is ``HOURS`` : ``1`` , ``6`` , ``12`` , ``24``
1038
+
1039
+ For custom dashboards, the only valid value when the unit is ``DAYS`` is ``1`` .
1040
+
1041
+ For the Highlights dashboard, the ``Value`` must be ``6`` .
1019
1042
 
1020
1043
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-dashboard-frequency.html#cfn-cloudtrail-dashboard-frequency-value
1021
1044
  '''
@@ -1051,13 +1074,11 @@ class CfnDashboard(
1051
1074
  status: typing.Optional[builtins.str] = None,
1052
1075
  time_of_day: typing.Optional[builtins.str] = None,
1053
1076
  ) -> None:
1054
- '''Configures the automatic refresh schedule for the dashboard.
1055
-
1056
- Includes the frequency unit (DAYS or HOURS) and value, as well as the status (ENABLED or DISABLED) of the refresh schedule.
1077
+ '''The schedule for a dashboard refresh.
1057
1078
 
1058
- :param frequency:
1059
- :param status: The status of the schedule. Supported values are ENABLED and DISABLED.
1060
- :param time_of_day: StartTime of the automatic schedule refresh.
1079
+ :param frequency: The frequency at which you want the dashboard refreshed.
1080
+ :param status: Specifies whether the refresh schedule is enabled. Set the value to ``ENABLED`` to enable the refresh schedule, or to ``DISABLED`` to turn off the refresh schedule.
1081
+ :param time_of_day: The time of day in UTC to run the schedule; for hourly only refer to minutes; default is 00:00.
1061
1082
 
1062
1083
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-dashboard-refreshschedule.html
1063
1084
  :exampleMetadata: fixture=_generated
@@ -1094,7 +1115,8 @@ class CfnDashboard(
1094
1115
  def frequency(
1095
1116
  self,
1096
1117
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDashboard.FrequencyProperty"]]:
1097
- '''
1118
+ '''The frequency at which you want the dashboard refreshed.
1119
+
1098
1120
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-dashboard-refreshschedule.html#cfn-cloudtrail-dashboard-refreshschedule-frequency
1099
1121
  '''
1100
1122
  result = self._values.get("frequency")
@@ -1102,9 +1124,9 @@ class CfnDashboard(
1102
1124
 
1103
1125
  @builtins.property
1104
1126
  def status(self) -> typing.Optional[builtins.str]:
1105
- '''The status of the schedule.
1127
+ '''Specifies whether the refresh schedule is enabled.
1106
1128
 
1107
- Supported values are ENABLED and DISABLED.
1129
+ Set the value to ``ENABLED`` to enable the refresh schedule, or to ``DISABLED`` to turn off the refresh schedule.
1108
1130
 
1109
1131
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-dashboard-refreshschedule.html#cfn-cloudtrail-dashboard-refreshschedule-status
1110
1132
  '''
@@ -1113,7 +1135,9 @@ class CfnDashboard(
1113
1135
 
1114
1136
  @builtins.property
1115
1137
  def time_of_day(self) -> typing.Optional[builtins.str]:
1116
- '''StartTime of the automatic schedule refresh.
1138
+ '''The time of day in UTC to run the schedule;
1139
+
1140
+ for hourly only refer to minutes; default is 00:00.
1117
1141
 
1118
1142
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-dashboard-refreshschedule.html#cfn-cloudtrail-dashboard-refreshschedule-timeofday
1119
1143
  '''
@@ -1148,11 +1172,11 @@ class CfnDashboard(
1148
1172
  query_parameters: typing.Optional[typing.Sequence[builtins.str]] = None,
1149
1173
  view_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, builtins.str]]] = None,
1150
1174
  ) -> None:
1151
- '''The dashboard widget.
1175
+ '''Contains information about a widget on a CloudTrail Lake dashboard.
1152
1176
 
1153
- :param query_statement: The SQL query statement on one or more event data stores.
1154
- :param query_parameters: The placeholder keys in the QueryStatement. For example: $StartTime$, $EndTime$, $Period$.
1155
- :param view_properties: The view properties of the widget.
1177
+ :param query_statement: The query statement for the widget. For custom dashboard widgets, you can query across multiple event data stores as long as all event data stores exist in your account. .. epigraph:: When a query uses ``?`` with ``eventTime`` , ``?`` must be surrounded by single quotes as follows: ``'?'`` .
1178
+ :param query_parameters: The optional query parameters. The following query parameters are valid: ``$StartTime$`` , ``$EndTime$`` , and ``$Period$`` .
1179
+ :param view_properties: The view properties for the widget. For more information about view properties, see `View properties for widgets <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-widget-properties.html>`_ in the *AWS CloudTrail User Guide* .
1156
1180
 
1157
1181
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-dashboard-widget.html
1158
1182
  :exampleMetadata: fixture=_generated
@@ -1188,7 +1212,12 @@ class CfnDashboard(
1188
1212
 
1189
1213
  @builtins.property
1190
1214
  def query_statement(self) -> builtins.str:
1191
- '''The SQL query statement on one or more event data stores.
1215
+ '''The query statement for the widget.
1216
+
1217
+ For custom dashboard widgets, you can query across multiple event data stores as long as all event data stores exist in your account.
1218
+ .. epigraph::
1219
+
1220
+ When a query uses ``?`` with ``eventTime`` , ``?`` must be surrounded by single quotes as follows: ``'?'`` .
1192
1221
 
1193
1222
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-dashboard-widget.html#cfn-cloudtrail-dashboard-widget-querystatement
1194
1223
  '''
@@ -1198,9 +1227,9 @@ class CfnDashboard(
1198
1227
 
1199
1228
  @builtins.property
1200
1229
  def query_parameters(self) -> typing.Optional[typing.List[builtins.str]]:
1201
- '''The placeholder keys in the QueryStatement.
1230
+ '''The optional query parameters.
1202
1231
 
1203
- For example: $StartTime$, $EndTime$, $Period$.
1232
+ The following query parameters are valid: ``$StartTime$`` , ``$EndTime$`` , and ``$Period$`` .
1204
1233
 
1205
1234
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-dashboard-widget.html#cfn-cloudtrail-dashboard-widget-queryparameters
1206
1235
  '''
@@ -1211,7 +1240,9 @@ class CfnDashboard(
1211
1240
  def view_properties(
1212
1241
  self,
1213
1242
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, builtins.str]]]:
1214
- '''The view properties of the widget.
1243
+ '''The view properties for the widget.
1244
+
1245
+ For more information about view properties, see `View properties for widgets <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-widget-properties.html>`_ in the *AWS CloudTrail User Guide* .
1215
1246
 
1216
1247
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-dashboard-widget.html#cfn-cloudtrail-dashboard-widget-viewproperties
1217
1248
  '''
@@ -1253,11 +1284,11 @@ class CfnDashboardProps:
1253
1284
  ) -> None:
1254
1285
  '''Properties for defining a ``CfnDashboard``.
1255
1286
 
1256
- :param name: The name of the dashboard.
1257
- :param refresh_schedule: Configures the automatic refresh schedule for the dashboard. Includes the frequency unit (DAYS or HOURS) and value, as well as the status (ENABLED or DISABLED) of the refresh schedule.
1258
- :param tags:
1259
- :param termination_protection_enabled: Indicates whether the dashboard is protected from termination.
1260
- :param widgets: List of widgets on the dashboard.
1287
+ :param name: The name of the dashboard. The name must be unique to your account. To create the Highlights dashboard, the name must be ``AWSCloudTrail-Highlights`` .
1288
+ :param refresh_schedule: The schedule for a dashboard refresh.
1289
+ :param tags: A list of tags.
1290
+ :param termination_protection_enabled: Specifies whether termination protection is enabled for the dashboard. If termination protection is enabled, you cannot delete the dashboard until termination protection is disabled.
1291
+ :param widgets: An array of widgets for a custom dashboard. A custom dashboard can have a maximum of ten widgets. You do not need to specify widgets for the Highlights dashboard.
1261
1292
 
1262
1293
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-dashboard.html
1263
1294
  :exampleMetadata: fixture=_generated
@@ -1315,7 +1346,9 @@ class CfnDashboardProps:
1315
1346
 
1316
1347
  @builtins.property
1317
1348
  def name(self) -> typing.Optional[builtins.str]:
1318
- '''The name of the dashboard.
1349
+ '''The name of the dashboard. The name must be unique to your account.
1350
+
1351
+ To create the Highlights dashboard, the name must be ``AWSCloudTrail-Highlights`` .
1319
1352
 
1320
1353
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-dashboard.html#cfn-cloudtrail-dashboard-name
1321
1354
  '''
@@ -1326,9 +1359,7 @@ class CfnDashboardProps:
1326
1359
  def refresh_schedule(
1327
1360
  self,
1328
1361
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnDashboard.RefreshScheduleProperty]]:
1329
- '''Configures the automatic refresh schedule for the dashboard.
1330
-
1331
- Includes the frequency unit (DAYS or HOURS) and value, as well as the status (ENABLED or DISABLED) of the refresh schedule.
1362
+ '''The schedule for a dashboard refresh.
1332
1363
 
1333
1364
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-dashboard.html#cfn-cloudtrail-dashboard-refreshschedule
1334
1365
  '''
@@ -1337,7 +1368,8 @@ class CfnDashboardProps:
1337
1368
 
1338
1369
  @builtins.property
1339
1370
  def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
1340
- '''
1371
+ '''A list of tags.
1372
+
1341
1373
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-dashboard.html#cfn-cloudtrail-dashboard-tags
1342
1374
  '''
1343
1375
  result = self._values.get("tags")
@@ -1347,7 +1379,9 @@ class CfnDashboardProps:
1347
1379
  def termination_protection_enabled(
1348
1380
  self,
1349
1381
  ) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
1350
- '''Indicates whether the dashboard is protected from termination.
1382
+ '''Specifies whether termination protection is enabled for the dashboard.
1383
+
1384
+ If termination protection is enabled, you cannot delete the dashboard until termination protection is disabled.
1351
1385
 
1352
1386
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-dashboard.html#cfn-cloudtrail-dashboard-terminationprotectionenabled
1353
1387
  '''
@@ -1358,7 +1392,9 @@ class CfnDashboardProps:
1358
1392
  def widgets(
1359
1393
  self,
1360
1394
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnDashboard.WidgetProperty]]]]:
1361
- '''List of widgets on the dashboard.
1395
+ '''An array of widgets for a custom dashboard. A custom dashboard can have a maximum of ten widgets.
1396
+
1397
+ You do not need to specify widgets for the Highlights dashboard.
1362
1398
 
1363
1399
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-dashboard.html#cfn-cloudtrail-dashboard-widgets
1364
1400
  '''
@@ -2552,7 +2588,7 @@ class CfnResourcePolicy(
2552
2588
  metaclass=jsii.JSIIMeta,
2553
2589
  jsii_type="aws-cdk-lib.aws_cloudtrail.CfnResourcePolicy",
2554
2590
  ):
2555
- '''Attaches a resource-based permission policy to a CloudTrail channel that is used for an integration with an event source outside of AWS .
2591
+ '''Attaches a resource-based permission policy to a CloudTrail event data store, dashboard, or channel.
2556
2592
 
2557
2593
  For more information about resource-based policies, see `CloudTrail resource-based policy examples <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/security_iam_resource-based-policy-examples.html>`_ in the *CloudTrail User Guide* .
2558
2594
 
@@ -2585,8 +2621,8 @@ class CfnResourcePolicy(
2585
2621
  '''
2586
2622
  :param scope: Scope in which this resource is defined.
2587
2623
  :param id: Construct identifier for this resource (unique in its scope).
2588
- :param resource_arn: The Amazon Resource Name (ARN) of the CloudTrail channel attached to the resource-based policy. The following is the format of a resource ARN: ``arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel`` .
2589
- :param resource_policy: A JSON-formatted string for an AWS resource-based policy. The following are requirements for the resource policy: - Contains only one action: cloudtrail-data:PutAuditEvents - Contains at least one statement. The policy can have a maximum of 20 statements. - Each statement contains at least one principal. A statement can have a maximum of 50 principals.
2624
+ :param resource_arn: The Amazon Resource Name (ARN) of the CloudTrail event data store, dashboard, or channel attached to the resource-based policy. Example event data store ARN format: ``arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE`` Example dashboard ARN format: ``arn:aws:cloudtrail:us-east-1:123456789012:dashboard/exampleDash`` Example channel ARN format: ``arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890``
2625
+ :param resource_policy: A JSON-formatted string for an AWS resource-based policy. For example resource-based policies, see `CloudTrail resource-based policy examples <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/security_iam_resource-based-policy-examples.html>`_ in the *CloudTrail User Guide* .
2590
2626
  '''
2591
2627
  if __debug__:
2592
2628
  type_hints = typing.get_type_hints(_typecheckingstub__e63ea1d0937535109b462c5587b69e94988e2caeb02b49177c8a53040c569033)
@@ -2636,7 +2672,7 @@ class CfnResourcePolicy(
2636
2672
  @builtins.property
2637
2673
  @jsii.member(jsii_name="resourceArn")
2638
2674
  def resource_arn(self) -> builtins.str:
2639
- '''The Amazon Resource Name (ARN) of the CloudTrail channel attached to the resource-based policy.'''
2675
+ '''The Amazon Resource Name (ARN) of the CloudTrail event data store, dashboard, or channel attached to the resource-based policy.'''
2640
2676
  return typing.cast(builtins.str, jsii.get(self, "resourceArn"))
2641
2677
 
2642
2678
  @resource_arn.setter
@@ -2674,8 +2710,8 @@ class CfnResourcePolicyProps:
2674
2710
  ) -> None:
2675
2711
  '''Properties for defining a ``CfnResourcePolicy``.
2676
2712
 
2677
- :param resource_arn: The Amazon Resource Name (ARN) of the CloudTrail channel attached to the resource-based policy. The following is the format of a resource ARN: ``arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel`` .
2678
- :param resource_policy: A JSON-formatted string for an AWS resource-based policy. The following are requirements for the resource policy: - Contains only one action: cloudtrail-data:PutAuditEvents - Contains at least one statement. The policy can have a maximum of 20 statements. - Each statement contains at least one principal. A statement can have a maximum of 50 principals.
2713
+ :param resource_arn: The Amazon Resource Name (ARN) of the CloudTrail event data store, dashboard, or channel attached to the resource-based policy. Example event data store ARN format: ``arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE`` Example dashboard ARN format: ``arn:aws:cloudtrail:us-east-1:123456789012:dashboard/exampleDash`` Example channel ARN format: ``arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890``
2714
+ :param resource_policy: A JSON-formatted string for an AWS resource-based policy. For example resource-based policies, see `CloudTrail resource-based policy examples <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/security_iam_resource-based-policy-examples.html>`_ in the *CloudTrail User Guide* .
2679
2715
 
2680
2716
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-resourcepolicy.html
2681
2717
  :exampleMetadata: fixture=_generated
@@ -2704,9 +2740,13 @@ class CfnResourcePolicyProps:
2704
2740
 
2705
2741
  @builtins.property
2706
2742
  def resource_arn(self) -> builtins.str:
2707
- '''The Amazon Resource Name (ARN) of the CloudTrail channel attached to the resource-based policy.
2743
+ '''The Amazon Resource Name (ARN) of the CloudTrail event data store, dashboard, or channel attached to the resource-based policy.
2744
+
2745
+ Example event data store ARN format: ``arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE``
2708
2746
 
2709
- The following is the format of a resource ARN: ``arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel`` .
2747
+ Example dashboard ARN format: ``arn:aws:cloudtrail:us-east-1:123456789012:dashboard/exampleDash``
2748
+
2749
+ Example channel ARN format: ``arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890``
2710
2750
 
2711
2751
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-resourcepolicy.html#cfn-cloudtrail-resourcepolicy-resourcearn
2712
2752
  '''
@@ -2718,11 +2758,7 @@ class CfnResourcePolicyProps:
2718
2758
  def resource_policy(self) -> typing.Any:
2719
2759
  '''A JSON-formatted string for an AWS resource-based policy.
2720
2760
 
2721
- The following are requirements for the resource policy:
2722
-
2723
- - Contains only one action: cloudtrail-data:PutAuditEvents
2724
- - Contains at least one statement. The policy can have a maximum of 20 statements.
2725
- - Each statement contains at least one principal. A statement can have a maximum of 50 principals.
2761
+ For example resource-based policies, see `CloudTrail resource-based policy examples <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/security_iam_resource-based-policy-examples.html>`_ in the *CloudTrail User Guide* .
2726
2762
 
2727
2763
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-resourcepolicy.html#cfn-cloudtrail-resourcepolicy-resourcepolicy
2728
2764
  '''
@@ -8308,16 +8308,21 @@ class MathExpression(
8308
8308
 
8309
8309
  Example::
8310
8310
 
8311
- # fn: lambda.Function
8312
-
8311
+ # matchmaking_rule_set: gamelift.MatchmakingRuleSet
8313
8312
 
8314
- all_problems = cloudwatch.MathExpression(
8315
- expression="errors + throttles",
8313
+ # Alarm that triggers when the per-second average of not placed matches exceed 10%
8314
+ rule_evaluation_ratio = cloudwatch.MathExpression(
8315
+ expression="1 - (ruleEvaluationsPassed / ruleEvaluationsFailed)",
8316
8316
  using_metrics={
8317
- "errors": fn.metric_errors(),
8318
- "throttles": fn.metric_throttles()
8317
+ "rule_evaluations_passed": matchmaking_rule_set.metric_rule_evaluations_passed(statistic=cloudwatch.Statistic.SUM),
8318
+ "rule_evaluations_failed": matchmaking_rule_set.metric("ruleEvaluationsFailed")
8319
8319
  }
8320
8320
  )
8321
+ cloudwatch.Alarm(self, "Alarm",
8322
+ metric=rule_evaluation_ratio,
8323
+ threshold=0.1,
8324
+ evaluation_periods=3
8325
+ )
8321
8326
  '''
8322
8327
 
8323
8328
  def __init__(
@@ -8333,7 +8338,7 @@ class MathExpression(
8333
8338
  ) -> None:
8334
8339
  '''
8335
8340
  :param expression: The expression defining the metric. When an expression contains a SEARCH function, it cannot be used within an Alarm.
8336
- :param using_metrics: The metrics used in the expression, in a map. The key is the identifier that represents the given metric in the expression, and the value is the actual Metric object. Default: - Empty map.
8341
+ :param using_metrics: The metrics used in the expression, in a map. The key is the identifier that represents the given metric in the expression, and the value is the actual Metric object. The ``period`` of each metric in ``usingMetrics`` is ignored and instead overridden by the ``period`` specified for the ``MathExpression`` construct. Even if no ``period`` is specified for the ``MathExpression``, it will be overridden by the default value (``Duration.minutes(5)``). Example:: declare const metrics: elbv2.IApplicationLoadBalancerMetrics; new cloudwatch.MathExpression({ expression: 'm1+m2', label: 'AlbErrors', usingMetrics: { m1: metrics.custom('HTTPCode_ELB_500_Count', { period: Duration.minutes(1), // <- This period will be ignored statistic: 'Sum', label: 'HTTPCode_ELB_500_Count', }), m2: metrics.custom('HTTPCode_ELB_502_Count', { period: Duration.minutes(1), // <- This period will be ignored statistic: 'Sum', label: 'HTTPCode_ELB_502_Count', }), }, period: Duration.minutes(3), // <- This overrides the period of each metric in `usingMetrics` // (Even if not specified, it is overridden by the default value) }); Default: - Empty map.
8337
8342
  :param color: Color for this metric when added to a Graph in a Dashboard. Default: - Automatic color
8338
8343
  :param label: Label for this expression when added to a Graph in a Dashboard. If this expression evaluates to more than one time series (for example, through the use of ``METRICS()`` or ``SEARCH()`` expressions), each time series will appear in the graph using a combination of the expression label and the individual metric label. Specify the empty string (``''``) to suppress the expression label and only keep the metric label. You can use `dynamic labels <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html>`_ to show summary information about the displayed time series in the legend. For example, if you use:: [max: ${MAX}] MyMetric As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend. If the math expression produces more than one time series, the maximum will be shown for each individual time series produce by this math expression. Default: - Expression value is used as label
8339
8344
  :param period: The period over which the expression's statistics are applied. This period overrides all periods in the metrics used in this math expression. Default: Duration.minutes(5)
@@ -8688,22 +8693,27 @@ class MathExpressionProps(MathExpressionOptions):
8688
8693
  :param search_account: Account to evaluate search expressions within. Specifying a searchAccount has no effect to the account used for metrics within the expression (passed via usingMetrics). Default: - Deployment account.
8689
8694
  :param search_region: Region to evaluate search expressions within. Specifying a searchRegion has no effect to the region used for metrics within the expression (passed via usingMetrics). Default: - Deployment region.
8690
8695
  :param expression: The expression defining the metric. When an expression contains a SEARCH function, it cannot be used within an Alarm.
8691
- :param using_metrics: The metrics used in the expression, in a map. The key is the identifier that represents the given metric in the expression, and the value is the actual Metric object. Default: - Empty map.
8696
+ :param using_metrics: The metrics used in the expression, in a map. The key is the identifier that represents the given metric in the expression, and the value is the actual Metric object. The ``period`` of each metric in ``usingMetrics`` is ignored and instead overridden by the ``period`` specified for the ``MathExpression`` construct. Even if no ``period`` is specified for the ``MathExpression``, it will be overridden by the default value (``Duration.minutes(5)``). Example:: declare const metrics: elbv2.IApplicationLoadBalancerMetrics; new cloudwatch.MathExpression({ expression: 'm1+m2', label: 'AlbErrors', usingMetrics: { m1: metrics.custom('HTTPCode_ELB_500_Count', { period: Duration.minutes(1), // <- This period will be ignored statistic: 'Sum', label: 'HTTPCode_ELB_500_Count', }), m2: metrics.custom('HTTPCode_ELB_502_Count', { period: Duration.minutes(1), // <- This period will be ignored statistic: 'Sum', label: 'HTTPCode_ELB_502_Count', }), }, period: Duration.minutes(3), // <- This overrides the period of each metric in `usingMetrics` // (Even if not specified, it is overridden by the default value) }); Default: - Empty map.
8692
8697
 
8693
8698
  :exampleMetadata: infused
8694
8699
 
8695
8700
  Example::
8696
8701
 
8697
- # fn: lambda.Function
8698
-
8702
+ # matchmaking_rule_set: gamelift.MatchmakingRuleSet
8699
8703
 
8700
- all_problems = cloudwatch.MathExpression(
8701
- expression="errors + throttles",
8704
+ # Alarm that triggers when the per-second average of not placed matches exceed 10%
8705
+ rule_evaluation_ratio = cloudwatch.MathExpression(
8706
+ expression="1 - (ruleEvaluationsPassed / ruleEvaluationsFailed)",
8702
8707
  using_metrics={
8703
- "errors": fn.metric_errors(),
8704
- "throttles": fn.metric_throttles()
8708
+ "rule_evaluations_passed": matchmaking_rule_set.metric_rule_evaluations_passed(statistic=cloudwatch.Statistic.SUM),
8709
+ "rule_evaluations_failed": matchmaking_rule_set.metric("ruleEvaluationsFailed")
8705
8710
  }
8706
8711
  )
8712
+ cloudwatch.Alarm(self, "Alarm",
8713
+ metric=rule_evaluation_ratio,
8714
+ threshold=0.1,
8715
+ evaluation_periods=3
8716
+ )
8707
8717
  '''
8708
8718
  if __debug__:
8709
8719
  type_hints = typing.get_type_hints(_typecheckingstub__7cfb588e44acd0977aa0e09f00c3e2435bad84385ab7b6d163b332963d844e0a)
@@ -8821,6 +8831,33 @@ class MathExpressionProps(MathExpressionOptions):
8821
8831
  The key is the identifier that represents the given metric in the
8822
8832
  expression, and the value is the actual Metric object.
8823
8833
 
8834
+ The ``period`` of each metric in ``usingMetrics`` is ignored and instead overridden
8835
+ by the ``period`` specified for the ``MathExpression`` construct. Even if no ``period``
8836
+ is specified for the ``MathExpression``, it will be overridden by the default
8837
+ value (``Duration.minutes(5)``).
8838
+
8839
+ Example::
8840
+
8841
+ # metrics: elbv2.IApplicationLoadBalancerMetrics
8842
+
8843
+ cloudwatch.MathExpression(
8844
+ expression="m1+m2",
8845
+ label="AlbErrors",
8846
+ using_metrics={
8847
+ "m1": metrics.custom("HTTPCode_ELB_500_Count",
8848
+ period=Duration.minutes(1), # <- This period will be ignored
8849
+ statistic="Sum",
8850
+ label="HTTPCode_ELB_500_Count"
8851
+ ),
8852
+ "m2": metrics.custom("HTTPCode_ELB_502_Count",
8853
+ period=Duration.minutes(1), # <- This period will be ignored
8854
+ statistic="Sum",
8855
+ label="HTTPCode_ELB_502_Count"
8856
+ )
8857
+ },
8858
+ period=Duration.minutes(3)
8859
+ )
8860
+
8824
8861
  :default: - Empty map.
8825
8862
  '''
8826
8863
  result = self._values.get("using_metrics")