aws-sdk-lambda 1.84.0 → 1.86.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.
@@ -0,0 +1,194 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::Lambda
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::Lambda::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::Lambda::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::Lambda::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :add_layer_version_permission
60
+ Aws::Lambda::Endpoints::AddLayerVersionPermission.build(context)
61
+ when :add_permission
62
+ Aws::Lambda::Endpoints::AddPermission.build(context)
63
+ when :create_alias
64
+ Aws::Lambda::Endpoints::CreateAlias.build(context)
65
+ when :create_code_signing_config
66
+ Aws::Lambda::Endpoints::CreateCodeSigningConfig.build(context)
67
+ when :create_event_source_mapping
68
+ Aws::Lambda::Endpoints::CreateEventSourceMapping.build(context)
69
+ when :create_function
70
+ Aws::Lambda::Endpoints::CreateFunction.build(context)
71
+ when :create_function_url_config
72
+ Aws::Lambda::Endpoints::CreateFunctionUrlConfig.build(context)
73
+ when :delete_alias
74
+ Aws::Lambda::Endpoints::DeleteAlias.build(context)
75
+ when :delete_code_signing_config
76
+ Aws::Lambda::Endpoints::DeleteCodeSigningConfig.build(context)
77
+ when :delete_event_source_mapping
78
+ Aws::Lambda::Endpoints::DeleteEventSourceMapping.build(context)
79
+ when :delete_function
80
+ Aws::Lambda::Endpoints::DeleteFunction.build(context)
81
+ when :delete_function_code_signing_config
82
+ Aws::Lambda::Endpoints::DeleteFunctionCodeSigningConfig.build(context)
83
+ when :delete_function_concurrency
84
+ Aws::Lambda::Endpoints::DeleteFunctionConcurrency.build(context)
85
+ when :delete_function_event_invoke_config
86
+ Aws::Lambda::Endpoints::DeleteFunctionEventInvokeConfig.build(context)
87
+ when :delete_function_url_config
88
+ Aws::Lambda::Endpoints::DeleteFunctionUrlConfig.build(context)
89
+ when :delete_layer_version
90
+ Aws::Lambda::Endpoints::DeleteLayerVersion.build(context)
91
+ when :delete_provisioned_concurrency_config
92
+ Aws::Lambda::Endpoints::DeleteProvisionedConcurrencyConfig.build(context)
93
+ when :get_account_settings
94
+ Aws::Lambda::Endpoints::GetAccountSettings.build(context)
95
+ when :get_alias
96
+ Aws::Lambda::Endpoints::GetAlias.build(context)
97
+ when :get_code_signing_config
98
+ Aws::Lambda::Endpoints::GetCodeSigningConfig.build(context)
99
+ when :get_event_source_mapping
100
+ Aws::Lambda::Endpoints::GetEventSourceMapping.build(context)
101
+ when :get_function
102
+ Aws::Lambda::Endpoints::GetFunction.build(context)
103
+ when :get_function_code_signing_config
104
+ Aws::Lambda::Endpoints::GetFunctionCodeSigningConfig.build(context)
105
+ when :get_function_concurrency
106
+ Aws::Lambda::Endpoints::GetFunctionConcurrency.build(context)
107
+ when :get_function_configuration
108
+ Aws::Lambda::Endpoints::GetFunctionConfiguration.build(context)
109
+ when :get_function_event_invoke_config
110
+ Aws::Lambda::Endpoints::GetFunctionEventInvokeConfig.build(context)
111
+ when :get_function_url_config
112
+ Aws::Lambda::Endpoints::GetFunctionUrlConfig.build(context)
113
+ when :get_layer_version
114
+ Aws::Lambda::Endpoints::GetLayerVersion.build(context)
115
+ when :get_layer_version_by_arn
116
+ Aws::Lambda::Endpoints::GetLayerVersionByArn.build(context)
117
+ when :get_layer_version_policy
118
+ Aws::Lambda::Endpoints::GetLayerVersionPolicy.build(context)
119
+ when :get_policy
120
+ Aws::Lambda::Endpoints::GetPolicy.build(context)
121
+ when :get_provisioned_concurrency_config
122
+ Aws::Lambda::Endpoints::GetProvisionedConcurrencyConfig.build(context)
123
+ when :invoke
124
+ Aws::Lambda::Endpoints::Invoke.build(context)
125
+ when :invoke_async
126
+ Aws::Lambda::Endpoints::InvokeAsync.build(context)
127
+ when :list_aliases
128
+ Aws::Lambda::Endpoints::ListAliases.build(context)
129
+ when :list_code_signing_configs
130
+ Aws::Lambda::Endpoints::ListCodeSigningConfigs.build(context)
131
+ when :list_event_source_mappings
132
+ Aws::Lambda::Endpoints::ListEventSourceMappings.build(context)
133
+ when :list_function_event_invoke_configs
134
+ Aws::Lambda::Endpoints::ListFunctionEventInvokeConfigs.build(context)
135
+ when :list_function_url_configs
136
+ Aws::Lambda::Endpoints::ListFunctionUrlConfigs.build(context)
137
+ when :list_functions
138
+ Aws::Lambda::Endpoints::ListFunctions.build(context)
139
+ when :list_functions_by_code_signing_config
140
+ Aws::Lambda::Endpoints::ListFunctionsByCodeSigningConfig.build(context)
141
+ when :list_layer_versions
142
+ Aws::Lambda::Endpoints::ListLayerVersions.build(context)
143
+ when :list_layers
144
+ Aws::Lambda::Endpoints::ListLayers.build(context)
145
+ when :list_provisioned_concurrency_configs
146
+ Aws::Lambda::Endpoints::ListProvisionedConcurrencyConfigs.build(context)
147
+ when :list_tags
148
+ Aws::Lambda::Endpoints::ListTags.build(context)
149
+ when :list_versions_by_function
150
+ Aws::Lambda::Endpoints::ListVersionsByFunction.build(context)
151
+ when :publish_layer_version
152
+ Aws::Lambda::Endpoints::PublishLayerVersion.build(context)
153
+ when :publish_version
154
+ Aws::Lambda::Endpoints::PublishVersion.build(context)
155
+ when :put_function_code_signing_config
156
+ Aws::Lambda::Endpoints::PutFunctionCodeSigningConfig.build(context)
157
+ when :put_function_concurrency
158
+ Aws::Lambda::Endpoints::PutFunctionConcurrency.build(context)
159
+ when :put_function_event_invoke_config
160
+ Aws::Lambda::Endpoints::PutFunctionEventInvokeConfig.build(context)
161
+ when :put_provisioned_concurrency_config
162
+ Aws::Lambda::Endpoints::PutProvisionedConcurrencyConfig.build(context)
163
+ when :remove_layer_version_permission
164
+ Aws::Lambda::Endpoints::RemoveLayerVersionPermission.build(context)
165
+ when :remove_permission
166
+ Aws::Lambda::Endpoints::RemovePermission.build(context)
167
+ when :tag_resource
168
+ Aws::Lambda::Endpoints::TagResource.build(context)
169
+ when :untag_resource
170
+ Aws::Lambda::Endpoints::UntagResource.build(context)
171
+ when :update_alias
172
+ Aws::Lambda::Endpoints::UpdateAlias.build(context)
173
+ when :update_code_signing_config
174
+ Aws::Lambda::Endpoints::UpdateCodeSigningConfig.build(context)
175
+ when :update_event_source_mapping
176
+ Aws::Lambda::Endpoints::UpdateEventSourceMapping.build(context)
177
+ when :update_function_code
178
+ Aws::Lambda::Endpoints::UpdateFunctionCode.build(context)
179
+ when :update_function_configuration
180
+ Aws::Lambda::Endpoints::UpdateFunctionConfiguration.build(context)
181
+ when :update_function_event_invoke_config
182
+ Aws::Lambda::Endpoints::UpdateFunctionEventInvokeConfig.build(context)
183
+ when :update_function_url_config
184
+ Aws::Lambda::Endpoints::UpdateFunctionUrlConfig.build(context)
185
+ end
186
+ end
187
+ end
188
+
189
+ def add_handlers(handlers, _config)
190
+ handlers.add(Handler, step: :build, priority: 75)
191
+ end
192
+ end
193
+ end
194
+ end
@@ -380,6 +380,32 @@ module Aws::Lambda
380
380
  include Aws::Structure
381
381
  end
382
382
 
383
+ # Specific configuration settings for an Amazon Managed Streaming for
384
+ # Apache Kafka (Amazon MSK) event source.
385
+ #
386
+ # @note When making an API call, you may pass AmazonManagedKafkaEventSourceConfig
387
+ # data as a hash:
388
+ #
389
+ # {
390
+ # consumer_group_id: "URI",
391
+ # }
392
+ #
393
+ # @!attribute [rw] consumer_group_id
394
+ # The identifier for the Kafka consumer group to join. The consumer
395
+ # group ID must be unique among all your Kafka event sources. After
396
+ # creating a Kafka event source mapping with the consumer group ID
397
+ # specified, you cannot update this value. For more information, see
398
+ # services-msk-consumer-group-id.
399
+ # @return [String]
400
+ #
401
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AmazonManagedKafkaEventSourceConfig AWS API Documentation
402
+ #
403
+ class AmazonManagedKafkaEventSourceConfig < Struct.new(
404
+ :consumer_group_id)
405
+ SENSITIVE = []
406
+ include Aws::Structure
407
+ end
408
+
383
409
  # Details about a [Code signing configuration][1].
384
410
  #
385
411
  #
@@ -760,6 +786,12 @@ module Aws::Lambda
760
786
  # },
761
787
  # },
762
788
  # function_response_types: ["ReportBatchItemFailures"], # accepts ReportBatchItemFailures
789
+ # amazon_managed_kafka_event_source_config: {
790
+ # consumer_group_id: "URI",
791
+ # },
792
+ # self_managed_kafka_event_source_config: {
793
+ # consumer_group_id: "URI",
794
+ # },
763
795
  # }
764
796
  #
765
797
  # @!attribute [rw] event_source_arn
@@ -818,7 +850,7 @@ module Aws::Lambda
818
850
  # * **Amazon Managed Streaming for Apache Kafka** - Default 100. Max
819
851
  # 10,000.
820
852
  #
821
- # * **Self-Managed Apache Kafka** - Default 100. Max 10,000.
853
+ # * **Self-managed Apache Kafka** - Default 100. Max 10,000.
822
854
  #
823
855
  # * **Amazon MQ (ActiveMQ and RabbitMQ)** - Default 100. Max 10,000.
824
856
  # @return [Integer]
@@ -852,7 +884,7 @@ module Aws::Lambda
852
884
  # @!attribute [rw] starting_position
853
885
  # The position in a stream from which to start reading. Required for
854
886
  # Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources.
855
- # `AT_TIMESTAMP` is only supported for Amazon Kinesis streams.
887
+ # `AT_TIMESTAMP` is supported only for Amazon Kinesis streams.
856
888
  # @return [String]
857
889
  #
858
890
  # @!attribute [rw] starting_position_timestamp
@@ -878,12 +910,12 @@ module Aws::Lambda
878
910
  # @!attribute [rw] maximum_retry_attempts
879
911
  # (Streams only) Discard records after the specified number of
880
912
  # retries. The default value is infinite (-1). When set to infinite
881
- # (-1), failed records will be retried until the record expires.
913
+ # (-1), failed records are retried until the record expires.
882
914
  # @return [Integer]
883
915
  #
884
916
  # @!attribute [rw] tumbling_window_in_seconds
885
917
  # (Streams only) The duration in seconds of a processing window. The
886
- # range is between 1 second up to 900 seconds.
918
+ # range is between 1 second and 900 seconds.
887
919
  # @return [Integer]
888
920
  #
889
921
  # @!attribute [rw] topics
@@ -900,7 +932,7 @@ module Aws::Lambda
900
932
  # @return [Array<Types::SourceAccessConfiguration>]
901
933
  #
902
934
  # @!attribute [rw] self_managed_event_source
903
- # The Self-Managed Apache Kafka cluster to send records.
935
+ # The self-managed Apache Kafka cluster to receive records from.
904
936
  # @return [Types::SelfManagedEventSource]
905
937
  #
906
938
  # @!attribute [rw] function_response_types
@@ -908,6 +940,16 @@ module Aws::Lambda
908
940
  # applied to the event source mapping.
909
941
  # @return [Array<String>]
910
942
  #
943
+ # @!attribute [rw] amazon_managed_kafka_event_source_config
944
+ # Specific configuration settings for an Amazon Managed Streaming for
945
+ # Apache Kafka (Amazon MSK) event source.
946
+ # @return [Types::AmazonManagedKafkaEventSourceConfig]
947
+ #
948
+ # @!attribute [rw] self_managed_kafka_event_source_config
949
+ # Specific configuration settings for a self-managed Apache Kafka
950
+ # event source.
951
+ # @return [Types::SelfManagedKafkaEventSourceConfig]
952
+ #
911
953
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMappingRequest AWS API Documentation
912
954
  #
913
955
  class CreateEventSourceMappingRequest < Struct.new(
@@ -929,7 +971,9 @@ module Aws::Lambda
929
971
  :queues,
930
972
  :source_access_configurations,
931
973
  :self_managed_event_source,
932
- :function_response_types)
974
+ :function_response_types,
975
+ :amazon_managed_kafka_event_source_config,
976
+ :self_managed_kafka_event_source_config)
933
977
  SENSITIVE = []
934
978
  include Aws::Structure
935
979
  end
@@ -2067,6 +2111,16 @@ module Aws::Lambda
2067
2111
  # applied to the event source mapping.
2068
2112
  # @return [Array<String>]
2069
2113
  #
2114
+ # @!attribute [rw] amazon_managed_kafka_event_source_config
2115
+ # Specific configuration settings for an Amazon Managed Streaming for
2116
+ # Apache Kafka (Amazon MSK) event source.
2117
+ # @return [Types::AmazonManagedKafkaEventSourceConfig]
2118
+ #
2119
+ # @!attribute [rw] self_managed_kafka_event_source_config
2120
+ # Specific configuration settings for a self-managed Apache Kafka
2121
+ # event source.
2122
+ # @return [Types::SelfManagedKafkaEventSourceConfig]
2123
+ #
2070
2124
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EventSourceMappingConfiguration AWS API Documentation
2071
2125
  #
2072
2126
  class EventSourceMappingConfiguration < Struct.new(
@@ -2092,7 +2146,9 @@ module Aws::Lambda
2092
2146
  :bisect_batch_on_function_error,
2093
2147
  :maximum_retry_attempts,
2094
2148
  :tumbling_window_in_seconds,
2095
- :function_response_types)
2149
+ :function_response_types,
2150
+ :amazon_managed_kafka_event_source_config,
2151
+ :self_managed_kafka_event_source_config)
2096
2152
  SENSITIVE = []
2097
2153
  include Aws::Structure
2098
2154
  end
@@ -5519,6 +5575,32 @@ module Aws::Lambda
5519
5575
  include Aws::Structure
5520
5576
  end
5521
5577
 
5578
+ # Specific configuration settings for a self-managed Apache Kafka event
5579
+ # source.
5580
+ #
5581
+ # @note When making an API call, you may pass SelfManagedKafkaEventSourceConfig
5582
+ # data as a hash:
5583
+ #
5584
+ # {
5585
+ # consumer_group_id: "URI",
5586
+ # }
5587
+ #
5588
+ # @!attribute [rw] consumer_group_id
5589
+ # The identifier for the Kafka consumer group to join. The consumer
5590
+ # group ID must be unique among all your Kafka event sources. After
5591
+ # creating a Kafka event source mapping with the consumer group ID
5592
+ # specified, you cannot update this value. For more information, see
5593
+ # services-msk-consumer-group-id.
5594
+ # @return [String]
5595
+ #
5596
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/SelfManagedKafkaEventSourceConfig AWS API Documentation
5597
+ #
5598
+ class SelfManagedKafkaEventSourceConfig < Struct.new(
5599
+ :consumer_group_id)
5600
+ SENSITIVE = []
5601
+ include Aws::Structure
5602
+ end
5603
+
5522
5604
  # The Lambda service encountered an internal error.
5523
5605
  #
5524
5606
  # @!attribute [rw] type
@@ -5578,7 +5660,7 @@ module Aws::Lambda
5578
5660
  # source. This property cannot be specified in an
5579
5661
  # UpdateEventSourceMapping API call.
5580
5662
  #
5581
- # * `CLIENT_CERTIFICATE_TLS_AUTH` - (Amazon MSK, Self-managed Apache
5663
+ # * `CLIENT_CERTIFICATE_TLS_AUTH` - (Amazon MSK, self-managed Apache
5582
5664
  # Kafka) The Secrets Manager ARN of your secret key containing the
5583
5665
  # certificate chain (X.509 PEM), private key (PKCS#8 PEM), and
5584
5666
  # private key password (optional) used for mutual TLS authentication
@@ -5967,7 +6049,7 @@ module Aws::Lambda
5967
6049
  # * **Amazon Managed Streaming for Apache Kafka** - Default 100. Max
5968
6050
  # 10,000.
5969
6051
  #
5970
- # * **Self-Managed Apache Kafka** - Default 100. Max 10,000.
6052
+ # * **Self-managed Apache Kafka** - Default 100. Max 10,000.
5971
6053
  #
5972
6054
  # * **Amazon MQ (ActiveMQ and RabbitMQ)** - Default 100. Max 10,000.
5973
6055
  # @return [Integer]
@@ -6011,7 +6093,7 @@ module Aws::Lambda
6011
6093
  # @!attribute [rw] maximum_retry_attempts
6012
6094
  # (Streams only) Discard records after the specified number of
6013
6095
  # retries. The default value is infinite (-1). When set to infinite
6014
- # (-1), failed records will be retried until the record expires.
6096
+ # (-1), failed records are retried until the record expires.
6015
6097
  # @return [Integer]
6016
6098
  #
6017
6099
  # @!attribute [rw] parallelization_factor
@@ -6026,7 +6108,7 @@ module Aws::Lambda
6026
6108
  #
6027
6109
  # @!attribute [rw] tumbling_window_in_seconds
6028
6110
  # (Streams only) The duration in seconds of a processing window. The
6029
- # range is between 1 second up to 900 seconds.
6111
+ # range is between 1 second and 900 seconds.
6030
6112
  # @return [Integer]
6031
6113
  #
6032
6114
  # @!attribute [rw] function_response_types
@@ -13,10 +13,14 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-lambda/types'
15
15
  require_relative 'aws-sdk-lambda/client_api'
16
+ require_relative 'aws-sdk-lambda/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-lambda/client'
17
18
  require_relative 'aws-sdk-lambda/errors'
18
19
  require_relative 'aws-sdk-lambda/waiters'
19
20
  require_relative 'aws-sdk-lambda/resource'
21
+ require_relative 'aws-sdk-lambda/endpoint_parameters'
22
+ require_relative 'aws-sdk-lambda/endpoint_provider'
23
+ require_relative 'aws-sdk-lambda/endpoints'
20
24
  require_relative 'aws-sdk-lambda/customizations'
21
25
 
22
26
  # This module provides support for AWS Lambda. This module is available in the
@@ -49,6 +53,6 @@ require_relative 'aws-sdk-lambda/customizations'
49
53
  # @!group service
50
54
  module Aws::Lambda
51
55
 
52
- GEM_VERSION = '1.84.0'
56
+ GEM_VERSION = '1.86.0'
53
57
 
54
58
  end
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.84.0
4
+ version: 1.86.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: 2022-05-12 00:00:00.000000000 Z
11
+ date: 2022-10-25 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.127.0
22
+ version: 3.165.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.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,11 @@ files:
59
59
  - lib/aws-sdk-lambda/client.rb
60
60
  - lib/aws-sdk-lambda/client_api.rb
61
61
  - lib/aws-sdk-lambda/customizations.rb
62
+ - lib/aws-sdk-lambda/endpoint_parameters.rb
63
+ - lib/aws-sdk-lambda/endpoint_provider.rb
64
+ - lib/aws-sdk-lambda/endpoints.rb
62
65
  - lib/aws-sdk-lambda/errors.rb
66
+ - lib/aws-sdk-lambda/plugins/endpoints.rb
63
67
  - lib/aws-sdk-lambda/resource.rb
64
68
  - lib/aws-sdk-lambda/types.rb
65
69
  - lib/aws-sdk-lambda/waiters.rb