aws-sdk-lambda 1.92.0 → 1.94.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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,38 @@ 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.
1894
+ #
1895
+ # <note markdown="1"> The minimum value that can be set is 60 seconds.
1896
+ #
1897
+ # </note>
1843
1898
  # @return [Integer]
1844
1899
  #
1845
1900
  # @!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.
1901
+ # (Kinesis and DynamoDB Streams only) If the function returns an
1902
+ # error, split the batch in two and retry. The default value is false.
1848
1903
  # @return [Boolean]
1849
1904
  #
1850
1905
  # @!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.
1906
+ # (Kinesis and DynamoDB Streams only) Discard records after the
1907
+ # specified number of retries. The default value is -1, which sets the
1908
+ # maximum number of retries to infinite. When MaximumRetryAttempts is
1909
+ # infinite, Lambda retries failed records until the record expires in
1910
+ # the event source.
1855
1911
  # @return [Integer]
1856
1912
  #
1857
1913
  # @!attribute [rw] tumbling_window_in_seconds
1858
- # (Streams only) The duration in seconds of a processing window. The
1859
- # range is 1–900 seconds.
1914
+ # (Kinesis and DynamoDB Streams only) The duration in seconds of a
1915
+ # processing window for DynamoDB and Kinesis Streams event sources. A
1916
+ # value of 0 seconds indicates no tumbling window.
1860
1917
  # @return [Integer]
1861
1918
  #
1862
1919
  # @!attribute [rw] function_response_types
1863
- # (Streams and Amazon SQS) A list of current response type enums
1864
- # applied to the event source mapping.
1920
+ # (Kinesis, DynamoDB Streams, and Amazon SQS) A list of current
1921
+ # response type enums applied to the event source mapping.
1865
1922
  # @return [Array<String>]
1866
1923
  #
1867
1924
  # @!attribute [rw] amazon_managed_kafka_event_source_config
@@ -2066,7 +2123,16 @@ module Aws::Lambda
2066
2123
  # @return [String]
2067
2124
  #
2068
2125
  # @!attribute [rw] runtime
2069
- # The runtime environment for the Lambda function.
2126
+ # The identifier of the function's [runtime][1]. Runtime is required
2127
+ # if the deployment package is a .zip file archive.
2128
+ #
2129
+ # The following list includes deprecated runtimes. For more
2130
+ # information, see [Runtime deprecation policy][2].
2131
+ #
2132
+ #
2133
+ #
2134
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
2135
+ # [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy
2070
2136
  # @return [String]
2071
2137
  #
2072
2138
  # @!attribute [rw] role
@@ -2308,9 +2374,9 @@ module Aws::Lambda
2308
2374
  # * **Function** - The Amazon Resource Name (ARN) of a Lambda
2309
2375
  # function.
2310
2376
  #
2311
- # * **Queue** - The ARN of an SQS queue.
2377
+ # * **Queue** - The ARN of a standard SQS queue.
2312
2378
  #
2313
- # * **Topic** - The ARN of an SNS topic.
2379
+ # * **Topic** - The ARN of a standard SNS topic.
2314
2380
  #
2315
2381
  # * **Event Bus** - The ARN of an Amazon EventBridge event bus.
2316
2382
  # @return [Types::DestinationConfig]
@@ -2376,6 +2442,25 @@ module Aws::Lambda
2376
2442
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html
2377
2443
  # @return [String]
2378
2444
  #
2445
+ # @!attribute [rw] invoke_mode
2446
+ # Use one of the following options:
2447
+ #
2448
+ # * `BUFFERED` – This is the default option. Lambda invokes your
2449
+ # function using the `Invoke` API operation. Invocation results are
2450
+ # available when the payload is complete. The maximum payload size
2451
+ # is 6 MB.
2452
+ #
2453
+ # * `RESPONSE_STREAM` – Your function streams payload results as they
2454
+ # become available. Lambda invokes your function using the
2455
+ # `InvokeWithResponseStream` API operation. The maximum response
2456
+ # payload size is 20 MB, however, you can [request a quota
2457
+ # increase][1].
2458
+ #
2459
+ #
2460
+ #
2461
+ # [1]: https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html
2462
+ # @return [String]
2463
+ #
2379
2464
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionUrlConfig AWS API Documentation
2380
2465
  #
2381
2466
  class FunctionUrlConfig < Struct.new(
@@ -2384,7 +2469,8 @@ module Aws::Lambda
2384
2469
  :creation_time,
2385
2470
  :last_modified_time,
2386
2471
  :cors,
2387
- :auth_type)
2472
+ :auth_type,
2473
+ :invoke_mode)
2388
2474
  SENSITIVE = []
2389
2475
  include Aws::Structure
2390
2476
  end
@@ -2775,6 +2861,25 @@ module Aws::Lambda
2775
2861
  # [1]: https://www.w3.org/TR/NOTE-datetime
2776
2862
  # @return [Time]
2777
2863
  #
2864
+ # @!attribute [rw] invoke_mode
2865
+ # Use one of the following options:
2866
+ #
2867
+ # * `BUFFERED` – This is the default option. Lambda invokes your
2868
+ # function using the `Invoke` API operation. Invocation results are
2869
+ # available when the payload is complete. The maximum payload size
2870
+ # is 6 MB.
2871
+ #
2872
+ # * `RESPONSE_STREAM` – Your function streams payload results as they
2873
+ # become available. Lambda invokes your function using the
2874
+ # `InvokeWithResponseStream` API operation. The maximum response
2875
+ # payload size is 20 MB, however, you can [request a quota
2876
+ # increase][1].
2877
+ #
2878
+ #
2879
+ #
2880
+ # [1]: https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html
2881
+ # @return [String]
2882
+ #
2778
2883
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionUrlConfigResponse AWS API Documentation
2779
2884
  #
2780
2885
  class GetFunctionUrlConfigResponse < Struct.new(
@@ -2783,7 +2888,8 @@ module Aws::Lambda
2783
2888
  :auth_type,
2784
2889
  :cors,
2785
2890
  :creation_time,
2786
- :last_modified_time)
2891
+ :last_modified_time,
2892
+ :invoke_mode)
2787
2893
  SENSITIVE = []
2788
2894
  include Aws::Structure
2789
2895
  end
@@ -3438,6 +3544,140 @@ module Aws::Lambda
3438
3544
  include Aws::Structure
3439
3545
  end
3440
3546
 
3547
+ # A chunk of the streamed response payload.
3548
+ #
3549
+ # @!attribute [rw] payload
3550
+ # Data returned by your Lambda function.
3551
+ # @return [String]
3552
+ #
3553
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvokeResponseStreamUpdate AWS API Documentation
3554
+ #
3555
+ class InvokeResponseStreamUpdate < Struct.new(
3556
+ :payload,
3557
+ :event_type)
3558
+ SENSITIVE = [:payload]
3559
+ include Aws::Structure
3560
+ end
3561
+
3562
+ # A response confirming that the event stream is complete.
3563
+ #
3564
+ # @!attribute [rw] error_code
3565
+ # An error code.
3566
+ # @return [String]
3567
+ #
3568
+ # @!attribute [rw] error_details
3569
+ # The details of any returned error.
3570
+ # @return [String]
3571
+ #
3572
+ # @!attribute [rw] log_result
3573
+ # The last 4 KB of the execution log, which is base64-encoded.
3574
+ # @return [String]
3575
+ #
3576
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvokeWithResponseStreamCompleteEvent AWS API Documentation
3577
+ #
3578
+ class InvokeWithResponseStreamCompleteEvent < Struct.new(
3579
+ :error_code,
3580
+ :error_details,
3581
+ :log_result,
3582
+ :event_type)
3583
+ SENSITIVE = []
3584
+ include Aws::Structure
3585
+ end
3586
+
3587
+ # @!attribute [rw] function_name
3588
+ # The name of the Lambda function.
3589
+ #
3590
+ # **Name formats**
3591
+ #
3592
+ # * **Function name** – `my-function`.
3593
+ #
3594
+ # * **Function ARN** –
3595
+ # `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
3596
+ #
3597
+ # * **Partial ARN** – `123456789012:function:my-function`.
3598
+ #
3599
+ # The length constraint applies only to the full ARN. If you specify
3600
+ # only the function name, it is limited to 64 characters in length.
3601
+ # @return [String]
3602
+ #
3603
+ # @!attribute [rw] invocation_type
3604
+ # Use one of the following options:
3605
+ #
3606
+ # * `RequestResponse` (default) – Invoke the function synchronously.
3607
+ # Keep the connection open until the function returns a response or
3608
+ # times out. The API operation response includes the function
3609
+ # response and additional data.
3610
+ #
3611
+ # * `DryRun` – Validate parameter values and verify that the IAM user
3612
+ # or role has permission to invoke the function.
3613
+ # @return [String]
3614
+ #
3615
+ # @!attribute [rw] log_type
3616
+ # Set to `Tail` to include the execution log in the response. Applies
3617
+ # to synchronously invoked functions only.
3618
+ # @return [String]
3619
+ #
3620
+ # @!attribute [rw] client_context
3621
+ # Up to 3,583 bytes of base64-encoded data about the invoking client
3622
+ # to pass to the function in the context object.
3623
+ # @return [String]
3624
+ #
3625
+ # @!attribute [rw] qualifier
3626
+ # The alias name.
3627
+ # @return [String]
3628
+ #
3629
+ # @!attribute [rw] payload
3630
+ # The JSON that you want to provide to your Lambda function as input.
3631
+ #
3632
+ # You can enter the JSON directly. For example, `--payload '\{ "key":
3633
+ # "value" \}'`. You can also specify a file path. For example,
3634
+ # `--payload file://payload.json`.
3635
+ # @return [String]
3636
+ #
3637
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvokeWithResponseStreamRequest AWS API Documentation
3638
+ #
3639
+ class InvokeWithResponseStreamRequest < Struct.new(
3640
+ :function_name,
3641
+ :invocation_type,
3642
+ :log_type,
3643
+ :client_context,
3644
+ :qualifier,
3645
+ :payload)
3646
+ SENSITIVE = [:payload]
3647
+ include Aws::Structure
3648
+ end
3649
+
3650
+ # @!attribute [rw] status_code
3651
+ # For a successful request, the HTTP status code is in the 200 range.
3652
+ # For the `RequestResponse` invocation type, this status code is 200.
3653
+ # For the `DryRun` invocation type, this status code is 204.
3654
+ # @return [Integer]
3655
+ #
3656
+ # @!attribute [rw] executed_version
3657
+ # The version of the function that executed. When you invoke a
3658
+ # function with an alias, this indicates which version the alias
3659
+ # resolved to.
3660
+ # @return [String]
3661
+ #
3662
+ # @!attribute [rw] event_stream
3663
+ # The stream of response payloads.
3664
+ # @return [Types::InvokeWithResponseStreamResponseEvent]
3665
+ #
3666
+ # @!attribute [rw] response_stream_content_type
3667
+ # The type of data the stream is returning.
3668
+ # @return [String]
3669
+ #
3670
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvokeWithResponseStreamResponse AWS API Documentation
3671
+ #
3672
+ class InvokeWithResponseStreamResponse < Struct.new(
3673
+ :status_code,
3674
+ :executed_version,
3675
+ :event_stream,
3676
+ :response_stream_content_type)
3677
+ SENSITIVE = []
3678
+ include Aws::Structure
3679
+ end
3680
+
3441
3681
  # Lambda couldn't decrypt the environment variables because KMS access
3442
3682
  # was denied. Check the Lambda function's KMS permissions.
3443
3683
  #
@@ -3809,6 +4049,8 @@ module Aws::Lambda
3809
4049
  # cluster.
3810
4050
  #
3811
4051
  # * **Amazon MQ** – The ARN of the broker.
4052
+ #
4053
+ # * **Amazon DocumentDB** – The ARN of the DocumentDB change stream.
3812
4054
  # @return [String]
3813
4055
  #
3814
4056
  # @!attribute [rw] function_name
@@ -4740,9 +4982,9 @@ module Aws::Lambda
4740
4982
  # * **Function** - The Amazon Resource Name (ARN) of a Lambda
4741
4983
  # function.
4742
4984
  #
4743
- # * **Queue** - The ARN of an SQS queue.
4985
+ # * **Queue** - The ARN of a standard SQS queue.
4744
4986
  #
4745
- # * **Topic** - The ARN of an SNS topic.
4987
+ # * **Topic** - The ARN of a standard SNS topic.
4746
4988
  #
4747
4989
  # * **Event Bus** - The ARN of an Amazon EventBridge event bus.
4748
4990
  # @return [Types::DestinationConfig]
@@ -5674,6 +5916,8 @@ module Aws::Lambda
5674
5916
  # * **Self-managed Apache Kafka** – Default 100. Max 10,000.
5675
5917
  #
5676
5918
  # * **Amazon MQ (ActiveMQ and RabbitMQ)** – Default 100. Max 10,000.
5919
+ #
5920
+ # * **DocumentDB** – Default 100. Max 10,000.
5677
5921
  # @return [Integer]
5678
5922
  #
5679
5923
  # @!attribute [rw] filter_criteria
@@ -5693,12 +5937,13 @@ module Aws::Lambda
5693
5937
  # seconds in increments of seconds.
5694
5938
  #
5695
5939
  # 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.
5940
+ # window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka,
5941
+ # Amazon MQ, and DocumentDB event sources, the default batching window
5942
+ # is 500 ms. Note that because you can only change
5943
+ # `MaximumBatchingWindowInSeconds` in increments of seconds, you
5944
+ # cannot revert back to the 500 ms default batching window after you
5945
+ # have changed it. To restore the default batching window, you must
5946
+ # create a new event source mapping.
5702
5947
  #
5703
5948
  # Related setting: For streams and Amazon SQS event sources, when you
5704
5949
  # set `BatchSize` to a value greater than 10, you must set
@@ -5706,29 +5951,30 @@ module Aws::Lambda
5706
5951
  # @return [Integer]
5707
5952
  #
5708
5953
  # @!attribute [rw] destination_config
5709
- # (Streams only) An Amazon SQS queue or Amazon SNS topic destination
5710
- # for discarded records.
5954
+ # (Kinesis and DynamoDB Streams only) A standard Amazon SQS queue or
5955
+ # standard Amazon SNS topic destination for discarded records.
5711
5956
  # @return [Types::DestinationConfig]
5712
5957
  #
5713
5958
  # @!attribute [rw] maximum_record_age_in_seconds
5714
- # (Streams only) Discard records older than the specified age. The
5715
- # default value is infinite (-1).
5959
+ # (Kinesis and DynamoDB Streams only) Discard records older than the
5960
+ # specified age. The default value is infinite (-1).
5716
5961
  # @return [Integer]
5717
5962
  #
5718
5963
  # @!attribute [rw] bisect_batch_on_function_error
5719
- # (Streams only) If the function returns an error, split the batch in
5720
- # two and retry.
5964
+ # (Kinesis and DynamoDB Streams only) If the function returns an
5965
+ # error, split the batch in two and retry.
5721
5966
  # @return [Boolean]
5722
5967
  #
5723
5968
  # @!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.
5969
+ # (Kinesis and DynamoDB Streams only) Discard records after the
5970
+ # specified number of retries. The default value is infinite (-1).
5971
+ # When set to infinite (-1), failed records are retried until the
5972
+ # record expires.
5727
5973
  # @return [Integer]
5728
5974
  #
5729
5975
  # @!attribute [rw] parallelization_factor
5730
- # (Streams only) The number of batches to process from each shard
5731
- # concurrently.
5976
+ # (Kinesis and DynamoDB Streams only) The number of batches to process
5977
+ # from each shard concurrently.
5732
5978
  # @return [Integer]
5733
5979
  #
5734
5980
  # @!attribute [rw] source_access_configurations
@@ -5737,13 +5983,14 @@ module Aws::Lambda
5737
5983
  # @return [Array<Types::SourceAccessConfiguration>]
5738
5984
  #
5739
5985
  # @!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.
5986
+ # (Kinesis and DynamoDB Streams only) The duration in seconds of a
5987
+ # processing window for DynamoDB and Kinesis Streams event sources. A
5988
+ # value of 0 seconds indicates no tumbling window.
5742
5989
  # @return [Integer]
5743
5990
  #
5744
5991
  # @!attribute [rw] function_response_types
5745
- # (Streams and Amazon SQS) A list of current response type enums
5746
- # applied to the event source mapping.
5992
+ # (Kinesis, DynamoDB Streams, and Amazon SQS) A list of current
5993
+ # response type enums applied to the event source mapping.
5747
5994
  # @return [Array<String>]
5748
5995
  #
5749
5996
  # @!attribute [rw] scaling_config
@@ -6093,9 +6340,9 @@ module Aws::Lambda
6093
6340
  # * **Function** - The Amazon Resource Name (ARN) of a Lambda
6094
6341
  # function.
6095
6342
  #
6096
- # * **Queue** - The ARN of an SQS queue.
6343
+ # * **Queue** - The ARN of a standard SQS queue.
6097
6344
  #
6098
- # * **Topic** - The ARN of an SNS topic.
6345
+ # * **Topic** - The ARN of a standard SNS topic.
6099
6346
  #
6100
6347
  # * **Event Bus** - The ARN of an Amazon EventBridge event bus.
6101
6348
  # @return [Types::DestinationConfig]
@@ -6153,13 +6400,33 @@ module Aws::Lambda
6153
6400
  # [1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
6154
6401
  # @return [Types::Cors]
6155
6402
  #
6403
+ # @!attribute [rw] invoke_mode
6404
+ # Use one of the following options:
6405
+ #
6406
+ # * `BUFFERED` – This is the default option. Lambda invokes your
6407
+ # function using the `Invoke` API operation. Invocation results are
6408
+ # available when the payload is complete. The maximum payload size
6409
+ # is 6 MB.
6410
+ #
6411
+ # * `RESPONSE_STREAM` – Your function streams payload results as they
6412
+ # become available. Lambda invokes your function using the
6413
+ # `InvokeWithResponseStream` API operation. The maximum response
6414
+ # payload size is 20 MB, however, you can [request a quota
6415
+ # increase][1].
6416
+ #
6417
+ #
6418
+ #
6419
+ # [1]: https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html
6420
+ # @return [String]
6421
+ #
6156
6422
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionUrlConfigRequest AWS API Documentation
6157
6423
  #
6158
6424
  class UpdateFunctionUrlConfigRequest < Struct.new(
6159
6425
  :function_name,
6160
6426
  :qualifier,
6161
6427
  :auth_type,
6162
- :cors)
6428
+ :cors,
6429
+ :invoke_mode)
6163
6430
  SENSITIVE = []
6164
6431
  include Aws::Structure
6165
6432
  end
@@ -6211,6 +6478,25 @@ module Aws::Lambda
6211
6478
  # [1]: https://www.w3.org/TR/NOTE-datetime
6212
6479
  # @return [Time]
6213
6480
  #
6481
+ # @!attribute [rw] invoke_mode
6482
+ # Use one of the following options:
6483
+ #
6484
+ # * `BUFFERED` – This is the default option. Lambda invokes your
6485
+ # function using the `Invoke` API operation. Invocation results are
6486
+ # available when the payload is complete. The maximum payload size
6487
+ # is 6 MB.
6488
+ #
6489
+ # * `RESPONSE_STREAM` – Your function streams payload results as they
6490
+ # become available. Lambda invokes your function using the
6491
+ # `InvokeWithResponseStream` API operation. The maximum response
6492
+ # payload size is 20 MB, however, you can [request a quota
6493
+ # increase][1].
6494
+ #
6495
+ #
6496
+ #
6497
+ # [1]: https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html
6498
+ # @return [String]
6499
+ #
6214
6500
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionUrlConfigResponse AWS API Documentation
6215
6501
  #
6216
6502
  class UpdateFunctionUrlConfigResponse < Struct.new(
@@ -6219,7 +6505,8 @@ module Aws::Lambda
6219
6505
  :auth_type,
6220
6506
  :cors,
6221
6507
  :creation_time,
6222
- :last_modified_time)
6508
+ :last_modified_time,
6509
+ :invoke_mode)
6223
6510
  SENSITIVE = []
6224
6511
  include Aws::Structure
6225
6512
  end
@@ -6274,5 +6561,24 @@ module Aws::Lambda
6274
6561
  include Aws::Structure
6275
6562
  end
6276
6563
 
6564
+ # An object that includes a chunk of the response payload. When the
6565
+ # stream has ended, Lambda includes a `InvokeComplete` object.
6566
+ #
6567
+ # EventStream is an Enumerator of Events.
6568
+ # #event_types #=> Array, returns all modeled event types in the stream
6569
+ #
6570
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvokeWithResponseStreamResponseEvent AWS API Documentation
6571
+ #
6572
+ class InvokeWithResponseStreamResponseEvent < Enumerator
6573
+
6574
+ def event_types
6575
+ [
6576
+ :payload_chunk,
6577
+ :invoke_complete
6578
+ ]
6579
+ end
6580
+
6581
+ end
6582
+
6277
6583
  end
6278
6584
  end