aws-sdk-lambda 1.126.0 → 1.127.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lambda/client.rb +90 -43
- data/lib/aws-sdk-lambda/client_api.rb +11 -0
- data/lib/aws-sdk-lambda/types.rb +82 -13
- data/lib/aws-sdk-lambda.rb +1 -1
- data/sig/client.rbs +12 -2
- data/sig/types.rbs +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 275f1ef6c8d9f4e06be88fb52926b5aa8b24edabfefb35cb7981eaa5b587c1d2
|
4
|
+
data.tar.gz: 06a6aaef69c392106354e7b8afd6715c49abcca48ccdd21e67232da5dc2245ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1052b31f40d459ae4a9a93a97b451663e7c91d94cda950c2cadb1e2c632f92484fc84ab539700a94f40104e26dba21672e47e49a133de0f2e674822a1148f02
|
7
|
+
data.tar.gz: 4e46210809f415c05108bdc475960d61457610d66e3ca883bb296f00c609d1ddef513bda99f74fdfcceb9a9d0cba6aa9e5e766cc5b3c468432ce89fa34acc054
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.127.0 (2024-08-21)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Release FilterCriteria encryption for Lambda EventSourceMapping, enabling customers to encrypt their filter criteria using a customer-owned KMS key.
|
8
|
+
|
4
9
|
1.126.0 (2024-08-19)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.127.0
|
@@ -509,24 +509,24 @@ module Aws::Lambda
|
|
509
509
|
req.send_request(options)
|
510
510
|
end
|
511
511
|
|
512
|
-
# Grants an Amazon Web
|
513
|
-
# Web Services organization permission to use a function. You can
|
514
|
-
# the policy at the function level, or specify a qualifier to
|
515
|
-
# access to a single version or alias. If you use a qualifier,
|
516
|
-
# invoker must use the full Amazon Resource Name (ARN) of that
|
517
|
-
# or alias to invoke the function. Note: Lambda does not support
|
518
|
-
# policies to version $LATEST.
|
512
|
+
# Grants an Amazon Web Servicesservice, Amazon Web Services account, or
|
513
|
+
# Amazon Web Services organization permission to use a function. You can
|
514
|
+
# apply the policy at the function level, or specify a qualifier to
|
515
|
+
# restrict access to a single version or alias. If you use a qualifier,
|
516
|
+
# the invoker must use the full Amazon Resource Name (ARN) of that
|
517
|
+
# version or alias to invoke the function. Note: Lambda does not support
|
518
|
+
# adding policies to version $LATEST.
|
519
519
|
#
|
520
520
|
# To grant permission to another account, specify the account ID as the
|
521
521
|
# `Principal`. To grant permission to an organization defined in
|
522
522
|
# Organizations, specify the organization ID as the `PrincipalOrgID`.
|
523
|
-
# For Amazon Web
|
524
|
-
# that the service defines, such as `s3.amazonaws.com` or
|
525
|
-
# `sns.amazonaws.com`. For Amazon Web
|
526
|
-
# ARN of the associated resource as the `SourceArn`. If you
|
527
|
-
# permission to a service principal without specifying the source,
|
528
|
-
# accounts could potentially configure resources in their account
|
529
|
-
# invoke your Lambda function.
|
523
|
+
# For Amazon Web Servicesservices, the principal is a domain-style
|
524
|
+
# identifier that the service defines, such as `s3.amazonaws.com` or
|
525
|
+
# `sns.amazonaws.com`. For Amazon Web Servicesservices, you can also
|
526
|
+
# specify the ARN of the associated resource as the `SourceArn`. If you
|
527
|
+
# grant permission to a service principal without specifying the source,
|
528
|
+
# other accounts could potentially configure resources in their account
|
529
|
+
# to invoke your Lambda function.
|
530
530
|
#
|
531
531
|
# This operation adds a statement to a resource-based permissions policy
|
532
532
|
# for the function. For more information about function policies, see
|
@@ -562,23 +562,25 @@ module Aws::Lambda
|
|
562
562
|
# `lambda:InvokeFunction` or `lambda:GetFunction`.
|
563
563
|
#
|
564
564
|
# @option params [required, String] :principal
|
565
|
-
# The Amazon Web
|
566
|
-
# function. If you specify a service, use `SourceArn` or
|
567
|
-
# to limit who can invoke the function through that
|
565
|
+
# The Amazon Web Servicesservice or Amazon Web Services account that
|
566
|
+
# invokes the function. If you specify a service, use `SourceArn` or
|
567
|
+
# `SourceAccount` to limit who can invoke the function through that
|
568
|
+
# service.
|
568
569
|
#
|
569
570
|
# @option params [String] :source_arn
|
570
|
-
# For Amazon Web
|
571
|
-
# that invokes the function. For example, an Amazon S3 bucket
|
572
|
-
# SNS topic.
|
571
|
+
# For Amazon Web Servicesservices, the ARN of the Amazon Web Services
|
572
|
+
# resource that invokes the function. For example, an Amazon S3 bucket
|
573
|
+
# or Amazon SNS topic.
|
573
574
|
#
|
574
575
|
# Note that Lambda configures the comparison using the `StringLike`
|
575
576
|
# operator.
|
576
577
|
#
|
577
578
|
# @option params [String] :source_account
|
578
|
-
# For Amazon Web
|
579
|
-
# owns the resource. Use this together with `SourceArn` to
|
580
|
-
# the specified account owns the resource. It is possible
|
581
|
-
# S3 bucket to be deleted by its owner and recreated by
|
579
|
+
# For Amazon Web Servicesservice, the ID of the Amazon Web Services
|
580
|
+
# account that owns the resource. Use this together with `SourceArn` to
|
581
|
+
# ensure that the specified account owns the resource. It is possible
|
582
|
+
# for an Amazon S3 bucket to be deleted by its owner and recreated by
|
583
|
+
# another account.
|
582
584
|
#
|
583
585
|
# @option params [String] :event_source_token
|
584
586
|
# For Alexa Smart Home functions, a token that the invoker must supply.
|
@@ -1025,6 +1027,16 @@ module Aws::Lambda
|
|
1025
1027
|
# @option params [Types::DocumentDBEventSourceConfig] :document_db_event_source_config
|
1026
1028
|
# Specific configuration settings for a DocumentDB event source.
|
1027
1029
|
#
|
1030
|
+
# @option params [String] :kms_key_arn
|
1031
|
+
# The ARN of the Key Management Service (KMS) customer managed key that
|
1032
|
+
# Lambda uses to encrypt your function's [filter criteria][1]. By
|
1033
|
+
# default, Lambda does not encrypt your filter criteria object. Specify
|
1034
|
+
# this property to encrypt data using your own customer managed key.
|
1035
|
+
#
|
1036
|
+
#
|
1037
|
+
#
|
1038
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics
|
1039
|
+
#
|
1028
1040
|
# @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1029
1041
|
#
|
1030
1042
|
# * {Types::EventSourceMappingConfiguration#uuid #uuid} => String
|
@@ -1054,6 +1066,8 @@ module Aws::Lambda
|
|
1054
1066
|
# * {Types::EventSourceMappingConfiguration#self_managed_kafka_event_source_config #self_managed_kafka_event_source_config} => Types::SelfManagedKafkaEventSourceConfig
|
1055
1067
|
# * {Types::EventSourceMappingConfiguration#scaling_config #scaling_config} => Types::ScalingConfig
|
1056
1068
|
# * {Types::EventSourceMappingConfiguration#document_db_event_source_config #document_db_event_source_config} => Types::DocumentDBEventSourceConfig
|
1069
|
+
# * {Types::EventSourceMappingConfiguration#kms_key_arn #kms_key_arn} => String
|
1070
|
+
# * {Types::EventSourceMappingConfiguration#filter_criteria_error #filter_criteria_error} => Types::FilterCriteriaError
|
1057
1071
|
#
|
1058
1072
|
# @example Request syntax with placeholder values
|
1059
1073
|
#
|
@@ -1113,6 +1127,7 @@ module Aws::Lambda
|
|
1113
1127
|
# collection_name: "CollectionName",
|
1114
1128
|
# full_document: "UpdateLookup", # accepts UpdateLookup, Default
|
1115
1129
|
# },
|
1130
|
+
# kms_key_arn: "KMSKeyArn",
|
1116
1131
|
# })
|
1117
1132
|
#
|
1118
1133
|
# @example Response structure
|
@@ -1155,6 +1170,9 @@ module Aws::Lambda
|
|
1155
1170
|
# resp.document_db_event_source_config.database_name #=> String
|
1156
1171
|
# resp.document_db_event_source_config.collection_name #=> String
|
1157
1172
|
# resp.document_db_event_source_config.full_document #=> String, one of "UpdateLookup", "Default"
|
1173
|
+
# resp.kms_key_arn #=> String
|
1174
|
+
# resp.filter_criteria_error.error_code #=> String
|
1175
|
+
# resp.filter_criteria_error.message #=> String
|
1158
1176
|
#
|
1159
1177
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMapping AWS API Documentation
|
1160
1178
|
#
|
@@ -1169,8 +1187,8 @@ module Aws::Lambda
|
|
1169
1187
|
# [deployment package][1] and an [execution role][2]. The deployment
|
1170
1188
|
# package is a .zip file archive or container image that contains your
|
1171
1189
|
# function code. The execution role grants the function permission to
|
1172
|
-
# use Amazon Web
|
1173
|
-
# streaming and X-Ray for request tracing.
|
1190
|
+
# use Amazon Web Servicesservices, such as Amazon CloudWatch Logs for
|
1191
|
+
# log streaming and X-Ray for request tracing.
|
1174
1192
|
#
|
1175
1193
|
# If the deployment package is a [container image][3], then you set the
|
1176
1194
|
# package type to `Image`. For a container image, the code property must
|
@@ -1216,17 +1234,17 @@ module Aws::Lambda
|
|
1216
1234
|
# configuration includes set of signing profiles, which define the
|
1217
1235
|
# trusted publishers for this function.
|
1218
1236
|
#
|
1219
|
-
# If another Amazon Web Services account or an Amazon Web
|
1220
|
-
# invokes your function, use AddPermission to grant
|
1221
|
-
# creating a resource-based Identity and Access Management
|
1222
|
-
# You can grant permissions at the function level, on a
|
1223
|
-
# an alias.
|
1237
|
+
# If another Amazon Web Services account or an Amazon Web
|
1238
|
+
# Servicesservice invokes your function, use AddPermission to grant
|
1239
|
+
# permission by creating a resource-based Identity and Access Management
|
1240
|
+
# (IAM) policy. You can grant permissions at the function level, on a
|
1241
|
+
# version, or on an alias.
|
1224
1242
|
#
|
1225
1243
|
# To invoke your function directly, use Invoke. To invoke your function
|
1226
|
-
# in response to events in other Amazon Web
|
1227
|
-
# source mapping (CreateEventSourceMapping), or configure a
|
1228
|
-
# trigger in the other service. For more information, see
|
1229
|
-
# Lambda functions][6].
|
1244
|
+
# in response to events in other Amazon Web Servicesservices, create an
|
1245
|
+
# event source mapping (CreateEventSourceMapping), or configure a
|
1246
|
+
# function trigger in the other service. For more information, see
|
1247
|
+
# [Invoking Lambda functions][6].
|
1230
1248
|
#
|
1231
1249
|
#
|
1232
1250
|
#
|
@@ -1823,6 +1841,8 @@ module Aws::Lambda
|
|
1823
1841
|
# * {Types::EventSourceMappingConfiguration#self_managed_kafka_event_source_config #self_managed_kafka_event_source_config} => Types::SelfManagedKafkaEventSourceConfig
|
1824
1842
|
# * {Types::EventSourceMappingConfiguration#scaling_config #scaling_config} => Types::ScalingConfig
|
1825
1843
|
# * {Types::EventSourceMappingConfiguration#document_db_event_source_config #document_db_event_source_config} => Types::DocumentDBEventSourceConfig
|
1844
|
+
# * {Types::EventSourceMappingConfiguration#kms_key_arn #kms_key_arn} => String
|
1845
|
+
# * {Types::EventSourceMappingConfiguration#filter_criteria_error #filter_criteria_error} => Types::FilterCriteriaError
|
1826
1846
|
#
|
1827
1847
|
# @example Request syntax with placeholder values
|
1828
1848
|
#
|
@@ -1870,6 +1890,9 @@ module Aws::Lambda
|
|
1870
1890
|
# resp.document_db_event_source_config.database_name #=> String
|
1871
1891
|
# resp.document_db_event_source_config.collection_name #=> String
|
1872
1892
|
# resp.document_db_event_source_config.full_document #=> String, one of "UpdateLookup", "Default"
|
1893
|
+
# resp.kms_key_arn #=> String
|
1894
|
+
# resp.filter_criteria_error.error_code #=> String
|
1895
|
+
# resp.filter_criteria_error.message #=> String
|
1873
1896
|
#
|
1874
1897
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteEventSourceMapping AWS API Documentation
|
1875
1898
|
#
|
@@ -1886,9 +1909,9 @@ module Aws::Lambda
|
|
1886
1909
|
# for DeleteAlias.
|
1887
1910
|
#
|
1888
1911
|
# To delete Lambda event source mappings that invoke a function, use
|
1889
|
-
# DeleteEventSourceMapping. For Amazon Web
|
1890
|
-
# invoke your function directly, delete the trigger in
|
1891
|
-
# you originally configured it.
|
1912
|
+
# DeleteEventSourceMapping. For Amazon Web Servicesservices and
|
1913
|
+
# resources that invoke your function directly, delete the trigger in
|
1914
|
+
# the service where you originally configured it.
|
1892
1915
|
#
|
1893
1916
|
# @option params [required, String] :function_name
|
1894
1917
|
# The name or ARN of the Lambda function or version.
|
@@ -2310,6 +2333,8 @@ module Aws::Lambda
|
|
2310
2333
|
# * {Types::EventSourceMappingConfiguration#self_managed_kafka_event_source_config #self_managed_kafka_event_source_config} => Types::SelfManagedKafkaEventSourceConfig
|
2311
2334
|
# * {Types::EventSourceMappingConfiguration#scaling_config #scaling_config} => Types::ScalingConfig
|
2312
2335
|
# * {Types::EventSourceMappingConfiguration#document_db_event_source_config #document_db_event_source_config} => Types::DocumentDBEventSourceConfig
|
2336
|
+
# * {Types::EventSourceMappingConfiguration#kms_key_arn #kms_key_arn} => String
|
2337
|
+
# * {Types::EventSourceMappingConfiguration#filter_criteria_error #filter_criteria_error} => Types::FilterCriteriaError
|
2313
2338
|
#
|
2314
2339
|
# @example Request syntax with placeholder values
|
2315
2340
|
#
|
@@ -2357,6 +2382,9 @@ module Aws::Lambda
|
|
2357
2382
|
# resp.document_db_event_source_config.database_name #=> String
|
2358
2383
|
# resp.document_db_event_source_config.collection_name #=> String
|
2359
2384
|
# resp.document_db_event_source_config.full_document #=> String, one of "UpdateLookup", "Default"
|
2385
|
+
# resp.kms_key_arn #=> String
|
2386
|
+
# resp.filter_criteria_error.error_code #=> String
|
2387
|
+
# resp.filter_criteria_error.message #=> String
|
2360
2388
|
#
|
2361
2389
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetEventSourceMapping AWS API Documentation
|
2362
2390
|
#
|
@@ -3849,6 +3877,9 @@ module Aws::Lambda
|
|
3849
3877
|
# resp.event_source_mappings[0].document_db_event_source_config.database_name #=> String
|
3850
3878
|
# resp.event_source_mappings[0].document_db_event_source_config.collection_name #=> String
|
3851
3879
|
# resp.event_source_mappings[0].document_db_event_source_config.full_document #=> String, one of "UpdateLookup", "Default"
|
3880
|
+
# resp.event_source_mappings[0].kms_key_arn #=> String
|
3881
|
+
# resp.event_source_mappings[0].filter_criteria_error.error_code #=> String
|
3882
|
+
# resp.event_source_mappings[0].filter_criteria_error.message #=> String
|
3852
3883
|
#
|
3853
3884
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListEventSourceMappings AWS API Documentation
|
3854
3885
|
#
|
@@ -5321,9 +5352,9 @@ module Aws::Lambda
|
|
5321
5352
|
req.send_request(options)
|
5322
5353
|
end
|
5323
5354
|
|
5324
|
-
# Revokes function-use permission from an Amazon Web
|
5325
|
-
# Amazon Web Services account. You can get the ID of the
|
5326
|
-
# the output of GetPolicy.
|
5355
|
+
# Revokes function-use permission from an Amazon Web Servicesservice or
|
5356
|
+
# another Amazon Web Services account. You can get the ID of the
|
5357
|
+
# statement from the output of GetPolicy.
|
5327
5358
|
#
|
5328
5359
|
# @option params [required, String] :function_name
|
5329
5360
|
# The name or ARN of the Lambda function, version, or alias.
|
@@ -5773,6 +5804,16 @@ module Aws::Lambda
|
|
5773
5804
|
# @option params [Types::DocumentDBEventSourceConfig] :document_db_event_source_config
|
5774
5805
|
# Specific configuration settings for a DocumentDB event source.
|
5775
5806
|
#
|
5807
|
+
# @option params [String] :kms_key_arn
|
5808
|
+
# The ARN of the Key Management Service (KMS) customer managed key that
|
5809
|
+
# Lambda uses to encrypt your function's [filter criteria][1]. By
|
5810
|
+
# default, Lambda does not encrypt your filter criteria object. Specify
|
5811
|
+
# this property to encrypt data using your own customer managed key.
|
5812
|
+
#
|
5813
|
+
#
|
5814
|
+
#
|
5815
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics
|
5816
|
+
#
|
5776
5817
|
# @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5777
5818
|
#
|
5778
5819
|
# * {Types::EventSourceMappingConfiguration#uuid #uuid} => String
|
@@ -5802,6 +5843,8 @@ module Aws::Lambda
|
|
5802
5843
|
# * {Types::EventSourceMappingConfiguration#self_managed_kafka_event_source_config #self_managed_kafka_event_source_config} => Types::SelfManagedKafkaEventSourceConfig
|
5803
5844
|
# * {Types::EventSourceMappingConfiguration#scaling_config #scaling_config} => Types::ScalingConfig
|
5804
5845
|
# * {Types::EventSourceMappingConfiguration#document_db_event_source_config #document_db_event_source_config} => Types::DocumentDBEventSourceConfig
|
5846
|
+
# * {Types::EventSourceMappingConfiguration#kms_key_arn #kms_key_arn} => String
|
5847
|
+
# * {Types::EventSourceMappingConfiguration#filter_criteria_error #filter_criteria_error} => Types::FilterCriteriaError
|
5805
5848
|
#
|
5806
5849
|
# @example Request syntax with placeholder values
|
5807
5850
|
#
|
@@ -5846,6 +5889,7 @@ module Aws::Lambda
|
|
5846
5889
|
# collection_name: "CollectionName",
|
5847
5890
|
# full_document: "UpdateLookup", # accepts UpdateLookup, Default
|
5848
5891
|
# },
|
5892
|
+
# kms_key_arn: "KMSKeyArn",
|
5849
5893
|
# })
|
5850
5894
|
#
|
5851
5895
|
# @example Response structure
|
@@ -5888,6 +5932,9 @@ module Aws::Lambda
|
|
5888
5932
|
# resp.document_db_event_source_config.database_name #=> String
|
5889
5933
|
# resp.document_db_event_source_config.collection_name #=> String
|
5890
5934
|
# resp.document_db_event_source_config.full_document #=> String, one of "UpdateLookup", "Default"
|
5935
|
+
# resp.kms_key_arn #=> String
|
5936
|
+
# resp.filter_criteria_error.error_code #=> String
|
5937
|
+
# resp.filter_criteria_error.message #=> String
|
5891
5938
|
#
|
5892
5939
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMapping AWS API Documentation
|
5893
5940
|
#
|
@@ -6133,7 +6180,7 @@ module Aws::Lambda
|
|
6133
6180
|
#
|
6134
6181
|
# To configure function concurrency, use PutFunctionConcurrency. To
|
6135
6182
|
# grant invoke permissions to an Amazon Web Services account or Amazon
|
6136
|
-
# Web
|
6183
|
+
# Web Servicesservice, use AddPermission.
|
6137
6184
|
#
|
6138
6185
|
#
|
6139
6186
|
#
|
@@ -6685,7 +6732,7 @@ module Aws::Lambda
|
|
6685
6732
|
params: params,
|
6686
6733
|
config: config)
|
6687
6734
|
context[:gem_name] = 'aws-sdk-lambda'
|
6688
|
-
context[:gem_version] = '1.
|
6735
|
+
context[:gem_version] = '1.127.0'
|
6689
6736
|
Seahorse::Client::Request.new(handlers, context)
|
6690
6737
|
end
|
6691
6738
|
|
@@ -109,6 +109,9 @@ module Aws::Lambda
|
|
109
109
|
FileSystemConfigList = Shapes::ListShape.new(name: 'FileSystemConfigList')
|
110
110
|
Filter = Shapes::StructureShape.new(name: 'Filter')
|
111
111
|
FilterCriteria = Shapes::StructureShape.new(name: 'FilterCriteria')
|
112
|
+
FilterCriteriaError = Shapes::StructureShape.new(name: 'FilterCriteriaError')
|
113
|
+
FilterCriteriaErrorCode = Shapes::StringShape.new(name: 'FilterCriteriaErrorCode')
|
114
|
+
FilterCriteriaErrorMessage = Shapes::StringShape.new(name: 'FilterCriteriaErrorMessage')
|
112
115
|
FilterList = Shapes::ListShape.new(name: 'FilterList')
|
113
116
|
FullDocument = Shapes::StringShape.new(name: 'FullDocument')
|
114
117
|
FunctionArn = Shapes::StringShape.new(name: 'FunctionArn')
|
@@ -521,6 +524,7 @@ module Aws::Lambda
|
|
521
524
|
CreateEventSourceMappingRequest.add_member(:self_managed_kafka_event_source_config, Shapes::ShapeRef.new(shape: SelfManagedKafkaEventSourceConfig, location_name: "SelfManagedKafkaEventSourceConfig"))
|
522
525
|
CreateEventSourceMappingRequest.add_member(:scaling_config, Shapes::ShapeRef.new(shape: ScalingConfig, location_name: "ScalingConfig"))
|
523
526
|
CreateEventSourceMappingRequest.add_member(:document_db_event_source_config, Shapes::ShapeRef.new(shape: DocumentDBEventSourceConfig, location_name: "DocumentDBEventSourceConfig"))
|
527
|
+
CreateEventSourceMappingRequest.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KMSKeyArn, location_name: "KMSKeyArn"))
|
524
528
|
CreateEventSourceMappingRequest.struct_class = Types::CreateEventSourceMappingRequest
|
525
529
|
|
526
530
|
CreateFunctionRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location_name: "FunctionName"))
|
@@ -696,6 +700,8 @@ module Aws::Lambda
|
|
696
700
|
EventSourceMappingConfiguration.add_member(:self_managed_kafka_event_source_config, Shapes::ShapeRef.new(shape: SelfManagedKafkaEventSourceConfig, location_name: "SelfManagedKafkaEventSourceConfig"))
|
697
701
|
EventSourceMappingConfiguration.add_member(:scaling_config, Shapes::ShapeRef.new(shape: ScalingConfig, location_name: "ScalingConfig"))
|
698
702
|
EventSourceMappingConfiguration.add_member(:document_db_event_source_config, Shapes::ShapeRef.new(shape: DocumentDBEventSourceConfig, location_name: "DocumentDBEventSourceConfig"))
|
703
|
+
EventSourceMappingConfiguration.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KMSKeyArn, location_name: "KMSKeyArn"))
|
704
|
+
EventSourceMappingConfiguration.add_member(:filter_criteria_error, Shapes::ShapeRef.new(shape: FilterCriteriaError, location_name: "FilterCriteriaError"))
|
699
705
|
EventSourceMappingConfiguration.struct_class = Types::EventSourceMappingConfiguration
|
700
706
|
|
701
707
|
EventSourceMappingsList.member = Shapes::ShapeRef.new(shape: EventSourceMappingConfiguration)
|
@@ -712,6 +718,10 @@ module Aws::Lambda
|
|
712
718
|
FilterCriteria.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filters"))
|
713
719
|
FilterCriteria.struct_class = Types::FilterCriteria
|
714
720
|
|
721
|
+
FilterCriteriaError.add_member(:error_code, Shapes::ShapeRef.new(shape: FilterCriteriaErrorCode, location_name: "ErrorCode"))
|
722
|
+
FilterCriteriaError.add_member(:message, Shapes::ShapeRef.new(shape: FilterCriteriaErrorMessage, location_name: "Message"))
|
723
|
+
FilterCriteriaError.struct_class = Types::FilterCriteriaError
|
724
|
+
|
715
725
|
FilterList.member = Shapes::ShapeRef.new(shape: Filter)
|
716
726
|
|
717
727
|
FunctionArnList.member = Shapes::ShapeRef.new(shape: FunctionArn)
|
@@ -1453,6 +1463,7 @@ module Aws::Lambda
|
|
1453
1463
|
UpdateEventSourceMappingRequest.add_member(:function_response_types, Shapes::ShapeRef.new(shape: FunctionResponseTypeList, location_name: "FunctionResponseTypes"))
|
1454
1464
|
UpdateEventSourceMappingRequest.add_member(:scaling_config, Shapes::ShapeRef.new(shape: ScalingConfig, location_name: "ScalingConfig"))
|
1455
1465
|
UpdateEventSourceMappingRequest.add_member(:document_db_event_source_config, Shapes::ShapeRef.new(shape: DocumentDBEventSourceConfig, location_name: "DocumentDBEventSourceConfig"))
|
1466
|
+
UpdateEventSourceMappingRequest.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KMSKeyArn, location_name: "KMSKeyArn"))
|
1456
1467
|
UpdateEventSourceMappingRequest.struct_class = Types::UpdateEventSourceMappingRequest
|
1457
1468
|
|
1458
1469
|
UpdateFunctionCodeRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
data/lib/aws-sdk-lambda/types.rb
CHANGED
@@ -167,27 +167,27 @@ module Aws::Lambda
|
|
167
167
|
# @return [String]
|
168
168
|
#
|
169
169
|
# @!attribute [rw] principal
|
170
|
-
# The Amazon Web
|
171
|
-
# the function. If you specify a service, use `SourceArn` or
|
170
|
+
# The Amazon Web Servicesservice or Amazon Web Services account that
|
171
|
+
# invokes the function. If you specify a service, use `SourceArn` or
|
172
172
|
# `SourceAccount` to limit who can invoke the function through that
|
173
173
|
# service.
|
174
174
|
# @return [String]
|
175
175
|
#
|
176
176
|
# @!attribute [rw] source_arn
|
177
|
-
# For Amazon Web
|
178
|
-
# that invokes the function. For example, an Amazon S3 bucket
|
179
|
-
# Amazon SNS topic.
|
177
|
+
# For Amazon Web Servicesservices, the ARN of the Amazon Web Services
|
178
|
+
# resource that invokes the function. For example, an Amazon S3 bucket
|
179
|
+
# or Amazon SNS topic.
|
180
180
|
#
|
181
181
|
# Note that Lambda configures the comparison using the `StringLike`
|
182
182
|
# operator.
|
183
183
|
# @return [String]
|
184
184
|
#
|
185
185
|
# @!attribute [rw] source_account
|
186
|
-
# For Amazon Web
|
187
|
-
# that owns the resource. Use this together with `SourceArn`
|
188
|
-
# that the specified account owns the resource. It is
|
189
|
-
# Amazon S3 bucket to be deleted by its owner and
|
190
|
-
# account.
|
186
|
+
# For Amazon Web Servicesservice, the ID of the Amazon Web Services
|
187
|
+
# account that owns the resource. Use this together with `SourceArn`
|
188
|
+
# to ensure that the specified account owns the resource. It is
|
189
|
+
# possible for an Amazon S3 bucket to be deleted by its owner and
|
190
|
+
# recreated by another account.
|
191
191
|
# @return [String]
|
192
192
|
#
|
193
193
|
# @!attribute [rw] event_source_token
|
@@ -842,6 +842,18 @@ module Aws::Lambda
|
|
842
842
|
# Specific configuration settings for a DocumentDB event source.
|
843
843
|
# @return [Types::DocumentDBEventSourceConfig]
|
844
844
|
#
|
845
|
+
# @!attribute [rw] kms_key_arn
|
846
|
+
# The ARN of the Key Management Service (KMS) customer managed key
|
847
|
+
# that Lambda uses to encrypt your function's [filter criteria][1].
|
848
|
+
# By default, Lambda does not encrypt your filter criteria object.
|
849
|
+
# Specify this property to encrypt data using your own customer
|
850
|
+
# managed key.
|
851
|
+
#
|
852
|
+
#
|
853
|
+
#
|
854
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics
|
855
|
+
# @return [String]
|
856
|
+
#
|
845
857
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMappingRequest AWS API Documentation
|
846
858
|
#
|
847
859
|
class CreateEventSourceMappingRequest < Struct.new(
|
@@ -867,7 +879,8 @@ module Aws::Lambda
|
|
867
879
|
:amazon_managed_kafka_event_source_config,
|
868
880
|
:self_managed_kafka_event_source_config,
|
869
881
|
:scaling_config,
|
870
|
-
:document_db_event_source_config
|
882
|
+
:document_db_event_source_config,
|
883
|
+
:kms_key_arn)
|
871
884
|
SENSITIVE = []
|
872
885
|
include Aws::Structure
|
873
886
|
end
|
@@ -1870,6 +1883,12 @@ module Aws::Lambda
|
|
1870
1883
|
# Lambda should process an event. For more information, see [Lambda
|
1871
1884
|
# event filtering][1].
|
1872
1885
|
#
|
1886
|
+
# If filter criteria is encrypted, this field shows up as `null` in
|
1887
|
+
# the response of ListEventSourceMapping API calls. You can view this
|
1888
|
+
# field in plaintext in the response of GetEventSourceMapping and
|
1889
|
+
# DeleteEventSourceMapping calls if you have `kms:Decrypt` permissions
|
1890
|
+
# for the correct KMS key.
|
1891
|
+
#
|
1873
1892
|
#
|
1874
1893
|
#
|
1875
1894
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html
|
@@ -1984,6 +2003,20 @@ module Aws::Lambda
|
|
1984
2003
|
# Specific configuration settings for a DocumentDB event source.
|
1985
2004
|
# @return [Types::DocumentDBEventSourceConfig]
|
1986
2005
|
#
|
2006
|
+
# @!attribute [rw] kms_key_arn
|
2007
|
+
# The ARN of the Key Management Service (KMS) customer managed key
|
2008
|
+
# that Lambda uses to encrypt your function's [filter criteria][1].
|
2009
|
+
#
|
2010
|
+
#
|
2011
|
+
#
|
2012
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics
|
2013
|
+
# @return [String]
|
2014
|
+
#
|
2015
|
+
# @!attribute [rw] filter_criteria_error
|
2016
|
+
# An object that contains details about an error related to filter
|
2017
|
+
# criteria encryption.
|
2018
|
+
# @return [Types::FilterCriteriaError]
|
2019
|
+
#
|
1987
2020
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EventSourceMappingConfiguration AWS API Documentation
|
1988
2021
|
#
|
1989
2022
|
class EventSourceMappingConfiguration < Struct.new(
|
@@ -2013,7 +2046,9 @@ module Aws::Lambda
|
|
2013
2046
|
:amazon_managed_kafka_event_source_config,
|
2014
2047
|
:self_managed_kafka_event_source_config,
|
2015
2048
|
:scaling_config,
|
2016
|
-
:document_db_event_source_config
|
2049
|
+
:document_db_event_source_config,
|
2050
|
+
:kms_key_arn,
|
2051
|
+
:filter_criteria_error)
|
2017
2052
|
SENSITIVE = []
|
2018
2053
|
include Aws::Structure
|
2019
2054
|
end
|
@@ -2078,6 +2113,27 @@ module Aws::Lambda
|
|
2078
2113
|
include Aws::Structure
|
2079
2114
|
end
|
2080
2115
|
|
2116
|
+
# An object that contains details about an error related to filter
|
2117
|
+
# criteria encryption.
|
2118
|
+
#
|
2119
|
+
# @!attribute [rw] error_code
|
2120
|
+
# The KMS exception that resulted from filter criteria encryption or
|
2121
|
+
# decryption.
|
2122
|
+
# @return [String]
|
2123
|
+
#
|
2124
|
+
# @!attribute [rw] message
|
2125
|
+
# The error message.
|
2126
|
+
# @return [String]
|
2127
|
+
#
|
2128
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FilterCriteriaError AWS API Documentation
|
2129
|
+
#
|
2130
|
+
class FilterCriteriaError < Struct.new(
|
2131
|
+
:error_code,
|
2132
|
+
:message)
|
2133
|
+
SENSITIVE = []
|
2134
|
+
include Aws::Structure
|
2135
|
+
end
|
2136
|
+
|
2081
2137
|
# The code for the Lambda function. You can either specify an object in
|
2082
2138
|
# Amazon S3, upload a .zip file archive deployment package directly, or
|
2083
2139
|
# specify the URI of a container image.
|
@@ -6322,6 +6378,18 @@ module Aws::Lambda
|
|
6322
6378
|
# Specific configuration settings for a DocumentDB event source.
|
6323
6379
|
# @return [Types::DocumentDBEventSourceConfig]
|
6324
6380
|
#
|
6381
|
+
# @!attribute [rw] kms_key_arn
|
6382
|
+
# The ARN of the Key Management Service (KMS) customer managed key
|
6383
|
+
# that Lambda uses to encrypt your function's [filter criteria][1].
|
6384
|
+
# By default, Lambda does not encrypt your filter criteria object.
|
6385
|
+
# Specify this property to encrypt data using your own customer
|
6386
|
+
# managed key.
|
6387
|
+
#
|
6388
|
+
#
|
6389
|
+
#
|
6390
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics
|
6391
|
+
# @return [String]
|
6392
|
+
#
|
6325
6393
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMappingRequest AWS API Documentation
|
6326
6394
|
#
|
6327
6395
|
class UpdateEventSourceMappingRequest < Struct.new(
|
@@ -6340,7 +6408,8 @@ module Aws::Lambda
|
|
6340
6408
|
:tumbling_window_in_seconds,
|
6341
6409
|
:function_response_types,
|
6342
6410
|
:scaling_config,
|
6343
|
-
:document_db_event_source_config
|
6411
|
+
:document_db_event_source_config,
|
6412
|
+
:kms_key_arn)
|
6344
6413
|
SENSITIVE = []
|
6345
6414
|
include Aws::Structure
|
6346
6415
|
end
|
data/lib/aws-sdk-lambda.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -179,6 +179,8 @@ module Aws
|
|
179
179
|
def self_managed_kafka_event_source_config: () -> Types::SelfManagedKafkaEventSourceConfig
|
180
180
|
def scaling_config: () -> Types::ScalingConfig
|
181
181
|
def document_db_event_source_config: () -> Types::DocumentDBEventSourceConfig
|
182
|
+
def kms_key_arn: () -> ::String
|
183
|
+
def filter_criteria_error: () -> Types::FilterCriteriaError
|
182
184
|
end
|
183
185
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#create_event_source_mapping-instance_method
|
184
186
|
def create_event_source_mapping: (
|
@@ -234,7 +236,8 @@ module Aws
|
|
234
236
|
database_name: ::String?,
|
235
237
|
collection_name: ::String?,
|
236
238
|
full_document: ("UpdateLookup" | "Default")?
|
237
|
-
}
|
239
|
+
},
|
240
|
+
?kms_key_arn: ::String
|
238
241
|
) -> _CreateEventSourceMappingResponseSuccess
|
239
242
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateEventSourceMappingResponseSuccess
|
240
243
|
|
@@ -411,6 +414,8 @@ module Aws
|
|
411
414
|
def self_managed_kafka_event_source_config: () -> Types::SelfManagedKafkaEventSourceConfig
|
412
415
|
def scaling_config: () -> Types::ScalingConfig
|
413
416
|
def document_db_event_source_config: () -> Types::DocumentDBEventSourceConfig
|
417
|
+
def kms_key_arn: () -> ::String
|
418
|
+
def filter_criteria_error: () -> Types::FilterCriteriaError
|
414
419
|
end
|
415
420
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#delete_event_source_mapping-instance_method
|
416
421
|
def delete_event_source_mapping: (
|
@@ -530,6 +535,8 @@ module Aws
|
|
530
535
|
def self_managed_kafka_event_source_config: () -> Types::SelfManagedKafkaEventSourceConfig
|
531
536
|
def scaling_config: () -> Types::ScalingConfig
|
532
537
|
def document_db_event_source_config: () -> Types::DocumentDBEventSourceConfig
|
538
|
+
def kms_key_arn: () -> ::String
|
539
|
+
def filter_criteria_error: () -> Types::FilterCriteriaError
|
533
540
|
end
|
534
541
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#get_event_source_mapping-instance_method
|
535
542
|
def get_event_source_mapping: (
|
@@ -1223,6 +1230,8 @@ module Aws
|
|
1223
1230
|
def self_managed_kafka_event_source_config: () -> Types::SelfManagedKafkaEventSourceConfig
|
1224
1231
|
def scaling_config: () -> Types::ScalingConfig
|
1225
1232
|
def document_db_event_source_config: () -> Types::DocumentDBEventSourceConfig
|
1233
|
+
def kms_key_arn: () -> ::String
|
1234
|
+
def filter_criteria_error: () -> Types::FilterCriteriaError
|
1226
1235
|
end
|
1227
1236
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#update_event_source_mapping-instance_method
|
1228
1237
|
def update_event_source_mapping: (
|
@@ -1265,7 +1274,8 @@ module Aws
|
|
1265
1274
|
database_name: ::String?,
|
1266
1275
|
collection_name: ::String?,
|
1267
1276
|
full_document: ("UpdateLookup" | "Default")?
|
1268
|
-
}
|
1277
|
+
},
|
1278
|
+
?kms_key_arn: ::String
|
1269
1279
|
) -> _UpdateEventSourceMappingResponseSuccess
|
1270
1280
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateEventSourceMappingResponseSuccess
|
1271
1281
|
|
data/sig/types.rbs
CHANGED
@@ -178,6 +178,7 @@ module Aws::Lambda
|
|
178
178
|
attr_accessor self_managed_kafka_event_source_config: Types::SelfManagedKafkaEventSourceConfig
|
179
179
|
attr_accessor scaling_config: Types::ScalingConfig
|
180
180
|
attr_accessor document_db_event_source_config: Types::DocumentDBEventSourceConfig
|
181
|
+
attr_accessor kms_key_arn: ::String
|
181
182
|
SENSITIVE: []
|
182
183
|
end
|
183
184
|
|
@@ -404,6 +405,8 @@ module Aws::Lambda
|
|
404
405
|
attr_accessor self_managed_kafka_event_source_config: Types::SelfManagedKafkaEventSourceConfig
|
405
406
|
attr_accessor scaling_config: Types::ScalingConfig
|
406
407
|
attr_accessor document_db_event_source_config: Types::DocumentDBEventSourceConfig
|
408
|
+
attr_accessor kms_key_arn: ::String
|
409
|
+
attr_accessor filter_criteria_error: Types::FilterCriteriaError
|
407
410
|
SENSITIVE: []
|
408
411
|
end
|
409
412
|
|
@@ -423,6 +426,12 @@ module Aws::Lambda
|
|
423
426
|
SENSITIVE: []
|
424
427
|
end
|
425
428
|
|
429
|
+
class FilterCriteriaError
|
430
|
+
attr_accessor error_code: ::String
|
431
|
+
attr_accessor message: ::String
|
432
|
+
SENSITIVE: []
|
433
|
+
end
|
434
|
+
|
426
435
|
class FunctionCode
|
427
436
|
attr_accessor zip_file: ::String
|
428
437
|
attr_accessor s3_bucket: ::String
|
@@ -1379,6 +1388,7 @@ module Aws::Lambda
|
|
1379
1388
|
attr_accessor function_response_types: ::Array[("ReportBatchItemFailures")]
|
1380
1389
|
attr_accessor scaling_config: Types::ScalingConfig
|
1381
1390
|
attr_accessor document_db_event_source_config: Types::DocumentDBEventSourceConfig
|
1391
|
+
attr_accessor kms_key_arn: ::String
|
1382
1392
|
SENSITIVE: []
|
1383
1393
|
end
|
1384
1394
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-lambda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.127.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|