aws-sdk-lambda 1.85.0 → 1.86.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -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.85.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.85.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-08-17 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