aws-sdk-lambda 1.126.0 → 1.128.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a54010ae94a05040581a1afef5539329feb0d58a19fcd6093c38eeaed083043e
4
- data.tar.gz: cf5c143be4454d9bc642bf5c377e1fbc6a7ec814346dc2c79f39a9ed197504d6
3
+ metadata.gz: abbb65da8487e14ffd1fafb60692bf6091e0695e1837409659fdb95d744bc42d
4
+ data.tar.gz: 1636772432f0e820dad915336ef1657228d16a14b90ffae23a6b6c28cbcd3774
5
5
  SHA512:
6
- metadata.gz: f3eb80ef02225c35ce8fffb3bceac8d2b9c9954c31c0227d0a117186f817c304028f1d4c692b8b0b9d139d13f446fe8255098880a2ac2770017e87732899aafb
7
- data.tar.gz: 42f64221e04f2e6f0ef8afb7df2d0e2cedcf3b0cd05f7eac15905a8091322a2068b760feb0d8a94b05efd791dfa6df971278da51745af1e58c8c9d5dfd4fbe82
6
+ metadata.gz: 4ccdf22f5b60416518524eabc7eae406328b0390e9629454330bbe390bf0ba2934ff928430dd3b19a405a74895a6f8f1aaa3fd81753ea85a1a8d493ba43b0afe
7
+ data.tar.gz: 40522bc43852f370c74414425a67e0c6743fd3aea925689dfd0bad1017b8f281af13c909b5152190a67bdde0bc4f7bcecaa675187ba3f364273289ad345ce18d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.128.0 (2024-09-03)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.127.0 (2024-08-21)
10
+ ------------------
11
+
12
+ * Feature - Release FilterCriteria encryption for Lambda EventSourceMapping, enabling customers to encrypt their filter criteria using a customer-owned KMS key.
13
+
4
14
  1.126.0 (2024-08-19)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.126.0
1
+ 1.128.0
@@ -32,6 +32,7 @@ require 'aws-sdk-core/plugins/checksum_algorithm.rb'
32
32
  require 'aws-sdk-core/plugins/request_compression.rb'
33
33
  require 'aws-sdk-core/plugins/defaults_mode.rb'
34
34
  require 'aws-sdk-core/plugins/recursion_detection.rb'
35
+ require 'aws-sdk-core/plugins/telemetry.rb'
35
36
  require 'aws-sdk-core/plugins/sign.rb'
36
37
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
37
38
  require 'aws-sdk-core/plugins/event_stream_configuration.rb'
@@ -84,6 +85,7 @@ module Aws::Lambda
84
85
  add_plugin(Aws::Plugins::RequestCompression)
85
86
  add_plugin(Aws::Plugins::DefaultsMode)
86
87
  add_plugin(Aws::Plugins::RecursionDetection)
88
+ add_plugin(Aws::Plugins::Telemetry)
87
89
  add_plugin(Aws::Plugins::Sign)
88
90
  add_plugin(Aws::Plugins::Protocols::RestJson)
89
91
  add_plugin(Aws::Plugins::EventStreamConfiguration)
@@ -341,6 +343,16 @@ module Aws::Lambda
341
343
  # ** Please note ** When response stubbing is enabled, no HTTP
342
344
  # requests are made, and retries are disabled.
343
345
  #
346
+ # @option options [Aws::Telemetry::TelemetryProviderBase] :telemetry_provider (Aws::Telemetry::NoOpTelemetryProvider)
347
+ # Allows you to provide a telemetry provider, which is used to
348
+ # emit telemetry data. By default, uses `NoOpTelemetryProvider` which
349
+ # will not record or emit any telemetry data. The SDK supports the
350
+ # following telemetry providers:
351
+ #
352
+ # * OpenTelemetry (OTel) - To use the OTel provider, install and require the
353
+ # `opentelemetry-sdk` gem and then, pass in an instance of a
354
+ # `Aws::Telemetry::OTelProvider` for telemetry provider.
355
+ #
344
356
  # @option options [Aws::TokenProvider] :token_provider
345
357
  # A Bearer Token Provider. This can be an instance of any one of the
346
358
  # following classes:
@@ -509,24 +521,24 @@ module Aws::Lambda
509
521
  req.send_request(options)
510
522
  end
511
523
 
512
- # Grants an Amazon Web Service, Amazon Web Services account, or Amazon
513
- # Web Services organization permission to use a function. You can apply
514
- # the policy at the function level, or specify a qualifier to restrict
515
- # access to a single version or alias. If you use a qualifier, the
516
- # invoker must use the full Amazon Resource Name (ARN) of that version
517
- # or alias to invoke the function. Note: Lambda does not support adding
518
- # policies to version $LATEST.
524
+ # Grants an Amazon Web Servicesservice, Amazon Web Services account, or
525
+ # Amazon Web Services organization permission to use a function. You can
526
+ # apply the policy at the function level, or specify a qualifier to
527
+ # restrict access to a single version or alias. If you use a qualifier,
528
+ # the invoker must use the full Amazon Resource Name (ARN) of that
529
+ # version or alias to invoke the function. Note: Lambda does not support
530
+ # adding policies to version $LATEST.
519
531
  #
520
532
  # To grant permission to another account, specify the account ID as the
521
533
  # `Principal`. To grant permission to an organization defined in
522
534
  # Organizations, specify the organization ID as the `PrincipalOrgID`.
523
- # For Amazon Web Services, the principal is a domain-style identifier
524
- # that the service defines, such as `s3.amazonaws.com` or
525
- # `sns.amazonaws.com`. For Amazon Web Services, you can also specify the
526
- # ARN of the associated resource as the `SourceArn`. If you grant
527
- # permission to a service principal without specifying the source, other
528
- # accounts could potentially configure resources in their account to
529
- # invoke your Lambda function.
535
+ # For Amazon Web Servicesservices, the principal is a domain-style
536
+ # identifier that the service defines, such as `s3.amazonaws.com` or
537
+ # `sns.amazonaws.com`. For Amazon Web Servicesservices, you can also
538
+ # specify the ARN of the associated resource as the `SourceArn`. If you
539
+ # grant permission to a service principal without specifying the source,
540
+ # other accounts could potentially configure resources in their account
541
+ # to invoke your Lambda function.
530
542
  #
531
543
  # This operation adds a statement to a resource-based permissions policy
532
544
  # for the function. For more information about function policies, see
@@ -562,23 +574,25 @@ module Aws::Lambda
562
574
  # `lambda:InvokeFunction` or `lambda:GetFunction`.
563
575
  #
564
576
  # @option params [required, String] :principal
565
- # The Amazon Web Service or Amazon Web Services account that invokes the
566
- # function. If you specify a service, use `SourceArn` or `SourceAccount`
567
- # to limit who can invoke the function through that service.
577
+ # The Amazon Web Servicesservice or Amazon Web Services account that
578
+ # invokes the function. If you specify a service, use `SourceArn` or
579
+ # `SourceAccount` to limit who can invoke the function through that
580
+ # service.
568
581
  #
569
582
  # @option params [String] :source_arn
570
- # For Amazon Web Services, the ARN of the Amazon Web Services resource
571
- # that invokes the function. For example, an Amazon S3 bucket or Amazon
572
- # SNS topic.
583
+ # For Amazon Web Servicesservices, the ARN of the Amazon Web Services
584
+ # resource that invokes the function. For example, an Amazon S3 bucket
585
+ # or Amazon SNS topic.
573
586
  #
574
587
  # Note that Lambda configures the comparison using the `StringLike`
575
588
  # operator.
576
589
  #
577
590
  # @option params [String] :source_account
578
- # For Amazon Web Service, the ID of the Amazon Web Services account that
579
- # owns the resource. Use this together with `SourceArn` to ensure that
580
- # the specified account owns the resource. It is possible for an Amazon
581
- # S3 bucket to be deleted by its owner and recreated by another account.
591
+ # For Amazon Web Servicesservice, the ID of the Amazon Web Services
592
+ # account that owns the resource. Use this together with `SourceArn` to
593
+ # ensure that the specified account owns the resource. It is possible
594
+ # for an Amazon S3 bucket to be deleted by its owner and recreated by
595
+ # another account.
582
596
  #
583
597
  # @option params [String] :event_source_token
584
598
  # For Alexa Smart Home functions, a token that the invoker must supply.
@@ -1025,6 +1039,16 @@ module Aws::Lambda
1025
1039
  # @option params [Types::DocumentDBEventSourceConfig] :document_db_event_source_config
1026
1040
  # Specific configuration settings for a DocumentDB event source.
1027
1041
  #
1042
+ # @option params [String] :kms_key_arn
1043
+ # The ARN of the Key Management Service (KMS) customer managed key that
1044
+ # Lambda uses to encrypt your function's [filter criteria][1]. By
1045
+ # default, Lambda does not encrypt your filter criteria object. Specify
1046
+ # this property to encrypt data using your own customer managed key.
1047
+ #
1048
+ #
1049
+ #
1050
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics
1051
+ #
1028
1052
  # @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1029
1053
  #
1030
1054
  # * {Types::EventSourceMappingConfiguration#uuid #uuid} => String
@@ -1054,6 +1078,8 @@ module Aws::Lambda
1054
1078
  # * {Types::EventSourceMappingConfiguration#self_managed_kafka_event_source_config #self_managed_kafka_event_source_config} => Types::SelfManagedKafkaEventSourceConfig
1055
1079
  # * {Types::EventSourceMappingConfiguration#scaling_config #scaling_config} => Types::ScalingConfig
1056
1080
  # * {Types::EventSourceMappingConfiguration#document_db_event_source_config #document_db_event_source_config} => Types::DocumentDBEventSourceConfig
1081
+ # * {Types::EventSourceMappingConfiguration#kms_key_arn #kms_key_arn} => String
1082
+ # * {Types::EventSourceMappingConfiguration#filter_criteria_error #filter_criteria_error} => Types::FilterCriteriaError
1057
1083
  #
1058
1084
  # @example Request syntax with placeholder values
1059
1085
  #
@@ -1113,6 +1139,7 @@ module Aws::Lambda
1113
1139
  # collection_name: "CollectionName",
1114
1140
  # full_document: "UpdateLookup", # accepts UpdateLookup, Default
1115
1141
  # },
1142
+ # kms_key_arn: "KMSKeyArn",
1116
1143
  # })
1117
1144
  #
1118
1145
  # @example Response structure
@@ -1155,6 +1182,9 @@ module Aws::Lambda
1155
1182
  # resp.document_db_event_source_config.database_name #=> String
1156
1183
  # resp.document_db_event_source_config.collection_name #=> String
1157
1184
  # resp.document_db_event_source_config.full_document #=> String, one of "UpdateLookup", "Default"
1185
+ # resp.kms_key_arn #=> String
1186
+ # resp.filter_criteria_error.error_code #=> String
1187
+ # resp.filter_criteria_error.message #=> String
1158
1188
  #
1159
1189
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMapping AWS API Documentation
1160
1190
  #
@@ -1169,8 +1199,8 @@ module Aws::Lambda
1169
1199
  # [deployment package][1] and an [execution role][2]. The deployment
1170
1200
  # package is a .zip file archive or container image that contains your
1171
1201
  # function code. The execution role grants the function permission to
1172
- # use Amazon Web Services, such as Amazon CloudWatch Logs for log
1173
- # streaming and X-Ray for request tracing.
1202
+ # use Amazon Web Servicesservices, such as Amazon CloudWatch Logs for
1203
+ # log streaming and X-Ray for request tracing.
1174
1204
  #
1175
1205
  # If the deployment package is a [container image][3], then you set the
1176
1206
  # package type to `Image`. For a container image, the code property must
@@ -1216,17 +1246,17 @@ module Aws::Lambda
1216
1246
  # configuration includes set of signing profiles, which define the
1217
1247
  # trusted publishers for this function.
1218
1248
  #
1219
- # If another Amazon Web Services account or an Amazon Web Service
1220
- # invokes your function, use AddPermission to grant permission by
1221
- # creating a resource-based Identity and Access Management (IAM) policy.
1222
- # You can grant permissions at the function level, on a version, or on
1223
- # an alias.
1249
+ # If another Amazon Web Services account or an Amazon Web
1250
+ # Servicesservice invokes your function, use AddPermission to grant
1251
+ # permission by creating a resource-based Identity and Access Management
1252
+ # (IAM) policy. You can grant permissions at the function level, on a
1253
+ # version, or on an alias.
1224
1254
  #
1225
1255
  # To invoke your function directly, use Invoke. To invoke your function
1226
- # in response to events in other Amazon Web Services, create an event
1227
- # source mapping (CreateEventSourceMapping), or configure a function
1228
- # trigger in the other service. For more information, see [Invoking
1229
- # Lambda functions][6].
1256
+ # in response to events in other Amazon Web Servicesservices, create an
1257
+ # event source mapping (CreateEventSourceMapping), or configure a
1258
+ # function trigger in the other service. For more information, see
1259
+ # [Invoking Lambda functions][6].
1230
1260
  #
1231
1261
  #
1232
1262
  #
@@ -1823,6 +1853,8 @@ module Aws::Lambda
1823
1853
  # * {Types::EventSourceMappingConfiguration#self_managed_kafka_event_source_config #self_managed_kafka_event_source_config} => Types::SelfManagedKafkaEventSourceConfig
1824
1854
  # * {Types::EventSourceMappingConfiguration#scaling_config #scaling_config} => Types::ScalingConfig
1825
1855
  # * {Types::EventSourceMappingConfiguration#document_db_event_source_config #document_db_event_source_config} => Types::DocumentDBEventSourceConfig
1856
+ # * {Types::EventSourceMappingConfiguration#kms_key_arn #kms_key_arn} => String
1857
+ # * {Types::EventSourceMappingConfiguration#filter_criteria_error #filter_criteria_error} => Types::FilterCriteriaError
1826
1858
  #
1827
1859
  # @example Request syntax with placeholder values
1828
1860
  #
@@ -1870,6 +1902,9 @@ module Aws::Lambda
1870
1902
  # resp.document_db_event_source_config.database_name #=> String
1871
1903
  # resp.document_db_event_source_config.collection_name #=> String
1872
1904
  # resp.document_db_event_source_config.full_document #=> String, one of "UpdateLookup", "Default"
1905
+ # resp.kms_key_arn #=> String
1906
+ # resp.filter_criteria_error.error_code #=> String
1907
+ # resp.filter_criteria_error.message #=> String
1873
1908
  #
1874
1909
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteEventSourceMapping AWS API Documentation
1875
1910
  #
@@ -1886,9 +1921,9 @@ module Aws::Lambda
1886
1921
  # for DeleteAlias.
1887
1922
  #
1888
1923
  # To delete Lambda event source mappings that invoke a function, use
1889
- # DeleteEventSourceMapping. For Amazon Web Services and resources that
1890
- # invoke your function directly, delete the trigger in the service where
1891
- # you originally configured it.
1924
+ # DeleteEventSourceMapping. For Amazon Web Servicesservices and
1925
+ # resources that invoke your function directly, delete the trigger in
1926
+ # the service where you originally configured it.
1892
1927
  #
1893
1928
  # @option params [required, String] :function_name
1894
1929
  # The name or ARN of the Lambda function or version.
@@ -2310,6 +2345,8 @@ module Aws::Lambda
2310
2345
  # * {Types::EventSourceMappingConfiguration#self_managed_kafka_event_source_config #self_managed_kafka_event_source_config} => Types::SelfManagedKafkaEventSourceConfig
2311
2346
  # * {Types::EventSourceMappingConfiguration#scaling_config #scaling_config} => Types::ScalingConfig
2312
2347
  # * {Types::EventSourceMappingConfiguration#document_db_event_source_config #document_db_event_source_config} => Types::DocumentDBEventSourceConfig
2348
+ # * {Types::EventSourceMappingConfiguration#kms_key_arn #kms_key_arn} => String
2349
+ # * {Types::EventSourceMappingConfiguration#filter_criteria_error #filter_criteria_error} => Types::FilterCriteriaError
2313
2350
  #
2314
2351
  # @example Request syntax with placeholder values
2315
2352
  #
@@ -2357,6 +2394,9 @@ module Aws::Lambda
2357
2394
  # resp.document_db_event_source_config.database_name #=> String
2358
2395
  # resp.document_db_event_source_config.collection_name #=> String
2359
2396
  # resp.document_db_event_source_config.full_document #=> String, one of "UpdateLookup", "Default"
2397
+ # resp.kms_key_arn #=> String
2398
+ # resp.filter_criteria_error.error_code #=> String
2399
+ # resp.filter_criteria_error.message #=> String
2360
2400
  #
2361
2401
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetEventSourceMapping AWS API Documentation
2362
2402
  #
@@ -3849,6 +3889,9 @@ module Aws::Lambda
3849
3889
  # resp.event_source_mappings[0].document_db_event_source_config.database_name #=> String
3850
3890
  # resp.event_source_mappings[0].document_db_event_source_config.collection_name #=> String
3851
3891
  # resp.event_source_mappings[0].document_db_event_source_config.full_document #=> String, one of "UpdateLookup", "Default"
3892
+ # resp.event_source_mappings[0].kms_key_arn #=> String
3893
+ # resp.event_source_mappings[0].filter_criteria_error.error_code #=> String
3894
+ # resp.event_source_mappings[0].filter_criteria_error.message #=> String
3852
3895
  #
3853
3896
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListEventSourceMappings AWS API Documentation
3854
3897
  #
@@ -5321,9 +5364,9 @@ module Aws::Lambda
5321
5364
  req.send_request(options)
5322
5365
  end
5323
5366
 
5324
- # Revokes function-use permission from an Amazon Web Service or another
5325
- # Amazon Web Services account. You can get the ID of the statement from
5326
- # the output of GetPolicy.
5367
+ # Revokes function-use permission from an Amazon Web Servicesservice or
5368
+ # another Amazon Web Services account. You can get the ID of the
5369
+ # statement from the output of GetPolicy.
5327
5370
  #
5328
5371
  # @option params [required, String] :function_name
5329
5372
  # The name or ARN of the Lambda function, version, or alias.
@@ -5773,6 +5816,16 @@ module Aws::Lambda
5773
5816
  # @option params [Types::DocumentDBEventSourceConfig] :document_db_event_source_config
5774
5817
  # Specific configuration settings for a DocumentDB event source.
5775
5818
  #
5819
+ # @option params [String] :kms_key_arn
5820
+ # The ARN of the Key Management Service (KMS) customer managed key that
5821
+ # Lambda uses to encrypt your function's [filter criteria][1]. By
5822
+ # default, Lambda does not encrypt your filter criteria object. Specify
5823
+ # this property to encrypt data using your own customer managed key.
5824
+ #
5825
+ #
5826
+ #
5827
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics
5828
+ #
5776
5829
  # @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5777
5830
  #
5778
5831
  # * {Types::EventSourceMappingConfiguration#uuid #uuid} => String
@@ -5802,6 +5855,8 @@ module Aws::Lambda
5802
5855
  # * {Types::EventSourceMappingConfiguration#self_managed_kafka_event_source_config #self_managed_kafka_event_source_config} => Types::SelfManagedKafkaEventSourceConfig
5803
5856
  # * {Types::EventSourceMappingConfiguration#scaling_config #scaling_config} => Types::ScalingConfig
5804
5857
  # * {Types::EventSourceMappingConfiguration#document_db_event_source_config #document_db_event_source_config} => Types::DocumentDBEventSourceConfig
5858
+ # * {Types::EventSourceMappingConfiguration#kms_key_arn #kms_key_arn} => String
5859
+ # * {Types::EventSourceMappingConfiguration#filter_criteria_error #filter_criteria_error} => Types::FilterCriteriaError
5805
5860
  #
5806
5861
  # @example Request syntax with placeholder values
5807
5862
  #
@@ -5846,6 +5901,7 @@ module Aws::Lambda
5846
5901
  # collection_name: "CollectionName",
5847
5902
  # full_document: "UpdateLookup", # accepts UpdateLookup, Default
5848
5903
  # },
5904
+ # kms_key_arn: "KMSKeyArn",
5849
5905
  # })
5850
5906
  #
5851
5907
  # @example Response structure
@@ -5888,6 +5944,9 @@ module Aws::Lambda
5888
5944
  # resp.document_db_event_source_config.database_name #=> String
5889
5945
  # resp.document_db_event_source_config.collection_name #=> String
5890
5946
  # resp.document_db_event_source_config.full_document #=> String, one of "UpdateLookup", "Default"
5947
+ # resp.kms_key_arn #=> String
5948
+ # resp.filter_criteria_error.error_code #=> String
5949
+ # resp.filter_criteria_error.message #=> String
5891
5950
  #
5892
5951
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMapping AWS API Documentation
5893
5952
  #
@@ -6133,7 +6192,7 @@ module Aws::Lambda
6133
6192
  #
6134
6193
  # To configure function concurrency, use PutFunctionConcurrency. To
6135
6194
  # grant invoke permissions to an Amazon Web Services account or Amazon
6136
- # Web Service, use AddPermission.
6195
+ # Web Servicesservice, use AddPermission.
6137
6196
  #
6138
6197
  #
6139
6198
  #
@@ -6678,14 +6737,19 @@ module Aws::Lambda
6678
6737
  # @api private
6679
6738
  def build_request(operation_name, params = {})
6680
6739
  handlers = @handlers.for(operation_name)
6740
+ tracer = config.telemetry_provider.tracer_provider.tracer(
6741
+ Aws::Telemetry.module_to_tracer_name('Aws::Lambda')
6742
+ )
6681
6743
  context = Seahorse::Client::RequestContext.new(
6682
6744
  operation_name: operation_name,
6683
6745
  operation: config.api.operation(operation_name),
6684
6746
  client: self,
6685
6747
  params: params,
6686
- config: config)
6748
+ config: config,
6749
+ tracer: tracer
6750
+ )
6687
6751
  context[:gem_name] = 'aws-sdk-lambda'
6688
- context[:gem_version] = '1.126.0'
6752
+ context[:gem_version] = '1.128.0'
6689
6753
  Seahorse::Client::Request.new(handlers, context)
6690
6754
  end
6691
6755
 
@@ -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"))
@@ -167,27 +167,27 @@ module Aws::Lambda
167
167
  # @return [String]
168
168
  #
169
169
  # @!attribute [rw] principal
170
- # The Amazon Web Service or Amazon Web Services account that invokes
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 Services, the ARN of the Amazon Web Services resource
178
- # that invokes the function. For example, an Amazon S3 bucket or
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 Service, the ID of the Amazon Web Services account
187
- # that owns the resource. Use this together with `SourceArn` to ensure
188
- # that the specified account owns the resource. It is possible for an
189
- # Amazon S3 bucket to be deleted by its owner and recreated by another
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
@@ -54,6 +54,6 @@ require_relative 'aws-sdk-lambda/event_streams'
54
54
  # @!group service
55
55
  module Aws::Lambda
56
56
 
57
- GEM_VERSION = '1.126.0'
57
+ GEM_VERSION = '1.128.0'
58
58
 
59
59
  end
data/sig/client.rbs CHANGED
@@ -53,6 +53,7 @@ module Aws
53
53
  ?session_token: String,
54
54
  ?sigv4a_signing_region_set: Array[String],
55
55
  ?stub_responses: untyped,
56
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
56
57
  ?token_provider: untyped,
57
58
  ?use_dualstack_endpoint: bool,
58
59
  ?use_fips_endpoint: bool,
@@ -179,6 +180,8 @@ module Aws
179
180
  def self_managed_kafka_event_source_config: () -> Types::SelfManagedKafkaEventSourceConfig
180
181
  def scaling_config: () -> Types::ScalingConfig
181
182
  def document_db_event_source_config: () -> Types::DocumentDBEventSourceConfig
183
+ def kms_key_arn: () -> ::String
184
+ def filter_criteria_error: () -> Types::FilterCriteriaError
182
185
  end
183
186
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#create_event_source_mapping-instance_method
184
187
  def create_event_source_mapping: (
@@ -234,7 +237,8 @@ module Aws
234
237
  database_name: ::String?,
235
238
  collection_name: ::String?,
236
239
  full_document: ("UpdateLookup" | "Default")?
237
- }
240
+ },
241
+ ?kms_key_arn: ::String
238
242
  ) -> _CreateEventSourceMappingResponseSuccess
239
243
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateEventSourceMappingResponseSuccess
240
244
 
@@ -411,6 +415,8 @@ module Aws
411
415
  def self_managed_kafka_event_source_config: () -> Types::SelfManagedKafkaEventSourceConfig
412
416
  def scaling_config: () -> Types::ScalingConfig
413
417
  def document_db_event_source_config: () -> Types::DocumentDBEventSourceConfig
418
+ def kms_key_arn: () -> ::String
419
+ def filter_criteria_error: () -> Types::FilterCriteriaError
414
420
  end
415
421
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#delete_event_source_mapping-instance_method
416
422
  def delete_event_source_mapping: (
@@ -530,6 +536,8 @@ module Aws
530
536
  def self_managed_kafka_event_source_config: () -> Types::SelfManagedKafkaEventSourceConfig
531
537
  def scaling_config: () -> Types::ScalingConfig
532
538
  def document_db_event_source_config: () -> Types::DocumentDBEventSourceConfig
539
+ def kms_key_arn: () -> ::String
540
+ def filter_criteria_error: () -> Types::FilterCriteriaError
533
541
  end
534
542
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#get_event_source_mapping-instance_method
535
543
  def get_event_source_mapping: (
@@ -1223,6 +1231,8 @@ module Aws
1223
1231
  def self_managed_kafka_event_source_config: () -> Types::SelfManagedKafkaEventSourceConfig
1224
1232
  def scaling_config: () -> Types::ScalingConfig
1225
1233
  def document_db_event_source_config: () -> Types::DocumentDBEventSourceConfig
1234
+ def kms_key_arn: () -> ::String
1235
+ def filter_criteria_error: () -> Types::FilterCriteriaError
1226
1236
  end
1227
1237
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#update_event_source_mapping-instance_method
1228
1238
  def update_event_source_mapping: (
@@ -1265,7 +1275,8 @@ module Aws
1265
1275
  database_name: ::String?,
1266
1276
  collection_name: ::String?,
1267
1277
  full_document: ("UpdateLookup" | "Default")?
1268
- }
1278
+ },
1279
+ ?kms_key_arn: ::String
1269
1280
  ) -> _UpdateEventSourceMappingResponseSuccess
1270
1281
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateEventSourceMappingResponseSuccess
1271
1282
 
data/sig/resource.rbs CHANGED
@@ -53,6 +53,7 @@ module Aws
53
53
  ?session_token: String,
54
54
  ?sigv4a_signing_region_set: Array[String],
55
55
  ?stub_responses: untyped,
56
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
56
57
  ?token_provider: untyped,
57
58
  ?use_dualstack_endpoint: bool,
58
59
  ?use_fips_endpoint: bool,
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.126.0
4
+ version: 1.128.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-19 00:00:00.000000000 Z
11
+ date: 2024-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.201.0
22
+ version: 3.203.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.201.0
32
+ version: 3.203.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement