aws-sdk-lambda 1.202.0 → 1.216.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.
@@ -10,6 +10,23 @@
10
10
  module Aws::Lambda
11
11
  module Types
12
12
 
13
+ # The accelerator resource settings for a Lambda execution environment,
14
+ # including the amount of accelerator memory to allocate.
15
+ #
16
+ # @!attribute [rw] accelerator_memory_size
17
+ # The minimum amount of memory (in GB) of each accelerator device
18
+ # exposed to the execution environment. Lambda might allocate more,
19
+ # depending on the accelerator instance types available.
20
+ # @return [Integer]
21
+ #
22
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AcceleratorConfig AWS API Documentation
23
+ #
24
+ class AcceleratorConfig < Struct.new(
25
+ :accelerator_memory_size)
26
+ SENSITIVE = []
27
+ include Aws::Structure
28
+ end
29
+
13
30
  # Limits that are related to concurrency and storage. All file and
14
31
  # storage sizes are in bytes.
15
32
  #
@@ -790,9 +807,9 @@ module Aws::Lambda
790
807
  # @return [String]
791
808
  #
792
809
  # @!attribute [rw] x_amzn_trace_id
793
- # The optional X-Ray trace header to use when starting the chained
794
- # invocation. If you omit this value, the child invocation inherits
795
- # the parent durable execution's trace header.
810
+ # The X-Ray trace header to use when starting the chained invocation.
811
+ # This parameter is optional. If you omit this value, the child
812
+ # invocation inherits the parent durable execution's trace header.
796
813
  #
797
814
  # Specify this value on the `START` update for the chained invocation
798
815
  # operation. For more information about the header format, see
@@ -1624,6 +1641,9 @@ module Aws::Lambda
1624
1641
  # Related setting: For Kinesis, DynamoDB, and Amazon SQS event
1625
1642
  # sources, when you set `BatchSize` to a value greater than 10, you
1626
1643
  # must set `MaximumBatchingWindowInSeconds` to at least 1.
1644
+ #
1645
+ # Not supported for Kafka event source mappings when `ConsumptionMode`
1646
+ # is `Queue`.
1627
1647
  # @return [Integer]
1628
1648
  #
1629
1649
  # @!attribute [rw] parallelization_factor
@@ -1636,12 +1656,18 @@ module Aws::Lambda
1636
1656
  # Amazon Kinesis and Amazon DynamoDB Stream event sources.
1637
1657
  # `AT_TIMESTAMP` is supported only for Amazon Kinesis streams, Amazon
1638
1658
  # DocumentDB, Amazon MSK, and self-managed Apache Kafka.
1659
+ #
1660
+ # Not supported for Kafka event source mappings when `ConsumptionMode`
1661
+ # is `Queue`.
1639
1662
  # @return [String]
1640
1663
  #
1641
1664
  # @!attribute [rw] starting_position_timestamp
1642
1665
  # With `StartingPosition` set to `AT_TIMESTAMP`, the time from which
1643
1666
  # to start reading. `StartingPositionTimestamp` cannot be in the
1644
1667
  # future.
1668
+ #
1669
+ # Not supported for Kafka event source mappings when `ConsumptionMode`
1670
+ # is `Queue`.
1645
1671
  # @return [Time]
1646
1672
  #
1647
1673
  # @!attribute [rw] destination_config
@@ -1667,6 +1693,12 @@ module Aws::Lambda
1667
1693
  # Kafka) Discard records after the specified number of retries. The
1668
1694
  # default value is infinite (-1). When set to infinite (-1), failed
1669
1695
  # records are retried until the record expires.
1696
+ #
1697
+ # For Kafka event source mappings with `ConsumptionMode` set to
1698
+ # `Queue`, the value -1 (infinite retries) is not supported and the
1699
+ # default is 0 (no retries). Lambda releases failed records back to
1700
+ # the broker, which redelivers them up to the share group's
1701
+ # `group.share.delivery.count.limit`.
1670
1702
  # @return [Integer]
1671
1703
  #
1672
1704
  # @!attribute [rw] tags
@@ -1825,7 +1857,7 @@ module Aws::Lambda
1825
1857
  # @!attribute [rw] timeout
1826
1858
  # The amount of time (in seconds) that Lambda allows a function to run
1827
1859
  # before stopping it. The default is 3 seconds, and the maximum
1828
- # allowed value is 900 seconds. For functions using Lambda Managed
1860
+ # allowed value is 1,800 seconds. For functions using Lambda Managed
1829
1861
  # Instances, asynchronous invocations and event source mapping
1830
1862
  # invocations (except Amazon MQ and Amazon DocumentDB) support a
1831
1863
  # maximum allowed value of 5,400 seconds (90 minutes). For more
@@ -1976,7 +2008,8 @@ module Aws::Lambda
1976
2008
  # @!attribute [rw] ephemeral_storage
1977
2009
  # The size of the function's `/tmp` directory in MB. The default
1978
2010
  # value is 512, but can be any whole number between 512 and 10,240 MB.
1979
- # For more information, see [Configuring ephemeral storage
2011
+ # For functions that use `AcceleratorConfig`, the maximum is 32,768
2012
+ # MB. For more information, see [Configuring ephemeral storage
1980
2013
  # (console)][1].
1981
2014
  #
1982
2015
  #
@@ -2013,6 +2046,17 @@ module Aws::Lambda
2013
2046
  # execution even after interruptions.
2014
2047
  # @return [Types::DurableConfig]
2015
2048
  #
2049
+ # @!attribute [rw] runtime_config
2050
+ # The customer-managed runtime configuration for your function.
2051
+ # Specifies the customer-managed runtime and the runtime alias that
2052
+ # your function uses.
2053
+ # @return [Types::FunctionRuntimeConfig]
2054
+ #
2055
+ # @!attribute [rw] accelerator_config
2056
+ # The accelerator resource settings for a Lambda execution
2057
+ # environment.
2058
+ # @return [Types::AcceleratorConfig]
2059
+ #
2016
2060
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunctionRequest AWS API Documentation
2017
2061
  #
2018
2062
  class CreateFunctionRequest < Struct.new(
@@ -2043,7 +2087,9 @@ module Aws::Lambda
2043
2087
  :logging_config,
2044
2088
  :tenancy_config,
2045
2089
  :capacity_provider_config,
2046
- :durable_config)
2090
+ :durable_config,
2091
+ :runtime_config,
2092
+ :accelerator_config)
2047
2093
  SENSITIVE = []
2048
2094
  include Aws::Structure
2049
2095
  end
@@ -2269,6 +2315,31 @@ module Aws::Lambda
2269
2315
  #
2270
2316
  class DeleteCodeSigningConfigResponse < Aws::EmptyStructure; end
2271
2317
 
2318
+ # @!attribute [rw] durable_execution_arn
2319
+ # The Amazon Resource Name (ARN) of the durable execution.
2320
+ # @return [String]
2321
+ #
2322
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteDurableExecutionRequest AWS API Documentation
2323
+ #
2324
+ class DeleteDurableExecutionRequest < Struct.new(
2325
+ :durable_execution_arn)
2326
+ SENSITIVE = []
2327
+ include Aws::Structure
2328
+ end
2329
+
2330
+ # @!attribute [rw] deletion_request_timestamp
2331
+ # The timestamp when Lambda accepted the deletion request (ISO 8601
2332
+ # format).
2333
+ # @return [Time]
2334
+ #
2335
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteDurableExecutionResponse AWS API Documentation
2336
+ #
2337
+ class DeleteDurableExecutionResponse < Struct.new(
2338
+ :deletion_request_timestamp)
2339
+ SENSITIVE = []
2340
+ include Aws::Structure
2341
+ end
2342
+
2272
2343
  # @!attribute [rw] uuid
2273
2344
  # The identifier of the event source mapping.
2274
2345
  # @return [String]
@@ -2861,6 +2932,7 @@ module Aws::Lambda
2861
2932
 
2862
2933
  # The size of the function's `/tmp` directory in MB. The default value
2863
2934
  # is 512, but can be any whole number between 512 and 10,240 MB. For
2935
+ # functions that use `AcceleratorConfig`, the maximum is 32,768 MB. For
2864
2936
  # more information, see [Configuring ephemeral storage (console)][1].
2865
2937
  #
2866
2938
  #
@@ -3047,6 +3119,14 @@ module Aws::Lambda
3047
3119
  # Details about a function invocation that completed.
3048
3120
  # @return [Types::InvocationCompletedDetails]
3049
3121
  #
3122
+ # @!attribute [rw] execution_paused_details
3123
+ # The details of an `ExecutionPaused` event.
3124
+ # @return [Types::ExecutionPausedDetails]
3125
+ #
3126
+ # @!attribute [rw] execution_resumed_details
3127
+ # The details of an `ExecutionResumed` event.
3128
+ # @return [Types::ExecutionResumedDetails]
3129
+ #
3050
3130
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/Event AWS API Documentation
3051
3131
  #
3052
3132
  class Event < Struct.new(
@@ -3080,7 +3160,9 @@ module Aws::Lambda
3080
3160
  :callback_succeeded_details,
3081
3161
  :callback_failed_details,
3082
3162
  :callback_timed_out_details,
3083
- :invocation_completed_details)
3163
+ :invocation_completed_details,
3164
+ :execution_paused_details,
3165
+ :execution_resumed_details)
3084
3166
  SENSITIVE = []
3085
3167
  include Aws::Structure
3086
3168
  end
@@ -3123,6 +3205,29 @@ module Aws::Lambda
3123
3205
  include Aws::Structure
3124
3206
  end
3125
3207
 
3208
+ # The reason for pausing a durable execution, as recorded in the
3209
+ # execution history.
3210
+ #
3211
+ # @!attribute [rw] payload
3212
+ # The reason that you provided when you paused the execution. This
3213
+ # field is only present if you set `IncludeExecutionData` to `true` in
3214
+ # the request.
3215
+ # @return [String]
3216
+ #
3217
+ # @!attribute [rw] truncated
3218
+ # Specifies whether Lambda omitted the reason from the response
3219
+ # because `IncludeExecutionData` is `false`.
3220
+ # @return [Boolean]
3221
+ #
3222
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EventPauseReason AWS API Documentation
3223
+ #
3224
+ class EventPauseReason < Struct.new(
3225
+ :payload,
3226
+ :truncated)
3227
+ SENSITIVE = [:payload]
3228
+ include Aws::Structure
3229
+ end
3230
+
3126
3231
  # Result information for an event.
3127
3232
  #
3128
3233
  # @!attribute [rw] payload
@@ -3142,6 +3247,29 @@ module Aws::Lambda
3142
3247
  include Aws::Structure
3143
3248
  end
3144
3249
 
3250
+ # The reason for resuming a durable execution, as recorded in the
3251
+ # execution history.
3252
+ #
3253
+ # @!attribute [rw] payload
3254
+ # The reason that you provided when you resumed the execution. This
3255
+ # field is only present if you set `IncludeExecutionData` to `true` in
3256
+ # the request.
3257
+ # @return [String]
3258
+ #
3259
+ # @!attribute [rw] truncated
3260
+ # Specifies whether Lambda omitted the reason from the response
3261
+ # because `IncludeExecutionData` is `false`.
3262
+ # @return [Boolean]
3263
+ #
3264
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EventResumeReason AWS API Documentation
3265
+ #
3266
+ class EventResumeReason < Struct.new(
3267
+ :payload,
3268
+ :truncated)
3269
+ SENSITIVE = [:payload]
3270
+ include Aws::Structure
3271
+ end
3272
+
3145
3273
  # A mapping between an Amazon Web Services resource and a Lambda
3146
3274
  # function. For details, see CreateEventSourceMapping.
3147
3275
  #
@@ -3575,6 +3703,69 @@ module Aws::Lambda
3575
3703
  include Aws::Structure
3576
3704
  end
3577
3705
 
3706
+ # Details about a [durable execution][1] that paused. The event
3707
+ # timestamp is when the execution paused.
3708
+ #
3709
+ #
3710
+ #
3711
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html
3712
+ #
3713
+ # @!attribute [rw] pause_request_timestamp
3714
+ # The date and time when you requested the pause, in [ISO-8601
3715
+ # format][1] (YYYY-MM-DDThh:mm:ss.sTZD).
3716
+ #
3717
+ #
3718
+ #
3719
+ # [1]: https://www.w3.org/TR/NOTE-datetime
3720
+ # @return [Time]
3721
+ #
3722
+ # @!attribute [rw] reason
3723
+ # The reason that you provided when you paused the execution.
3724
+ # @return [Types::EventPauseReason]
3725
+ #
3726
+ # @!attribute [rw] execution_timeout_paused
3727
+ # Specifies whether the pause also paused the execution timeout.
3728
+ # @return [Boolean]
3729
+ #
3730
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ExecutionPausedDetails AWS API Documentation
3731
+ #
3732
+ class ExecutionPausedDetails < Struct.new(
3733
+ :pause_request_timestamp,
3734
+ :reason,
3735
+ :execution_timeout_paused)
3736
+ SENSITIVE = []
3737
+ include Aws::Structure
3738
+ end
3739
+
3740
+ # Details about a [durable execution][1] that resumed. The event
3741
+ # timestamp is when the execution resumed.
3742
+ #
3743
+ #
3744
+ #
3745
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html
3746
+ #
3747
+ # @!attribute [rw] resume_request_timestamp
3748
+ # The date and time when you requested the resume, in [ISO-8601
3749
+ # format][1] (YYYY-MM-DDThh:mm:ss.sTZD).
3750
+ #
3751
+ #
3752
+ #
3753
+ # [1]: https://www.w3.org/TR/NOTE-datetime
3754
+ # @return [Time]
3755
+ #
3756
+ # @!attribute [rw] reason
3757
+ # The reason that you provided when you resumed the execution.
3758
+ # @return [Types::EventResumeReason]
3759
+ #
3760
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ExecutionResumedDetails AWS API Documentation
3761
+ #
3762
+ class ExecutionResumedDetails < Struct.new(
3763
+ :resume_request_timestamp,
3764
+ :reason)
3765
+ SENSITIVE = []
3766
+ include Aws::Structure
3767
+ end
3768
+
3578
3769
  # Details about a durable execution that started.
3579
3770
  #
3580
3771
  # @!attribute [rw] input
@@ -4086,7 +4277,8 @@ module Aws::Lambda
4086
4277
  # @!attribute [rw] ephemeral_storage
4087
4278
  # The size of the function's `/tmp` directory in MB. The default
4088
4279
  # value is 512, but can be any whole number between 512 and 10,240 MB.
4089
- # For more information, see [Configuring ephemeral storage
4280
+ # For functions that use `AcceleratorConfig`, the maximum is 32,768
4281
+ # MB. For more information, see [Configuring ephemeral storage
4090
4282
  # (console)][1].
4091
4283
  #
4092
4284
  #
@@ -4133,6 +4325,17 @@ module Aws::Lambda
4133
4325
  # function is configured for durability.
4134
4326
  # @return [Types::DurableConfig]
4135
4327
  #
4328
+ # @!attribute [rw] runtime_config
4329
+ # The customer-managed runtime configuration for your function.
4330
+ # Specifies the customer-managed runtime and the runtime alias that
4331
+ # your function uses.
4332
+ # @return [Types::FunctionRuntimeConfig]
4333
+ #
4334
+ # @!attribute [rw] accelerator_config
4335
+ # The accelerator resource settings for a Lambda execution
4336
+ # environment.
4337
+ # @return [Types::AcceleratorConfig]
4338
+ #
4136
4339
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionConfiguration AWS API Documentation
4137
4340
  #
4138
4341
  class FunctionConfiguration < Struct.new(
@@ -4175,7 +4378,9 @@ module Aws::Lambda
4175
4378
  :tenancy_config,
4176
4379
  :capacity_provider_config,
4177
4380
  :config_sha_256,
4178
- :durable_config)
4381
+ :durable_config,
4382
+ :runtime_config,
4383
+ :accelerator_config)
4179
4384
  SENSITIVE = []
4180
4385
  include Aws::Structure
4181
4386
  end
@@ -4233,6 +4438,29 @@ module Aws::Lambda
4233
4438
  include Aws::Structure
4234
4439
  end
4235
4440
 
4441
+ # The customer-managed runtime configuration for your function.
4442
+ # Specifies the customer-managed runtime and the runtime alias that your
4443
+ # function uses.
4444
+ #
4445
+ # @!attribute [rw] runtime_arn
4446
+ # The Amazon Resource Name (ARN) of the customer-managed runtime that
4447
+ # your function uses.
4448
+ # @return [String]
4449
+ #
4450
+ # @!attribute [rw] runtime_alias
4451
+ # The name of the customer-managed runtime alias that your function
4452
+ # uses. A runtime alias is a name that points to a runtime version.
4453
+ # @return [String]
4454
+ #
4455
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionRuntimeConfig AWS API Documentation
4456
+ #
4457
+ class FunctionRuntimeConfig < Struct.new(
4458
+ :runtime_arn,
4459
+ :runtime_alias)
4460
+ SENSITIVE = []
4461
+ include Aws::Structure
4462
+ end
4463
+
4236
4464
  # Configuration that defines the scaling behavior for a Lambda Managed
4237
4465
  # Instances function, including the minimum and maximum number of
4238
4466
  # execution environments that can be provisioned.
@@ -4584,22 +4812,22 @@ module Aws::Lambda
4584
4812
  # @return [String]
4585
4813
  #
4586
4814
  # @!attribute [rw] input_payload
4587
- # The JSON input payload that was provided when the durable execution
4588
- # was started. For asynchronous invocations, this is limited to 256
4589
- # KB. For synchronous invocations, this can be up to 6 MB.
4815
+ # The JSON input payload that you provided when you started the
4816
+ # durable execution. Asynchronous invocations support up to 1 MB, and
4817
+ # synchronous invocations support up to 6 MB.
4590
4818
  # @return [String]
4591
4819
  #
4592
4820
  # @!attribute [rw] result
4593
4821
  # The JSON result returned by the durable execution if it completed
4594
4822
  # successfully. This field is only present when the execution status
4595
- # is `SUCCEEDED`. The result is limited to 256 KB.
4823
+ # is `SUCCEEDED`. Asynchronous invocations support up to 1 MB, and
4824
+ # synchronous invocations support up to 6 MB.
4596
4825
  # @return [String]
4597
4826
  #
4598
4827
  # @!attribute [rw] error
4599
4828
  # Error information if the durable execution failed. This field is
4600
4829
  # only present when the execution status is `FAILED`, `TIMED_OUT`, or
4601
- # `STOPPED`. The combined size of all error fields is limited to 256
4602
- # KB.
4830
+ # `STOPPED`. The combined size of all error fields is limited to 1 MB.
4603
4831
  # @return [Types::ErrorObject]
4604
4832
  #
4605
4833
  # @!attribute [rw] start_timestamp
@@ -4608,8 +4836,28 @@ module Aws::Lambda
4608
4836
  # @return [Time]
4609
4837
  #
4610
4838
  # @!attribute [rw] status
4611
- # The current status of the durable execution. Valid values are
4612
- # `RUNNING`, `SUCCEEDED`, `FAILED`, `TIMED_OUT`, and `STOPPED`.
4839
+ # The durable execution has one of the following statuses:
4840
+ #
4841
+ # * `RUNNING` – The execution is running or waiting for pending
4842
+ # operations to complete.
4843
+ #
4844
+ # * `PAUSING` – The execution is waiting for an in-progress invocation
4845
+ # to reach its next checkpoint before it pauses.
4846
+ #
4847
+ # * `PAUSED` – The execution is paused, and Lambda doesn't invoke
4848
+ # your function.
4849
+ #
4850
+ # * `SUCCEEDED` – The execution completed successfully.
4851
+ #
4852
+ # * `FAILED` – The execution completed with an error.
4853
+ #
4854
+ # * `TIMED_OUT` – The execution exceeded its execution timeout.
4855
+ #
4856
+ # * `STOPPED` – A `StopDurableExecution` request stopped the
4857
+ # execution.
4858
+ #
4859
+ # * `DELETING` – A `DeleteDurableExecution` request is deleting the
4860
+ # execution and its data.
4613
4861
  # @return [String]
4614
4862
  #
4615
4863
  # @!attribute [rw] end_timestamp
@@ -4643,6 +4891,20 @@ module Aws::Lambda
4643
4891
  # including input, output, and error payloads.
4644
4892
  # @return [Types::DurableConfig]
4645
4893
  #
4894
+ # @!attribute [rw] pause_details
4895
+ # The details of the pause, including when you requested it and
4896
+ # whether it pauses the execution timeout. This field is only present
4897
+ # when the execution status is `PAUSING` or `PAUSED`.
4898
+ # @return [Types::PauseDetails]
4899
+ #
4900
+ # @!attribute [rw] expected_execution_timeout_timestamp
4901
+ # The date and time when the durable execution will time out, in Unix
4902
+ # timestamp format. This value includes any extension from time the
4903
+ # execution spent paused. While the execution is paused with its
4904
+ # execution timeout paused, this value is 366 days after the start
4905
+ # time. This field isn't present for completed executions.
4906
+ # @return [Time]
4907
+ #
4646
4908
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetDurableExecutionResponse AWS API Documentation
4647
4909
  #
4648
4910
  class GetDurableExecutionResponse < Struct.new(
@@ -4658,7 +4920,9 @@ module Aws::Lambda
4658
4920
  :version,
4659
4921
  :trace_header,
4660
4922
  :execution_data_included,
4661
- :durable_config)
4923
+ :durable_config,
4924
+ :pause_details,
4925
+ :expected_execution_timeout_timestamp)
4662
4926
  SENSITIVE = [:input_payload, :result]
4663
4927
  include Aws::Structure
4664
4928
  end
@@ -5799,6 +6063,8 @@ module Aws::Lambda
5799
6063
  # to pass to the function in the context object. Lambda passes the
5800
6064
  # `ClientContext` object to your function for synchronous invocations
5801
6065
  # only.
6066
+ #
6067
+ # `ClientContext` is logged to CloudTrail if you turn on data events.
5802
6068
  # @return [String]
5803
6069
  #
5804
6070
  # @!attribute [rw] durable_execution_name
@@ -6004,6 +6270,8 @@ module Aws::Lambda
6004
6270
  # @!attribute [rw] client_context
6005
6271
  # Up to 3,583 bytes of base64-encoded data about the invoking client
6006
6272
  # to pass to the function in the context object.
6273
+ #
6274
+ # `ClientContext` is logged to CloudTrail if you turn on data events.
6007
6275
  # @return [String]
6008
6276
  #
6009
6277
  # @!attribute [rw] qualifier
@@ -6661,8 +6929,29 @@ module Aws::Lambda
6661
6929
  # @return [String]
6662
6930
  #
6663
6931
  # @!attribute [rw] statuses
6664
- # Filter executions by status. Valid values: RUNNING, SUCCEEDED,
6665
- # FAILED, TIMED\_OUT, STOPPED.
6932
+ # Filters the executions by status. Specify one of the following
6933
+ # values:
6934
+ #
6935
+ # * `RUNNING` – The execution is running or waiting for pending
6936
+ # operations to complete.
6937
+ #
6938
+ # * `PAUSING` – The execution is waiting for an in-progress invocation
6939
+ # to reach its next checkpoint before it pauses.
6940
+ #
6941
+ # * `PAUSED` – The execution is paused, and Lambda doesn't invoke
6942
+ # your function.
6943
+ #
6944
+ # * `SUCCEEDED` – The execution completed successfully.
6945
+ #
6946
+ # * `FAILED` – The execution completed with an error.
6947
+ #
6948
+ # * `TIMED_OUT` – The execution exceeded its execution timeout.
6949
+ #
6950
+ # * `STOPPED` – A `StopDurableExecution` request stopped the
6951
+ # execution.
6952
+ #
6953
+ # * `DELETING` – A `DeleteDurableExecution` request is deleting the
6954
+ # execution and its data.
6666
6955
  # @return [Array<String>]
6667
6956
  #
6668
6957
  # @!attribute [rw] started_after
@@ -7604,13 +7893,14 @@ module Aws::Lambda
7604
7893
  # @!attribute [rw] payload
7605
7894
  # The payload for successful operations. The maximum payload size is 6
7606
7895
  # MB for synchronous `EXECUTION` operations (RequestResponse
7607
- # invocationType), 1 MB for asynchronous `EXECUTION` (Event
7608
- # invocationType) and `CHAINED_INVOKE` operations, and 256 KB for
7609
- # `CONTEXT`, `STEP`, `WAIT`, and `CALLBACK` operations.
7896
+ # invocationType), and 1 MB for asynchronous `EXECUTION` (Event
7897
+ # invocationType), `CHAINED_INVOKE`, `CONTEXT`, `STEP`, `WAIT`, and
7898
+ # `CALLBACK` operations.
7610
7899
  # @return [String]
7611
7900
  #
7612
7901
  # @!attribute [rw] error
7613
- # The error information for failed operations.
7902
+ # The error information for failed operations. The combined size of
7903
+ # all error fields is limited to 1 MB.
7614
7904
  # @return [Types::ErrorObject]
7615
7905
  #
7616
7906
  # @!attribute [rw] context_options
@@ -7655,6 +7945,84 @@ module Aws::Lambda
7655
7945
  include Aws::Structure
7656
7946
  end
7657
7947
 
7948
+ # Details about a [durable execution][1] that is pausing or paused.
7949
+ #
7950
+ #
7951
+ #
7952
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html
7953
+ #
7954
+ # @!attribute [rw] pause_request_timestamp
7955
+ # The date and time when you requested the pause, in [ISO-8601
7956
+ # format][1] (YYYY-MM-DDThh:mm:ss.sTZD).
7957
+ #
7958
+ #
7959
+ #
7960
+ # [1]: https://www.w3.org/TR/NOTE-datetime
7961
+ # @return [Time]
7962
+ #
7963
+ # @!attribute [rw] reason
7964
+ # The reason that you provided when you paused the execution. This
7965
+ # field is only present if you set `IncludeExecutionData` to `true` in
7966
+ # the request.
7967
+ # @return [String]
7968
+ #
7969
+ # @!attribute [rw] execution_timeout_paused
7970
+ # Specifies whether the pause also pauses the execution timeout.
7971
+ # @return [Boolean]
7972
+ #
7973
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PauseDetails AWS API Documentation
7974
+ #
7975
+ class PauseDetails < Struct.new(
7976
+ :pause_request_timestamp,
7977
+ :reason,
7978
+ :execution_timeout_paused)
7979
+ SENSITIVE = [:reason]
7980
+ include Aws::Structure
7981
+ end
7982
+
7983
+ # @!attribute [rw] durable_execution_arn
7984
+ # The Amazon Resource Name (ARN) of the durable execution.
7985
+ # @return [String]
7986
+ #
7987
+ # @!attribute [rw] client_token
7988
+ # A unique, case-sensitive identifier that you provide so that the
7989
+ # request completes no more than one time. If you repeat a request
7990
+ # with the same client token and parameters within 15 minutes, Lambda
7991
+ # doesn't pause the execution again and returns a successful response
7992
+ # instead of an error.
7993
+ #
7994
+ # **A suitable default value is auto-generated.** You should normally
7995
+ # not need to pass this option.
7996
+ # @return [String]
7997
+ #
7998
+ # @!attribute [rw] reason
7999
+ # A description of why you're pausing the execution. Lambda records
8000
+ # the reason in the execution history.
8001
+ # @return [String]
8002
+ #
8003
+ # @!attribute [rw] execution_timeout_paused
8004
+ # Specifies whether to pause the execution timeout while the execution
8005
+ # is paused. If `true`, Lambda extends the execution timeout by the
8006
+ # time the execution spends paused. An execution with a paused timeout
8007
+ # still times out 366 days after it started. The default value is
8008
+ # `true`.
8009
+ # @return [Boolean]
8010
+ #
8011
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PauseDurableExecutionRequest AWS API Documentation
8012
+ #
8013
+ class PauseDurableExecutionRequest < Struct.new(
8014
+ :durable_execution_arn,
8015
+ :client_token,
8016
+ :reason,
8017
+ :execution_timeout_paused)
8018
+ SENSITIVE = [:reason]
8019
+ include Aws::Structure
8020
+ end
8021
+
8022
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PauseDurableExecutionResponse AWS API Documentation
8023
+ #
8024
+ class PauseDurableExecutionResponse < Aws::EmptyStructure; end
8025
+
7658
8026
  # The permissions policy for the resource is too large. For more
7659
8027
  # information, see [Lambda quotas][1].
7660
8028
  #
@@ -8761,6 +9129,40 @@ module Aws::Lambda
8761
9129
  include Aws::Structure
8762
9130
  end
8763
9131
 
9132
+ # @!attribute [rw] durable_execution_arn
9133
+ # The Amazon Resource Name (ARN) of the durable execution.
9134
+ # @return [String]
9135
+ #
9136
+ # @!attribute [rw] client_token
9137
+ # A unique, case-sensitive identifier that you provide so that the
9138
+ # request completes no more than one time. If you repeat a request
9139
+ # with the same client token and parameters within 15 minutes, Lambda
9140
+ # doesn't resume the execution again and returns a successful
9141
+ # response instead of an error.
9142
+ #
9143
+ # **A suitable default value is auto-generated.** You should normally
9144
+ # not need to pass this option.
9145
+ # @return [String]
9146
+ #
9147
+ # @!attribute [rw] reason
9148
+ # A description of why you're resuming the execution. Lambda records
9149
+ # the reason in the execution history.
9150
+ # @return [String]
9151
+ #
9152
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ResumeDurableExecutionRequest AWS API Documentation
9153
+ #
9154
+ class ResumeDurableExecutionRequest < Struct.new(
9155
+ :durable_execution_arn,
9156
+ :client_token,
9157
+ :reason)
9158
+ SENSITIVE = [:reason]
9159
+ include Aws::Structure
9160
+ end
9161
+
9162
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ResumeDurableExecutionResponse AWS API Documentation
9163
+ #
9164
+ class ResumeDurableExecutionResponse < Aws::EmptyStructure; end
9165
+
8764
9166
  # Information about retry attempts for an operation.
8765
9167
  #
8766
9168
  # @!attribute [rw] current_attempt
@@ -8780,6 +9182,25 @@ module Aws::Lambda
8780
9182
  include Aws::Structure
8781
9183
  end
8782
9184
 
9185
+ # The runtime alias for your function is no longer available. Update
9186
+ # your function to use an available runtime alias.
9187
+ #
9188
+ # @!attribute [rw] type
9189
+ # Indicates the exception type for a deleted runtime alias.
9190
+ # @return [String]
9191
+ #
9192
+ # @!attribute [rw] message
9193
+ # @return [String]
9194
+ #
9195
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RuntimeAliasDeletedException AWS API Documentation
9196
+ #
9197
+ class RuntimeAliasDeletedException < Struct.new(
9198
+ :type,
9199
+ :message)
9200
+ SENSITIVE = []
9201
+ include Aws::Structure
9202
+ end
9203
+
8783
9204
  # The ARN of the runtime and any errors that occured.
8784
9205
  #
8785
9206
  # @!attribute [rw] runtime_version_arn
@@ -8800,6 +9221,26 @@ module Aws::Lambda
8800
9221
  include Aws::Structure
8801
9222
  end
8802
9223
 
9224
+ # The runtime version used by your function is no longer available.
9225
+ # Update your function to use an available runtime version or runtime
9226
+ # alias.
9227
+ #
9228
+ # @!attribute [rw] type
9229
+ # Indicates the exception type for a deleted runtime version.
9230
+ # @return [String]
9231
+ #
9232
+ # @!attribute [rw] message
9233
+ # @return [String]
9234
+ #
9235
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RuntimeVersionDeletedException AWS API Documentation
9236
+ #
9237
+ class RuntimeVersionDeletedException < Struct.new(
9238
+ :type,
9239
+ :message)
9240
+ SENSITIVE = []
9241
+ include Aws::Structure
9242
+ end
9243
+
8803
9244
  # Any error returned when the runtime version information for the
8804
9245
  # function could not be retrieved.
8805
9246
  #
@@ -8962,11 +9403,37 @@ module Aws::Lambda
8962
9403
  # Specific configuration settings for a Kafka schema registry.
8963
9404
  # @return [Types::KafkaSchemaRegistryConfig]
8964
9405
  #
9406
+ # @!attribute [rw] consumption_mode
9407
+ # The mode that Lambda uses to consume records from your self-managed
9408
+ # Apache Kafka topic. Valid values are the following:
9409
+ #
9410
+ # * `Stream` (default) – Lambda consumes records using a Kafka
9411
+ # consumer group and preserves the order of records within each
9412
+ # partition.
9413
+ #
9414
+ # * `Queue` – Lambda consumes records using a Kafka share group.
9415
+ # Multiple consumers can process records from the same partition
9416
+ # concurrently, so Lambda doesn't preserve per-partition order. To
9417
+ # use Queue mode, your cluster must run Apache Kafka version 4.2 or
9418
+ # later with share groups enabled.
9419
+ #
9420
+ # If you omit this parameter, Lambda uses `Stream`.
9421
+ #
9422
+ # You cannot change `ConsumptionMode` after you create the event
9423
+ # source mapping. To use a different consumption mode, create a new
9424
+ # event source mapping.
9425
+ #
9426
+ # When `ConsumptionMode` is `Queue`, the `StartingPosition`,
9427
+ # `StartingPositionTimestamp`, and `MaximumBatchingWindowInSeconds`
9428
+ # parameters are not supported.
9429
+ # @return [String]
9430
+ #
8965
9431
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/SelfManagedKafkaEventSourceConfig AWS API Documentation
8966
9432
  #
8967
9433
  class SelfManagedKafkaEventSourceConfig < Struct.new(
8968
9434
  :consumer_group_id,
8969
- :schema_registry_config)
9435
+ :schema_registry_config,
9436
+ :consumption_mode)
8970
9437
  SENSITIVE = []
8971
9438
  include Aws::Structure
8972
9439
  end
@@ -8976,7 +9443,8 @@ module Aws::Lambda
8976
9443
  # @return [String]
8977
9444
  #
8978
9445
  # @!attribute [rw] error
8979
- # Error details describing why the callback operation failed.
9446
+ # Error details describing why the callback operation failed. The
9447
+ # combined size of all error fields is limited to 1 MB.
8980
9448
  # @return [Types::ErrorObject]
8981
9449
  #
8982
9450
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/SendDurableExecutionCallbackFailureRequest AWS API Documentation
@@ -9014,7 +9482,7 @@ module Aws::Lambda
9014
9482
  #
9015
9483
  # @!attribute [rw] result
9016
9484
  # The result data from the successful callback operation. Maximum size
9017
- # is 256 KB.
9485
+ # is 1 MB.
9018
9486
  # @return [String]
9019
9487
  #
9020
9488
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/SendDurableExecutionCallbackSuccessRequest AWS API Documentation
@@ -9436,7 +9904,7 @@ module Aws::Lambda
9436
9904
  #
9437
9905
  # @!attribute [rw] error
9438
9906
  # Optional error details explaining why the execution is being
9439
- # stopped.
9907
+ # stopped. The combined size of all error fields is limited to 1 MB.
9440
9908
  # @return [Types::ErrorObject]
9441
9909
  #
9442
9910
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/StopDurableExecutionRequest AWS API Documentation
@@ -9920,6 +10388,9 @@ module Aws::Lambda
9920
10388
  # Related setting: For Kinesis, DynamoDB, and Amazon SQS event
9921
10389
  # sources, when you set `BatchSize` to a value greater than 10, you
9922
10390
  # must set `MaximumBatchingWindowInSeconds` to at least 1.
10391
+ #
10392
+ # Not supported for Kafka event source mappings when `ConsumptionMode`
10393
+ # is `Queue`.
9923
10394
  # @return [Integer]
9924
10395
  #
9925
10396
  # @!attribute [rw] parallelization_factor
@@ -9950,6 +10421,12 @@ module Aws::Lambda
9950
10421
  # Kafka) Discard records after the specified number of retries. The
9951
10422
  # default value is infinite (-1). When set to infinite (-1), failed
9952
10423
  # records are retried until the record expires.
10424
+ #
10425
+ # For Kafka event source mappings with `ConsumptionMode` set to
10426
+ # `Queue`, the value -1 (infinite retries) is not supported and the
10427
+ # default is 0 (no retries). Lambda releases failed records back to
10428
+ # the broker, which redelivers them up to the share group's
10429
+ # `group.share.delivery.count.limit`.
9953
10430
  # @return [Integer]
9954
10431
  #
9955
10432
  # @!attribute [rw] tumbling_window_in_seconds
@@ -10169,7 +10646,7 @@ module Aws::Lambda
10169
10646
  # @!attribute [rw] timeout
10170
10647
  # The amount of time (in seconds) that Lambda allows a function to run
10171
10648
  # before stopping it. The default is 3 seconds, and the maximum
10172
- # allowed value is 900 seconds. For functions using Lambda Managed
10649
+ # allowed value is 1,800 seconds. For functions using Lambda Managed
10173
10650
  # Instances, asynchronous invocations and event source mapping
10174
10651
  # invocations (except Amazon MQ and Amazon DocumentDB) support a
10175
10652
  # maximum allowed value of 5,400 seconds (90 minutes). For more
@@ -10312,7 +10789,8 @@ module Aws::Lambda
10312
10789
  # @!attribute [rw] ephemeral_storage
10313
10790
  # The size of the function's `/tmp` directory in MB. The default
10314
10791
  # value is 512, but can be any whole number between 512 and 10,240 MB.
10315
- # For more information, see [Configuring ephemeral storage
10792
+ # For functions that use `AcceleratorConfig`, the maximum is 32,768
10793
+ # MB. For more information, see [Configuring ephemeral storage
10316
10794
  # (console)][1].
10317
10795
  #
10318
10796
  #
@@ -10349,6 +10827,17 @@ module Aws::Lambda
10349
10827
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html
10350
10828
  # @return [Types::DurableConfig]
10351
10829
  #
10830
+ # @!attribute [rw] runtime_config
10831
+ # The customer-managed runtime configuration for your function.
10832
+ # Specifies the customer-managed runtime and the runtime alias that
10833
+ # your function uses.
10834
+ # @return [Types::FunctionRuntimeConfig]
10835
+ #
10836
+ # @!attribute [rw] accelerator_config
10837
+ # The accelerator resource settings for a Lambda execution
10838
+ # environment.
10839
+ # @return [Types::AcceleratorConfig]
10840
+ #
10352
10841
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfigurationRequest AWS API Documentation
10353
10842
  #
10354
10843
  class UpdateFunctionConfigurationRequest < Struct.new(
@@ -10372,7 +10861,9 @@ module Aws::Lambda
10372
10861
  :snap_start,
10373
10862
  :logging_config,
10374
10863
  :capacity_provider_config,
10375
- :durable_config)
10864
+ :durable_config,
10865
+ :runtime_config,
10866
+ :accelerator_config)
10376
10867
  SENSITIVE = []
10377
10868
  include Aws::Structure
10378
10869
  end
@@ -10681,7 +11172,7 @@ module Aws::Lambda
10681
11172
  include Aws::Structure
10682
11173
  end
10683
11174
 
10684
- # Specifies how long to pause the durable execution.
11175
+ # Specifies how long the durable execution waits.
10685
11176
  #
10686
11177
  # @!attribute [rw] wait_seconds
10687
11178
  # The duration to wait, in seconds.