aws-cdk-lib 2.200.1__py3-none-any.whl → 2.201.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.

Files changed (53) hide show
  1. aws_cdk/__init__.py +105 -13
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.200.1.jsii.tgz → aws-cdk-lib@2.201.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_amazonmq/__init__.py +2 -3
  5. aws_cdk/aws_amplify/__init__.py +3 -3
  6. aws_cdk/aws_apigateway/__init__.py +21 -17
  7. aws_cdk/aws_apigatewayv2/__init__.py +87 -45
  8. aws_cdk/aws_appconfig/__init__.py +38 -1
  9. aws_cdk/aws_appsync/__init__.py +10 -10
  10. aws_cdk/aws_athena/__init__.py +226 -0
  11. aws_cdk/aws_autoscaling/__init__.py +38 -37
  12. aws_cdk/aws_bedrock/__init__.py +5108 -1571
  13. aws_cdk/aws_cloudfront/__init__.py +8 -0
  14. aws_cdk/aws_cloudtrail/__init__.py +178 -0
  15. aws_cdk/aws_cloudwatch/__init__.py +7 -3
  16. aws_cdk/aws_codepipeline_actions/__init__.py +746 -0
  17. aws_cdk/aws_connect/__init__.py +5 -5
  18. aws_cdk/aws_customerprofiles/__init__.py +377 -8
  19. aws_cdk/aws_datasync/__init__.py +189 -160
  20. aws_cdk/aws_datazone/__init__.py +512 -170
  21. aws_cdk/aws_deadline/__init__.py +32 -4
  22. aws_cdk/aws_dsql/__init__.py +150 -10
  23. aws_cdk/aws_ec2/__init__.py +793 -56
  24. aws_cdk/aws_ecs/__init__.py +94 -11
  25. aws_cdk/aws_efs/__init__.py +92 -12
  26. aws_cdk/aws_eks/__init__.py +166 -19
  27. aws_cdk/aws_elasticloadbalancingv2/__init__.py +2 -2
  28. aws_cdk/aws_emr/__init__.py +10 -4
  29. aws_cdk/aws_entityresolution/__init__.py +25 -10
  30. aws_cdk/aws_evs/__init__.py +2204 -0
  31. aws_cdk/aws_fsx/__init__.py +7 -7
  32. aws_cdk/aws_lambda/__init__.py +409 -32
  33. aws_cdk/aws_lightsail/__init__.py +17 -13
  34. aws_cdk/aws_logs/__init__.py +1 -0
  35. aws_cdk/aws_networkfirewall/__init__.py +562 -0
  36. aws_cdk/aws_opensearchservice/__init__.py +3 -3
  37. aws_cdk/aws_opsworkscm/__init__.py +9 -43
  38. aws_cdk/aws_rds/__init__.py +284 -87
  39. aws_cdk/aws_s3/__init__.py +23 -15
  40. aws_cdk/aws_sagemaker/__init__.py +223 -3
  41. aws_cdk/aws_securityhub/__init__.py +18 -34
  42. aws_cdk/aws_ssm/__init__.py +83 -1
  43. aws_cdk/aws_stepfunctions/__init__.py +235 -45
  44. aws_cdk/aws_synthetics/__init__.py +74 -0
  45. aws_cdk/aws_transfer/__init__.py +3 -3
  46. aws_cdk/aws_verifiedpermissions/__init__.py +17 -6
  47. aws_cdk/aws_wafv2/__init__.py +39 -2
  48. {aws_cdk_lib-2.200.1.dist-info → aws_cdk_lib-2.201.0.dist-info}/METADATA +2 -2
  49. {aws_cdk_lib-2.200.1.dist-info → aws_cdk_lib-2.201.0.dist-info}/RECORD +53 -52
  50. {aws_cdk_lib-2.200.1.dist-info → aws_cdk_lib-2.201.0.dist-info}/LICENSE +0 -0
  51. {aws_cdk_lib-2.200.1.dist-info → aws_cdk_lib-2.201.0.dist-info}/NOTICE +0 -0
  52. {aws_cdk_lib-2.200.1.dist-info → aws_cdk_lib-2.201.0.dist-info}/WHEEL +0 -0
  53. {aws_cdk_lib-2.200.1.dist-info → aws_cdk_lib-2.201.0.dist-info}/top_level.txt +0 -0
@@ -1289,6 +1289,14 @@ cloudfront.KeyGroup(self, "MyKeyGroup",
1289
1289
  )
1290
1290
  ```
1291
1291
 
1292
+ When using a CloudFront PublicKey, only the `comment` field can be updated after creation. Fields such as `encodedKey` and `publicKeyName` are immutable, as outlined in the [API Reference](https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_UpdatePublicKey.html). Attempting to modify these fields will result in an error:
1293
+
1294
+ ```
1295
+ Resource handler returned message: "Invalid request provided: AWS::CloudFront::PublicKey"
1296
+ ```
1297
+
1298
+ To update the `encodedKey`, you must change the logical ID of the public key resource in your template. This causes CloudFormation to create a new `cloudfront.PublicKey` resource and delete the old one during the next deployment.
1299
+
1292
1300
  See:
1293
1301
 
1294
1302
  * [https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html)
@@ -1449,6 +1449,10 @@ class CfnEventDataStore(
1449
1449
  name="name"
1450
1450
  )],
1451
1451
  billing_mode="billingMode",
1452
+ context_key_selectors=[cloudtrail.CfnEventDataStore.ContextKeySelectorProperty(
1453
+ equal_to=["equalTo"],
1454
+ type="type"
1455
+ )],
1452
1456
  federation_enabled=False,
1453
1457
  federation_role_arn="federationRoleArn",
1454
1458
  ingestion_enabled=False,
@@ -1457,6 +1461,7 @@ class CfnEventDataStore(
1457
1461
  insight_type="insightType"
1458
1462
  )],
1459
1463
  kms_key_id="kmsKeyId",
1464
+ max_event_size="maxEventSize",
1460
1465
  multi_region_enabled=False,
1461
1466
  name="name",
1462
1467
  organization_enabled=False,
@@ -1476,12 +1481,14 @@ class CfnEventDataStore(
1476
1481
  *,
1477
1482
  advanced_event_selectors: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnEventDataStore.AdvancedEventSelectorProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
1478
1483
  billing_mode: typing.Optional[builtins.str] = None,
1484
+ context_key_selectors: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnEventDataStore.ContextKeySelectorProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
1479
1485
  federation_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
1480
1486
  federation_role_arn: typing.Optional[builtins.str] = None,
1481
1487
  ingestion_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
1482
1488
  insights_destination: typing.Optional[builtins.str] = None,
1483
1489
  insight_selectors: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnEventDataStore.InsightSelectorProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
1484
1490
  kms_key_id: typing.Optional[builtins.str] = None,
1491
+ max_event_size: typing.Optional[builtins.str] = None,
1485
1492
  multi_region_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
1486
1493
  name: typing.Optional[builtins.str] = None,
1487
1494
  organization_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
@@ -1494,12 +1501,14 @@ class CfnEventDataStore(
1494
1501
  :param id: Construct identifier for this resource (unique in its scope).
1495
1502
  :param advanced_event_selectors: The advanced event selectors to use to select the events for the data store. You can configure up to five advanced event selectors for each event data store. For more information about how to use advanced event selectors to log CloudTrail events, see `Log events by using advanced event selectors <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#creating-data-event-selectors-advanced>`_ in the CloudTrail User Guide. For more information about how to use advanced event selectors to include AWS Config configuration items in your event data store, see `Create an event data store for AWS Config configuration items <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-eds-cli.html#lake-cli-create-eds-config>`_ in the CloudTrail User Guide. For more information about how to use advanced event selectors to include events outside of AWS events in your event data store, see `Create an integration to log events from outside AWS <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-integrations-cli.html#lake-cli-create-integration>`_ in the CloudTrail User Guide.
1496
1503
  :param billing_mode: The billing mode for the event data store determines the cost for ingesting events and the default and maximum retention period for the event data store. The following are the possible values: - ``EXTENDABLE_RETENTION_PRICING`` - This billing mode is generally recommended if you want a flexible retention period of up to 3653 days (about 10 years). The default retention period for this billing mode is 366 days. - ``FIXED_RETENTION_PRICING`` - This billing mode is recommended if you expect to ingest more than 25 TB of event data per month and need a retention period of up to 2557 days (about 7 years). The default retention period for this billing mode is 2557 days. The default value is ``EXTENDABLE_RETENTION_PRICING`` . For more information about CloudTrail pricing, see `AWS CloudTrail Pricing <https://docs.aws.amazon.com/cloudtrail/pricing/>`_ and `Managing CloudTrail Lake costs <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-lake-manage-costs.html>`_ .
1504
+ :param context_key_selectors: The list of context key selectors that are configured for the event data store.
1497
1505
  :param federation_enabled: Indicates if `Lake query federation <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-federation.html>`_ is enabled. By default, Lake query federation is disabled. You cannot delete an event data store if Lake query federation is enabled.
1498
1506
  :param federation_role_arn: If Lake query federation is enabled, provides the ARN of the federation role used to access the resources for the federated event data store. The federation role must exist in your account and provide the `required minimum permissions <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-federation.html#query-federation-permissions-role>`_ .
1499
1507
  :param ingestion_enabled: Specifies whether the event data store should start ingesting live events. The default is true.
1500
1508
  :param insights_destination: The ARN (or ID suffix of the ARN) of the destination event data store that logs Insights events. For more information, see `Create an event data store for CloudTrail Insights events <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-event-data-store-insights.html>`_ .
1501
1509
  :param insight_selectors: A JSON string that contains the Insights types you want to log on an event data store. ``ApiCallRateInsight`` and ``ApiErrorRateInsight`` are valid Insight types. The ``ApiCallRateInsight`` Insights type analyzes write-only management API calls that are aggregated per minute against a baseline API call volume. The ``ApiErrorRateInsight`` Insights type analyzes management API calls that result in error codes. The error is shown if the API call is unsuccessful.
1502
1510
  :param kms_key_id: Specifies the AWS KMS key ID to use to encrypt the events delivered by CloudTrail. The value can be an alias name prefixed by ``alias/`` , a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier. .. epigraph:: Disabling or deleting the KMS key, or removing CloudTrail permissions on the key, prevents CloudTrail from logging events to the event data store, and prevents users from querying the data in the event data store that was encrypted with the key. After you associate an event data store with a KMS key, the KMS key cannot be removed or changed. Before you disable or delete a KMS key that you are using with an event data store, delete or back up your event data store. CloudTrail also supports AWS KMS multi-Region keys. For more information about multi-Region keys, see `Using multi-Region keys <https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html>`_ in the *AWS Key Management Service Developer Guide* . Examples: - ``alias/MyAliasName`` - ``arn:aws:kms:us-east-2:123456789012:alias/MyAliasName`` - ``arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012`` - ``12345678-1234-1234-1234-123456789012``
1511
+ :param max_event_size: The maximum allowed size for events to be stored in the specified event data store. If you are using context key selectors, MaxEventSize must be set to Large.
1503
1512
  :param multi_region_enabled: Specifies whether the event data store includes events from all Regions, or only from the Region in which the event data store is created.
1504
1513
  :param name: The name of the event data store.
1505
1514
  :param organization_enabled: Specifies whether an event data store collects events logged for an organization in AWS Organizations .
@@ -1514,12 +1523,14 @@ class CfnEventDataStore(
1514
1523
  props = CfnEventDataStoreProps(
1515
1524
  advanced_event_selectors=advanced_event_selectors,
1516
1525
  billing_mode=billing_mode,
1526
+ context_key_selectors=context_key_selectors,
1517
1527
  federation_enabled=federation_enabled,
1518
1528
  federation_role_arn=federation_role_arn,
1519
1529
  ingestion_enabled=ingestion_enabled,
1520
1530
  insights_destination=insights_destination,
1521
1531
  insight_selectors=insight_selectors,
1522
1532
  kms_key_id=kms_key_id,
1533
+ max_event_size=max_event_size,
1523
1534
  multi_region_enabled=multi_region_enabled,
1524
1535
  name=name,
1525
1536
  organization_enabled=organization_enabled,
@@ -1638,6 +1649,24 @@ class CfnEventDataStore(
1638
1649
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
1639
1650
  jsii.set(self, "billingMode", value) # pyright: ignore[reportArgumentType]
1640
1651
 
1652
+ @builtins.property
1653
+ @jsii.member(jsii_name="contextKeySelectors")
1654
+ def context_key_selectors(
1655
+ self,
1656
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnEventDataStore.ContextKeySelectorProperty"]]]]:
1657
+ '''The list of context key selectors that are configured for the event data store.'''
1658
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnEventDataStore.ContextKeySelectorProperty"]]]], jsii.get(self, "contextKeySelectors"))
1659
+
1660
+ @context_key_selectors.setter
1661
+ def context_key_selectors(
1662
+ self,
1663
+ value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnEventDataStore.ContextKeySelectorProperty"]]]],
1664
+ ) -> None:
1665
+ if __debug__:
1666
+ type_hints = typing.get_type_hints(_typecheckingstub__aa0ae30f8c5291a79387d1a2f7fb5c056fc8459c7878eb58241f52eba3a4762e)
1667
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
1668
+ jsii.set(self, "contextKeySelectors", value) # pyright: ignore[reportArgumentType]
1669
+
1641
1670
  @builtins.property
1642
1671
  @jsii.member(jsii_name="federationEnabled")
1643
1672
  def federation_enabled(
@@ -1731,6 +1760,19 @@ class CfnEventDataStore(
1731
1760
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
1732
1761
  jsii.set(self, "kmsKeyId", value) # pyright: ignore[reportArgumentType]
1733
1762
 
1763
+ @builtins.property
1764
+ @jsii.member(jsii_name="maxEventSize")
1765
+ def max_event_size(self) -> typing.Optional[builtins.str]:
1766
+ '''The maximum allowed size for events to be stored in the specified event data store.'''
1767
+ return typing.cast(typing.Optional[builtins.str], jsii.get(self, "maxEventSize"))
1768
+
1769
+ @max_event_size.setter
1770
+ def max_event_size(self, value: typing.Optional[builtins.str]) -> None:
1771
+ if __debug__:
1772
+ type_hints = typing.get_type_hints(_typecheckingstub__a69353bf46f46a1067b410e6f91c0033234561f53fceb13608d40dd90dd0832e)
1773
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
1774
+ jsii.set(self, "maxEventSize", value) # pyright: ignore[reportArgumentType]
1775
+
1734
1776
  @builtins.property
1735
1777
  @jsii.member(jsii_name="multiRegionEnabled")
1736
1778
  def multi_region_enabled(
@@ -2163,6 +2205,79 @@ class CfnEventDataStore(
2163
2205
  k + "=" + repr(v) for k, v in self._values.items()
2164
2206
  )
2165
2207
 
2208
+ @jsii.data_type(
2209
+ jsii_type="aws-cdk-lib.aws_cloudtrail.CfnEventDataStore.ContextKeySelectorProperty",
2210
+ jsii_struct_bases=[],
2211
+ name_mapping={"equal_to": "equalTo", "type": "type"},
2212
+ )
2213
+ class ContextKeySelectorProperty:
2214
+ def __init__(
2215
+ self,
2216
+ *,
2217
+ equal_to: typing.Sequence[builtins.str],
2218
+ type: builtins.str,
2219
+ ) -> None:
2220
+ '''An object that contains information types to be included in CloudTrail enriched events.
2221
+
2222
+ :param equal_to: A list of keys defined by Type to be included in CloudTrail enriched events.
2223
+ :param type: Specifies the type of the event record field in ContextKeySelector. Valid values include RequestContext, TagContext.
2224
+
2225
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-eventdatastore-contextkeyselector.html
2226
+ :exampleMetadata: fixture=_generated
2227
+
2228
+ Example::
2229
+
2230
+ # The code below shows an example of how to instantiate this type.
2231
+ # The values are placeholders you should change.
2232
+ from aws_cdk import aws_cloudtrail as cloudtrail
2233
+
2234
+ context_key_selector_property = cloudtrail.CfnEventDataStore.ContextKeySelectorProperty(
2235
+ equal_to=["equalTo"],
2236
+ type="type"
2237
+ )
2238
+ '''
2239
+ if __debug__:
2240
+ type_hints = typing.get_type_hints(_typecheckingstub__442b3465c9cf8a3aebc6597e8616078b26e24675af399050c52412909f6169e3)
2241
+ check_type(argname="argument equal_to", value=equal_to, expected_type=type_hints["equal_to"])
2242
+ check_type(argname="argument type", value=type, expected_type=type_hints["type"])
2243
+ self._values: typing.Dict[builtins.str, typing.Any] = {
2244
+ "equal_to": equal_to,
2245
+ "type": type,
2246
+ }
2247
+
2248
+ @builtins.property
2249
+ def equal_to(self) -> typing.List[builtins.str]:
2250
+ '''A list of keys defined by Type to be included in CloudTrail enriched events.
2251
+
2252
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-eventdatastore-contextkeyselector.html#cfn-cloudtrail-eventdatastore-contextkeyselector-equals
2253
+ '''
2254
+ result = self._values.get("equal_to")
2255
+ assert result is not None, "Required property 'equal_to' is missing"
2256
+ return typing.cast(typing.List[builtins.str], result)
2257
+
2258
+ @builtins.property
2259
+ def type(self) -> builtins.str:
2260
+ '''Specifies the type of the event record field in ContextKeySelector.
2261
+
2262
+ Valid values include RequestContext, TagContext.
2263
+
2264
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-eventdatastore-contextkeyselector.html#cfn-cloudtrail-eventdatastore-contextkeyselector-type
2265
+ '''
2266
+ result = self._values.get("type")
2267
+ assert result is not None, "Required property 'type' is missing"
2268
+ return typing.cast(builtins.str, result)
2269
+
2270
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
2271
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
2272
+
2273
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
2274
+ return not (rhs == self)
2275
+
2276
+ def __repr__(self) -> str:
2277
+ return "ContextKeySelectorProperty(%s)" % ", ".join(
2278
+ k + "=" + repr(v) for k, v in self._values.items()
2279
+ )
2280
+
2166
2281
  @jsii.data_type(
2167
2282
  jsii_type="aws-cdk-lib.aws_cloudtrail.CfnEventDataStore.InsightSelectorProperty",
2168
2283
  jsii_struct_bases=[],
@@ -2229,12 +2344,14 @@ class CfnEventDataStore(
2229
2344
  name_mapping={
2230
2345
  "advanced_event_selectors": "advancedEventSelectors",
2231
2346
  "billing_mode": "billingMode",
2347
+ "context_key_selectors": "contextKeySelectors",
2232
2348
  "federation_enabled": "federationEnabled",
2233
2349
  "federation_role_arn": "federationRoleArn",
2234
2350
  "ingestion_enabled": "ingestionEnabled",
2235
2351
  "insights_destination": "insightsDestination",
2236
2352
  "insight_selectors": "insightSelectors",
2237
2353
  "kms_key_id": "kmsKeyId",
2354
+ "max_event_size": "maxEventSize",
2238
2355
  "multi_region_enabled": "multiRegionEnabled",
2239
2356
  "name": "name",
2240
2357
  "organization_enabled": "organizationEnabled",
@@ -2249,12 +2366,14 @@ class CfnEventDataStoreProps:
2249
2366
  *,
2250
2367
  advanced_event_selectors: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnEventDataStore.AdvancedEventSelectorProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
2251
2368
  billing_mode: typing.Optional[builtins.str] = None,
2369
+ context_key_selectors: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnEventDataStore.ContextKeySelectorProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
2252
2370
  federation_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
2253
2371
  federation_role_arn: typing.Optional[builtins.str] = None,
2254
2372
  ingestion_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
2255
2373
  insights_destination: typing.Optional[builtins.str] = None,
2256
2374
  insight_selectors: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnEventDataStore.InsightSelectorProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
2257
2375
  kms_key_id: typing.Optional[builtins.str] = None,
2376
+ max_event_size: typing.Optional[builtins.str] = None,
2258
2377
  multi_region_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
2259
2378
  name: typing.Optional[builtins.str] = None,
2260
2379
  organization_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
@@ -2266,12 +2385,14 @@ class CfnEventDataStoreProps:
2266
2385
 
2267
2386
  :param advanced_event_selectors: The advanced event selectors to use to select the events for the data store. You can configure up to five advanced event selectors for each event data store. For more information about how to use advanced event selectors to log CloudTrail events, see `Log events by using advanced event selectors <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#creating-data-event-selectors-advanced>`_ in the CloudTrail User Guide. For more information about how to use advanced event selectors to include AWS Config configuration items in your event data store, see `Create an event data store for AWS Config configuration items <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-eds-cli.html#lake-cli-create-eds-config>`_ in the CloudTrail User Guide. For more information about how to use advanced event selectors to include events outside of AWS events in your event data store, see `Create an integration to log events from outside AWS <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-integrations-cli.html#lake-cli-create-integration>`_ in the CloudTrail User Guide.
2268
2387
  :param billing_mode: The billing mode for the event data store determines the cost for ingesting events and the default and maximum retention period for the event data store. The following are the possible values: - ``EXTENDABLE_RETENTION_PRICING`` - This billing mode is generally recommended if you want a flexible retention period of up to 3653 days (about 10 years). The default retention period for this billing mode is 366 days. - ``FIXED_RETENTION_PRICING`` - This billing mode is recommended if you expect to ingest more than 25 TB of event data per month and need a retention period of up to 2557 days (about 7 years). The default retention period for this billing mode is 2557 days. The default value is ``EXTENDABLE_RETENTION_PRICING`` . For more information about CloudTrail pricing, see `AWS CloudTrail Pricing <https://docs.aws.amazon.com/cloudtrail/pricing/>`_ and `Managing CloudTrail Lake costs <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-lake-manage-costs.html>`_ .
2388
+ :param context_key_selectors: The list of context key selectors that are configured for the event data store.
2269
2389
  :param federation_enabled: Indicates if `Lake query federation <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-federation.html>`_ is enabled. By default, Lake query federation is disabled. You cannot delete an event data store if Lake query federation is enabled.
2270
2390
  :param federation_role_arn: If Lake query federation is enabled, provides the ARN of the federation role used to access the resources for the federated event data store. The federation role must exist in your account and provide the `required minimum permissions <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-federation.html#query-federation-permissions-role>`_ .
2271
2391
  :param ingestion_enabled: Specifies whether the event data store should start ingesting live events. The default is true.
2272
2392
  :param insights_destination: The ARN (or ID suffix of the ARN) of the destination event data store that logs Insights events. For more information, see `Create an event data store for CloudTrail Insights events <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-event-data-store-insights.html>`_ .
2273
2393
  :param insight_selectors: A JSON string that contains the Insights types you want to log on an event data store. ``ApiCallRateInsight`` and ``ApiErrorRateInsight`` are valid Insight types. The ``ApiCallRateInsight`` Insights type analyzes write-only management API calls that are aggregated per minute against a baseline API call volume. The ``ApiErrorRateInsight`` Insights type analyzes management API calls that result in error codes. The error is shown if the API call is unsuccessful.
2274
2394
  :param kms_key_id: Specifies the AWS KMS key ID to use to encrypt the events delivered by CloudTrail. The value can be an alias name prefixed by ``alias/`` , a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier. .. epigraph:: Disabling or deleting the KMS key, or removing CloudTrail permissions on the key, prevents CloudTrail from logging events to the event data store, and prevents users from querying the data in the event data store that was encrypted with the key. After you associate an event data store with a KMS key, the KMS key cannot be removed or changed. Before you disable or delete a KMS key that you are using with an event data store, delete or back up your event data store. CloudTrail also supports AWS KMS multi-Region keys. For more information about multi-Region keys, see `Using multi-Region keys <https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html>`_ in the *AWS Key Management Service Developer Guide* . Examples: - ``alias/MyAliasName`` - ``arn:aws:kms:us-east-2:123456789012:alias/MyAliasName`` - ``arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012`` - ``12345678-1234-1234-1234-123456789012``
2395
+ :param max_event_size: The maximum allowed size for events to be stored in the specified event data store. If you are using context key selectors, MaxEventSize must be set to Large.
2275
2396
  :param multi_region_enabled: Specifies whether the event data store includes events from all Regions, or only from the Region in which the event data store is created.
2276
2397
  :param name: The name of the event data store.
2277
2398
  :param organization_enabled: Specifies whether an event data store collects events logged for an organization in AWS Organizations .
@@ -2306,6 +2427,10 @@ class CfnEventDataStoreProps:
2306
2427
  name="name"
2307
2428
  )],
2308
2429
  billing_mode="billingMode",
2430
+ context_key_selectors=[cloudtrail.CfnEventDataStore.ContextKeySelectorProperty(
2431
+ equal_to=["equalTo"],
2432
+ type="type"
2433
+ )],
2309
2434
  federation_enabled=False,
2310
2435
  federation_role_arn="federationRoleArn",
2311
2436
  ingestion_enabled=False,
@@ -2314,6 +2439,7 @@ class CfnEventDataStoreProps:
2314
2439
  insight_type="insightType"
2315
2440
  )],
2316
2441
  kms_key_id="kmsKeyId",
2442
+ max_event_size="maxEventSize",
2317
2443
  multi_region_enabled=False,
2318
2444
  name="name",
2319
2445
  organization_enabled=False,
@@ -2329,12 +2455,14 @@ class CfnEventDataStoreProps:
2329
2455
  type_hints = typing.get_type_hints(_typecheckingstub__bc172d8375a6bcb019f0df4a0d571d671956c64545dc03fc01f9ad66e38ac10e)
2330
2456
  check_type(argname="argument advanced_event_selectors", value=advanced_event_selectors, expected_type=type_hints["advanced_event_selectors"])
2331
2457
  check_type(argname="argument billing_mode", value=billing_mode, expected_type=type_hints["billing_mode"])
2458
+ check_type(argname="argument context_key_selectors", value=context_key_selectors, expected_type=type_hints["context_key_selectors"])
2332
2459
  check_type(argname="argument federation_enabled", value=federation_enabled, expected_type=type_hints["federation_enabled"])
2333
2460
  check_type(argname="argument federation_role_arn", value=federation_role_arn, expected_type=type_hints["federation_role_arn"])
2334
2461
  check_type(argname="argument ingestion_enabled", value=ingestion_enabled, expected_type=type_hints["ingestion_enabled"])
2335
2462
  check_type(argname="argument insights_destination", value=insights_destination, expected_type=type_hints["insights_destination"])
2336
2463
  check_type(argname="argument insight_selectors", value=insight_selectors, expected_type=type_hints["insight_selectors"])
2337
2464
  check_type(argname="argument kms_key_id", value=kms_key_id, expected_type=type_hints["kms_key_id"])
2465
+ check_type(argname="argument max_event_size", value=max_event_size, expected_type=type_hints["max_event_size"])
2338
2466
  check_type(argname="argument multi_region_enabled", value=multi_region_enabled, expected_type=type_hints["multi_region_enabled"])
2339
2467
  check_type(argname="argument name", value=name, expected_type=type_hints["name"])
2340
2468
  check_type(argname="argument organization_enabled", value=organization_enabled, expected_type=type_hints["organization_enabled"])
@@ -2346,6 +2474,8 @@ class CfnEventDataStoreProps:
2346
2474
  self._values["advanced_event_selectors"] = advanced_event_selectors
2347
2475
  if billing_mode is not None:
2348
2476
  self._values["billing_mode"] = billing_mode
2477
+ if context_key_selectors is not None:
2478
+ self._values["context_key_selectors"] = context_key_selectors
2349
2479
  if federation_enabled is not None:
2350
2480
  self._values["federation_enabled"] = federation_enabled
2351
2481
  if federation_role_arn is not None:
@@ -2358,6 +2488,8 @@ class CfnEventDataStoreProps:
2358
2488
  self._values["insight_selectors"] = insight_selectors
2359
2489
  if kms_key_id is not None:
2360
2490
  self._values["kms_key_id"] = kms_key_id
2491
+ if max_event_size is not None:
2492
+ self._values["max_event_size"] = max_event_size
2361
2493
  if multi_region_enabled is not None:
2362
2494
  self._values["multi_region_enabled"] = multi_region_enabled
2363
2495
  if name is not None:
@@ -2408,6 +2540,17 @@ class CfnEventDataStoreProps:
2408
2540
  result = self._values.get("billing_mode")
2409
2541
  return typing.cast(typing.Optional[builtins.str], result)
2410
2542
 
2543
+ @builtins.property
2544
+ def context_key_selectors(
2545
+ self,
2546
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnEventDataStore.ContextKeySelectorProperty]]]]:
2547
+ '''The list of context key selectors that are configured for the event data store.
2548
+
2549
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-eventdatastore.html#cfn-cloudtrail-eventdatastore-contextkeyselectors
2550
+ '''
2551
+ result = self._values.get("context_key_selectors")
2552
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnEventDataStore.ContextKeySelectorProperty]]]], result)
2553
+
2411
2554
  @builtins.property
2412
2555
  def federation_enabled(
2413
2556
  self,
@@ -2494,6 +2637,17 @@ class CfnEventDataStoreProps:
2494
2637
  result = self._values.get("kms_key_id")
2495
2638
  return typing.cast(typing.Optional[builtins.str], result)
2496
2639
 
2640
+ @builtins.property
2641
+ def max_event_size(self) -> typing.Optional[builtins.str]:
2642
+ '''The maximum allowed size for events to be stored in the specified event data store.
2643
+
2644
+ If you are using context key selectors, MaxEventSize must be set to Large.
2645
+
2646
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-eventdatastore.html#cfn-cloudtrail-eventdatastore-maxeventsize
2647
+ '''
2648
+ result = self._values.get("max_event_size")
2649
+ return typing.cast(typing.Optional[builtins.str], result)
2650
+
2497
2651
  @builtins.property
2498
2652
  def multi_region_enabled(
2499
2653
  self,
@@ -5285,12 +5439,14 @@ def _typecheckingstub__058a94222b13ad44b4607ad5932ec9b6a2defcb250ff436576e6e8976
5285
5439
  *,
5286
5440
  advanced_event_selectors: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnEventDataStore.AdvancedEventSelectorProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
5287
5441
  billing_mode: typing.Optional[builtins.str] = None,
5442
+ context_key_selectors: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnEventDataStore.ContextKeySelectorProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
5288
5443
  federation_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
5289
5444
  federation_role_arn: typing.Optional[builtins.str] = None,
5290
5445
  ingestion_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
5291
5446
  insights_destination: typing.Optional[builtins.str] = None,
5292
5447
  insight_selectors: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnEventDataStore.InsightSelectorProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
5293
5448
  kms_key_id: typing.Optional[builtins.str] = None,
5449
+ max_event_size: typing.Optional[builtins.str] = None,
5294
5450
  multi_region_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
5295
5451
  name: typing.Optional[builtins.str] = None,
5296
5452
  organization_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
@@ -5325,6 +5481,12 @@ def _typecheckingstub__106939491635761bff083d6af3ca26d1723f9df71ec433399c5746554
5325
5481
  """Type checking stubs"""
5326
5482
  pass
5327
5483
 
5484
+ def _typecheckingstub__aa0ae30f8c5291a79387d1a2f7fb5c056fc8459c7878eb58241f52eba3a4762e(
5485
+ value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnEventDataStore.ContextKeySelectorProperty]]]],
5486
+ ) -> None:
5487
+ """Type checking stubs"""
5488
+ pass
5489
+
5328
5490
  def _typecheckingstub__765513d5a073b76962f766e5dc1a967c4ad42a5bb2200d9f880aac945789b35d(
5329
5491
  value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
5330
5492
  ) -> None:
@@ -5361,6 +5523,12 @@ def _typecheckingstub__b2945b7a3d4af202bf1a8d8550ce4b17a1ab219e4dd829832fc9bd51a
5361
5523
  """Type checking stubs"""
5362
5524
  pass
5363
5525
 
5526
+ def _typecheckingstub__a69353bf46f46a1067b410e6f91c0033234561f53fceb13608d40dd90dd0832e(
5527
+ value: typing.Optional[builtins.str],
5528
+ ) -> None:
5529
+ """Type checking stubs"""
5530
+ pass
5531
+
5364
5532
  def _typecheckingstub__69742230d7479a5e2d180046d6dbe2ea4627b1fbe6861d248e8fa77f7c0dcd20(
5365
5533
  value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
5366
5534
  ) -> None:
@@ -5418,6 +5586,14 @@ def _typecheckingstub__13e48a5f3f6a4ee090f15046f2744cbdc1f623a943843b6e8cd72526e
5418
5586
  """Type checking stubs"""
5419
5587
  pass
5420
5588
 
5589
+ def _typecheckingstub__442b3465c9cf8a3aebc6597e8616078b26e24675af399050c52412909f6169e3(
5590
+ *,
5591
+ equal_to: typing.Sequence[builtins.str],
5592
+ type: builtins.str,
5593
+ ) -> None:
5594
+ """Type checking stubs"""
5595
+ pass
5596
+
5421
5597
  def _typecheckingstub__5dc8183d614f9c9498310cd377ff020cdc048d422b2548bbe678fc3c199d1dc6(
5422
5598
  *,
5423
5599
  insight_type: typing.Optional[builtins.str] = None,
@@ -5429,12 +5605,14 @@ def _typecheckingstub__bc172d8375a6bcb019f0df4a0d571d671956c64545dc03fc01f9ad66e
5429
5605
  *,
5430
5606
  advanced_event_selectors: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnEventDataStore.AdvancedEventSelectorProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
5431
5607
  billing_mode: typing.Optional[builtins.str] = None,
5608
+ context_key_selectors: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnEventDataStore.ContextKeySelectorProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
5432
5609
  federation_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
5433
5610
  federation_role_arn: typing.Optional[builtins.str] = None,
5434
5611
  ingestion_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
5435
5612
  insights_destination: typing.Optional[builtins.str] = None,
5436
5613
  insight_selectors: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnEventDataStore.InsightSelectorProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
5437
5614
  kms_key_id: typing.Optional[builtins.str] = None,
5615
+ max_event_size: typing.Optional[builtins.str] = None,
5438
5616
  multi_region_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
5439
5617
  name: typing.Optional[builtins.str] = None,
5440
5618
  organization_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
@@ -5483,7 +5483,7 @@ class CfnInsightRule(
5483
5483
  :param rule_body: The definition of the rule, as a JSON object. For details about the syntax, see `Contributor Insights Rule Syntax <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights-RuleSyntax.html>`_ in the *Amazon CloudWatch User Guide* .
5484
5484
  :param rule_name: The name of the rule.
5485
5485
  :param rule_state: The current state of the rule. Valid values are ``ENABLED`` and ``DISABLED`` .
5486
- :param apply_on_transformed_logs:
5486
+ :param apply_on_transformed_logs: Determines whether the rules is evaluated on transformed versions of logs. Valid values are ``TRUE`` and ``FALSE`` .
5487
5487
  :param tags: A list of key-value pairs to associate with the Contributor Insights rule. You can associate as many as 50 tags with a rule. Tags can help you organize and categorize your resources. For more information, see `Tagging Your Amazon CloudWatch Resources <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Tagging.html>`_ . To be able to associate tags with a rule, you must have the ``cloudwatch:TagResource`` permission in addition to the ``cloudwatch:PutInsightRule`` permission.
5488
5488
  '''
5489
5489
  if __debug__:
@@ -5611,6 +5611,7 @@ class CfnInsightRule(
5611
5611
  def apply_on_transformed_logs(
5612
5612
  self,
5613
5613
  ) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
5614
+ '''Determines whether the rules is evaluated on transformed versions of logs.'''
5614
5615
  return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], jsii.get(self, "applyOnTransformedLogs"))
5615
5616
 
5616
5617
  @apply_on_transformed_logs.setter
@@ -5663,7 +5664,7 @@ class CfnInsightRuleProps:
5663
5664
  :param rule_body: The definition of the rule, as a JSON object. For details about the syntax, see `Contributor Insights Rule Syntax <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights-RuleSyntax.html>`_ in the *Amazon CloudWatch User Guide* .
5664
5665
  :param rule_name: The name of the rule.
5665
5666
  :param rule_state: The current state of the rule. Valid values are ``ENABLED`` and ``DISABLED`` .
5666
- :param apply_on_transformed_logs:
5667
+ :param apply_on_transformed_logs: Determines whether the rules is evaluated on transformed versions of logs. Valid values are ``TRUE`` and ``FALSE`` .
5667
5668
  :param tags: A list of key-value pairs to associate with the Contributor Insights rule. You can associate as many as 50 tags with a rule. Tags can help you organize and categorize your resources. For more information, see `Tagging Your Amazon CloudWatch Resources <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Tagging.html>`_ . To be able to associate tags with a rule, you must have the ``cloudwatch:TagResource`` permission in addition to the ``cloudwatch:PutInsightRule`` permission.
5668
5669
 
5669
5670
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html
@@ -5743,7 +5744,10 @@ class CfnInsightRuleProps:
5743
5744
  def apply_on_transformed_logs(
5744
5745
  self,
5745
5746
  ) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
5746
- '''
5747
+ '''Determines whether the rules is evaluated on transformed versions of logs.
5748
+
5749
+ Valid values are ``TRUE`` and ``FALSE`` .
5750
+
5747
5751
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html#cfn-cloudwatch-insightrule-applyontransformedlogs
5748
5752
  '''
5749
5753
  result = self._values.get("apply_on_transformed_logs")