aws-sdk-lambda 1.163.0 → 1.164.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lambda/client.rb +24 -6
- data/lib/aws-sdk-lambda/client_api.rb +7 -0
- data/lib/aws-sdk-lambda/errors.rb +21 -0
- data/lib/aws-sdk-lambda/types.rb +54 -10
- data/lib/aws-sdk-lambda.rb +1 -1
- data/sig/errors.rbs +4 -0
- data/sig/types.rbs +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a884c068cfca02acb75d1efef82b0367e95e7798217e59413ecc1cc135d53d31
|
|
4
|
+
data.tar.gz: 7e6810a088dcf53e24e7d9ddc62d1c84e089b55b0b23d8b7f842d805223699df
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dae7135901c838791e887b6fbf71f0191891d6fa80b5dacbf545e35511b969f39942f7d40ecbec7f607005009eea74524b6c05e62c633157c4f254e50b9cf45f
|
|
7
|
+
data.tar.gz: d671a9326e983cd3fcd4576a67368edd9dcfd07b4057dbf81f049bbafffa0177cc9ea8de5660c9516d690d633b62668f3ccf910be1dc7aec79b5cdc0cfad57f5
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.164.0
|
|
@@ -681,10 +681,10 @@ module Aws::Lambda
|
|
|
681
681
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html
|
|
682
682
|
#
|
|
683
683
|
# @option params [Boolean] :invoked_via_function_url
|
|
684
|
-
# Restricts the `lambda:InvokeFunction` action to
|
|
685
|
-
#
|
|
686
|
-
#
|
|
687
|
-
#
|
|
684
|
+
# Restricts the `lambda:InvokeFunction` action to function URL calls.
|
|
685
|
+
# When set to `true`, this prevents the principal from invoking the
|
|
686
|
+
# function by any means other than the function URL. For more
|
|
687
|
+
# information, see [Control access to Lambda function URLs][1].
|
|
688
688
|
#
|
|
689
689
|
#
|
|
690
690
|
#
|
|
@@ -2288,6 +2288,11 @@ module Aws::Lambda
|
|
|
2288
2288
|
# deleted. This doesn't require the user to have explicit permissions
|
|
2289
2289
|
# for DeleteAlias.
|
|
2290
2290
|
#
|
|
2291
|
+
# <note markdown="1"> A deleted Lambda function cannot be recovered. Ensure that you specify
|
|
2292
|
+
# the correct function name and version before deleting.
|
|
2293
|
+
#
|
|
2294
|
+
# </note>
|
|
2295
|
+
#
|
|
2291
2296
|
# To delete Lambda event source mappings that invoke a function, use
|
|
2292
2297
|
# DeleteEventSourceMapping. For Amazon Web Services services and
|
|
2293
2298
|
# resources that invoke your function directly, delete the trigger in
|
|
@@ -4009,6 +4014,9 @@ module Aws::Lambda
|
|
|
4009
4014
|
# `InvocationType` to `Event`. Lambda passes the `ClientContext` object
|
|
4010
4015
|
# to your function for synchronous invocations only.
|
|
4011
4016
|
#
|
|
4017
|
+
# For synchronous invocations, the maximum payload size is 6 MB. For
|
|
4018
|
+
# asynchronous invocations, the maximum payload size is 1 MB.
|
|
4019
|
+
#
|
|
4012
4020
|
# For [synchronous invocation][1], details about the function response,
|
|
4013
4021
|
# including errors, are included in the response body and headers. For
|
|
4014
4022
|
# either invocation type, you can find more information in the
|
|
@@ -4102,6 +4110,8 @@ module Aws::Lambda
|
|
|
4102
4110
|
#
|
|
4103
4111
|
# @option params [String, StringIO, File] :payload
|
|
4104
4112
|
# The JSON that you want to provide to your Lambda function as input.
|
|
4113
|
+
# The maximum payload size is 6 MB for synchronous invocations and 1 MB
|
|
4114
|
+
# for asynchronous invocations.
|
|
4105
4115
|
#
|
|
4106
4116
|
# You can enter the JSON directly. For example, `--payload '{ "key":
|
|
4107
4117
|
# "value" }'`. You can also specify a file path. For example, `--payload
|
|
@@ -4181,10 +4191,18 @@ module Aws::Lambda
|
|
|
4181
4191
|
req.send_request(options)
|
|
4182
4192
|
end
|
|
4183
4193
|
|
|
4184
|
-
# For asynchronous function invocation, use Invoke.
|
|
4194
|
+
# <note markdown="1"> For asynchronous function invocation, use Invoke.
|
|
4195
|
+
#
|
|
4196
|
+
# </note>
|
|
4185
4197
|
#
|
|
4186
4198
|
# Invokes a function asynchronously.
|
|
4187
4199
|
#
|
|
4200
|
+
# <note markdown="1"> The payload limit is 256KB. For larger payloads,
|
|
4201
|
+
# for up to 1MB, use
|
|
4202
|
+
# Invoke.
|
|
4203
|
+
#
|
|
4204
|
+
# </note>
|
|
4205
|
+
#
|
|
4188
4206
|
# <note markdown="1"> If you do use the InvokeAsync action, note that
|
|
4189
4207
|
# it doesn't support
|
|
4190
4208
|
# the use of X-Ray active tracing. Trace ID is not propagated to the
|
|
@@ -8361,7 +8379,7 @@ module Aws::Lambda
|
|
|
8361
8379
|
tracer: tracer
|
|
8362
8380
|
)
|
|
8363
8381
|
context[:gem_name] = 'aws-sdk-lambda'
|
|
8364
|
-
context[:gem_version] = '1.
|
|
8382
|
+
context[:gem_version] = '1.164.0'
|
|
8365
8383
|
Seahorse::Client::Request.new(handlers, context)
|
|
8366
8384
|
end
|
|
8367
8385
|
|
|
@@ -336,6 +336,7 @@ module Aws::Lambda
|
|
|
336
336
|
SelfManagedEventSource = Shapes::StructureShape.new(name: 'SelfManagedEventSource')
|
|
337
337
|
SelfManagedKafkaEventSourceConfig = Shapes::StructureShape.new(name: 'SelfManagedKafkaEventSourceConfig')
|
|
338
338
|
SensitiveString = Shapes::StringShape.new(name: 'SensitiveString')
|
|
339
|
+
SerializedRequestEntityTooLargeException = Shapes::StructureShape.new(name: 'SerializedRequestEntityTooLargeException')
|
|
339
340
|
ServiceException = Shapes::StructureShape.new(name: 'ServiceException')
|
|
340
341
|
SigningProfileVersionArns = Shapes::ListShape.new(name: 'SigningProfileVersionArns')
|
|
341
342
|
SnapStart = Shapes::StructureShape.new(name: 'SnapStart')
|
|
@@ -1421,6 +1422,10 @@ module Aws::Lambda
|
|
|
1421
1422
|
SelfManagedKafkaEventSourceConfig.add_member(:schema_registry_config, Shapes::ShapeRef.new(shape: KafkaSchemaRegistryConfig, location_name: "SchemaRegistryConfig"))
|
|
1422
1423
|
SelfManagedKafkaEventSourceConfig.struct_class = Types::SelfManagedKafkaEventSourceConfig
|
|
1423
1424
|
|
|
1425
|
+
SerializedRequestEntityTooLargeException.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
|
|
1426
|
+
SerializedRequestEntityTooLargeException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
|
1427
|
+
SerializedRequestEntityTooLargeException.struct_class = Types::SerializedRequestEntityTooLargeException
|
|
1428
|
+
|
|
1424
1429
|
ServiceException.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
|
|
1425
1430
|
ServiceException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
|
1426
1431
|
ServiceException.struct_class = Types::ServiceException
|
|
@@ -2063,6 +2068,7 @@ module Aws::Lambda
|
|
|
2063
2068
|
o.errors << Shapes::ShapeRef.new(shape: RequestTooLargeException)
|
|
2064
2069
|
o.errors << Shapes::ShapeRef.new(shape: KMSDisabledException)
|
|
2065
2070
|
o.errors << Shapes::ShapeRef.new(shape: UnsupportedMediaTypeException)
|
|
2071
|
+
o.errors << Shapes::ShapeRef.new(shape: SerializedRequestEntityTooLargeException)
|
|
2066
2072
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRuntimeException)
|
|
2067
2073
|
o.errors << Shapes::ShapeRef.new(shape: EC2UnexpectedException)
|
|
2068
2074
|
o.errors << Shapes::ShapeRef.new(shape: InvalidSubnetIDException)
|
|
@@ -2115,6 +2121,7 @@ module Aws::Lambda
|
|
|
2115
2121
|
o.errors << Shapes::ShapeRef.new(shape: RequestTooLargeException)
|
|
2116
2122
|
o.errors << Shapes::ShapeRef.new(shape: KMSDisabledException)
|
|
2117
2123
|
o.errors << Shapes::ShapeRef.new(shape: UnsupportedMediaTypeException)
|
|
2124
|
+
o.errors << Shapes::ShapeRef.new(shape: SerializedRequestEntityTooLargeException)
|
|
2118
2125
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRuntimeException)
|
|
2119
2126
|
o.errors << Shapes::ShapeRef.new(shape: EC2UnexpectedException)
|
|
2120
2127
|
o.errors << Shapes::ShapeRef.new(shape: InvalidSubnetIDException)
|
|
@@ -58,6 +58,7 @@ module Aws::Lambda
|
|
|
58
58
|
# * {ResourceInUseException}
|
|
59
59
|
# * {ResourceNotFoundException}
|
|
60
60
|
# * {ResourceNotReadyException}
|
|
61
|
+
# * {SerializedRequestEntityTooLargeException}
|
|
61
62
|
# * {ServiceException}
|
|
62
63
|
# * {SnapStartException}
|
|
63
64
|
# * {SnapStartNotReadyException}
|
|
@@ -697,6 +698,26 @@ module Aws::Lambda
|
|
|
697
698
|
end
|
|
698
699
|
end
|
|
699
700
|
|
|
701
|
+
class SerializedRequestEntityTooLargeException < ServiceError
|
|
702
|
+
|
|
703
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
704
|
+
# @param [String] message
|
|
705
|
+
# @param [Aws::Lambda::Types::SerializedRequestEntityTooLargeException] data
|
|
706
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
707
|
+
super(context, message, data)
|
|
708
|
+
end
|
|
709
|
+
|
|
710
|
+
# @return [String]
|
|
711
|
+
def type
|
|
712
|
+
@data[:type]
|
|
713
|
+
end
|
|
714
|
+
|
|
715
|
+
# @return [String]
|
|
716
|
+
def message
|
|
717
|
+
@message || @data[:message]
|
|
718
|
+
end
|
|
719
|
+
end
|
|
720
|
+
|
|
700
721
|
class ServiceException < ServiceError
|
|
701
722
|
|
|
702
723
|
# @param [Seahorse::Client::RequestContext] context
|
data/lib/aws-sdk-lambda/types.rb
CHANGED
|
@@ -225,10 +225,10 @@ module Aws::Lambda
|
|
|
225
225
|
# @return [String]
|
|
226
226
|
#
|
|
227
227
|
# @!attribute [rw] invoked_via_function_url
|
|
228
|
-
# Restricts the `lambda:InvokeFunction` action to
|
|
229
|
-
#
|
|
230
|
-
#
|
|
231
|
-
#
|
|
228
|
+
# Restricts the `lambda:InvokeFunction` action to function URL calls.
|
|
229
|
+
# When set to `true`, this prevents the principal from invoking the
|
|
230
|
+
# function by any means other than the function URL. For more
|
|
231
|
+
# information, see [Control access to Lambda function URLs][1].
|
|
232
232
|
#
|
|
233
233
|
#
|
|
234
234
|
#
|
|
@@ -3762,6 +3762,8 @@ module Aws::Lambda
|
|
|
3762
3762
|
#
|
|
3763
3763
|
# @!attribute [rw] payload
|
|
3764
3764
|
# The JSON that you want to provide to your Lambda function as input.
|
|
3765
|
+
# The maximum payload size is 6 MB for synchronous invocations and 1
|
|
3766
|
+
# MB for asynchronous invocations.
|
|
3765
3767
|
#
|
|
3766
3768
|
# You can enter the JSON directly. For example, `--payload '{ "key":
|
|
3767
3769
|
# "value" }'`. You can also specify a file path. For example,
|
|
@@ -5058,18 +5060,27 @@ module Aws::Lambda
|
|
|
5058
5060
|
# bucket, Lambda function, or Amazon EventBridge event bus as the
|
|
5059
5061
|
# destination.
|
|
5060
5062
|
#
|
|
5061
|
-
#
|
|
5062
|
-
#
|
|
5063
|
+
# <note markdown="1"> Amazon SNS destinations have a message size limit of 256 KB. If the
|
|
5064
|
+
# combined size of the function request and response payload exceeds
|
|
5065
|
+
# the limit, Lambda will drop the payload when sending `OnFailure`
|
|
5066
|
+
# event to the destination. For details on this behavior, refer to
|
|
5067
|
+
# [Retaining records of asynchronous invocations][2].
|
|
5068
|
+
#
|
|
5069
|
+
# </note>
|
|
5070
|
+
#
|
|
5071
|
+
# To retain records of failed invocations from [Kinesis][3],
|
|
5072
|
+
# [DynamoDB][4], [self-managed Kafka][5] or [Amazon MSK][6], you can
|
|
5063
5073
|
# configure an Amazon SNS topic, Amazon SQS queue, or Amazon S3 bucket
|
|
5064
5074
|
# as the destination.
|
|
5065
5075
|
#
|
|
5066
5076
|
#
|
|
5067
5077
|
#
|
|
5068
5078
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations
|
|
5069
|
-
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/
|
|
5070
|
-
# [3]: https://docs.aws.amazon.com/lambda/latest/dg/with-
|
|
5071
|
-
# [4]: https://docs.aws.amazon.com/lambda/latest/dg/with-
|
|
5072
|
-
# [5]: https://docs.aws.amazon.com/lambda/latest/dg/with-
|
|
5079
|
+
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html
|
|
5080
|
+
# [3]: https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html
|
|
5081
|
+
# [4]: https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html
|
|
5082
|
+
# [5]: https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-smaa-onfailure-destination
|
|
5083
|
+
# [6]: https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-onfailure-destination
|
|
5073
5084
|
# @return [String]
|
|
5074
5085
|
#
|
|
5075
5086
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/OnFailure AWS API Documentation
|
|
@@ -5097,6 +5108,18 @@ module Aws::Lambda
|
|
|
5097
5108
|
#
|
|
5098
5109
|
# @!attribute [rw] destination
|
|
5099
5110
|
# The Amazon Resource Name (ARN) of the destination resource.
|
|
5111
|
+
#
|
|
5112
|
+
# <note markdown="1"> Amazon SNS destinations have a message size limit of 256 KB. If the
|
|
5113
|
+
# combined size of the function request and response payload exceeds
|
|
5114
|
+
# the limit, Lambda will drop the payload when sending `OnFailure`
|
|
5115
|
+
# event to the destination. For details on this behavior, refer to
|
|
5116
|
+
# [Retaining records of asynchronous invocations][1].
|
|
5117
|
+
#
|
|
5118
|
+
# </note>
|
|
5119
|
+
#
|
|
5120
|
+
#
|
|
5121
|
+
#
|
|
5122
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html
|
|
5100
5123
|
# @return [String]
|
|
5101
5124
|
#
|
|
5102
5125
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/OnSuccess AWS API Documentation
|
|
@@ -6133,6 +6156,27 @@ module Aws::Lambda
|
|
|
6133
6156
|
include Aws::Structure
|
|
6134
6157
|
end
|
|
6135
6158
|
|
|
6159
|
+
# The processed request payload exceeded the `Invoke` request body size
|
|
6160
|
+
# limit for asynchronous invocations. While the event payload may be
|
|
6161
|
+
# under 1 MB, the size after internal serialization exceeds the maximum
|
|
6162
|
+
# allowed size for asynchronous invocations.
|
|
6163
|
+
#
|
|
6164
|
+
# @!attribute [rw] type
|
|
6165
|
+
# The error type.
|
|
6166
|
+
# @return [String]
|
|
6167
|
+
#
|
|
6168
|
+
# @!attribute [rw] message
|
|
6169
|
+
# @return [String]
|
|
6170
|
+
#
|
|
6171
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/SerializedRequestEntityTooLargeException AWS API Documentation
|
|
6172
|
+
#
|
|
6173
|
+
class SerializedRequestEntityTooLargeException < Struct.new(
|
|
6174
|
+
:type,
|
|
6175
|
+
:message)
|
|
6176
|
+
SENSITIVE = []
|
|
6177
|
+
include Aws::Structure
|
|
6178
|
+
end
|
|
6179
|
+
|
|
6136
6180
|
# The Lambda service encountered an internal error.
|
|
6137
6181
|
#
|
|
6138
6182
|
# @!attribute [rw] type
|
data/lib/aws-sdk-lambda.rb
CHANGED
data/sig/errors.rbs
CHANGED
|
@@ -136,6 +136,10 @@ module Aws
|
|
|
136
136
|
def type: () -> ::String
|
|
137
137
|
def message: () -> ::String
|
|
138
138
|
end
|
|
139
|
+
class SerializedRequestEntityTooLargeException < ::Aws::Errors::ServiceError
|
|
140
|
+
def type: () -> ::String
|
|
141
|
+
def message: () -> ::String
|
|
142
|
+
end
|
|
139
143
|
class ServiceException < ::Aws::Errors::ServiceError
|
|
140
144
|
def type: () -> ::String
|
|
141
145
|
def message: () -> ::String
|
data/sig/types.rbs
CHANGED
|
@@ -1308,6 +1308,12 @@ module Aws::Lambda
|
|
|
1308
1308
|
SENSITIVE: []
|
|
1309
1309
|
end
|
|
1310
1310
|
|
|
1311
|
+
class SerializedRequestEntityTooLargeException
|
|
1312
|
+
attr_accessor type: ::String
|
|
1313
|
+
attr_accessor message: ::String
|
|
1314
|
+
SENSITIVE: []
|
|
1315
|
+
end
|
|
1316
|
+
|
|
1311
1317
|
class ServiceException
|
|
1312
1318
|
attr_accessor type: ::String
|
|
1313
1319
|
attr_accessor message: ::String
|