aws-sdk-resourceexplorer2 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-resourceexplorer2/client.rb +1484 -0
- data/lib/aws-sdk-resourceexplorer2/client_api.rb +651 -0
- data/lib/aws-sdk-resourceexplorer2/customizations.rb +0 -0
- data/lib/aws-sdk-resourceexplorer2/endpoint_parameters.rb +54 -0
- data/lib/aws-sdk-resourceexplorer2/endpoint_provider.rb +94 -0
- data/lib/aws-sdk-resourceexplorer2/endpoints.rb +262 -0
- data/lib/aws-sdk-resourceexplorer2/errors.rb +181 -0
- data/lib/aws-sdk-resourceexplorer2/plugins/endpoints.rb +106 -0
- data/lib/aws-sdk-resourceexplorer2/resource.rb +26 -0
- data/lib/aws-sdk-resourceexplorer2/types.rb +1554 -0
- data/lib/aws-sdk-resourceexplorer2.rb +57 -0
- metadata +94 -0
@@ -0,0 +1,54 @@
|
|
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
|
+
module Aws::ResourceExplorer2
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
12
|
+
#
|
13
|
+
# @!attribute region
|
14
|
+
# The AWS region used to dispatch the request.
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @!attribute use_fips
|
19
|
+
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
23
|
+
# @!attribute endpoint
|
24
|
+
# Override the endpoint used to send this request
|
25
|
+
#
|
26
|
+
# @return [String]
|
27
|
+
#
|
28
|
+
EndpointParameters = Struct.new(
|
29
|
+
:region,
|
30
|
+
:use_fips,
|
31
|
+
:endpoint,
|
32
|
+
) do
|
33
|
+
include Aws::Structure
|
34
|
+
|
35
|
+
# @api private
|
36
|
+
class << self
|
37
|
+
PARAM_MAP = {
|
38
|
+
'Region' => :region,
|
39
|
+
'UseFIPS' => :use_fips,
|
40
|
+
'Endpoint' => :endpoint,
|
41
|
+
}.freeze
|
42
|
+
end
|
43
|
+
|
44
|
+
def initialize(options = {})
|
45
|
+
self[:region] = options[:region]
|
46
|
+
self[:use_fips] = options[:use_fips]
|
47
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
48
|
+
if self[:use_fips].nil?
|
49
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
50
|
+
end
|
51
|
+
self[:endpoint] = options[:endpoint]
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -0,0 +1,94 @@
|
|
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
|
+
module Aws::ResourceExplorer2
|
11
|
+
class EndpointProvider
|
12
|
+
def initialize(rule_set = nil)
|
13
|
+
@@rule_set ||= begin
|
14
|
+
endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
|
15
|
+
Aws::Endpoints::RuleSet.new(
|
16
|
+
version: endpoint_rules['version'],
|
17
|
+
service_id: endpoint_rules['serviceId'],
|
18
|
+
parameters: endpoint_rules['parameters'],
|
19
|
+
rules: endpoint_rules['rules']
|
20
|
+
)
|
21
|
+
end
|
22
|
+
@provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
|
23
|
+
end
|
24
|
+
|
25
|
+
def resolve_endpoint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: 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::ResourceExplorer2
|
12
|
+
module Endpoints
|
13
|
+
|
14
|
+
class AssociateDefaultView
|
15
|
+
def self.build(context)
|
16
|
+
unless context.config.regional_endpoint
|
17
|
+
endpoint = context.config.endpoint.to_s
|
18
|
+
end
|
19
|
+
Aws::ResourceExplorer2::EndpointParameters.new(
|
20
|
+
region: context.config.region,
|
21
|
+
use_fips: context.config.use_fips_endpoint,
|
22
|
+
endpoint: endpoint,
|
23
|
+
)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
class BatchGetView
|
28
|
+
def self.build(context)
|
29
|
+
unless context.config.regional_endpoint
|
30
|
+
endpoint = context.config.endpoint.to_s
|
31
|
+
end
|
32
|
+
Aws::ResourceExplorer2::EndpointParameters.new(
|
33
|
+
region: context.config.region,
|
34
|
+
use_fips: context.config.use_fips_endpoint,
|
35
|
+
endpoint: endpoint,
|
36
|
+
)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
class CreateIndex
|
41
|
+
def self.build(context)
|
42
|
+
unless context.config.regional_endpoint
|
43
|
+
endpoint = context.config.endpoint.to_s
|
44
|
+
end
|
45
|
+
Aws::ResourceExplorer2::EndpointParameters.new(
|
46
|
+
region: context.config.region,
|
47
|
+
use_fips: context.config.use_fips_endpoint,
|
48
|
+
endpoint: endpoint,
|
49
|
+
)
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
class CreateView
|
54
|
+
def self.build(context)
|
55
|
+
unless context.config.regional_endpoint
|
56
|
+
endpoint = context.config.endpoint.to_s
|
57
|
+
end
|
58
|
+
Aws::ResourceExplorer2::EndpointParameters.new(
|
59
|
+
region: context.config.region,
|
60
|
+
use_fips: context.config.use_fips_endpoint,
|
61
|
+
endpoint: endpoint,
|
62
|
+
)
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
class DeleteIndex
|
67
|
+
def self.build(context)
|
68
|
+
unless context.config.regional_endpoint
|
69
|
+
endpoint = context.config.endpoint.to_s
|
70
|
+
end
|
71
|
+
Aws::ResourceExplorer2::EndpointParameters.new(
|
72
|
+
region: context.config.region,
|
73
|
+
use_fips: context.config.use_fips_endpoint,
|
74
|
+
endpoint: endpoint,
|
75
|
+
)
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
class DeleteView
|
80
|
+
def self.build(context)
|
81
|
+
unless context.config.regional_endpoint
|
82
|
+
endpoint = context.config.endpoint.to_s
|
83
|
+
end
|
84
|
+
Aws::ResourceExplorer2::EndpointParameters.new(
|
85
|
+
region: context.config.region,
|
86
|
+
use_fips: context.config.use_fips_endpoint,
|
87
|
+
endpoint: endpoint,
|
88
|
+
)
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
class DisassociateDefaultView
|
93
|
+
def self.build(context)
|
94
|
+
unless context.config.regional_endpoint
|
95
|
+
endpoint = context.config.endpoint.to_s
|
96
|
+
end
|
97
|
+
Aws::ResourceExplorer2::EndpointParameters.new(
|
98
|
+
region: context.config.region,
|
99
|
+
use_fips: context.config.use_fips_endpoint,
|
100
|
+
endpoint: endpoint,
|
101
|
+
)
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
class GetDefaultView
|
106
|
+
def self.build(context)
|
107
|
+
unless context.config.regional_endpoint
|
108
|
+
endpoint = context.config.endpoint.to_s
|
109
|
+
end
|
110
|
+
Aws::ResourceExplorer2::EndpointParameters.new(
|
111
|
+
region: context.config.region,
|
112
|
+
use_fips: context.config.use_fips_endpoint,
|
113
|
+
endpoint: endpoint,
|
114
|
+
)
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
class GetIndex
|
119
|
+
def self.build(context)
|
120
|
+
unless context.config.regional_endpoint
|
121
|
+
endpoint = context.config.endpoint.to_s
|
122
|
+
end
|
123
|
+
Aws::ResourceExplorer2::EndpointParameters.new(
|
124
|
+
region: context.config.region,
|
125
|
+
use_fips: context.config.use_fips_endpoint,
|
126
|
+
endpoint: endpoint,
|
127
|
+
)
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
class GetView
|
132
|
+
def self.build(context)
|
133
|
+
unless context.config.regional_endpoint
|
134
|
+
endpoint = context.config.endpoint.to_s
|
135
|
+
end
|
136
|
+
Aws::ResourceExplorer2::EndpointParameters.new(
|
137
|
+
region: context.config.region,
|
138
|
+
use_fips: context.config.use_fips_endpoint,
|
139
|
+
endpoint: endpoint,
|
140
|
+
)
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
class ListIndexes
|
145
|
+
def self.build(context)
|
146
|
+
unless context.config.regional_endpoint
|
147
|
+
endpoint = context.config.endpoint.to_s
|
148
|
+
end
|
149
|
+
Aws::ResourceExplorer2::EndpointParameters.new(
|
150
|
+
region: context.config.region,
|
151
|
+
use_fips: context.config.use_fips_endpoint,
|
152
|
+
endpoint: endpoint,
|
153
|
+
)
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
157
|
+
class ListSupportedResourceTypes
|
158
|
+
def self.build(context)
|
159
|
+
unless context.config.regional_endpoint
|
160
|
+
endpoint = context.config.endpoint.to_s
|
161
|
+
end
|
162
|
+
Aws::ResourceExplorer2::EndpointParameters.new(
|
163
|
+
region: context.config.region,
|
164
|
+
use_fips: context.config.use_fips_endpoint,
|
165
|
+
endpoint: endpoint,
|
166
|
+
)
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
class ListTagsForResource
|
171
|
+
def self.build(context)
|
172
|
+
unless context.config.regional_endpoint
|
173
|
+
endpoint = context.config.endpoint.to_s
|
174
|
+
end
|
175
|
+
Aws::ResourceExplorer2::EndpointParameters.new(
|
176
|
+
region: context.config.region,
|
177
|
+
use_fips: context.config.use_fips_endpoint,
|
178
|
+
endpoint: endpoint,
|
179
|
+
)
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
class ListViews
|
184
|
+
def self.build(context)
|
185
|
+
unless context.config.regional_endpoint
|
186
|
+
endpoint = context.config.endpoint.to_s
|
187
|
+
end
|
188
|
+
Aws::ResourceExplorer2::EndpointParameters.new(
|
189
|
+
region: context.config.region,
|
190
|
+
use_fips: context.config.use_fips_endpoint,
|
191
|
+
endpoint: endpoint,
|
192
|
+
)
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
class Search
|
197
|
+
def self.build(context)
|
198
|
+
unless context.config.regional_endpoint
|
199
|
+
endpoint = context.config.endpoint.to_s
|
200
|
+
end
|
201
|
+
Aws::ResourceExplorer2::EndpointParameters.new(
|
202
|
+
region: context.config.region,
|
203
|
+
use_fips: context.config.use_fips_endpoint,
|
204
|
+
endpoint: endpoint,
|
205
|
+
)
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
class TagResource
|
210
|
+
def self.build(context)
|
211
|
+
unless context.config.regional_endpoint
|
212
|
+
endpoint = context.config.endpoint.to_s
|
213
|
+
end
|
214
|
+
Aws::ResourceExplorer2::EndpointParameters.new(
|
215
|
+
region: context.config.region,
|
216
|
+
use_fips: context.config.use_fips_endpoint,
|
217
|
+
endpoint: endpoint,
|
218
|
+
)
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
class UntagResource
|
223
|
+
def self.build(context)
|
224
|
+
unless context.config.regional_endpoint
|
225
|
+
endpoint = context.config.endpoint.to_s
|
226
|
+
end
|
227
|
+
Aws::ResourceExplorer2::EndpointParameters.new(
|
228
|
+
region: context.config.region,
|
229
|
+
use_fips: context.config.use_fips_endpoint,
|
230
|
+
endpoint: endpoint,
|
231
|
+
)
|
232
|
+
end
|
233
|
+
end
|
234
|
+
|
235
|
+
class UpdateIndexType
|
236
|
+
def self.build(context)
|
237
|
+
unless context.config.regional_endpoint
|
238
|
+
endpoint = context.config.endpoint.to_s
|
239
|
+
end
|
240
|
+
Aws::ResourceExplorer2::EndpointParameters.new(
|
241
|
+
region: context.config.region,
|
242
|
+
use_fips: context.config.use_fips_endpoint,
|
243
|
+
endpoint: endpoint,
|
244
|
+
)
|
245
|
+
end
|
246
|
+
end
|
247
|
+
|
248
|
+
class UpdateView
|
249
|
+
def self.build(context)
|
250
|
+
unless context.config.regional_endpoint
|
251
|
+
endpoint = context.config.endpoint.to_s
|
252
|
+
end
|
253
|
+
Aws::ResourceExplorer2::EndpointParameters.new(
|
254
|
+
region: context.config.region,
|
255
|
+
use_fips: context.config.use_fips_endpoint,
|
256
|
+
endpoint: endpoint,
|
257
|
+
)
|
258
|
+
end
|
259
|
+
end
|
260
|
+
|
261
|
+
end
|
262
|
+
end
|
@@ -0,0 +1,181 @@
|
|
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
|
+
module Aws::ResourceExplorer2
|
11
|
+
|
12
|
+
# When ResourceExplorer2 returns an error response, the Ruby SDK constructs and raises an error.
|
13
|
+
# These errors all extend Aws::ResourceExplorer2::Errors::ServiceError < {Aws::Errors::ServiceError}
|
14
|
+
#
|
15
|
+
# You can rescue all ResourceExplorer2 errors using ServiceError:
|
16
|
+
#
|
17
|
+
# begin
|
18
|
+
# # do stuff
|
19
|
+
# rescue Aws::ResourceExplorer2::Errors::ServiceError
|
20
|
+
# # rescues all ResourceExplorer2 API errors
|
21
|
+
# end
|
22
|
+
#
|
23
|
+
#
|
24
|
+
# ## Request Context
|
25
|
+
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
26
|
+
# information about the request that generated the error.
|
27
|
+
# See {Seahorse::Client::RequestContext} for more information.
|
28
|
+
#
|
29
|
+
# ## Error Classes
|
30
|
+
# * {AccessDeniedException}
|
31
|
+
# * {ConflictException}
|
32
|
+
# * {InternalServerException}
|
33
|
+
# * {ResourceNotFoundException}
|
34
|
+
# * {ServiceQuotaExceededException}
|
35
|
+
# * {ThrottlingException}
|
36
|
+
# * {UnauthorizedException}
|
37
|
+
# * {ValidationException}
|
38
|
+
#
|
39
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
40
|
+
# if they are not defined above.
|
41
|
+
module Errors
|
42
|
+
|
43
|
+
extend Aws::Errors::DynamicErrors
|
44
|
+
|
45
|
+
class AccessDeniedException < ServiceError
|
46
|
+
|
47
|
+
# @param [Seahorse::Client::RequestContext] context
|
48
|
+
# @param [String] message
|
49
|
+
# @param [Aws::ResourceExplorer2::Types::AccessDeniedException] data
|
50
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
51
|
+
super(context, message, data)
|
52
|
+
end
|
53
|
+
|
54
|
+
# @return [String]
|
55
|
+
def message
|
56
|
+
@message || @data[:message]
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
class ConflictException < ServiceError
|
61
|
+
|
62
|
+
# @param [Seahorse::Client::RequestContext] context
|
63
|
+
# @param [String] message
|
64
|
+
# @param [Aws::ResourceExplorer2::Types::ConflictException] data
|
65
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
66
|
+
super(context, message, data)
|
67
|
+
end
|
68
|
+
|
69
|
+
# @return [String]
|
70
|
+
def message
|
71
|
+
@message || @data[:message]
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
class InternalServerException < ServiceError
|
76
|
+
|
77
|
+
# @param [Seahorse::Client::RequestContext] context
|
78
|
+
# @param [String] message
|
79
|
+
# @param [Aws::ResourceExplorer2::Types::InternalServerException] data
|
80
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
81
|
+
super(context, message, data)
|
82
|
+
end
|
83
|
+
|
84
|
+
# @return [String]
|
85
|
+
def message
|
86
|
+
@message || @data[:message]
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
class ResourceNotFoundException < ServiceError
|
91
|
+
|
92
|
+
# @param [Seahorse::Client::RequestContext] context
|
93
|
+
# @param [String] message
|
94
|
+
# @param [Aws::ResourceExplorer2::Types::ResourceNotFoundException] data
|
95
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
96
|
+
super(context, message, data)
|
97
|
+
end
|
98
|
+
|
99
|
+
# @return [String]
|
100
|
+
def message
|
101
|
+
@message || @data[:message]
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
class ServiceQuotaExceededException < ServiceError
|
106
|
+
|
107
|
+
# @param [Seahorse::Client::RequestContext] context
|
108
|
+
# @param [String] message
|
109
|
+
# @param [Aws::ResourceExplorer2::Types::ServiceQuotaExceededException] data
|
110
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
111
|
+
super(context, message, data)
|
112
|
+
end
|
113
|
+
|
114
|
+
# @return [String]
|
115
|
+
def message
|
116
|
+
@message || @data[:message]
|
117
|
+
end
|
118
|
+
|
119
|
+
# @return [String]
|
120
|
+
def name
|
121
|
+
@data[:name]
|
122
|
+
end
|
123
|
+
|
124
|
+
# @return [String]
|
125
|
+
def value
|
126
|
+
@data[:value]
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
class ThrottlingException < ServiceError
|
131
|
+
|
132
|
+
# @param [Seahorse::Client::RequestContext] context
|
133
|
+
# @param [String] message
|
134
|
+
# @param [Aws::ResourceExplorer2::Types::ThrottlingException] data
|
135
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
136
|
+
super(context, message, data)
|
137
|
+
end
|
138
|
+
|
139
|
+
# @return [String]
|
140
|
+
def message
|
141
|
+
@message || @data[:message]
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
class UnauthorizedException < ServiceError
|
146
|
+
|
147
|
+
# @param [Seahorse::Client::RequestContext] context
|
148
|
+
# @param [String] message
|
149
|
+
# @param [Aws::ResourceExplorer2::Types::UnauthorizedException] data
|
150
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
151
|
+
super(context, message, data)
|
152
|
+
end
|
153
|
+
|
154
|
+
# @return [String]
|
155
|
+
def message
|
156
|
+
@message || @data[:message]
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
class ValidationException < ServiceError
|
161
|
+
|
162
|
+
# @param [Seahorse::Client::RequestContext] context
|
163
|
+
# @param [String] message
|
164
|
+
# @param [Aws::ResourceExplorer2::Types::ValidationException] data
|
165
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
166
|
+
super(context, message, data)
|
167
|
+
end
|
168
|
+
|
169
|
+
# @return [String]
|
170
|
+
def field_list
|
171
|
+
@data[:field_list]
|
172
|
+
end
|
173
|
+
|
174
|
+
# @return [String]
|
175
|
+
def message
|
176
|
+
@message || @data[:message]
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
end
|
181
|
+
end
|
@@ -0,0 +1,106 @@
|
|
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::ResourceExplorer2
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::ResourceExplorer2::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::ResourceExplorer2::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::ResourceExplorer2::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 :associate_default_view
|
60
|
+
Aws::ResourceExplorer2::Endpoints::AssociateDefaultView.build(context)
|
61
|
+
when :batch_get_view
|
62
|
+
Aws::ResourceExplorer2::Endpoints::BatchGetView.build(context)
|
63
|
+
when :create_index
|
64
|
+
Aws::ResourceExplorer2::Endpoints::CreateIndex.build(context)
|
65
|
+
when :create_view
|
66
|
+
Aws::ResourceExplorer2::Endpoints::CreateView.build(context)
|
67
|
+
when :delete_index
|
68
|
+
Aws::ResourceExplorer2::Endpoints::DeleteIndex.build(context)
|
69
|
+
when :delete_view
|
70
|
+
Aws::ResourceExplorer2::Endpoints::DeleteView.build(context)
|
71
|
+
when :disassociate_default_view
|
72
|
+
Aws::ResourceExplorer2::Endpoints::DisassociateDefaultView.build(context)
|
73
|
+
when :get_default_view
|
74
|
+
Aws::ResourceExplorer2::Endpoints::GetDefaultView.build(context)
|
75
|
+
when :get_index
|
76
|
+
Aws::ResourceExplorer2::Endpoints::GetIndex.build(context)
|
77
|
+
when :get_view
|
78
|
+
Aws::ResourceExplorer2::Endpoints::GetView.build(context)
|
79
|
+
when :list_indexes
|
80
|
+
Aws::ResourceExplorer2::Endpoints::ListIndexes.build(context)
|
81
|
+
when :list_supported_resource_types
|
82
|
+
Aws::ResourceExplorer2::Endpoints::ListSupportedResourceTypes.build(context)
|
83
|
+
when :list_tags_for_resource
|
84
|
+
Aws::ResourceExplorer2::Endpoints::ListTagsForResource.build(context)
|
85
|
+
when :list_views
|
86
|
+
Aws::ResourceExplorer2::Endpoints::ListViews.build(context)
|
87
|
+
when :search
|
88
|
+
Aws::ResourceExplorer2::Endpoints::Search.build(context)
|
89
|
+
when :tag_resource
|
90
|
+
Aws::ResourceExplorer2::Endpoints::TagResource.build(context)
|
91
|
+
when :untag_resource
|
92
|
+
Aws::ResourceExplorer2::Endpoints::UntagResource.build(context)
|
93
|
+
when :update_index_type
|
94
|
+
Aws::ResourceExplorer2::Endpoints::UpdateIndexType.build(context)
|
95
|
+
when :update_view
|
96
|
+
Aws::ResourceExplorer2::Endpoints::UpdateView.build(context)
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
def add_handlers(handlers, _config)
|
102
|
+
handlers.add(Handler, step: :build, priority: 75)
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|