aws-cdk-lib 2.187.0__py3-none-any.whl → 2.188.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 +22 -3
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.187.0.jsii.tgz → aws-cdk-lib@2.188.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_amplify/__init__.py +21 -9
  5. aws_cdk/aws_apigateway/__init__.py +25 -19
  6. aws_cdk/aws_apigatewayv2/__init__.py +88 -0
  7. aws_cdk/aws_appconfig/__init__.py +30 -14
  8. aws_cdk/aws_arczonalshift/__init__.py +4 -4
  9. aws_cdk/aws_bedrock/__init__.py +605 -10
  10. aws_cdk/aws_budgets/__init__.py +8 -8
  11. aws_cdk/aws_cassandra/__init__.py +3 -1
  12. aws_cdk/aws_ce/__init__.py +2 -2
  13. aws_cdk/aws_cloudformation/__init__.py +3 -3
  14. aws_cdk/aws_codebuild/__init__.py +23 -1
  15. aws_cdk/aws_codepipeline/__init__.py +47 -32
  16. aws_cdk/aws_codepipeline_actions/__init__.py +2786 -1042
  17. aws_cdk/aws_codestarnotifications/__init__.py +16 -16
  18. aws_cdk/aws_cognito/__init__.py +8 -2
  19. aws_cdk/aws_ec2/__init__.py +2091 -227
  20. aws_cdk/aws_eks/__init__.py +112 -10
  21. aws_cdk/aws_events_targets/__init__.py +136 -0
  22. aws_cdk/aws_gamelift/__init__.py +5 -5
  23. aws_cdk/aws_iam/__init__.py +6 -4
  24. aws_cdk/aws_identitystore/__init__.py +15 -13
  25. aws_cdk/aws_kinesisfirehose/__init__.py +38 -0
  26. aws_cdk/aws_lambda_event_sources/__init__.py +22 -22
  27. aws_cdk/aws_lex/__init__.py +21 -17
  28. aws_cdk/aws_logs/__init__.py +18 -0
  29. aws_cdk/aws_logs_destinations/__init__.py +146 -0
  30. aws_cdk/aws_notifications/__init__.py +4 -4
  31. aws_cdk/aws_omics/__init__.py +9 -1
  32. aws_cdk/aws_opensearchserverless/__init__.py +31 -23
  33. aws_cdk/aws_organizations/__init__.py +1 -1
  34. aws_cdk/aws_pcaconnectorad/__init__.py +3 -2
  35. aws_cdk/aws_quicksight/__init__.py +35 -22
  36. aws_cdk/aws_rds/__init__.py +84 -0
  37. aws_cdk/aws_route53/__init__.py +3 -3
  38. aws_cdk/aws_route53recoverycontrol/__init__.py +4 -6
  39. aws_cdk/aws_rum/__init__.py +13 -10
  40. aws_cdk/aws_s3/__init__.py +3 -6
  41. aws_cdk/aws_sagemaker/__init__.py +41 -0
  42. aws_cdk/aws_ssmincidents/__init__.py +10 -10
  43. aws_cdk/aws_systemsmanagersap/__init__.py +17 -7
  44. aws_cdk/aws_transfer/__init__.py +19 -10
  45. aws_cdk/aws_wafv2/__init__.py +80 -35
  46. aws_cdk/cx_api/__init__.py +23 -2
  47. aws_cdk/pipelines/__init__.py +32 -0
  48. {aws_cdk_lib-2.187.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/METADATA +1 -1
  49. {aws_cdk_lib-2.187.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/RECORD +53 -53
  50. {aws_cdk_lib-2.187.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/LICENSE +0 -0
  51. {aws_cdk_lib-2.187.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/NOTICE +0 -0
  52. {aws_cdk_lib-2.187.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/WHEEL +0 -0
  53. {aws_cdk_lib-2.187.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/top_level.txt +0 -0
@@ -72,7 +72,7 @@ class CfnGroup(
72
72
  metaclass=jsii.JSIIMeta,
73
73
  jsii_type="aws-cdk-lib.aws_identitystore.CfnGroup",
74
74
  ):
75
- '''A group object that contains the metadata and attributes for a specified group.
75
+ '''A group object, which contains a specified group’s metadata and attributes.
76
76
 
77
77
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-identitystore-group.html
78
78
  :cloudformationResource: AWS::IdentityStore::Group
@@ -107,7 +107,7 @@ class CfnGroup(
107
107
  :param id: Construct identifier for this resource (unique in its scope).
108
108
  :param display_name: The display name value for the group. The length limit is 1,024 characters. This value can consist of letters, accented characters, symbols, numbers, punctuation, tab, new line, carriage return, space, and nonbreaking space in this attribute. This value is specified at the time the group is created and stored as an attribute of the group object in the identity store. Prefix search supports a maximum of 1,000 characters for the string.
109
109
  :param identity_store_id: The globally unique identifier for the identity store.
110
- :param description: A string containing a description of the specified group.
110
+ :param description: A string containing the description of the group.
111
111
  '''
112
112
  if __debug__:
113
113
  type_hints = typing.get_type_hints(_typecheckingstub__37e27ff46dfa4082cad1981cc4ade1e2a9ce445cf9aad4a8eb75e162b9b429f1)
@@ -154,7 +154,7 @@ class CfnGroup(
154
154
  @builtins.property
155
155
  @jsii.member(jsii_name="attrGroupId")
156
156
  def attr_group_id(self) -> builtins.str:
157
- '''The identifier for a group in the identity store.
157
+ '''The identifier of the newly created group in the identity store.
158
158
 
159
159
  :cloudformationAttribute: GroupId
160
160
  '''
@@ -194,7 +194,7 @@ class CfnGroup(
194
194
  @builtins.property
195
195
  @jsii.member(jsii_name="description")
196
196
  def description(self) -> typing.Optional[builtins.str]:
197
- '''A string containing a description of the specified group.'''
197
+ '''A string containing the description of the group.'''
198
198
  return typing.cast(typing.Optional[builtins.str], jsii.get(self, "description"))
199
199
 
200
200
  @description.setter
@@ -248,7 +248,7 @@ class CfnGroupMembership(
248
248
  :param id: Construct identifier for this resource (unique in its scope).
249
249
  :param group_id: The identifier for a group in the identity store.
250
250
  :param identity_store_id: The globally unique identifier for the identity store.
251
- :param member_id: An object that contains the identifier of a group member. Setting the ``UserID`` field to the specific identifier for a user indicates that the user is a member of the group.
251
+ :param member_id: An object containing the identifier of a group member. Setting the ``MemberId`` 's ``UserId`` field to a specific User's ID indicates that user is a member of the group.
252
252
  '''
253
253
  if __debug__:
254
254
  type_hints = typing.get_type_hints(_typecheckingstub__76d55a804ce565c6f3a413944bff86b3236786318808951cf53ad4eff71316db)
@@ -293,7 +293,7 @@ class CfnGroupMembership(
293
293
  @builtins.property
294
294
  @jsii.member(jsii_name="attrMembershipId")
295
295
  def attr_membership_id(self) -> builtins.str:
296
- '''The identifier for a ``GroupMembership`` object in an identity store.
296
+ '''The identifier for a ``GroupMembership`` in the identity store.
297
297
 
298
298
  :cloudformationAttribute: MembershipId
299
299
  '''
@@ -335,7 +335,7 @@ class CfnGroupMembership(
335
335
  def member_id(
336
336
  self,
337
337
  ) -> typing.Union[_IResolvable_da3f097b, "CfnGroupMembership.MemberIdProperty"]:
338
- '''An object that contains the identifier of a group member.'''
338
+ '''An object containing the identifier of a group member.'''
339
339
  return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnGroupMembership.MemberIdProperty"], jsii.get(self, "memberId"))
340
340
 
341
341
  @member_id.setter
@@ -355,7 +355,9 @@ class CfnGroupMembership(
355
355
  )
356
356
  class MemberIdProperty:
357
357
  def __init__(self, *, user_id: builtins.str) -> None:
358
- '''An object containing the identifier of a group member.
358
+ '''An object that contains the identifier of a group member.
359
+
360
+ Setting the ``UserID`` field to the specific identifier for a user indicates that the user is a member of the group.
359
361
 
360
362
  :param user_id: An object containing the identifiers of resources that can be members.
361
363
 
@@ -422,7 +424,7 @@ class CfnGroupMembershipProps:
422
424
 
423
425
  :param group_id: The identifier for a group in the identity store.
424
426
  :param identity_store_id: The globally unique identifier for the identity store.
425
- :param member_id: An object that contains the identifier of a group member. Setting the ``UserID`` field to the specific identifier for a user indicates that the user is a member of the group.
427
+ :param member_id: An object containing the identifier of a group member. Setting the ``MemberId`` 's ``UserId`` field to a specific User's ID indicates that user is a member of the group.
426
428
 
427
429
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-identitystore-groupmembership.html
428
430
  :exampleMetadata: fixture=_generated
@@ -476,9 +478,9 @@ class CfnGroupMembershipProps:
476
478
  def member_id(
477
479
  self,
478
480
  ) -> typing.Union[_IResolvable_da3f097b, CfnGroupMembership.MemberIdProperty]:
479
- '''An object that contains the identifier of a group member.
481
+ '''An object containing the identifier of a group member.
480
482
 
481
- Setting the ``UserID`` field to the specific identifier for a user indicates that the user is a member of the group.
483
+ Setting the ``MemberId`` 's ``UserId`` field to a specific User's ID indicates that user is a member of the group.
482
484
 
483
485
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-identitystore-groupmembership.html#cfn-identitystore-groupmembership-memberid
484
486
  '''
@@ -519,7 +521,7 @@ class CfnGroupProps:
519
521
 
520
522
  :param display_name: The display name value for the group. The length limit is 1,024 characters. This value can consist of letters, accented characters, symbols, numbers, punctuation, tab, new line, carriage return, space, and nonbreaking space in this attribute. This value is specified at the time the group is created and stored as an attribute of the group object in the identity store. Prefix search supports a maximum of 1,000 characters for the string.
521
523
  :param identity_store_id: The globally unique identifier for the identity store.
522
- :param description: A string containing a description of the specified group.
524
+ :param description: A string containing the description of the group.
523
525
 
524
526
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-identitystore-group.html
525
527
  :exampleMetadata: fixture=_generated
@@ -576,7 +578,7 @@ class CfnGroupProps:
576
578
 
577
579
  @builtins.property
578
580
  def description(self) -> typing.Optional[builtins.str]:
579
- '''A string containing a description of the specified group.
581
+ '''A string containing the description of the group.
580
582
 
581
583
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-identitystore-group.html#cfn-identitystore-group-description
582
584
  '''
@@ -116,6 +116,17 @@ s3_destination = firehose.S3Bucket(bucket,
116
116
  See: [Custom S3 Prefixes](https://docs.aws.amazon.com/firehose/latest/dev/s3-prefixes.html)
117
117
  in the *Amazon Data Firehose Developer Guide*.
118
118
 
119
+ To override default file extension appended by Data Format Conversion or S3 compression features, specify `fileExtension`.
120
+
121
+ ```python
122
+ # bucket: s3.Bucket
123
+
124
+ s3_destination = firehose.S3Bucket(bucket,
125
+ compression=firehose.Compression.GZIP,
126
+ file_extension=".json.gz"
127
+ )
128
+ ```
129
+
119
130
  ## Server-side Encryption
120
131
 
121
132
  Enabling server-side encryption (SSE) requires Amazon Data Firehose to encrypt all data
@@ -484,6 +495,7 @@ delivery_stream = firehose.DeliveryStream(stack, "DeliveryStream",
484
495
  compression=firehose.Compression.GZIP,
485
496
  data_output_prefix="regularPrefix",
486
497
  error_output_prefix="errorPrefix",
498
+ file_extension=".log.gz",
487
499
  buffering_interval=cdk.Duration.seconds(60),
488
500
  buffering_size=cdk.Size.mebibytes(1),
489
501
  encryption_key=key,
@@ -11674,6 +11686,7 @@ class S3Bucket(
11674
11686
  self,
11675
11687
  bucket: _IBucket_42e086fd,
11676
11688
  *,
11689
+ file_extension: typing.Optional[builtins.str] = None,
11677
11690
  buffering_interval: typing.Optional[_Duration_4839e8c3] = None,
11678
11691
  buffering_size: typing.Optional[_Size_7b441c34] = None,
11679
11692
  compression: typing.Optional[Compression] = None,
@@ -11687,6 +11700,7 @@ class S3Bucket(
11687
11700
  ) -> None:
11688
11701
  '''
11689
11702
  :param bucket: -
11703
+ :param file_extension: Specify a file extension. It will override the default file extension appended by Data Format Conversion or S3 compression features such as ``.parquet`` or ``.gz``. File extension must start with a period (``.``) and can contain allowed characters: ``0-9a-z!-_.*'()``. Default: - The default file extension appended by Data Format Conversion or S3 compression features
11690
11704
  :param buffering_interval: The length of time that Firehose buffers incoming data before delivering it to the S3 bucket. Minimum: Duration.seconds(0) Maximum: Duration.seconds(900) Default: Duration.seconds(300)
11691
11705
  :param buffering_size: The size of the buffer that Amazon Data Firehose uses for incoming data before delivering it to the S3 bucket. Minimum: Size.mebibytes(1) Maximum: Size.mebibytes(128) Default: Size.mebibytes(5)
11692
11706
  :param compression: The type of compression that Amazon Data Firehose uses to compress the data that it delivers to the Amazon S3 bucket. The compression formats SNAPPY or ZIP cannot be specified for Amazon Redshift destinations because they are not supported by the Amazon Redshift COPY operation that reads from the S3 bucket. Default: - UNCOMPRESSED
@@ -11702,6 +11716,7 @@ class S3Bucket(
11702
11716
  type_hints = typing.get_type_hints(_typecheckingstub__a2eaf455255fc260033aa24d456779f4b21172e8b4cf2c51f6355f415c9f3ccd)
11703
11717
  check_type(argname="argument bucket", value=bucket, expected_type=type_hints["bucket"])
11704
11718
  props = S3BucketProps(
11719
+ file_extension=file_extension,
11705
11720
  buffering_interval=buffering_interval,
11706
11721
  buffering_size=buffering_size,
11707
11722
  compression=compression,
@@ -11746,6 +11761,7 @@ class S3Bucket(
11746
11761
  "processor": "processor",
11747
11762
  "role": "role",
11748
11763
  "s3_backup": "s3Backup",
11764
+ "file_extension": "fileExtension",
11749
11765
  },
11750
11766
  )
11751
11767
  class S3BucketProps(CommonDestinationS3Props, CommonDestinationProps):
@@ -11762,6 +11778,7 @@ class S3BucketProps(CommonDestinationS3Props, CommonDestinationProps):
11762
11778
  processor: typing.Optional[IDataProcessor] = None,
11763
11779
  role: typing.Optional[_IRole_235f5d8e] = None,
11764
11780
  s3_backup: typing.Optional[typing.Union[DestinationS3BackupProps, typing.Dict[builtins.str, typing.Any]]] = None,
11781
+ file_extension: typing.Optional[builtins.str] = None,
11765
11782
  ) -> None:
11766
11783
  '''Props for defining an S3 destination of an Amazon Data Firehose delivery stream.
11767
11784
 
@@ -11775,6 +11792,7 @@ class S3BucketProps(CommonDestinationS3Props, CommonDestinationProps):
11775
11792
  :param processor: The data transformation that should be performed on the data before writing to the destination. Default: - no data transformation will occur.
11776
11793
  :param role: The IAM role associated with this destination. Assumed by Amazon Data Firehose to invoke processors and write to destinations Default: - a role will be created with default permissions.
11777
11794
  :param s3_backup: The configuration for backing up source records to S3. Default: - source records will not be backed up to S3.
11795
+ :param file_extension: Specify a file extension. It will override the default file extension appended by Data Format Conversion or S3 compression features such as ``.parquet`` or ``.gz``. File extension must start with a period (``.``) and can contain allowed characters: ``0-9a-z!-_.*'()``. Default: - The default file extension appended by Data Format Conversion or S3 compression features
11778
11796
 
11779
11797
  :exampleMetadata: infused
11780
11798
 
@@ -11814,6 +11832,7 @@ class S3BucketProps(CommonDestinationS3Props, CommonDestinationProps):
11814
11832
  check_type(argname="argument processor", value=processor, expected_type=type_hints["processor"])
11815
11833
  check_type(argname="argument role", value=role, expected_type=type_hints["role"])
11816
11834
  check_type(argname="argument s3_backup", value=s3_backup, expected_type=type_hints["s3_backup"])
11835
+ check_type(argname="argument file_extension", value=file_extension, expected_type=type_hints["file_extension"])
11817
11836
  self._values: typing.Dict[builtins.str, typing.Any] = {}
11818
11837
  if buffering_interval is not None:
11819
11838
  self._values["buffering_interval"] = buffering_interval
@@ -11835,6 +11854,8 @@ class S3BucketProps(CommonDestinationS3Props, CommonDestinationProps):
11835
11854
  self._values["role"] = role
11836
11855
  if s3_backup is not None:
11837
11856
  self._values["s3_backup"] = s3_backup
11857
+ if file_extension is not None:
11858
+ self._values["file_extension"] = file_extension
11838
11859
 
11839
11860
  @builtins.property
11840
11861
  def buffering_interval(self) -> typing.Optional[_Duration_4839e8c3]:
@@ -11946,6 +11967,21 @@ class S3BucketProps(CommonDestinationS3Props, CommonDestinationProps):
11946
11967
  result = self._values.get("s3_backup")
11947
11968
  return typing.cast(typing.Optional[DestinationS3BackupProps], result)
11948
11969
 
11970
+ @builtins.property
11971
+ def file_extension(self) -> typing.Optional[builtins.str]:
11972
+ '''Specify a file extension.
11973
+
11974
+ It will override the default file extension appended by Data Format Conversion or S3 compression features such as ``.parquet`` or ``.gz``.
11975
+
11976
+ File extension must start with a period (``.``) and can contain allowed characters: ``0-9a-z!-_.*'()``.
11977
+
11978
+ :default: - The default file extension appended by Data Format Conversion or S3 compression features
11979
+
11980
+ :see: https://docs.aws.amazon.com/firehose/latest/dev/create-destination.html#create-destination-s3
11981
+ '''
11982
+ result = self._values.get("file_extension")
11983
+ return typing.cast(typing.Optional[builtins.str], result)
11984
+
11949
11985
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
11950
11986
  return isinstance(rhs, self.__class__) and rhs._values == self._values
11951
11987
 
@@ -13621,6 +13657,7 @@ def _typecheckingstub__393c41d8ae2fe5acab13fd70fff9f4778e727adfd78b86d20820f0670
13621
13657
  def _typecheckingstub__a2eaf455255fc260033aa24d456779f4b21172e8b4cf2c51f6355f415c9f3ccd(
13622
13658
  bucket: _IBucket_42e086fd,
13623
13659
  *,
13660
+ file_extension: typing.Optional[builtins.str] = None,
13624
13661
  buffering_interval: typing.Optional[_Duration_4839e8c3] = None,
13625
13662
  buffering_size: typing.Optional[_Size_7b441c34] = None,
13626
13663
  compression: typing.Optional[Compression] = None,
@@ -13653,6 +13690,7 @@ def _typecheckingstub__04b12dc503479d22af2396c4df8d38c37536719187eef6ddd01c18b52
13653
13690
  processor: typing.Optional[IDataProcessor] = None,
13654
13691
  role: typing.Optional[_IRole_235f5d8e] = None,
13655
13692
  s3_backup: typing.Optional[typing.Union[DestinationS3BackupProps, typing.Dict[builtins.str, typing.Any]]] = None,
13693
+ file_extension: typing.Optional[builtins.str] = None,
13656
13694
  ) -> None:
13657
13695
  """Type checking stubs"""
13658
13696
  pass
@@ -2648,7 +2648,7 @@ class StreamEventSource(
2648
2648
  :param on_failure: An Amazon S3, Amazon SQS queue or Amazon SNS topic destination for discarded records. Default: - discarded records are ignored
2649
2649
  :param parallelization_factor: The number of batches to process from each shard concurrently. Valid Range: - Minimum value of 1 - Maximum value of 10 Default: 1
2650
2650
  :param report_batch_item_failures: Allow functions to return partially successful responses for a batch of records. Default: false
2651
- :param retry_attempts: Maximum number of retry attempts Valid Range: * Minimum value of 0 * Maximum value of 10000. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source. Default: -1
2651
+ :param retry_attempts: Maximum number of retry attempts. Set to -1 for infinite retries (until the record expires in the event source). Valid Range: -1 (infinite) or 0 to 10000 Default: -1 (infinite retries)
2652
2652
  :param tumbling_window: The size of the tumbling windows to group records sent to DynamoDB or Kinesis Valid Range: 0 - 15 minutes. Default: - None
2653
2653
  :param starting_position: Where to begin consuming the stream.
2654
2654
  :param batch_size: The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function. Your function receives an event with all the retrieved records. Valid Range: - Minimum value of 1 - Maximum value of: - 1000 for ``DynamoEventSource`` - 10000 for ``KinesisEventSource``, ``ManagedKafkaEventSource`` and ``SelfManagedKafkaEventSource`` Default: 100
@@ -2844,7 +2844,7 @@ class StreamEventSourceProps(BaseStreamEventSourceProps):
2844
2844
  :param on_failure: An Amazon S3, Amazon SQS queue or Amazon SNS topic destination for discarded records. Default: - discarded records are ignored
2845
2845
  :param parallelization_factor: The number of batches to process from each shard concurrently. Valid Range: - Minimum value of 1 - Maximum value of 10 Default: 1
2846
2846
  :param report_batch_item_failures: Allow functions to return partially successful responses for a batch of records. Default: false
2847
- :param retry_attempts: Maximum number of retry attempts Valid Range: * Minimum value of 0 * Maximum value of 10000. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source. Default: -1
2847
+ :param retry_attempts: Maximum number of retry attempts. Set to -1 for infinite retries (until the record expires in the event source). Valid Range: -1 (infinite) or 0 to 10000 Default: -1 (infinite retries)
2848
2848
  :param tumbling_window: The size of the tumbling windows to group records sent to DynamoDB or Kinesis Valid Range: 0 - 15 minutes. Default: - None
2849
2849
 
2850
2850
  :exampleMetadata: fixture=_generated
@@ -3097,13 +3097,13 @@ class StreamEventSourceProps(BaseStreamEventSourceProps):
3097
3097
 
3098
3098
  @builtins.property
3099
3099
  def retry_attempts(self) -> typing.Optional[jsii.Number]:
3100
- '''Maximum number of retry attempts Valid Range: * Minimum value of 0 * Maximum value of 10000.
3100
+ '''Maximum number of retry attempts.
3101
3101
 
3102
- The default value is -1, which sets the maximum number of retries to infinite.
3103
- When MaximumRetryAttempts is infinite, Lambda retries failed records until
3104
- the record expires in the event source.
3102
+ Set to -1 for infinite retries (until the record expires in the event source).
3105
3103
 
3106
- :default: -1
3104
+ Valid Range: -1 (infinite) or 0 to 10000
3105
+
3106
+ :default: -1 (infinite retries)
3107
3107
  '''
3108
3108
  result = self._values.get("retry_attempts")
3109
3109
  return typing.cast(typing.Optional[jsii.Number], result)
@@ -3191,7 +3191,7 @@ class DynamoEventSource(
3191
3191
  :param on_failure: An Amazon S3, Amazon SQS queue or Amazon SNS topic destination for discarded records. Default: - discarded records are ignored
3192
3192
  :param parallelization_factor: The number of batches to process from each shard concurrently. Valid Range: - Minimum value of 1 - Maximum value of 10 Default: 1
3193
3193
  :param report_batch_item_failures: Allow functions to return partially successful responses for a batch of records. Default: false
3194
- :param retry_attempts: Maximum number of retry attempts Valid Range: * Minimum value of 0 * Maximum value of 10000. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source. Default: -1
3194
+ :param retry_attempts: Maximum number of retry attempts. Set to -1 for infinite retries (until the record expires in the event source). Valid Range: -1 (infinite) or 0 to 10000 Default: -1 (infinite retries)
3195
3195
  :param tumbling_window: The size of the tumbling windows to group records sent to DynamoDB or Kinesis Valid Range: 0 - 15 minutes. Default: - None
3196
3196
  :param starting_position: Where to begin consuming the stream.
3197
3197
  :param batch_size: The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function. Your function receives an event with all the retrieved records. Valid Range: - Minimum value of 1 - Maximum value of: - 1000 for ``DynamoEventSource`` - 10000 for ``KinesisEventSource``, ``ManagedKafkaEventSource`` and ``SelfManagedKafkaEventSource`` Default: 100
@@ -3301,7 +3301,7 @@ class DynamoEventSourceProps(StreamEventSourceProps):
3301
3301
  :param on_failure: An Amazon S3, Amazon SQS queue or Amazon SNS topic destination for discarded records. Default: - discarded records are ignored
3302
3302
  :param parallelization_factor: The number of batches to process from each shard concurrently. Valid Range: - Minimum value of 1 - Maximum value of 10 Default: 1
3303
3303
  :param report_batch_item_failures: Allow functions to return partially successful responses for a batch of records. Default: false
3304
- :param retry_attempts: Maximum number of retry attempts Valid Range: * Minimum value of 0 * Maximum value of 10000. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source. Default: -1
3304
+ :param retry_attempts: Maximum number of retry attempts. Set to -1 for infinite retries (until the record expires in the event source). Valid Range: -1 (infinite) or 0 to 10000 Default: -1 (infinite retries)
3305
3305
  :param tumbling_window: The size of the tumbling windows to group records sent to DynamoDB or Kinesis Valid Range: 0 - 15 minutes. Default: - None
3306
3306
 
3307
3307
  :exampleMetadata: infused
@@ -3536,13 +3536,13 @@ class DynamoEventSourceProps(StreamEventSourceProps):
3536
3536
 
3537
3537
  @builtins.property
3538
3538
  def retry_attempts(self) -> typing.Optional[jsii.Number]:
3539
- '''Maximum number of retry attempts Valid Range: * Minimum value of 0 * Maximum value of 10000.
3539
+ '''Maximum number of retry attempts.
3540
3540
 
3541
- The default value is -1, which sets the maximum number of retries to infinite.
3542
- When MaximumRetryAttempts is infinite, Lambda retries failed records until
3543
- the record expires in the event source.
3541
+ Set to -1 for infinite retries (until the record expires in the event source).
3544
3542
 
3545
- :default: -1
3543
+ Valid Range: -1 (infinite) or 0 to 10000
3544
+
3545
+ :default: -1 (infinite retries)
3546
3546
  '''
3547
3547
  result = self._values.get("retry_attempts")
3548
3548
  return typing.cast(typing.Optional[jsii.Number], result)
@@ -3628,7 +3628,7 @@ class KinesisConsumerEventSource(
3628
3628
  :param on_failure: An Amazon S3, Amazon SQS queue or Amazon SNS topic destination for discarded records. Default: - discarded records are ignored
3629
3629
  :param parallelization_factor: The number of batches to process from each shard concurrently. Valid Range: - Minimum value of 1 - Maximum value of 10 Default: 1
3630
3630
  :param report_batch_item_failures: Allow functions to return partially successful responses for a batch of records. Default: false
3631
- :param retry_attempts: Maximum number of retry attempts Valid Range: * Minimum value of 0 * Maximum value of 10000. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source. Default: -1
3631
+ :param retry_attempts: Maximum number of retry attempts. Set to -1 for infinite retries (until the record expires in the event source). Valid Range: -1 (infinite) or 0 to 10000 Default: -1 (infinite retries)
3632
3632
  :param tumbling_window: The size of the tumbling windows to group records sent to DynamoDB or Kinesis Valid Range: 0 - 15 minutes. Default: - None
3633
3633
  :param starting_position: Where to begin consuming the stream.
3634
3634
  :param batch_size: The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function. Your function receives an event with all the retrieved records. Valid Range: - Minimum value of 1 - Maximum value of: - 1000 for ``DynamoEventSource`` - 10000 for ``KinesisEventSource``, ``ManagedKafkaEventSource`` and ``SelfManagedKafkaEventSource`` Default: 100
@@ -3745,7 +3745,7 @@ class KinesisEventSource(
3745
3745
  :param on_failure: An Amazon S3, Amazon SQS queue or Amazon SNS topic destination for discarded records. Default: - discarded records are ignored
3746
3746
  :param parallelization_factor: The number of batches to process from each shard concurrently. Valid Range: - Minimum value of 1 - Maximum value of 10 Default: 1
3747
3747
  :param report_batch_item_failures: Allow functions to return partially successful responses for a batch of records. Default: false
3748
- :param retry_attempts: Maximum number of retry attempts Valid Range: * Minimum value of 0 * Maximum value of 10000. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source. Default: -1
3748
+ :param retry_attempts: Maximum number of retry attempts. Set to -1 for infinite retries (until the record expires in the event source). Valid Range: -1 (infinite) or 0 to 10000 Default: -1 (infinite retries)
3749
3749
  :param tumbling_window: The size of the tumbling windows to group records sent to DynamoDB or Kinesis Valid Range: 0 - 15 minutes. Default: - None
3750
3750
  :param starting_position: Where to begin consuming the stream.
3751
3751
  :param batch_size: The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function. Your function receives an event with all the retrieved records. Valid Range: - Minimum value of 1 - Maximum value of: - 1000 for ``DynamoEventSource`` - 10000 for ``KinesisEventSource``, ``ManagedKafkaEventSource`` and ``SelfManagedKafkaEventSource`` Default: 100
@@ -3863,7 +3863,7 @@ class KinesisEventSourceProps(StreamEventSourceProps):
3863
3863
  :param on_failure: An Amazon S3, Amazon SQS queue or Amazon SNS topic destination for discarded records. Default: - discarded records are ignored
3864
3864
  :param parallelization_factor: The number of batches to process from each shard concurrently. Valid Range: - Minimum value of 1 - Maximum value of 10 Default: 1
3865
3865
  :param report_batch_item_failures: Allow functions to return partially successful responses for a batch of records. Default: false
3866
- :param retry_attempts: Maximum number of retry attempts Valid Range: * Minimum value of 0 * Maximum value of 10000. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source. Default: -1
3866
+ :param retry_attempts: Maximum number of retry attempts. Set to -1 for infinite retries (until the record expires in the event source). Valid Range: -1 (infinite) or 0 to 10000 Default: -1 (infinite retries)
3867
3867
  :param tumbling_window: The size of the tumbling windows to group records sent to DynamoDB or Kinesis Valid Range: 0 - 15 minutes. Default: - None
3868
3868
  :param starting_position_timestamp: The time from which to start reading, in Unix time seconds. Default: - no timestamp
3869
3869
 
@@ -4094,13 +4094,13 @@ class KinesisEventSourceProps(StreamEventSourceProps):
4094
4094
 
4095
4095
  @builtins.property
4096
4096
  def retry_attempts(self) -> typing.Optional[jsii.Number]:
4097
- '''Maximum number of retry attempts Valid Range: * Minimum value of 0 * Maximum value of 10000.
4097
+ '''Maximum number of retry attempts.
4098
4098
 
4099
- The default value is -1, which sets the maximum number of retries to infinite.
4100
- When MaximumRetryAttempts is infinite, Lambda retries failed records until
4101
- the record expires in the event source.
4099
+ Set to -1 for infinite retries (until the record expires in the event source).
4102
4100
 
4103
- :default: -1
4101
+ Valid Range: -1 (infinite) or 0 to 10000
4102
+
4103
+ :default: -1 (infinite retries)
4104
4104
  '''
4105
4105
  result = self._values.get("retry_attempts")
4106
4106
  return typing.cast(typing.Optional[jsii.Number], result)
@@ -919,7 +919,7 @@ class CfnBot(
919
919
  bedrock_guardrail_identifier: typing.Optional[builtins.str] = None,
920
920
  bedrock_guardrail_version: typing.Optional[builtins.str] = None,
921
921
  ) -> None:
922
- '''The guardrail configuration in the Bedrock model specification details.
922
+ '''The details on the Bedrock guardrail configuration.
923
923
 
924
924
  :param bedrock_guardrail_identifier: The unique guardrail id for the Bedrock guardrail configuration.
925
925
  :param bedrock_guardrail_version: The guardrail version for the Bedrock guardrail configuration.
@@ -2746,11 +2746,11 @@ class CfnBot(
2746
2746
  kendra_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnBot.QnAKendraConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
2747
2747
  opensearch_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnBot.OpensearchConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
2748
2748
  ) -> None:
2749
- '''Contains details about the configuration of the data source used for the AMAZON.QnAIntent.
2749
+ '''Contains details about the configuration of the knowledge store used for the ``AMAZON.QnAIntent`` . You must have already created the knowledge store and indexed the documents within it.
2750
2750
 
2751
- :param bedrock_knowledge_store_configuration: Contains details about the configuration of a Amazon Bedrock knowledge base.
2752
- :param kendra_configuration: Contains details about the configuration of the Amazon Kendra index used for the AMAZON.QnAIntent.
2753
- :param opensearch_configuration: Contains details about the configuration of the Amazon OpenSearch Service database used for the AMAZON.QnAIntent.
2751
+ :param bedrock_knowledge_store_configuration: Contains details about the configuration of the Amazon Bedrock knowledge base used for the ``AMAZON.QnAIntent`` . To set up a knowledge base, follow the steps at `Building a knowledge base <https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html>`_ .
2752
+ :param kendra_configuration: Contains details about the configuration of the Amazon Kendra index used for the ``AMAZON.QnAIntent`` . To create a Amazon Kendra index, follow the steps at `Creating an index <https://docs.aws.amazon.com/kendra/latest/dg/create-index.html>`_ .
2753
+ :param opensearch_configuration: Contains details about the configuration of the Amazon OpenSearch Service database used for the ``AMAZON.QnAIntent`` . To create a domain, follow the steps at `Creating and managing Amazon OpenSearch Service domains <https://docs.aws.amazon.com/opensearch-service/latest/developerguide/createupdatedomains.html>`_ .
2754
2754
 
2755
2755
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-datasourceconfiguration.html
2756
2756
  :exampleMetadata: fixture=_generated
@@ -2806,7 +2806,7 @@ class CfnBot(
2806
2806
  def bedrock_knowledge_store_configuration(
2807
2807
  self,
2808
2808
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnBot.BedrockKnowledgeStoreConfigurationProperty"]]:
2809
- '''Contains details about the configuration of a Amazon Bedrock knowledge base.
2809
+ '''Contains details about the configuration of the Amazon Bedrock knowledge base used for the ``AMAZON.QnAIntent`` . To set up a knowledge base, follow the steps at `Building a knowledge base <https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html>`_ .
2810
2810
 
2811
2811
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-datasourceconfiguration.html#cfn-lex-bot-datasourceconfiguration-bedrockknowledgestoreconfiguration
2812
2812
  '''
@@ -2817,7 +2817,7 @@ class CfnBot(
2817
2817
  def kendra_configuration(
2818
2818
  self,
2819
2819
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnBot.QnAKendraConfigurationProperty"]]:
2820
- '''Contains details about the configuration of the Amazon Kendra index used for the AMAZON.QnAIntent.
2820
+ '''Contains details about the configuration of the Amazon Kendra index used for the ``AMAZON.QnAIntent`` . To create a Amazon Kendra index, follow the steps at `Creating an index <https://docs.aws.amazon.com/kendra/latest/dg/create-index.html>`_ .
2821
2821
 
2822
2822
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-datasourceconfiguration.html#cfn-lex-bot-datasourceconfiguration-kendraconfiguration
2823
2823
  '''
@@ -2828,7 +2828,7 @@ class CfnBot(
2828
2828
  def opensearch_configuration(
2829
2829
  self,
2830
2830
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnBot.OpensearchConfigurationProperty"]]:
2831
- '''Contains details about the configuration of the Amazon OpenSearch Service database used for the AMAZON.QnAIntent.
2831
+ '''Contains details about the configuration of the Amazon OpenSearch Service database used for the ``AMAZON.QnAIntent`` . To create a domain, follow the steps at `Creating and managing Amazon OpenSearch Service domains <https://docs.aws.amazon.com/opensearch-service/latest/developerguide/createupdatedomains.html>`_ .
2832
2832
 
2833
2833
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-datasourceconfiguration.html#cfn-lex-bot-datasourceconfiguration-opensearchconfiguration
2834
2834
  '''
@@ -6232,12 +6232,12 @@ class CfnBot(
6232
6232
  include_fields: typing.Optional[typing.Sequence[builtins.str]] = None,
6233
6233
  index_name: typing.Optional[builtins.str] = None,
6234
6234
  ) -> None:
6235
- '''Contains details about the configuration of the Amazon OpenSearch Service database used for the AMAZON.QnAIntent.
6235
+ '''Contains details about the configuration of the Amazon OpenSearch Service database used for the ``AMAZON.QnAIntent`` .
6236
6236
 
6237
6237
  :param domain_endpoint: The endpoint of the Amazon OpenSearch Service domain.
6238
6238
  :param exact_response: Specifies whether to return an exact response or to return an answer generated by the model using the fields you specify from the database.
6239
6239
  :param exact_response_fields: Contains the names of the fields used for an exact response to the user.
6240
- :param include_fields: List of fields to include.
6240
+ :param include_fields: Contains a list of fields from the Amazon OpenSearch Service that the model can use to generate the answer to the query.
6241
6241
  :param index_name: The name of the Amazon OpenSearch Service index.
6242
6242
 
6243
6243
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-opensearchconfiguration.html
@@ -6312,7 +6312,7 @@ class CfnBot(
6312
6312
 
6313
6313
  @builtins.property
6314
6314
  def include_fields(self) -> typing.Optional[typing.List[builtins.str]]:
6315
- '''List of fields to include.
6315
+ '''Contains a list of fields from the Amazon OpenSearch Service that the model can use to generate the answer to the query.
6316
6316
 
6317
6317
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-opensearchconfiguration.html#cfn-lex-bot-opensearchconfiguration-includefields
6318
6318
  '''
@@ -7222,10 +7222,10 @@ class CfnBot(
7222
7222
  bedrock_model_configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnBot.BedrockModelSpecificationProperty", typing.Dict[builtins.str, typing.Any]]],
7223
7223
  data_source_configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnBot.DataSourceConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
7224
7224
  ) -> None:
7225
- '''Details about the the configuration of the built-in Amazon.QnAIntent.
7225
+ '''Details about the the configuration of the built-in ``Amazon.QnAIntent`` .
7226
7226
 
7227
7227
  :param bedrock_model_configuration: Contains information about the Amazon Bedrock model used to interpret the prompt used in descriptive bot building.
7228
- :param data_source_configuration: Contains details about the configuration of the data source used for the AMAZON.QnAIntent.
7228
+ :param data_source_configuration: Contains details about the configuration of the data source used for the ``AMAZON.QnAIntent`` .
7229
7229
 
7230
7230
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-qnaintentconfiguration.html
7231
7231
  :exampleMetadata: fixture=_generated
@@ -7302,7 +7302,7 @@ class CfnBot(
7302
7302
  def data_source_configuration(
7303
7303
  self,
7304
7304
  ) -> typing.Union[_IResolvable_da3f097b, "CfnBot.DataSourceConfigurationProperty"]:
7305
- '''Contains details about the configuration of the data source used for the AMAZON.QnAIntent.
7305
+ '''Contains details about the configuration of the data source used for the ``AMAZON.QnAIntent`` .
7306
7306
 
7307
7307
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-qnaintentconfiguration.html#cfn-lex-bot-qnaintentconfiguration-datasourceconfiguration
7308
7308
  '''
@@ -7340,12 +7340,12 @@ class CfnBot(
7340
7340
  query_filter_string_enabled: typing.Union[builtins.bool, _IResolvable_da3f097b],
7341
7341
  query_filter_string: typing.Optional[builtins.str] = None,
7342
7342
  ) -> None:
7343
- '''Contains details about the configuration of the Amazon Kendra index used for the AMAZON.QnAIntent.
7343
+ '''Contains details about the configuration of the Amazon Kendra index used for the ``AMAZON.QnAIntent`` .
7344
7344
 
7345
- :param exact_response: Specifies whether to return an exact response from the Amazon Kendra index or to let the Amazon Bedrock model you select generate a response based on the results.
7345
+ :param exact_response: Specifies whether to return an exact response from the Amazon Kendra index or to let the Amazon Bedrock model you select generate a response based on the results. To use this feature, you must first add FAQ questions to your index by following the steps at `Adding frequently asked questions (FAQs) to an index <https://docs.aws.amazon.com/kendra/latest/dg/in-creating-faq.html>`_ .
7346
7346
  :param kendra_index: The ARN of the Amazon Kendra index to use.
7347
7347
  :param query_filter_string_enabled: Specifies whether to enable an Amazon Kendra filter string or not.
7348
- :param query_filter_string: Contains the Amazon Kendra filter string to use if enabled.
7348
+ :param query_filter_string: Contains the Amazon Kendra filter string to use if enabled. For more information on the Amazon Kendra search filter JSON format, see `Using document attributes to filter search results <https://docs.aws.amazon.com/kendra/latest/dg/filtering.html#search-filtering>`_ .
7349
7349
 
7350
7350
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-qnakendraconfiguration.html
7351
7351
  :exampleMetadata: fixture=_generated
@@ -7383,6 +7383,8 @@ class CfnBot(
7383
7383
  def exact_response(self) -> typing.Union[builtins.bool, _IResolvable_da3f097b]:
7384
7384
  '''Specifies whether to return an exact response from the Amazon Kendra index or to let the Amazon Bedrock model you select generate a response based on the results.
7385
7385
 
7386
+ To use this feature, you must first add FAQ questions to your index by following the steps at `Adding frequently asked questions (FAQs) to an index <https://docs.aws.amazon.com/kendra/latest/dg/in-creating-faq.html>`_ .
7387
+
7386
7388
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-qnakendraconfiguration.html#cfn-lex-bot-qnakendraconfiguration-exactresponse
7387
7389
  '''
7388
7390
  result = self._values.get("exact_response")
@@ -7415,6 +7417,8 @@ class CfnBot(
7415
7417
  def query_filter_string(self) -> typing.Optional[builtins.str]:
7416
7418
  '''Contains the Amazon Kendra filter string to use if enabled.
7417
7419
 
7420
+ For more information on the Amazon Kendra search filter JSON format, see `Using document attributes to filter search results <https://docs.aws.amazon.com/kendra/latest/dg/filtering.html#search-filtering>`_ .
7421
+
7418
7422
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-qnakendraconfiguration.html#cfn-lex-bot-qnakendraconfiguration-queryfilterstring
7419
7423
  '''
7420
7424
  result = self._values.get("query_filter_string")
@@ -159,6 +159,24 @@ logs.SubscriptionFilter(self, "Subscription",
159
159
  )
160
160
  ```
161
161
 
162
+ When you use `FirehoseDestination`, you can choose the method used to
163
+ distribute log data to the destination by setting the `distribution` property.
164
+
165
+ ```python
166
+ import aws_cdk.aws_logs_destinations as destinations
167
+ import aws_cdk.aws_kinesisfirehose as firehose
168
+
169
+ # delivery_stream: firehose.IDeliveryStream
170
+ # log_group: logs.LogGroup
171
+
172
+
173
+ logs.SubscriptionFilter(self, "Subscription",
174
+ log_group=log_group,
175
+ destination=destinations.FirehoseDestination(delivery_stream),
176
+ filter_pattern=logs.FilterPattern.all_events()
177
+ )
178
+ ```
179
+
162
180
  ## Metric Filters
163
181
 
164
182
  CloudWatch Logs can extract and emit metrics based on a textual log stream.