aws-cdk-lib 2.207.0__py3-none-any.whl → 2.208.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.207.0.jsii.tgz → aws-cdk-lib@2.208.0.jsii.tgz} +0 -0
- aws_cdk/aws_aiops/__init__.py +16 -12
- aws_cdk/aws_amazonmq/__init__.py +8 -18
- aws_cdk/aws_appstream/__init__.py +36 -4
- aws_cdk/aws_bedrock/__init__.py +191 -72
- aws_cdk/aws_certificatemanager/__init__.py +45 -0
- aws_cdk/aws_cloudfront/__init__.py +12 -2
- aws_cdk/aws_connect/__init__.py +107 -3
- aws_cdk/aws_customerprofiles/__init__.py +27 -22
- aws_cdk/aws_docdb/__init__.py +5 -3
- aws_cdk/aws_ec2/__init__.py +53 -11
- aws_cdk/aws_ecs/__init__.py +118 -29
- aws_cdk/aws_events/__init__.py +142 -0
- aws_cdk/aws_gamelift/__init__.py +2 -2
- aws_cdk/aws_guardduty/__init__.py +86 -0
- aws_cdk/aws_kinesisfirehose/__init__.py +377 -4
- aws_cdk/aws_logs/__init__.py +53 -4
- aws_cdk/aws_mediapackagev2/__init__.py +881 -0
- aws_cdk/aws_omics/__init__.py +13 -10
- aws_cdk/aws_quicksight/__init__.py +111 -4
- aws_cdk/aws_rds/__init__.py +208 -10
- aws_cdk/aws_s3/__init__.py +775 -5
- aws_cdk/aws_s3express/__init__.py +61 -3
- aws_cdk/aws_s3tables/__init__.py +254 -0
- aws_cdk/aws_sagemaker/__init__.py +524 -137
- aws_cdk/aws_ssm/__init__.py +48 -0
- aws_cdk/aws_transfer/__init__.py +49 -0
- aws_cdk/aws_wisdom/__init__.py +1185 -100
- {aws_cdk_lib-2.207.0.dist-info → aws_cdk_lib-2.208.0.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.207.0.dist-info → aws_cdk_lib-2.208.0.dist-info}/RECORD +35 -35
- {aws_cdk_lib-2.207.0.dist-info → aws_cdk_lib-2.208.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.207.0.dist-info → aws_cdk_lib-2.208.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.207.0.dist-info → aws_cdk_lib-2.208.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.207.0.dist-info → aws_cdk_lib-2.208.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_logs/__init__.py
CHANGED
|
@@ -221,7 +221,6 @@ the name `Namespace/MetricName`.
|
|
|
221
221
|
|
|
222
222
|
You can expose a metric on a metric filter by calling the `MetricFilter.metric()` API.
|
|
223
223
|
This has a default of `statistic = 'avg'` if the statistic is not set in the `props`.
|
|
224
|
-
Additionally, if the metric filter was created with a dimension map, those dimensions will be included in the metric.
|
|
225
224
|
|
|
226
225
|
```python
|
|
227
226
|
# log_group: logs.LogGroup
|
|
@@ -418,6 +417,8 @@ logs.QueryDefinition(self, "QueryDefinition",
|
|
|
418
417
|
],
|
|
419
418
|
filter_statements=["loggingType = \"ERROR\"", "loggingMessage = \"A very strange error occurred!\""
|
|
420
419
|
],
|
|
420
|
+
stats_statements=["count(loggingMessage) as loggingErrors", "count(differentLoggingMessage) as differentLoggingErrors"
|
|
421
|
+
],
|
|
421
422
|
sort="@timestamp desc",
|
|
422
423
|
limit=20
|
|
423
424
|
)
|
|
@@ -15055,6 +15056,8 @@ class QueryDefinition(
|
|
|
15055
15056
|
],
|
|
15056
15057
|
filter_statements=["loggingType = \"ERROR\"", "loggingMessage = \"A very strange error occurred!\""
|
|
15057
15058
|
],
|
|
15059
|
+
stats_statements=["count(loggingMessage) as loggingErrors", "count(differentLoggingMessage) as differentLoggingErrors"
|
|
15060
|
+
],
|
|
15058
15061
|
sort="@timestamp desc",
|
|
15059
15062
|
limit=20
|
|
15060
15063
|
)
|
|
@@ -15140,6 +15143,8 @@ class QueryDefinitionProps:
|
|
|
15140
15143
|
],
|
|
15141
15144
|
filter_statements=["loggingType = \"ERROR\"", "loggingMessage = \"A very strange error occurred!\""
|
|
15142
15145
|
],
|
|
15146
|
+
stats_statements=["count(loggingMessage) as loggingErrors", "count(differentLoggingMessage) as differentLoggingErrors"
|
|
15147
|
+
],
|
|
15143
15148
|
sort="@timestamp desc",
|
|
15144
15149
|
limit=20
|
|
15145
15150
|
)
|
|
@@ -15210,6 +15215,8 @@ class QueryString(
|
|
|
15210
15215
|
],
|
|
15211
15216
|
filter_statements=["loggingType = \"ERROR\"", "loggingMessage = \"A very strange error occurred!\""
|
|
15212
15217
|
],
|
|
15218
|
+
stats_statements=["count(loggingMessage) as loggingErrors", "count(differentLoggingMessage) as differentLoggingErrors"
|
|
15219
|
+
],
|
|
15213
15220
|
sort="@timestamp desc",
|
|
15214
15221
|
limit=20
|
|
15215
15222
|
)
|
|
@@ -15228,6 +15235,7 @@ class QueryString(
|
|
|
15228
15235
|
parse_statements: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
15229
15236
|
sort: typing.Optional[builtins.str] = None,
|
|
15230
15237
|
stats: typing.Optional[builtins.str] = None,
|
|
15238
|
+
stats_statements: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
15231
15239
|
) -> None:
|
|
15232
15240
|
'''
|
|
15233
15241
|
:param display: Specifies which fields to display in the query results. Default: - no display in QueryString
|
|
@@ -15238,7 +15246,8 @@ class QueryString(
|
|
|
15238
15246
|
:param parse: (deprecated) A single statement for parsing data from a log field and creating ephemeral fields that can be processed further in the query. Default: - no parse in QueryString
|
|
15239
15247
|
:param parse_statements: An array of one or more statements for parsing data from a log field and creating ephemeral fields that can be processed further in the query. Each provided statement generates a separate parse line in the query string. Note: If provided, this property overrides any value provided for the ``parse`` property. Default: - no parse in QueryString
|
|
15240
15248
|
:param sort: Sorts the retrieved log events. Default: - no sort in QueryString
|
|
15241
|
-
:param stats:
|
|
15249
|
+
:param stats: (deprecated) A single statement for using log field values to calculate aggregate statistics. Default: - no stats in QueryString
|
|
15250
|
+
:param stats_statements: An array of one or more statements for calculating aggregate statistics. CloudWatch Logs Insights supports up to two stats commands in a single query. Each provided statement generates a separate stats line in the query string. Note: If provided, this property overrides any value provided for the ``stats`` property. Default: - no stats in QueryString
|
|
15242
15251
|
'''
|
|
15243
15252
|
props = QueryStringProps(
|
|
15244
15253
|
display=display,
|
|
@@ -15250,6 +15259,7 @@ class QueryString(
|
|
|
15250
15259
|
parse_statements=parse_statements,
|
|
15251
15260
|
sort=sort,
|
|
15252
15261
|
stats=stats,
|
|
15262
|
+
stats_statements=stats_statements,
|
|
15253
15263
|
)
|
|
15254
15264
|
|
|
15255
15265
|
jsii.create(self.__class__, self, [props])
|
|
@@ -15259,6 +15269,18 @@ class QueryString(
|
|
|
15259
15269
|
'''String representation of this QueryString.'''
|
|
15260
15270
|
return typing.cast(builtins.str, jsii.invoke(self, "toString", []))
|
|
15261
15271
|
|
|
15272
|
+
@builtins.property
|
|
15273
|
+
@jsii.member(jsii_name="hasStatsAndStatsStatements")
|
|
15274
|
+
def has_stats_and_stats_statements(self) -> builtins.bool:
|
|
15275
|
+
'''If the props for the query string have both stats and statsStatements.'''
|
|
15276
|
+
return typing.cast(builtins.bool, jsii.get(self, "hasStatsAndStatsStatements"))
|
|
15277
|
+
|
|
15278
|
+
@builtins.property
|
|
15279
|
+
@jsii.member(jsii_name="statsStatementsLength")
|
|
15280
|
+
def stats_statements_length(self) -> typing.Optional[jsii.Number]:
|
|
15281
|
+
'''Length of statsStatements.'''
|
|
15282
|
+
return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "statsStatementsLength"))
|
|
15283
|
+
|
|
15262
15284
|
|
|
15263
15285
|
@jsii.data_type(
|
|
15264
15286
|
jsii_type="aws-cdk-lib.aws_logs.QueryStringProps",
|
|
@@ -15273,6 +15295,7 @@ class QueryString(
|
|
|
15273
15295
|
"parse_statements": "parseStatements",
|
|
15274
15296
|
"sort": "sort",
|
|
15275
15297
|
"stats": "stats",
|
|
15298
|
+
"stats_statements": "statsStatements",
|
|
15276
15299
|
},
|
|
15277
15300
|
)
|
|
15278
15301
|
class QueryStringProps:
|
|
@@ -15288,6 +15311,7 @@ class QueryStringProps:
|
|
|
15288
15311
|
parse_statements: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
15289
15312
|
sort: typing.Optional[builtins.str] = None,
|
|
15290
15313
|
stats: typing.Optional[builtins.str] = None,
|
|
15314
|
+
stats_statements: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
15291
15315
|
) -> None:
|
|
15292
15316
|
'''Properties for a QueryString.
|
|
15293
15317
|
|
|
@@ -15299,7 +15323,8 @@ class QueryStringProps:
|
|
|
15299
15323
|
:param parse: (deprecated) A single statement for parsing data from a log field and creating ephemeral fields that can be processed further in the query. Default: - no parse in QueryString
|
|
15300
15324
|
:param parse_statements: An array of one or more statements for parsing data from a log field and creating ephemeral fields that can be processed further in the query. Each provided statement generates a separate parse line in the query string. Note: If provided, this property overrides any value provided for the ``parse`` property. Default: - no parse in QueryString
|
|
15301
15325
|
:param sort: Sorts the retrieved log events. Default: - no sort in QueryString
|
|
15302
|
-
:param stats:
|
|
15326
|
+
:param stats: (deprecated) A single statement for using log field values to calculate aggregate statistics. Default: - no stats in QueryString
|
|
15327
|
+
:param stats_statements: An array of one or more statements for calculating aggregate statistics. CloudWatch Logs Insights supports up to two stats commands in a single query. Each provided statement generates a separate stats line in the query string. Note: If provided, this property overrides any value provided for the ``stats`` property. Default: - no stats in QueryString
|
|
15303
15328
|
|
|
15304
15329
|
:exampleMetadata: infused
|
|
15305
15330
|
|
|
@@ -15313,6 +15338,8 @@ class QueryStringProps:
|
|
|
15313
15338
|
],
|
|
15314
15339
|
filter_statements=["loggingType = \"ERROR\"", "loggingMessage = \"A very strange error occurred!\""
|
|
15315
15340
|
],
|
|
15341
|
+
stats_statements=["count(loggingMessage) as loggingErrors", "count(differentLoggingMessage) as differentLoggingErrors"
|
|
15342
|
+
],
|
|
15316
15343
|
sort="@timestamp desc",
|
|
15317
15344
|
limit=20
|
|
15318
15345
|
)
|
|
@@ -15329,6 +15356,7 @@ class QueryStringProps:
|
|
|
15329
15356
|
check_type(argname="argument parse_statements", value=parse_statements, expected_type=type_hints["parse_statements"])
|
|
15330
15357
|
check_type(argname="argument sort", value=sort, expected_type=type_hints["sort"])
|
|
15331
15358
|
check_type(argname="argument stats", value=stats, expected_type=type_hints["stats"])
|
|
15359
|
+
check_type(argname="argument stats_statements", value=stats_statements, expected_type=type_hints["stats_statements"])
|
|
15332
15360
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
15333
15361
|
if display is not None:
|
|
15334
15362
|
self._values["display"] = display
|
|
@@ -15348,6 +15376,8 @@ class QueryStringProps:
|
|
|
15348
15376
|
self._values["sort"] = sort
|
|
15349
15377
|
if stats is not None:
|
|
15350
15378
|
self._values["stats"] = stats
|
|
15379
|
+
if stats_statements is not None:
|
|
15380
|
+
self._values["stats_statements"] = stats_statements
|
|
15351
15381
|
|
|
15352
15382
|
@builtins.property
|
|
15353
15383
|
def display(self) -> typing.Optional[builtins.str]:
|
|
@@ -15440,13 +15470,31 @@ class QueryStringProps:
|
|
|
15440
15470
|
|
|
15441
15471
|
@builtins.property
|
|
15442
15472
|
def stats(self) -> typing.Optional[builtins.str]:
|
|
15443
|
-
'''
|
|
15473
|
+
'''(deprecated) A single statement for using log field values to calculate aggregate statistics.
|
|
15444
15474
|
|
|
15445
15475
|
:default: - no stats in QueryString
|
|
15476
|
+
|
|
15477
|
+
:deprecated: Use ``statsStatements`` instead
|
|
15478
|
+
|
|
15479
|
+
:stability: deprecated
|
|
15446
15480
|
'''
|
|
15447
15481
|
result = self._values.get("stats")
|
|
15448
15482
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
15449
15483
|
|
|
15484
|
+
@builtins.property
|
|
15485
|
+
def stats_statements(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
15486
|
+
'''An array of one or more statements for calculating aggregate statistics.
|
|
15487
|
+
|
|
15488
|
+
CloudWatch Logs Insights supports up to two stats commands in a single query.
|
|
15489
|
+
Each provided statement generates a separate stats line in the query string.
|
|
15490
|
+
|
|
15491
|
+
Note: If provided, this property overrides any value provided for the ``stats`` property.
|
|
15492
|
+
|
|
15493
|
+
:default: - no stats in QueryString
|
|
15494
|
+
'''
|
|
15495
|
+
result = self._values.get("stats_statements")
|
|
15496
|
+
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
15497
|
+
|
|
15450
15498
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
15451
15499
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
15452
15500
|
|
|
@@ -19645,6 +19693,7 @@ def _typecheckingstub__d205eb2ac9b46de0083e3387b95b00f2362e2ade91d5c581e5d8cde68
|
|
|
19645
19693
|
parse_statements: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
19646
19694
|
sort: typing.Optional[builtins.str] = None,
|
|
19647
19695
|
stats: typing.Optional[builtins.str] = None,
|
|
19696
|
+
stats_statements: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
19648
19697
|
) -> None:
|
|
19649
19698
|
"""Type checking stubs"""
|
|
19650
19699
|
pass
|