aws-sdk-apigatewayv2 1.42.0 → 1.43.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,212 @@
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::ApiGatewayV2
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::ApiGatewayV2::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::ApiGatewayV2::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::ApiGatewayV2::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
60
+ Aws::ApiGatewayV2::Endpoints::CreateApi.build(context)
61
+ when :create_api_mapping
62
+ Aws::ApiGatewayV2::Endpoints::CreateApiMapping.build(context)
63
+ when :create_authorizer
64
+ Aws::ApiGatewayV2::Endpoints::CreateAuthorizer.build(context)
65
+ when :create_deployment
66
+ Aws::ApiGatewayV2::Endpoints::CreateDeployment.build(context)
67
+ when :create_domain_name
68
+ Aws::ApiGatewayV2::Endpoints::CreateDomainName.build(context)
69
+ when :create_integration
70
+ Aws::ApiGatewayV2::Endpoints::CreateIntegration.build(context)
71
+ when :create_integration_response
72
+ Aws::ApiGatewayV2::Endpoints::CreateIntegrationResponse.build(context)
73
+ when :create_model
74
+ Aws::ApiGatewayV2::Endpoints::CreateModel.build(context)
75
+ when :create_route
76
+ Aws::ApiGatewayV2::Endpoints::CreateRoute.build(context)
77
+ when :create_route_response
78
+ Aws::ApiGatewayV2::Endpoints::CreateRouteResponse.build(context)
79
+ when :create_stage
80
+ Aws::ApiGatewayV2::Endpoints::CreateStage.build(context)
81
+ when :create_vpc_link
82
+ Aws::ApiGatewayV2::Endpoints::CreateVpcLink.build(context)
83
+ when :delete_access_log_settings
84
+ Aws::ApiGatewayV2::Endpoints::DeleteAccessLogSettings.build(context)
85
+ when :delete_api
86
+ Aws::ApiGatewayV2::Endpoints::DeleteApi.build(context)
87
+ when :delete_api_mapping
88
+ Aws::ApiGatewayV2::Endpoints::DeleteApiMapping.build(context)
89
+ when :delete_authorizer
90
+ Aws::ApiGatewayV2::Endpoints::DeleteAuthorizer.build(context)
91
+ when :delete_cors_configuration
92
+ Aws::ApiGatewayV2::Endpoints::DeleteCorsConfiguration.build(context)
93
+ when :delete_deployment
94
+ Aws::ApiGatewayV2::Endpoints::DeleteDeployment.build(context)
95
+ when :delete_domain_name
96
+ Aws::ApiGatewayV2::Endpoints::DeleteDomainName.build(context)
97
+ when :delete_integration
98
+ Aws::ApiGatewayV2::Endpoints::DeleteIntegration.build(context)
99
+ when :delete_integration_response
100
+ Aws::ApiGatewayV2::Endpoints::DeleteIntegrationResponse.build(context)
101
+ when :delete_model
102
+ Aws::ApiGatewayV2::Endpoints::DeleteModel.build(context)
103
+ when :delete_route
104
+ Aws::ApiGatewayV2::Endpoints::DeleteRoute.build(context)
105
+ when :delete_route_request_parameter
106
+ Aws::ApiGatewayV2::Endpoints::DeleteRouteRequestParameter.build(context)
107
+ when :delete_route_response
108
+ Aws::ApiGatewayV2::Endpoints::DeleteRouteResponse.build(context)
109
+ when :delete_route_settings
110
+ Aws::ApiGatewayV2::Endpoints::DeleteRouteSettings.build(context)
111
+ when :delete_stage
112
+ Aws::ApiGatewayV2::Endpoints::DeleteStage.build(context)
113
+ when :delete_vpc_link
114
+ Aws::ApiGatewayV2::Endpoints::DeleteVpcLink.build(context)
115
+ when :export_api
116
+ Aws::ApiGatewayV2::Endpoints::ExportApi.build(context)
117
+ when :reset_authorizers_cache
118
+ Aws::ApiGatewayV2::Endpoints::ResetAuthorizersCache.build(context)
119
+ when :get_api
120
+ Aws::ApiGatewayV2::Endpoints::GetApi.build(context)
121
+ when :get_api_mapping
122
+ Aws::ApiGatewayV2::Endpoints::GetApiMapping.build(context)
123
+ when :get_api_mappings
124
+ Aws::ApiGatewayV2::Endpoints::GetApiMappings.build(context)
125
+ when :get_apis
126
+ Aws::ApiGatewayV2::Endpoints::GetApis.build(context)
127
+ when :get_authorizer
128
+ Aws::ApiGatewayV2::Endpoints::GetAuthorizer.build(context)
129
+ when :get_authorizers
130
+ Aws::ApiGatewayV2::Endpoints::GetAuthorizers.build(context)
131
+ when :get_deployment
132
+ Aws::ApiGatewayV2::Endpoints::GetDeployment.build(context)
133
+ when :get_deployments
134
+ Aws::ApiGatewayV2::Endpoints::GetDeployments.build(context)
135
+ when :get_domain_name
136
+ Aws::ApiGatewayV2::Endpoints::GetDomainName.build(context)
137
+ when :get_domain_names
138
+ Aws::ApiGatewayV2::Endpoints::GetDomainNames.build(context)
139
+ when :get_integration
140
+ Aws::ApiGatewayV2::Endpoints::GetIntegration.build(context)
141
+ when :get_integration_response
142
+ Aws::ApiGatewayV2::Endpoints::GetIntegrationResponse.build(context)
143
+ when :get_integration_responses
144
+ Aws::ApiGatewayV2::Endpoints::GetIntegrationResponses.build(context)
145
+ when :get_integrations
146
+ Aws::ApiGatewayV2::Endpoints::GetIntegrations.build(context)
147
+ when :get_model
148
+ Aws::ApiGatewayV2::Endpoints::GetModel.build(context)
149
+ when :get_model_template
150
+ Aws::ApiGatewayV2::Endpoints::GetModelTemplate.build(context)
151
+ when :get_models
152
+ Aws::ApiGatewayV2::Endpoints::GetModels.build(context)
153
+ when :get_route
154
+ Aws::ApiGatewayV2::Endpoints::GetRoute.build(context)
155
+ when :get_route_response
156
+ Aws::ApiGatewayV2::Endpoints::GetRouteResponse.build(context)
157
+ when :get_route_responses
158
+ Aws::ApiGatewayV2::Endpoints::GetRouteResponses.build(context)
159
+ when :get_routes
160
+ Aws::ApiGatewayV2::Endpoints::GetRoutes.build(context)
161
+ when :get_stage
162
+ Aws::ApiGatewayV2::Endpoints::GetStage.build(context)
163
+ when :get_stages
164
+ Aws::ApiGatewayV2::Endpoints::GetStages.build(context)
165
+ when :get_tags
166
+ Aws::ApiGatewayV2::Endpoints::GetTags.build(context)
167
+ when :get_vpc_link
168
+ Aws::ApiGatewayV2::Endpoints::GetVpcLink.build(context)
169
+ when :get_vpc_links
170
+ Aws::ApiGatewayV2::Endpoints::GetVpcLinks.build(context)
171
+ when :import_api
172
+ Aws::ApiGatewayV2::Endpoints::ImportApi.build(context)
173
+ when :reimport_api
174
+ Aws::ApiGatewayV2::Endpoints::ReimportApi.build(context)
175
+ when :tag_resource
176
+ Aws::ApiGatewayV2::Endpoints::TagResource.build(context)
177
+ when :untag_resource
178
+ Aws::ApiGatewayV2::Endpoints::UntagResource.build(context)
179
+ when :update_api
180
+ Aws::ApiGatewayV2::Endpoints::UpdateApi.build(context)
181
+ when :update_api_mapping
182
+ Aws::ApiGatewayV2::Endpoints::UpdateApiMapping.build(context)
183
+ when :update_authorizer
184
+ Aws::ApiGatewayV2::Endpoints::UpdateAuthorizer.build(context)
185
+ when :update_deployment
186
+ Aws::ApiGatewayV2::Endpoints::UpdateDeployment.build(context)
187
+ when :update_domain_name
188
+ Aws::ApiGatewayV2::Endpoints::UpdateDomainName.build(context)
189
+ when :update_integration
190
+ Aws::ApiGatewayV2::Endpoints::UpdateIntegration.build(context)
191
+ when :update_integration_response
192
+ Aws::ApiGatewayV2::Endpoints::UpdateIntegrationResponse.build(context)
193
+ when :update_model
194
+ Aws::ApiGatewayV2::Endpoints::UpdateModel.build(context)
195
+ when :update_route
196
+ Aws::ApiGatewayV2::Endpoints::UpdateRoute.build(context)
197
+ when :update_route_response
198
+ Aws::ApiGatewayV2::Endpoints::UpdateRouteResponse.build(context)
199
+ when :update_stage
200
+ Aws::ApiGatewayV2::Endpoints::UpdateStage.build(context)
201
+ when :update_vpc_link
202
+ Aws::ApiGatewayV2::Endpoints::UpdateVpcLink.build(context)
203
+ end
204
+ end
205
+ end
206
+
207
+ def add_handlers(handlers, _config)
208
+ handlers.add(Handler, step: :build, priority: 75)
209
+ end
210
+ end
211
+ end
212
+ end
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-apigatewayv2/types'
15
15
  require_relative 'aws-sdk-apigatewayv2/client_api'
16
+ require_relative 'aws-sdk-apigatewayv2/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-apigatewayv2/client'
17
18
  require_relative 'aws-sdk-apigatewayv2/errors'
18
19
  require_relative 'aws-sdk-apigatewayv2/resource'
20
+ require_relative 'aws-sdk-apigatewayv2/endpoint_parameters'
21
+ require_relative 'aws-sdk-apigatewayv2/endpoint_provider'
22
+ require_relative 'aws-sdk-apigatewayv2/endpoints'
19
23
  require_relative 'aws-sdk-apigatewayv2/customizations'
20
24
 
21
25
  # This module provides support for AmazonApiGatewayV2. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-apigatewayv2/customizations'
48
52
  # @!group service
49
53
  module Aws::ApiGatewayV2
50
54
 
51
- GEM_VERSION = '1.42.0'
55
+ GEM_VERSION = '1.43.0'
52
56
 
53
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-apigatewayv2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.42.0
4
+ version: 1.43.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-02-24 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-apigatewayv2/client.rb
60
60
  - lib/aws-sdk-apigatewayv2/client_api.rb
61
61
  - lib/aws-sdk-apigatewayv2/customizations.rb
62
+ - lib/aws-sdk-apigatewayv2/endpoint_parameters.rb
63
+ - lib/aws-sdk-apigatewayv2/endpoint_provider.rb
64
+ - lib/aws-sdk-apigatewayv2/endpoints.rb
62
65
  - lib/aws-sdk-apigatewayv2/errors.rb
66
+ - lib/aws-sdk-apigatewayv2/plugins/endpoints.rb
63
67
  - lib/aws-sdk-apigatewayv2/resource.rb
64
68
  - lib/aws-sdk-apigatewayv2/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby