aws-sdk-lambda 1.92.0 → 1.93.0

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.
@@ -661,6 +661,8 @@ module Aws::Lambda
661
661
  # cluster.
662
662
  #
663
663
  # * **Amazon MQ** – The ARN of the broker.
664
+ #
665
+ # * **Amazon DocumentDB** – The ARN of the DocumentDB change stream.
664
666
  # @return [String]
665
667
  #
666
668
  # @!attribute [rw] function_name
@@ -708,6 +710,8 @@ module Aws::Lambda
708
710
  # * **Self-managed Apache Kafka** – Default 100. Max 10,000.
709
711
  #
710
712
  # * **Amazon MQ (ActiveMQ and RabbitMQ)** – Default 100. Max 10,000.
713
+ #
714
+ # * **DocumentDB** – Default 100. Max 10,000.
711
715
  # @return [Integer]
712
716
  #
713
717
  # @!attribute [rw] filter_criteria
@@ -727,12 +731,13 @@ module Aws::Lambda
727
731
  # seconds in increments of seconds.
728
732
  #
729
733
  # For streams and Amazon SQS event sources, the default batching
730
- # window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, and
731
- # Amazon MQ event sources, the default batching window is 500 ms. Note
732
- # that because you can only change `MaximumBatchingWindowInSeconds` in
733
- # increments of seconds, you cannot revert back to the 500 ms default
734
- # batching window after you have changed it. To restore the default
735
- # batching window, you must create a new event source mapping.
734
+ # window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka,
735
+ # Amazon MQ, and DocumentDB event sources, the default batching window
736
+ # is 500 ms. Note that because you can only change
737
+ # `MaximumBatchingWindowInSeconds` in increments of seconds, you
738
+ # cannot revert back to the 500 ms default batching window after you
739
+ # have changed it. To restore the default batching window, you must
740
+ # create a new event source mapping.
736
741
  #
737
742
  # Related setting: For streams and Amazon SQS event sources, when you
738
743
  # set `BatchSize` to a value greater than 10, you must set
@@ -740,14 +745,15 @@ module Aws::Lambda
740
745
  # @return [Integer]
741
746
  #
742
747
  # @!attribute [rw] parallelization_factor
743
- # (Streams only) The number of batches to process from each shard
744
- # concurrently.
748
+ # (Kinesis and DynamoDB Streams only) The number of batches to process
749
+ # from each shard concurrently.
745
750
  # @return [Integer]
746
751
  #
747
752
  # @!attribute [rw] starting_position
748
753
  # The position in a stream from which to start reading. Required for
749
754
  # Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources.
750
- # `AT_TIMESTAMP` is supported only for Amazon Kinesis streams.
755
+ # `AT_TIMESTAMP` is supported only for Amazon Kinesis streams and
756
+ # Amazon DocumentDB.
751
757
  # @return [String]
752
758
  #
753
759
  # @!attribute [rw] starting_position_timestamp
@@ -756,29 +762,31 @@ module Aws::Lambda
756
762
  # @return [Time]
757
763
  #
758
764
  # @!attribute [rw] destination_config
759
- # (Streams only) An Amazon SQS queue or Amazon SNS topic destination
760
- # for discarded records.
765
+ # (Kinesis and DynamoDB Streams only) A standard Amazon SQS queue or
766
+ # standard Amazon SNS topic destination for discarded records.
761
767
  # @return [Types::DestinationConfig]
762
768
  #
763
769
  # @!attribute [rw] maximum_record_age_in_seconds
764
- # (Streams only) Discard records older than the specified age. The
765
- # default value is infinite (-1).
770
+ # (Kinesis and DynamoDB Streams only) Discard records older than the
771
+ # specified age. The default value is infinite (-1).
766
772
  # @return [Integer]
767
773
  #
768
774
  # @!attribute [rw] bisect_batch_on_function_error
769
- # (Streams only) If the function returns an error, split the batch in
770
- # two and retry.
775
+ # (Kinesis and DynamoDB Streams only) If the function returns an
776
+ # error, split the batch in two and retry.
771
777
  # @return [Boolean]
772
778
  #
773
779
  # @!attribute [rw] maximum_retry_attempts
774
- # (Streams only) Discard records after the specified number of
775
- # retries. The default value is infinite (-1). When set to infinite
776
- # (-1), failed records are retried until the record expires.
780
+ # (Kinesis and DynamoDB Streams only) Discard records after the
781
+ # specified number of retries. The default value is infinite (-1).
782
+ # When set to infinite (-1), failed records are retried until the
783
+ # record expires.
777
784
  # @return [Integer]
778
785
  #
779
786
  # @!attribute [rw] tumbling_window_in_seconds
780
- # (Streams only) The duration in seconds of a processing window. The
781
- # range is between 1 second and 900 seconds.
787
+ # (Kinesis and DynamoDB Streams only) The duration in seconds of a
788
+ # processing window for DynamoDB and Kinesis Streams event sources. A
789
+ # value of 0 seconds indicates no tumbling window.
782
790
  # @return [Integer]
783
791
  #
784
792
  # @!attribute [rw] topics
@@ -799,8 +807,8 @@ module Aws::Lambda
799
807
  # @return [Types::SelfManagedEventSource]
800
808
  #
801
809
  # @!attribute [rw] function_response_types
802
- # (Streams and Amazon SQS) A list of current response type enums
803
- # applied to the event source mapping.
810
+ # (Kinesis, DynamoDB Streams, and Amazon SQS) A list of current
811
+ # response type enums applied to the event source mapping.
804
812
  # @return [Array<String>]
805
813
  #
806
814
  # @!attribute [rw] amazon_managed_kafka_event_source_config
@@ -1117,13 +1125,33 @@ module Aws::Lambda
1117
1125
  # [1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
1118
1126
  # @return [Types::Cors]
1119
1127
  #
1128
+ # @!attribute [rw] invoke_mode
1129
+ # Use one of the following options:
1130
+ #
1131
+ # * `BUFFERED` – This is the default option. Lambda invokes your
1132
+ # function using the `Invoke` API operation. Invocation results are
1133
+ # available when the payload is complete. The maximum payload size
1134
+ # is 6 MB.
1135
+ #
1136
+ # * `RESPONSE_STREAM` – Your function streams payload results as they
1137
+ # become available. Lambda invokes your function using the
1138
+ # `InvokeWithResponseStream` API operation. The maximum response
1139
+ # payload size is 20 MB, however, you can [request a quota
1140
+ # increase][1].
1141
+ #
1142
+ #
1143
+ #
1144
+ # [1]: https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html
1145
+ # @return [String]
1146
+ #
1120
1147
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunctionUrlConfigRequest AWS API Documentation
1121
1148
  #
1122
1149
  class CreateFunctionUrlConfigRequest < Struct.new(
1123
1150
  :function_name,
1124
1151
  :qualifier,
1125
1152
  :auth_type,
1126
- :cors)
1153
+ :cors,
1154
+ :invoke_mode)
1127
1155
  SENSITIVE = []
1128
1156
  include Aws::Structure
1129
1157
  end
@@ -1166,6 +1194,25 @@ module Aws::Lambda
1166
1194
  # [1]: https://www.w3.org/TR/NOTE-datetime
1167
1195
  # @return [Time]
1168
1196
  #
1197
+ # @!attribute [rw] invoke_mode
1198
+ # Use one of the following options:
1199
+ #
1200
+ # * `BUFFERED` – This is the default option. Lambda invokes your
1201
+ # function using the `Invoke` API operation. Invocation results are
1202
+ # available when the payload is complete. The maximum payload size
1203
+ # is 6 MB.
1204
+ #
1205
+ # * `RESPONSE_STREAM` – Your function streams payload results as they
1206
+ # become available. Lambda invokes your function using the
1207
+ # `InvokeWithResponseStream` API operation. The maximum response
1208
+ # payload size is 20 MB, however, you can [request a quota
1209
+ # increase][1].
1210
+ #
1211
+ #
1212
+ #
1213
+ # [1]: https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html
1214
+ # @return [String]
1215
+ #
1169
1216
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunctionUrlConfigResponse AWS API Documentation
1170
1217
  #
1171
1218
  class CreateFunctionUrlConfigResponse < Struct.new(
@@ -1173,7 +1220,8 @@ module Aws::Lambda
1173
1220
  :function_arn,
1174
1221
  :auth_type,
1175
1222
  :cors,
1176
- :creation_time)
1223
+ :creation_time,
1224
+ :invoke_mode)
1177
1225
  SENSITIVE = []
1178
1226
  include Aws::Structure
1179
1227
  end
@@ -1730,7 +1778,8 @@ module Aws::Lambda
1730
1778
  # @!attribute [rw] starting_position
1731
1779
  # The position in a stream from which to start reading. Required for
1732
1780
  # Amazon Kinesis, Amazon DynamoDB, and Amazon MSK stream sources.
1733
- # `AT_TIMESTAMP` is supported only for Amazon Kinesis streams.
1781
+ # `AT_TIMESTAMP` is supported only for Amazon Kinesis streams and
1782
+ # Amazon DocumentDB.
1734
1783
  # @return [String]
1735
1784
  #
1736
1785
  # @!attribute [rw] starting_position_timestamp
@@ -1758,12 +1807,13 @@ module Aws::Lambda
1758
1807
  # seconds in increments of seconds.
1759
1808
  #
1760
1809
  # For streams and Amazon SQS event sources, the default batching
1761
- # window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, and
1762
- # Amazon MQ event sources, the default batching window is 500 ms. Note
1763
- # that because you can only change `MaximumBatchingWindowInSeconds` in
1764
- # increments of seconds, you cannot revert back to the 500 ms default
1765
- # batching window after you have changed it. To restore the default
1766
- # batching window, you must create a new event source mapping.
1810
+ # window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka,
1811
+ # Amazon MQ, and DocumentDB event sources, the default batching window
1812
+ # is 500 ms. Note that because you can only change
1813
+ # `MaximumBatchingWindowInSeconds` in increments of seconds, you
1814
+ # cannot revert back to the 500 ms default batching window after you
1815
+ # have changed it. To restore the default batching window, you must
1816
+ # create a new event source mapping.
1767
1817
  #
1768
1818
  # Related setting: For streams and Amazon SQS event sources, when you
1769
1819
  # set `BatchSize` to a value greater than 10, you must set
@@ -1771,8 +1821,8 @@ module Aws::Lambda
1771
1821
  # @return [Integer]
1772
1822
  #
1773
1823
  # @!attribute [rw] parallelization_factor
1774
- # (Streams only) The number of batches to process concurrently from
1775
- # each shard. The default value is 1.
1824
+ # (Kinesis and DynamoDB Streams only) The number of batches to process
1825
+ # concurrently from each shard. The default value is 1.
1776
1826
  # @return [Integer]
1777
1827
  #
1778
1828
  # @!attribute [rw] event_source_arn
@@ -1814,8 +1864,8 @@ module Aws::Lambda
1814
1864
  # @return [String]
1815
1865
  #
1816
1866
  # @!attribute [rw] destination_config
1817
- # (Streams only) An Amazon SQS queue or Amazon SNS topic destination
1818
- # for discarded records.
1867
+ # (Kinesis and DynamoDB Streams only) An Amazon SQS queue or Amazon
1868
+ # SNS topic destination for discarded records.
1819
1869
  # @return [Types::DestinationConfig]
1820
1870
  #
1821
1871
  # @!attribute [rw] topics
@@ -1837,31 +1887,34 @@ module Aws::Lambda
1837
1887
  # @return [Types::SelfManagedEventSource]
1838
1888
  #
1839
1889
  # @!attribute [rw] maximum_record_age_in_seconds
1840
- # (Streams only) Discard records older than the specified age. The
1841
- # default value is -1, which sets the maximum age to infinite. When
1842
- # the value is set to infinite, Lambda never discards old records.
1890
+ # (Kinesis and DynamoDB Streams only) Discard records older than the
1891
+ # specified age. The default value is -1, which sets the maximum age
1892
+ # to infinite. When the value is set to infinite, Lambda never
1893
+ # discards old records.
1843
1894
  # @return [Integer]
1844
1895
  #
1845
1896
  # @!attribute [rw] bisect_batch_on_function_error
1846
- # (Streams only) If the function returns an error, split the batch in
1847
- # two and retry. The default value is false.
1897
+ # (Kinesis and DynamoDB Streams only) If the function returns an
1898
+ # error, split the batch in two and retry. The default value is false.
1848
1899
  # @return [Boolean]
1849
1900
  #
1850
1901
  # @!attribute [rw] maximum_retry_attempts
1851
- # (Streams only) Discard records after the specified number of
1852
- # retries. The default value is -1, which sets the maximum number of
1853
- # retries to infinite. When MaximumRetryAttempts is infinite, Lambda
1854
- # retries failed records until the record expires in the event source.
1902
+ # (Kinesis and DynamoDB Streams only) Discard records after the
1903
+ # specified number of retries. The default value is -1, which sets the
1904
+ # maximum number of retries to infinite. When MaximumRetryAttempts is
1905
+ # infinite, Lambda retries failed records until the record expires in
1906
+ # the event source.
1855
1907
  # @return [Integer]
1856
1908
  #
1857
1909
  # @!attribute [rw] tumbling_window_in_seconds
1858
- # (Streams only) The duration in seconds of a processing window. The
1859
- # range is 1–900 seconds.
1910
+ # (Kinesis and DynamoDB Streams only) The duration in seconds of a
1911
+ # processing window for DynamoDB and Kinesis Streams event sources. A
1912
+ # value of 0 seconds indicates no tumbling window.
1860
1913
  # @return [Integer]
1861
1914
  #
1862
1915
  # @!attribute [rw] function_response_types
1863
- # (Streams and Amazon SQS) A list of current response type enums
1864
- # applied to the event source mapping.
1916
+ # (Kinesis, DynamoDB Streams, and Amazon SQS) A list of current
1917
+ # response type enums applied to the event source mapping.
1865
1918
  # @return [Array<String>]
1866
1919
  #
1867
1920
  # @!attribute [rw] amazon_managed_kafka_event_source_config
@@ -2308,9 +2361,9 @@ module Aws::Lambda
2308
2361
  # * **Function** - The Amazon Resource Name (ARN) of a Lambda
2309
2362
  # function.
2310
2363
  #
2311
- # * **Queue** - The ARN of an SQS queue.
2364
+ # * **Queue** - The ARN of a standard SQS queue.
2312
2365
  #
2313
- # * **Topic** - The ARN of an SNS topic.
2366
+ # * **Topic** - The ARN of a standard SNS topic.
2314
2367
  #
2315
2368
  # * **Event Bus** - The ARN of an Amazon EventBridge event bus.
2316
2369
  # @return [Types::DestinationConfig]
@@ -2376,6 +2429,25 @@ module Aws::Lambda
2376
2429
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html
2377
2430
  # @return [String]
2378
2431
  #
2432
+ # @!attribute [rw] invoke_mode
2433
+ # Use one of the following options:
2434
+ #
2435
+ # * `BUFFERED` – This is the default option. Lambda invokes your
2436
+ # function using the `Invoke` API operation. Invocation results are
2437
+ # available when the payload is complete. The maximum payload size
2438
+ # is 6 MB.
2439
+ #
2440
+ # * `RESPONSE_STREAM` – Your function streams payload results as they
2441
+ # become available. Lambda invokes your function using the
2442
+ # `InvokeWithResponseStream` API operation. The maximum response
2443
+ # payload size is 20 MB, however, you can [request a quota
2444
+ # increase][1].
2445
+ #
2446
+ #
2447
+ #
2448
+ # [1]: https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html
2449
+ # @return [String]
2450
+ #
2379
2451
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionUrlConfig AWS API Documentation
2380
2452
  #
2381
2453
  class FunctionUrlConfig < Struct.new(
@@ -2384,7 +2456,8 @@ module Aws::Lambda
2384
2456
  :creation_time,
2385
2457
  :last_modified_time,
2386
2458
  :cors,
2387
- :auth_type)
2459
+ :auth_type,
2460
+ :invoke_mode)
2388
2461
  SENSITIVE = []
2389
2462
  include Aws::Structure
2390
2463
  end
@@ -2775,6 +2848,25 @@ module Aws::Lambda
2775
2848
  # [1]: https://www.w3.org/TR/NOTE-datetime
2776
2849
  # @return [Time]
2777
2850
  #
2851
+ # @!attribute [rw] invoke_mode
2852
+ # Use one of the following options:
2853
+ #
2854
+ # * `BUFFERED` – This is the default option. Lambda invokes your
2855
+ # function using the `Invoke` API operation. Invocation results are
2856
+ # available when the payload is complete. The maximum payload size
2857
+ # is 6 MB.
2858
+ #
2859
+ # * `RESPONSE_STREAM` – Your function streams payload results as they
2860
+ # become available. Lambda invokes your function using the
2861
+ # `InvokeWithResponseStream` API operation. The maximum response
2862
+ # payload size is 20 MB, however, you can [request a quota
2863
+ # increase][1].
2864
+ #
2865
+ #
2866
+ #
2867
+ # [1]: https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html
2868
+ # @return [String]
2869
+ #
2778
2870
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionUrlConfigResponse AWS API Documentation
2779
2871
  #
2780
2872
  class GetFunctionUrlConfigResponse < Struct.new(
@@ -2783,7 +2875,8 @@ module Aws::Lambda
2783
2875
  :auth_type,
2784
2876
  :cors,
2785
2877
  :creation_time,
2786
- :last_modified_time)
2878
+ :last_modified_time,
2879
+ :invoke_mode)
2787
2880
  SENSITIVE = []
2788
2881
  include Aws::Structure
2789
2882
  end
@@ -3438,6 +3531,140 @@ module Aws::Lambda
3438
3531
  include Aws::Structure
3439
3532
  end
3440
3533
 
3534
+ # A chunk of the streamed response payload.
3535
+ #
3536
+ # @!attribute [rw] payload
3537
+ # Data returned by your Lambda function.
3538
+ # @return [String]
3539
+ #
3540
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvokeResponseStreamUpdate AWS API Documentation
3541
+ #
3542
+ class InvokeResponseStreamUpdate < Struct.new(
3543
+ :payload,
3544
+ :event_type)
3545
+ SENSITIVE = [:payload]
3546
+ include Aws::Structure
3547
+ end
3548
+
3549
+ # A response confirming that the event stream is complete.
3550
+ #
3551
+ # @!attribute [rw] error_code
3552
+ # An error code.
3553
+ # @return [String]
3554
+ #
3555
+ # @!attribute [rw] error_details
3556
+ # The details of any returned error.
3557
+ # @return [String]
3558
+ #
3559
+ # @!attribute [rw] log_result
3560
+ # The last 4 KB of the execution log, which is base64-encoded.
3561
+ # @return [String]
3562
+ #
3563
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvokeWithResponseStreamCompleteEvent AWS API Documentation
3564
+ #
3565
+ class InvokeWithResponseStreamCompleteEvent < Struct.new(
3566
+ :error_code,
3567
+ :error_details,
3568
+ :log_result,
3569
+ :event_type)
3570
+ SENSITIVE = []
3571
+ include Aws::Structure
3572
+ end
3573
+
3574
+ # @!attribute [rw] function_name
3575
+ # The name of the Lambda function.
3576
+ #
3577
+ # **Name formats**
3578
+ #
3579
+ # * **Function name** – `my-function`.
3580
+ #
3581
+ # * **Function ARN** –
3582
+ # `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
3583
+ #
3584
+ # * **Partial ARN** – `123456789012:function:my-function`.
3585
+ #
3586
+ # The length constraint applies only to the full ARN. If you specify
3587
+ # only the function name, it is limited to 64 characters in length.
3588
+ # @return [String]
3589
+ #
3590
+ # @!attribute [rw] invocation_type
3591
+ # Use one of the following options:
3592
+ #
3593
+ # * `RequestResponse` (default) – Invoke the function synchronously.
3594
+ # Keep the connection open until the function returns a response or
3595
+ # times out. The API operation response includes the function
3596
+ # response and additional data.
3597
+ #
3598
+ # * `DryRun` – Validate parameter values and verify that the IAM user
3599
+ # or role has permission to invoke the function.
3600
+ # @return [String]
3601
+ #
3602
+ # @!attribute [rw] log_type
3603
+ # Set to `Tail` to include the execution log in the response. Applies
3604
+ # to synchronously invoked functions only.
3605
+ # @return [String]
3606
+ #
3607
+ # @!attribute [rw] client_context
3608
+ # Up to 3,583 bytes of base64-encoded data about the invoking client
3609
+ # to pass to the function in the context object.
3610
+ # @return [String]
3611
+ #
3612
+ # @!attribute [rw] qualifier
3613
+ # The alias name.
3614
+ # @return [String]
3615
+ #
3616
+ # @!attribute [rw] payload
3617
+ # The JSON that you want to provide to your Lambda function as input.
3618
+ #
3619
+ # You can enter the JSON directly. For example, `--payload '\{ "key":
3620
+ # "value" \}'`. You can also specify a file path. For example,
3621
+ # `--payload file://payload.json`.
3622
+ # @return [String]
3623
+ #
3624
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvokeWithResponseStreamRequest AWS API Documentation
3625
+ #
3626
+ class InvokeWithResponseStreamRequest < Struct.new(
3627
+ :function_name,
3628
+ :invocation_type,
3629
+ :log_type,
3630
+ :client_context,
3631
+ :qualifier,
3632
+ :payload)
3633
+ SENSITIVE = [:payload]
3634
+ include Aws::Structure
3635
+ end
3636
+
3637
+ # @!attribute [rw] status_code
3638
+ # For a successful request, the HTTP status code is in the 200 range.
3639
+ # For the `RequestResponse` invocation type, this status code is 200.
3640
+ # For the `DryRun` invocation type, this status code is 204.
3641
+ # @return [Integer]
3642
+ #
3643
+ # @!attribute [rw] executed_version
3644
+ # The version of the function that executed. When you invoke a
3645
+ # function with an alias, this indicates which version the alias
3646
+ # resolved to.
3647
+ # @return [String]
3648
+ #
3649
+ # @!attribute [rw] event_stream
3650
+ # The stream of response payloads.
3651
+ # @return [Types::InvokeWithResponseStreamResponseEvent]
3652
+ #
3653
+ # @!attribute [rw] response_stream_content_type
3654
+ # The type of data the stream is returning.
3655
+ # @return [String]
3656
+ #
3657
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvokeWithResponseStreamResponse AWS API Documentation
3658
+ #
3659
+ class InvokeWithResponseStreamResponse < Struct.new(
3660
+ :status_code,
3661
+ :executed_version,
3662
+ :event_stream,
3663
+ :response_stream_content_type)
3664
+ SENSITIVE = []
3665
+ include Aws::Structure
3666
+ end
3667
+
3441
3668
  # Lambda couldn't decrypt the environment variables because KMS access
3442
3669
  # was denied. Check the Lambda function's KMS permissions.
3443
3670
  #
@@ -3809,6 +4036,8 @@ module Aws::Lambda
3809
4036
  # cluster.
3810
4037
  #
3811
4038
  # * **Amazon MQ** – The ARN of the broker.
4039
+ #
4040
+ # * **Amazon DocumentDB** – The ARN of the DocumentDB change stream.
3812
4041
  # @return [String]
3813
4042
  #
3814
4043
  # @!attribute [rw] function_name
@@ -4740,9 +4969,9 @@ module Aws::Lambda
4740
4969
  # * **Function** - The Amazon Resource Name (ARN) of a Lambda
4741
4970
  # function.
4742
4971
  #
4743
- # * **Queue** - The ARN of an SQS queue.
4972
+ # * **Queue** - The ARN of a standard SQS queue.
4744
4973
  #
4745
- # * **Topic** - The ARN of an SNS topic.
4974
+ # * **Topic** - The ARN of a standard SNS topic.
4746
4975
  #
4747
4976
  # * **Event Bus** - The ARN of an Amazon EventBridge event bus.
4748
4977
  # @return [Types::DestinationConfig]
@@ -5674,6 +5903,8 @@ module Aws::Lambda
5674
5903
  # * **Self-managed Apache Kafka** – Default 100. Max 10,000.
5675
5904
  #
5676
5905
  # * **Amazon MQ (ActiveMQ and RabbitMQ)** – Default 100. Max 10,000.
5906
+ #
5907
+ # * **DocumentDB** – Default 100. Max 10,000.
5677
5908
  # @return [Integer]
5678
5909
  #
5679
5910
  # @!attribute [rw] filter_criteria
@@ -5693,12 +5924,13 @@ module Aws::Lambda
5693
5924
  # seconds in increments of seconds.
5694
5925
  #
5695
5926
  # For streams and Amazon SQS event sources, the default batching
5696
- # window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, and
5697
- # Amazon MQ event sources, the default batching window is 500 ms. Note
5698
- # that because you can only change `MaximumBatchingWindowInSeconds` in
5699
- # increments of seconds, you cannot revert back to the 500 ms default
5700
- # batching window after you have changed it. To restore the default
5701
- # batching window, you must create a new event source mapping.
5927
+ # window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka,
5928
+ # Amazon MQ, and DocumentDB event sources, the default batching window
5929
+ # is 500 ms. Note that because you can only change
5930
+ # `MaximumBatchingWindowInSeconds` in increments of seconds, you
5931
+ # cannot revert back to the 500 ms default batching window after you
5932
+ # have changed it. To restore the default batching window, you must
5933
+ # create a new event source mapping.
5702
5934
  #
5703
5935
  # Related setting: For streams and Amazon SQS event sources, when you
5704
5936
  # set `BatchSize` to a value greater than 10, you must set
@@ -5706,29 +5938,30 @@ module Aws::Lambda
5706
5938
  # @return [Integer]
5707
5939
  #
5708
5940
  # @!attribute [rw] destination_config
5709
- # (Streams only) An Amazon SQS queue or Amazon SNS topic destination
5710
- # for discarded records.
5941
+ # (Kinesis and DynamoDB Streams only) A standard Amazon SQS queue or
5942
+ # standard Amazon SNS topic destination for discarded records.
5711
5943
  # @return [Types::DestinationConfig]
5712
5944
  #
5713
5945
  # @!attribute [rw] maximum_record_age_in_seconds
5714
- # (Streams only) Discard records older than the specified age. The
5715
- # default value is infinite (-1).
5946
+ # (Kinesis and DynamoDB Streams only) Discard records older than the
5947
+ # specified age. The default value is infinite (-1).
5716
5948
  # @return [Integer]
5717
5949
  #
5718
5950
  # @!attribute [rw] bisect_batch_on_function_error
5719
- # (Streams only) If the function returns an error, split the batch in
5720
- # two and retry.
5951
+ # (Kinesis and DynamoDB Streams only) If the function returns an
5952
+ # error, split the batch in two and retry.
5721
5953
  # @return [Boolean]
5722
5954
  #
5723
5955
  # @!attribute [rw] maximum_retry_attempts
5724
- # (Streams only) Discard records after the specified number of
5725
- # retries. The default value is infinite (-1). When set to infinite
5726
- # (-1), failed records are retried until the record expires.
5956
+ # (Kinesis and DynamoDB Streams only) Discard records after the
5957
+ # specified number of retries. The default value is infinite (-1).
5958
+ # When set to infinite (-1), failed records are retried until the
5959
+ # record expires.
5727
5960
  # @return [Integer]
5728
5961
  #
5729
5962
  # @!attribute [rw] parallelization_factor
5730
- # (Streams only) The number of batches to process from each shard
5731
- # concurrently.
5963
+ # (Kinesis and DynamoDB Streams only) The number of batches to process
5964
+ # from each shard concurrently.
5732
5965
  # @return [Integer]
5733
5966
  #
5734
5967
  # @!attribute [rw] source_access_configurations
@@ -5737,13 +5970,14 @@ module Aws::Lambda
5737
5970
  # @return [Array<Types::SourceAccessConfiguration>]
5738
5971
  #
5739
5972
  # @!attribute [rw] tumbling_window_in_seconds
5740
- # (Streams only) The duration in seconds of a processing window. The
5741
- # range is between 1 second and 900 seconds.
5973
+ # (Kinesis and DynamoDB Streams only) The duration in seconds of a
5974
+ # processing window for DynamoDB and Kinesis Streams event sources. A
5975
+ # value of 0 seconds indicates no tumbling window.
5742
5976
  # @return [Integer]
5743
5977
  #
5744
5978
  # @!attribute [rw] function_response_types
5745
- # (Streams and Amazon SQS) A list of current response type enums
5746
- # applied to the event source mapping.
5979
+ # (Kinesis, DynamoDB Streams, and Amazon SQS) A list of current
5980
+ # response type enums applied to the event source mapping.
5747
5981
  # @return [Array<String>]
5748
5982
  #
5749
5983
  # @!attribute [rw] scaling_config
@@ -6093,9 +6327,9 @@ module Aws::Lambda
6093
6327
  # * **Function** - The Amazon Resource Name (ARN) of a Lambda
6094
6328
  # function.
6095
6329
  #
6096
- # * **Queue** - The ARN of an SQS queue.
6330
+ # * **Queue** - The ARN of a standard SQS queue.
6097
6331
  #
6098
- # * **Topic** - The ARN of an SNS topic.
6332
+ # * **Topic** - The ARN of a standard SNS topic.
6099
6333
  #
6100
6334
  # * **Event Bus** - The ARN of an Amazon EventBridge event bus.
6101
6335
  # @return [Types::DestinationConfig]
@@ -6153,13 +6387,33 @@ module Aws::Lambda
6153
6387
  # [1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
6154
6388
  # @return [Types::Cors]
6155
6389
  #
6390
+ # @!attribute [rw] invoke_mode
6391
+ # Use one of the following options:
6392
+ #
6393
+ # * `BUFFERED` – This is the default option. Lambda invokes your
6394
+ # function using the `Invoke` API operation. Invocation results are
6395
+ # available when the payload is complete. The maximum payload size
6396
+ # is 6 MB.
6397
+ #
6398
+ # * `RESPONSE_STREAM` – Your function streams payload results as they
6399
+ # become available. Lambda invokes your function using the
6400
+ # `InvokeWithResponseStream` API operation. The maximum response
6401
+ # payload size is 20 MB, however, you can [request a quota
6402
+ # increase][1].
6403
+ #
6404
+ #
6405
+ #
6406
+ # [1]: https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html
6407
+ # @return [String]
6408
+ #
6156
6409
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionUrlConfigRequest AWS API Documentation
6157
6410
  #
6158
6411
  class UpdateFunctionUrlConfigRequest < Struct.new(
6159
6412
  :function_name,
6160
6413
  :qualifier,
6161
6414
  :auth_type,
6162
- :cors)
6415
+ :cors,
6416
+ :invoke_mode)
6163
6417
  SENSITIVE = []
6164
6418
  include Aws::Structure
6165
6419
  end
@@ -6211,6 +6465,25 @@ module Aws::Lambda
6211
6465
  # [1]: https://www.w3.org/TR/NOTE-datetime
6212
6466
  # @return [Time]
6213
6467
  #
6468
+ # @!attribute [rw] invoke_mode
6469
+ # Use one of the following options:
6470
+ #
6471
+ # * `BUFFERED` – This is the default option. Lambda invokes your
6472
+ # function using the `Invoke` API operation. Invocation results are
6473
+ # available when the payload is complete. The maximum payload size
6474
+ # is 6 MB.
6475
+ #
6476
+ # * `RESPONSE_STREAM` – Your function streams payload results as they
6477
+ # become available. Lambda invokes your function using the
6478
+ # `InvokeWithResponseStream` API operation. The maximum response
6479
+ # payload size is 20 MB, however, you can [request a quota
6480
+ # increase][1].
6481
+ #
6482
+ #
6483
+ #
6484
+ # [1]: https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html
6485
+ # @return [String]
6486
+ #
6214
6487
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionUrlConfigResponse AWS API Documentation
6215
6488
  #
6216
6489
  class UpdateFunctionUrlConfigResponse < Struct.new(
@@ -6219,7 +6492,8 @@ module Aws::Lambda
6219
6492
  :auth_type,
6220
6493
  :cors,
6221
6494
  :creation_time,
6222
- :last_modified_time)
6495
+ :last_modified_time,
6496
+ :invoke_mode)
6223
6497
  SENSITIVE = []
6224
6498
  include Aws::Structure
6225
6499
  end
@@ -6274,5 +6548,24 @@ module Aws::Lambda
6274
6548
  include Aws::Structure
6275
6549
  end
6276
6550
 
6551
+ # An object that includes a chunk of the response payload. When the
6552
+ # stream has ended, Lambda includes a `InvokeComplete` object.
6553
+ #
6554
+ # EventStream is an Enumerator of Events.
6555
+ # #event_types #=> Array, returns all modeled event types in the stream
6556
+ #
6557
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvokeWithResponseStreamResponseEvent AWS API Documentation
6558
+ #
6559
+ class InvokeWithResponseStreamResponseEvent < Enumerator
6560
+
6561
+ def event_types
6562
+ [
6563
+ :payload_chunk,
6564
+ :invoke_complete
6565
+ ]
6566
+ end
6567
+
6568
+ end
6569
+
6277
6570
  end
6278
6571
  end