aws-sdk-apigateway 1.77.0 → 1.79.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,308 @@
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::APIGateway
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::APIGateway::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::APIGateway::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::APIGateway::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 :create_api_key
60
+ Aws::APIGateway::Endpoints::CreateApiKey.build(context)
61
+ when :create_authorizer
62
+ Aws::APIGateway::Endpoints::CreateAuthorizer.build(context)
63
+ when :create_base_path_mapping
64
+ Aws::APIGateway::Endpoints::CreateBasePathMapping.build(context)
65
+ when :create_deployment
66
+ Aws::APIGateway::Endpoints::CreateDeployment.build(context)
67
+ when :create_documentation_part
68
+ Aws::APIGateway::Endpoints::CreateDocumentationPart.build(context)
69
+ when :create_documentation_version
70
+ Aws::APIGateway::Endpoints::CreateDocumentationVersion.build(context)
71
+ when :create_domain_name
72
+ Aws::APIGateway::Endpoints::CreateDomainName.build(context)
73
+ when :create_model
74
+ Aws::APIGateway::Endpoints::CreateModel.build(context)
75
+ when :create_request_validator
76
+ Aws::APIGateway::Endpoints::CreateRequestValidator.build(context)
77
+ when :create_resource
78
+ Aws::APIGateway::Endpoints::CreateResource.build(context)
79
+ when :create_rest_api
80
+ Aws::APIGateway::Endpoints::CreateRestApi.build(context)
81
+ when :create_stage
82
+ Aws::APIGateway::Endpoints::CreateStage.build(context)
83
+ when :create_usage_plan
84
+ Aws::APIGateway::Endpoints::CreateUsagePlan.build(context)
85
+ when :create_usage_plan_key
86
+ Aws::APIGateway::Endpoints::CreateUsagePlanKey.build(context)
87
+ when :create_vpc_link
88
+ Aws::APIGateway::Endpoints::CreateVpcLink.build(context)
89
+ when :delete_api_key
90
+ Aws::APIGateway::Endpoints::DeleteApiKey.build(context)
91
+ when :delete_authorizer
92
+ Aws::APIGateway::Endpoints::DeleteAuthorizer.build(context)
93
+ when :delete_base_path_mapping
94
+ Aws::APIGateway::Endpoints::DeleteBasePathMapping.build(context)
95
+ when :delete_client_certificate
96
+ Aws::APIGateway::Endpoints::DeleteClientCertificate.build(context)
97
+ when :delete_deployment
98
+ Aws::APIGateway::Endpoints::DeleteDeployment.build(context)
99
+ when :delete_documentation_part
100
+ Aws::APIGateway::Endpoints::DeleteDocumentationPart.build(context)
101
+ when :delete_documentation_version
102
+ Aws::APIGateway::Endpoints::DeleteDocumentationVersion.build(context)
103
+ when :delete_domain_name
104
+ Aws::APIGateway::Endpoints::DeleteDomainName.build(context)
105
+ when :delete_gateway_response
106
+ Aws::APIGateway::Endpoints::DeleteGatewayResponse.build(context)
107
+ when :delete_integration
108
+ Aws::APIGateway::Endpoints::DeleteIntegration.build(context)
109
+ when :delete_integration_response
110
+ Aws::APIGateway::Endpoints::DeleteIntegrationResponse.build(context)
111
+ when :delete_method
112
+ Aws::APIGateway::Endpoints::DeleteMethod.build(context)
113
+ when :delete_method_response
114
+ Aws::APIGateway::Endpoints::DeleteMethodResponse.build(context)
115
+ when :delete_model
116
+ Aws::APIGateway::Endpoints::DeleteModel.build(context)
117
+ when :delete_request_validator
118
+ Aws::APIGateway::Endpoints::DeleteRequestValidator.build(context)
119
+ when :delete_resource
120
+ Aws::APIGateway::Endpoints::DeleteResource.build(context)
121
+ when :delete_rest_api
122
+ Aws::APIGateway::Endpoints::DeleteRestApi.build(context)
123
+ when :delete_stage
124
+ Aws::APIGateway::Endpoints::DeleteStage.build(context)
125
+ when :delete_usage_plan
126
+ Aws::APIGateway::Endpoints::DeleteUsagePlan.build(context)
127
+ when :delete_usage_plan_key
128
+ Aws::APIGateway::Endpoints::DeleteUsagePlanKey.build(context)
129
+ when :delete_vpc_link
130
+ Aws::APIGateway::Endpoints::DeleteVpcLink.build(context)
131
+ when :flush_stage_authorizers_cache
132
+ Aws::APIGateway::Endpoints::FlushStageAuthorizersCache.build(context)
133
+ when :flush_stage_cache
134
+ Aws::APIGateway::Endpoints::FlushStageCache.build(context)
135
+ when :generate_client_certificate
136
+ Aws::APIGateway::Endpoints::GenerateClientCertificate.build(context)
137
+ when :get_account
138
+ Aws::APIGateway::Endpoints::GetAccount.build(context)
139
+ when :get_api_key
140
+ Aws::APIGateway::Endpoints::GetApiKey.build(context)
141
+ when :get_api_keys
142
+ Aws::APIGateway::Endpoints::GetApiKeys.build(context)
143
+ when :get_authorizer
144
+ Aws::APIGateway::Endpoints::GetAuthorizer.build(context)
145
+ when :get_authorizers
146
+ Aws::APIGateway::Endpoints::GetAuthorizers.build(context)
147
+ when :get_base_path_mapping
148
+ Aws::APIGateway::Endpoints::GetBasePathMapping.build(context)
149
+ when :get_base_path_mappings
150
+ Aws::APIGateway::Endpoints::GetBasePathMappings.build(context)
151
+ when :get_client_certificate
152
+ Aws::APIGateway::Endpoints::GetClientCertificate.build(context)
153
+ when :get_client_certificates
154
+ Aws::APIGateway::Endpoints::GetClientCertificates.build(context)
155
+ when :get_deployment
156
+ Aws::APIGateway::Endpoints::GetDeployment.build(context)
157
+ when :get_deployments
158
+ Aws::APIGateway::Endpoints::GetDeployments.build(context)
159
+ when :get_documentation_part
160
+ Aws::APIGateway::Endpoints::GetDocumentationPart.build(context)
161
+ when :get_documentation_parts
162
+ Aws::APIGateway::Endpoints::GetDocumentationParts.build(context)
163
+ when :get_documentation_version
164
+ Aws::APIGateway::Endpoints::GetDocumentationVersion.build(context)
165
+ when :get_documentation_versions
166
+ Aws::APIGateway::Endpoints::GetDocumentationVersions.build(context)
167
+ when :get_domain_name
168
+ Aws::APIGateway::Endpoints::GetDomainName.build(context)
169
+ when :get_domain_names
170
+ Aws::APIGateway::Endpoints::GetDomainNames.build(context)
171
+ when :get_export
172
+ Aws::APIGateway::Endpoints::GetExport.build(context)
173
+ when :get_gateway_response
174
+ Aws::APIGateway::Endpoints::GetGatewayResponse.build(context)
175
+ when :get_gateway_responses
176
+ Aws::APIGateway::Endpoints::GetGatewayResponses.build(context)
177
+ when :get_integration
178
+ Aws::APIGateway::Endpoints::GetIntegration.build(context)
179
+ when :get_integration_response
180
+ Aws::APIGateway::Endpoints::GetIntegrationResponse.build(context)
181
+ when :get_method
182
+ Aws::APIGateway::Endpoints::GetMethod.build(context)
183
+ when :get_method_response
184
+ Aws::APIGateway::Endpoints::GetMethodResponse.build(context)
185
+ when :get_model
186
+ Aws::APIGateway::Endpoints::GetModel.build(context)
187
+ when :get_model_template
188
+ Aws::APIGateway::Endpoints::GetModelTemplate.build(context)
189
+ when :get_models
190
+ Aws::APIGateway::Endpoints::GetModels.build(context)
191
+ when :get_request_validator
192
+ Aws::APIGateway::Endpoints::GetRequestValidator.build(context)
193
+ when :get_request_validators
194
+ Aws::APIGateway::Endpoints::GetRequestValidators.build(context)
195
+ when :get_resource
196
+ Aws::APIGateway::Endpoints::GetResource.build(context)
197
+ when :get_resources
198
+ Aws::APIGateway::Endpoints::GetResources.build(context)
199
+ when :get_rest_api
200
+ Aws::APIGateway::Endpoints::GetRestApi.build(context)
201
+ when :get_rest_apis
202
+ Aws::APIGateway::Endpoints::GetRestApis.build(context)
203
+ when :get_sdk
204
+ Aws::APIGateway::Endpoints::GetSdk.build(context)
205
+ when :get_sdk_type
206
+ Aws::APIGateway::Endpoints::GetSdkType.build(context)
207
+ when :get_sdk_types
208
+ Aws::APIGateway::Endpoints::GetSdkTypes.build(context)
209
+ when :get_stage
210
+ Aws::APIGateway::Endpoints::GetStage.build(context)
211
+ when :get_stages
212
+ Aws::APIGateway::Endpoints::GetStages.build(context)
213
+ when :get_tags
214
+ Aws::APIGateway::Endpoints::GetTags.build(context)
215
+ when :get_usage
216
+ Aws::APIGateway::Endpoints::GetUsage.build(context)
217
+ when :get_usage_plan
218
+ Aws::APIGateway::Endpoints::GetUsagePlan.build(context)
219
+ when :get_usage_plan_key
220
+ Aws::APIGateway::Endpoints::GetUsagePlanKey.build(context)
221
+ when :get_usage_plan_keys
222
+ Aws::APIGateway::Endpoints::GetUsagePlanKeys.build(context)
223
+ when :get_usage_plans
224
+ Aws::APIGateway::Endpoints::GetUsagePlans.build(context)
225
+ when :get_vpc_link
226
+ Aws::APIGateway::Endpoints::GetVpcLink.build(context)
227
+ when :get_vpc_links
228
+ Aws::APIGateway::Endpoints::GetVpcLinks.build(context)
229
+ when :import_api_keys
230
+ Aws::APIGateway::Endpoints::ImportApiKeys.build(context)
231
+ when :import_documentation_parts
232
+ Aws::APIGateway::Endpoints::ImportDocumentationParts.build(context)
233
+ when :import_rest_api
234
+ Aws::APIGateway::Endpoints::ImportRestApi.build(context)
235
+ when :put_gateway_response
236
+ Aws::APIGateway::Endpoints::PutGatewayResponse.build(context)
237
+ when :put_integration
238
+ Aws::APIGateway::Endpoints::PutIntegration.build(context)
239
+ when :put_integration_response
240
+ Aws::APIGateway::Endpoints::PutIntegrationResponse.build(context)
241
+ when :put_method
242
+ Aws::APIGateway::Endpoints::PutMethod.build(context)
243
+ when :put_method_response
244
+ Aws::APIGateway::Endpoints::PutMethodResponse.build(context)
245
+ when :put_rest_api
246
+ Aws::APIGateway::Endpoints::PutRestApi.build(context)
247
+ when :tag_resource
248
+ Aws::APIGateway::Endpoints::TagResource.build(context)
249
+ when :test_invoke_authorizer
250
+ Aws::APIGateway::Endpoints::TestInvokeAuthorizer.build(context)
251
+ when :test_invoke_method
252
+ Aws::APIGateway::Endpoints::TestInvokeMethod.build(context)
253
+ when :untag_resource
254
+ Aws::APIGateway::Endpoints::UntagResource.build(context)
255
+ when :update_account
256
+ Aws::APIGateway::Endpoints::UpdateAccount.build(context)
257
+ when :update_api_key
258
+ Aws::APIGateway::Endpoints::UpdateApiKey.build(context)
259
+ when :update_authorizer
260
+ Aws::APIGateway::Endpoints::UpdateAuthorizer.build(context)
261
+ when :update_base_path_mapping
262
+ Aws::APIGateway::Endpoints::UpdateBasePathMapping.build(context)
263
+ when :update_client_certificate
264
+ Aws::APIGateway::Endpoints::UpdateClientCertificate.build(context)
265
+ when :update_deployment
266
+ Aws::APIGateway::Endpoints::UpdateDeployment.build(context)
267
+ when :update_documentation_part
268
+ Aws::APIGateway::Endpoints::UpdateDocumentationPart.build(context)
269
+ when :update_documentation_version
270
+ Aws::APIGateway::Endpoints::UpdateDocumentationVersion.build(context)
271
+ when :update_domain_name
272
+ Aws::APIGateway::Endpoints::UpdateDomainName.build(context)
273
+ when :update_gateway_response
274
+ Aws::APIGateway::Endpoints::UpdateGatewayResponse.build(context)
275
+ when :update_integration
276
+ Aws::APIGateway::Endpoints::UpdateIntegration.build(context)
277
+ when :update_integration_response
278
+ Aws::APIGateway::Endpoints::UpdateIntegrationResponse.build(context)
279
+ when :update_method
280
+ Aws::APIGateway::Endpoints::UpdateMethod.build(context)
281
+ when :update_method_response
282
+ Aws::APIGateway::Endpoints::UpdateMethodResponse.build(context)
283
+ when :update_model
284
+ Aws::APIGateway::Endpoints::UpdateModel.build(context)
285
+ when :update_request_validator
286
+ Aws::APIGateway::Endpoints::UpdateRequestValidator.build(context)
287
+ when :update_resource
288
+ Aws::APIGateway::Endpoints::UpdateResource.build(context)
289
+ when :update_rest_api
290
+ Aws::APIGateway::Endpoints::UpdateRestApi.build(context)
291
+ when :update_stage
292
+ Aws::APIGateway::Endpoints::UpdateStage.build(context)
293
+ when :update_usage
294
+ Aws::APIGateway::Endpoints::UpdateUsage.build(context)
295
+ when :update_usage_plan
296
+ Aws::APIGateway::Endpoints::UpdateUsagePlan.build(context)
297
+ when :update_vpc_link
298
+ Aws::APIGateway::Endpoints::UpdateVpcLink.build(context)
299
+ end
300
+ end
301
+ end
302
+
303
+ def add_handlers(handlers, _config)
304
+ handlers.add(Handler, step: :build, priority: 75)
305
+ end
306
+ end
307
+ end
308
+ end
@@ -6275,6 +6275,11 @@ module Aws::APIGateway
6275
6275
  # certificate's expiration date, hostname, and presence of a root
6276
6276
  # certificate authority. Supported only for `HTTP` and `HTTP_PROXY`
6277
6277
  # integrations.
6278
+ #
6279
+ # Enabling `insecureSkipVerification` isn't recommended, especially
6280
+ # for integrations with public HTTPS endpoints. If you enable
6281
+ # `insecureSkipVerification`, you increase the risk of
6282
+ # man-in-the-middle attacks.
6278
6283
  # @return [Boolean]
6279
6284
  #
6280
6285
  class TlsConfig < Struct.new(
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-apigateway/types'
15
15
  require_relative 'aws-sdk-apigateway/client_api'
16
+ require_relative 'aws-sdk-apigateway/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-apigateway/client'
17
18
  require_relative 'aws-sdk-apigateway/errors'
18
19
  require_relative 'aws-sdk-apigateway/resource'
20
+ require_relative 'aws-sdk-apigateway/endpoint_parameters'
21
+ require_relative 'aws-sdk-apigateway/endpoint_provider'
22
+ require_relative 'aws-sdk-apigateway/endpoints'
19
23
  require_relative 'aws-sdk-apigateway/customizations'
20
24
 
21
25
  # This module provides support for Amazon API Gateway. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-apigateway/customizations'
48
52
  # @!group service
49
53
  module Aws::APIGateway
50
54
 
51
- GEM_VERSION = '1.77.0'
55
+ GEM_VERSION = '1.79.0'
52
56
 
53
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-apigateway
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.77.0
4
+ version: 1.79.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-25 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,8 +59,12 @@ files:
59
59
  - lib/aws-sdk-apigateway/client.rb
60
60
  - lib/aws-sdk-apigateway/client_api.rb
61
61
  - lib/aws-sdk-apigateway/customizations.rb
62
+ - lib/aws-sdk-apigateway/endpoint_parameters.rb
63
+ - lib/aws-sdk-apigateway/endpoint_provider.rb
64
+ - lib/aws-sdk-apigateway/endpoints.rb
62
65
  - lib/aws-sdk-apigateway/errors.rb
63
66
  - lib/aws-sdk-apigateway/plugins/apply_content_type_header.rb
67
+ - lib/aws-sdk-apigateway/plugins/endpoints.rb
64
68
  - lib/aws-sdk-apigateway/resource.rb
65
69
  - lib/aws-sdk-apigateway/types.rb
66
70
  homepage: https://github.com/aws/aws-sdk-ruby