aws-sdk-appregistry 1.34.0 → 1.66.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +160 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-appregistry/client.rb +125 -59
- data/lib/aws-sdk-appregistry/client_api.rb +13 -10
- data/lib/aws-sdk-appregistry/endpoint_parameters.rb +13 -10
- data/lib/aws-sdk-appregistry/endpoint_provider.rb +14 -18
- data/lib/aws-sdk-appregistry/endpoints.rb +2 -334
- data/lib/aws-sdk-appregistry/plugins/endpoints.rb +19 -60
- data/lib/aws-sdk-appregistry/types.rb +1 -0
- data/lib/aws-sdk-appregistry.rb +15 -11
- data/sig/client.rbs +6 -0
- data/sig/resource.rbs +6 -0
- metadata +8 -11
|
@@ -10,43 +10,39 @@
|
|
|
10
10
|
module Aws::AppRegistry
|
|
11
11
|
class EndpointProvider
|
|
12
12
|
def resolve_endpoint(parameters)
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
use_fips = parameters.use_fips
|
|
16
|
-
endpoint = parameters.endpoint
|
|
17
|
-
if Aws::Endpoints::Matchers.set?(endpoint)
|
|
18
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
|
13
|
+
if Aws::Endpoints::Matchers.set?(parameters.endpoint)
|
|
14
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
|
19
15
|
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
|
20
16
|
end
|
|
21
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
17
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
22
18
|
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
|
23
19
|
end
|
|
24
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
|
20
|
+
return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {})
|
|
25
21
|
end
|
|
26
|
-
if Aws::Endpoints::Matchers.set?(region)
|
|
27
|
-
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
|
28
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
22
|
+
if Aws::Endpoints::Matchers.set?(parameters.region)
|
|
23
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
|
|
24
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
29
25
|
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
|
30
|
-
return Aws::Endpoints::Endpoint.new(url: "https://servicecatalog-appregistry-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
26
|
+
return Aws::Endpoints::Endpoint.new(url: "https://servicecatalog-appregistry-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
31
27
|
end
|
|
32
28
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
|
33
29
|
end
|
|
34
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
|
30
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
|
35
31
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
|
36
32
|
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov")
|
|
37
|
-
return Aws::Endpoints::Endpoint.new(url: "https://servicecatalog-appregistry.#{region}.amazonaws.com", headers: {}, properties: {})
|
|
33
|
+
return Aws::Endpoints::Endpoint.new(url: "https://servicecatalog-appregistry.#{parameters.region}.amazonaws.com", headers: {}, properties: {})
|
|
38
34
|
end
|
|
39
|
-
return Aws::Endpoints::Endpoint.new(url: "https://servicecatalog-appregistry-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
35
|
+
return Aws::Endpoints::Endpoint.new(url: "https://servicecatalog-appregistry-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
40
36
|
end
|
|
41
37
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
|
42
38
|
end
|
|
43
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
39
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
44
40
|
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
|
45
|
-
return Aws::Endpoints::Endpoint.new(url: "https://servicecatalog-appregistry.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
41
|
+
return Aws::Endpoints::Endpoint.new(url: "https://servicecatalog-appregistry.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
46
42
|
end
|
|
47
43
|
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
|
48
44
|
end
|
|
49
|
-
return Aws::Endpoints::Endpoint.new(url: "https://servicecatalog-appregistry.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
45
|
+
return Aws::Endpoints::Endpoint.new(url: "https://servicecatalog-appregistry.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
50
46
|
end
|
|
51
47
|
end
|
|
52
48
|
raise ArgumentError, "Invalid Configuration: Missing Region"
|
|
@@ -12,341 +12,9 @@ module Aws::AppRegistry
|
|
|
12
12
|
# @api private
|
|
13
13
|
module Endpoints
|
|
14
14
|
|
|
15
|
-
class AssociateAttributeGroup
|
|
16
|
-
def self.build(context)
|
|
17
|
-
unless context.config.regional_endpoint
|
|
18
|
-
endpoint = context.config.endpoint.to_s
|
|
19
|
-
end
|
|
20
|
-
Aws::AppRegistry::EndpointParameters.new(
|
|
21
|
-
region: context.config.region,
|
|
22
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
|
23
|
-
use_fips: context.config.use_fips_endpoint,
|
|
24
|
-
endpoint: endpoint,
|
|
25
|
-
)
|
|
26
|
-
end
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
class AssociateResource
|
|
30
|
-
def self.build(context)
|
|
31
|
-
unless context.config.regional_endpoint
|
|
32
|
-
endpoint = context.config.endpoint.to_s
|
|
33
|
-
end
|
|
34
|
-
Aws::AppRegistry::EndpointParameters.new(
|
|
35
|
-
region: context.config.region,
|
|
36
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
|
37
|
-
use_fips: context.config.use_fips_endpoint,
|
|
38
|
-
endpoint: endpoint,
|
|
39
|
-
)
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
class CreateApplication
|
|
44
|
-
def self.build(context)
|
|
45
|
-
unless context.config.regional_endpoint
|
|
46
|
-
endpoint = context.config.endpoint.to_s
|
|
47
|
-
end
|
|
48
|
-
Aws::AppRegistry::EndpointParameters.new(
|
|
49
|
-
region: context.config.region,
|
|
50
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
|
51
|
-
use_fips: context.config.use_fips_endpoint,
|
|
52
|
-
endpoint: endpoint,
|
|
53
|
-
)
|
|
54
|
-
end
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
class CreateAttributeGroup
|
|
58
|
-
def self.build(context)
|
|
59
|
-
unless context.config.regional_endpoint
|
|
60
|
-
endpoint = context.config.endpoint.to_s
|
|
61
|
-
end
|
|
62
|
-
Aws::AppRegistry::EndpointParameters.new(
|
|
63
|
-
region: context.config.region,
|
|
64
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
|
65
|
-
use_fips: context.config.use_fips_endpoint,
|
|
66
|
-
endpoint: endpoint,
|
|
67
|
-
)
|
|
68
|
-
end
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
class DeleteApplication
|
|
72
|
-
def self.build(context)
|
|
73
|
-
unless context.config.regional_endpoint
|
|
74
|
-
endpoint = context.config.endpoint.to_s
|
|
75
|
-
end
|
|
76
|
-
Aws::AppRegistry::EndpointParameters.new(
|
|
77
|
-
region: context.config.region,
|
|
78
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
|
79
|
-
use_fips: context.config.use_fips_endpoint,
|
|
80
|
-
endpoint: endpoint,
|
|
81
|
-
)
|
|
82
|
-
end
|
|
83
|
-
end
|
|
84
|
-
|
|
85
|
-
class DeleteAttributeGroup
|
|
86
|
-
def self.build(context)
|
|
87
|
-
unless context.config.regional_endpoint
|
|
88
|
-
endpoint = context.config.endpoint.to_s
|
|
89
|
-
end
|
|
90
|
-
Aws::AppRegistry::EndpointParameters.new(
|
|
91
|
-
region: context.config.region,
|
|
92
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
|
93
|
-
use_fips: context.config.use_fips_endpoint,
|
|
94
|
-
endpoint: endpoint,
|
|
95
|
-
)
|
|
96
|
-
end
|
|
97
|
-
end
|
|
98
|
-
|
|
99
|
-
class DisassociateAttributeGroup
|
|
100
|
-
def self.build(context)
|
|
101
|
-
unless context.config.regional_endpoint
|
|
102
|
-
endpoint = context.config.endpoint.to_s
|
|
103
|
-
end
|
|
104
|
-
Aws::AppRegistry::EndpointParameters.new(
|
|
105
|
-
region: context.config.region,
|
|
106
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
|
107
|
-
use_fips: context.config.use_fips_endpoint,
|
|
108
|
-
endpoint: endpoint,
|
|
109
|
-
)
|
|
110
|
-
end
|
|
111
|
-
end
|
|
112
|
-
|
|
113
|
-
class DisassociateResource
|
|
114
|
-
def self.build(context)
|
|
115
|
-
unless context.config.regional_endpoint
|
|
116
|
-
endpoint = context.config.endpoint.to_s
|
|
117
|
-
end
|
|
118
|
-
Aws::AppRegistry::EndpointParameters.new(
|
|
119
|
-
region: context.config.region,
|
|
120
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
|
121
|
-
use_fips: context.config.use_fips_endpoint,
|
|
122
|
-
endpoint: endpoint,
|
|
123
|
-
)
|
|
124
|
-
end
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
class GetApplication
|
|
128
|
-
def self.build(context)
|
|
129
|
-
unless context.config.regional_endpoint
|
|
130
|
-
endpoint = context.config.endpoint.to_s
|
|
131
|
-
end
|
|
132
|
-
Aws::AppRegistry::EndpointParameters.new(
|
|
133
|
-
region: context.config.region,
|
|
134
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
|
135
|
-
use_fips: context.config.use_fips_endpoint,
|
|
136
|
-
endpoint: endpoint,
|
|
137
|
-
)
|
|
138
|
-
end
|
|
139
|
-
end
|
|
140
|
-
|
|
141
|
-
class GetAssociatedResource
|
|
142
|
-
def self.build(context)
|
|
143
|
-
unless context.config.regional_endpoint
|
|
144
|
-
endpoint = context.config.endpoint.to_s
|
|
145
|
-
end
|
|
146
|
-
Aws::AppRegistry::EndpointParameters.new(
|
|
147
|
-
region: context.config.region,
|
|
148
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
|
149
|
-
use_fips: context.config.use_fips_endpoint,
|
|
150
|
-
endpoint: endpoint,
|
|
151
|
-
)
|
|
152
|
-
end
|
|
153
|
-
end
|
|
154
|
-
|
|
155
|
-
class GetAttributeGroup
|
|
156
|
-
def self.build(context)
|
|
157
|
-
unless context.config.regional_endpoint
|
|
158
|
-
endpoint = context.config.endpoint.to_s
|
|
159
|
-
end
|
|
160
|
-
Aws::AppRegistry::EndpointParameters.new(
|
|
161
|
-
region: context.config.region,
|
|
162
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
|
163
|
-
use_fips: context.config.use_fips_endpoint,
|
|
164
|
-
endpoint: endpoint,
|
|
165
|
-
)
|
|
166
|
-
end
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
class GetConfiguration
|
|
170
|
-
def self.build(context)
|
|
171
|
-
unless context.config.regional_endpoint
|
|
172
|
-
endpoint = context.config.endpoint.to_s
|
|
173
|
-
end
|
|
174
|
-
Aws::AppRegistry::EndpointParameters.new(
|
|
175
|
-
region: context.config.region,
|
|
176
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
|
177
|
-
use_fips: context.config.use_fips_endpoint,
|
|
178
|
-
endpoint: endpoint,
|
|
179
|
-
)
|
|
180
|
-
end
|
|
181
|
-
end
|
|
182
15
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
unless context.config.regional_endpoint
|
|
186
|
-
endpoint = context.config.endpoint.to_s
|
|
187
|
-
end
|
|
188
|
-
Aws::AppRegistry::EndpointParameters.new(
|
|
189
|
-
region: context.config.region,
|
|
190
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
|
191
|
-
use_fips: context.config.use_fips_endpoint,
|
|
192
|
-
endpoint: endpoint,
|
|
193
|
-
)
|
|
194
|
-
end
|
|
16
|
+
def self.parameters_for_operation(context)
|
|
17
|
+
Aws::AppRegistry::EndpointParameters.create(context.config)
|
|
195
18
|
end
|
|
196
|
-
|
|
197
|
-
class ListAssociatedAttributeGroups
|
|
198
|
-
def self.build(context)
|
|
199
|
-
unless context.config.regional_endpoint
|
|
200
|
-
endpoint = context.config.endpoint.to_s
|
|
201
|
-
end
|
|
202
|
-
Aws::AppRegistry::EndpointParameters.new(
|
|
203
|
-
region: context.config.region,
|
|
204
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
|
205
|
-
use_fips: context.config.use_fips_endpoint,
|
|
206
|
-
endpoint: endpoint,
|
|
207
|
-
)
|
|
208
|
-
end
|
|
209
|
-
end
|
|
210
|
-
|
|
211
|
-
class ListAssociatedResources
|
|
212
|
-
def self.build(context)
|
|
213
|
-
unless context.config.regional_endpoint
|
|
214
|
-
endpoint = context.config.endpoint.to_s
|
|
215
|
-
end
|
|
216
|
-
Aws::AppRegistry::EndpointParameters.new(
|
|
217
|
-
region: context.config.region,
|
|
218
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
|
219
|
-
use_fips: context.config.use_fips_endpoint,
|
|
220
|
-
endpoint: endpoint,
|
|
221
|
-
)
|
|
222
|
-
end
|
|
223
|
-
end
|
|
224
|
-
|
|
225
|
-
class ListAttributeGroups
|
|
226
|
-
def self.build(context)
|
|
227
|
-
unless context.config.regional_endpoint
|
|
228
|
-
endpoint = context.config.endpoint.to_s
|
|
229
|
-
end
|
|
230
|
-
Aws::AppRegistry::EndpointParameters.new(
|
|
231
|
-
region: context.config.region,
|
|
232
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
|
233
|
-
use_fips: context.config.use_fips_endpoint,
|
|
234
|
-
endpoint: endpoint,
|
|
235
|
-
)
|
|
236
|
-
end
|
|
237
|
-
end
|
|
238
|
-
|
|
239
|
-
class ListAttributeGroupsForApplication
|
|
240
|
-
def self.build(context)
|
|
241
|
-
unless context.config.regional_endpoint
|
|
242
|
-
endpoint = context.config.endpoint.to_s
|
|
243
|
-
end
|
|
244
|
-
Aws::AppRegistry::EndpointParameters.new(
|
|
245
|
-
region: context.config.region,
|
|
246
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
|
247
|
-
use_fips: context.config.use_fips_endpoint,
|
|
248
|
-
endpoint: endpoint,
|
|
249
|
-
)
|
|
250
|
-
end
|
|
251
|
-
end
|
|
252
|
-
|
|
253
|
-
class ListTagsForResource
|
|
254
|
-
def self.build(context)
|
|
255
|
-
unless context.config.regional_endpoint
|
|
256
|
-
endpoint = context.config.endpoint.to_s
|
|
257
|
-
end
|
|
258
|
-
Aws::AppRegistry::EndpointParameters.new(
|
|
259
|
-
region: context.config.region,
|
|
260
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
|
261
|
-
use_fips: context.config.use_fips_endpoint,
|
|
262
|
-
endpoint: endpoint,
|
|
263
|
-
)
|
|
264
|
-
end
|
|
265
|
-
end
|
|
266
|
-
|
|
267
|
-
class PutConfiguration
|
|
268
|
-
def self.build(context)
|
|
269
|
-
unless context.config.regional_endpoint
|
|
270
|
-
endpoint = context.config.endpoint.to_s
|
|
271
|
-
end
|
|
272
|
-
Aws::AppRegistry::EndpointParameters.new(
|
|
273
|
-
region: context.config.region,
|
|
274
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
|
275
|
-
use_fips: context.config.use_fips_endpoint,
|
|
276
|
-
endpoint: endpoint,
|
|
277
|
-
)
|
|
278
|
-
end
|
|
279
|
-
end
|
|
280
|
-
|
|
281
|
-
class SyncResource
|
|
282
|
-
def self.build(context)
|
|
283
|
-
unless context.config.regional_endpoint
|
|
284
|
-
endpoint = context.config.endpoint.to_s
|
|
285
|
-
end
|
|
286
|
-
Aws::AppRegistry::EndpointParameters.new(
|
|
287
|
-
region: context.config.region,
|
|
288
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
|
289
|
-
use_fips: context.config.use_fips_endpoint,
|
|
290
|
-
endpoint: endpoint,
|
|
291
|
-
)
|
|
292
|
-
end
|
|
293
|
-
end
|
|
294
|
-
|
|
295
|
-
class TagResource
|
|
296
|
-
def self.build(context)
|
|
297
|
-
unless context.config.regional_endpoint
|
|
298
|
-
endpoint = context.config.endpoint.to_s
|
|
299
|
-
end
|
|
300
|
-
Aws::AppRegistry::EndpointParameters.new(
|
|
301
|
-
region: context.config.region,
|
|
302
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
|
303
|
-
use_fips: context.config.use_fips_endpoint,
|
|
304
|
-
endpoint: endpoint,
|
|
305
|
-
)
|
|
306
|
-
end
|
|
307
|
-
end
|
|
308
|
-
|
|
309
|
-
class UntagResource
|
|
310
|
-
def self.build(context)
|
|
311
|
-
unless context.config.regional_endpoint
|
|
312
|
-
endpoint = context.config.endpoint.to_s
|
|
313
|
-
end
|
|
314
|
-
Aws::AppRegistry::EndpointParameters.new(
|
|
315
|
-
region: context.config.region,
|
|
316
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
|
317
|
-
use_fips: context.config.use_fips_endpoint,
|
|
318
|
-
endpoint: endpoint,
|
|
319
|
-
)
|
|
320
|
-
end
|
|
321
|
-
end
|
|
322
|
-
|
|
323
|
-
class UpdateApplication
|
|
324
|
-
def self.build(context)
|
|
325
|
-
unless context.config.regional_endpoint
|
|
326
|
-
endpoint = context.config.endpoint.to_s
|
|
327
|
-
end
|
|
328
|
-
Aws::AppRegistry::EndpointParameters.new(
|
|
329
|
-
region: context.config.region,
|
|
330
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
|
331
|
-
use_fips: context.config.use_fips_endpoint,
|
|
332
|
-
endpoint: endpoint,
|
|
333
|
-
)
|
|
334
|
-
end
|
|
335
|
-
end
|
|
336
|
-
|
|
337
|
-
class UpdateAttributeGroup
|
|
338
|
-
def self.build(context)
|
|
339
|
-
unless context.config.regional_endpoint
|
|
340
|
-
endpoint = context.config.endpoint.to_s
|
|
341
|
-
end
|
|
342
|
-
Aws::AppRegistry::EndpointParameters.new(
|
|
343
|
-
region: context.config.region,
|
|
344
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
|
345
|
-
use_fips: context.config.use_fips_endpoint,
|
|
346
|
-
endpoint: endpoint,
|
|
347
|
-
)
|
|
348
|
-
end
|
|
349
|
-
end
|
|
350
|
-
|
|
351
19
|
end
|
|
352
20
|
end
|
|
@@ -15,11 +15,11 @@ module Aws::AppRegistry
|
|
|
15
15
|
:endpoint_provider,
|
|
16
16
|
doc_type: 'Aws::AppRegistry::EndpointProvider',
|
|
17
17
|
rbs_type: 'untyped',
|
|
18
|
-
docstring:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
docstring: <<~DOCS) do |_cfg|
|
|
19
|
+
The endpoint provider used to resolve endpoints. Any object that responds to
|
|
20
|
+
`#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
|
|
21
|
+
`Aws::AppRegistry::EndpointParameters`.
|
|
22
|
+
DOCS
|
|
23
23
|
Aws::AppRegistry::EndpointProvider.new
|
|
24
24
|
end
|
|
25
25
|
|
|
@@ -27,7 +27,7 @@ module Aws::AppRegistry
|
|
|
27
27
|
class Handler < Seahorse::Client::Handler
|
|
28
28
|
def call(context)
|
|
29
29
|
unless context[:discovered_endpoint]
|
|
30
|
-
params = parameters_for_operation(context)
|
|
30
|
+
params = Aws::AppRegistry::Endpoints.parameters_for_operation(context)
|
|
31
31
|
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
|
32
32
|
|
|
33
33
|
context.http_request.endpoint = endpoint.url
|
|
@@ -40,11 +40,23 @@ module Aws::AppRegistry
|
|
|
40
40
|
context[:auth_scheme] =
|
|
41
41
|
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
|
42
42
|
|
|
43
|
-
@handler.call(context)
|
|
43
|
+
with_metrics(context) { @handler.call(context) }
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
private
|
|
47
47
|
|
|
48
|
+
def with_metrics(context, &block)
|
|
49
|
+
metrics = []
|
|
50
|
+
metrics << 'ENDPOINT_OVERRIDE' unless context.config.regional_endpoint
|
|
51
|
+
if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
|
|
52
|
+
metrics << 'SIGV4A_SIGNING'
|
|
53
|
+
end
|
|
54
|
+
if context.config.credentials&.credentials&.account_id
|
|
55
|
+
metrics << 'RESOLVED_ACCOUNT_ID'
|
|
56
|
+
end
|
|
57
|
+
Aws::Plugins::UserAgent.metric(*metrics, &block)
|
|
58
|
+
end
|
|
59
|
+
|
|
48
60
|
def apply_endpoint_headers(context, headers)
|
|
49
61
|
headers.each do |key, values|
|
|
50
62
|
value = values
|
|
@@ -55,59 +67,6 @@ module Aws::AppRegistry
|
|
|
55
67
|
context.http_request.headers[key] = value
|
|
56
68
|
end
|
|
57
69
|
end
|
|
58
|
-
|
|
59
|
-
def parameters_for_operation(context)
|
|
60
|
-
case context.operation_name
|
|
61
|
-
when :associate_attribute_group
|
|
62
|
-
Aws::AppRegistry::Endpoints::AssociateAttributeGroup.build(context)
|
|
63
|
-
when :associate_resource
|
|
64
|
-
Aws::AppRegistry::Endpoints::AssociateResource.build(context)
|
|
65
|
-
when :create_application
|
|
66
|
-
Aws::AppRegistry::Endpoints::CreateApplication.build(context)
|
|
67
|
-
when :create_attribute_group
|
|
68
|
-
Aws::AppRegistry::Endpoints::CreateAttributeGroup.build(context)
|
|
69
|
-
when :delete_application
|
|
70
|
-
Aws::AppRegistry::Endpoints::DeleteApplication.build(context)
|
|
71
|
-
when :delete_attribute_group
|
|
72
|
-
Aws::AppRegistry::Endpoints::DeleteAttributeGroup.build(context)
|
|
73
|
-
when :disassociate_attribute_group
|
|
74
|
-
Aws::AppRegistry::Endpoints::DisassociateAttributeGroup.build(context)
|
|
75
|
-
when :disassociate_resource
|
|
76
|
-
Aws::AppRegistry::Endpoints::DisassociateResource.build(context)
|
|
77
|
-
when :get_application
|
|
78
|
-
Aws::AppRegistry::Endpoints::GetApplication.build(context)
|
|
79
|
-
when :get_associated_resource
|
|
80
|
-
Aws::AppRegistry::Endpoints::GetAssociatedResource.build(context)
|
|
81
|
-
when :get_attribute_group
|
|
82
|
-
Aws::AppRegistry::Endpoints::GetAttributeGroup.build(context)
|
|
83
|
-
when :get_configuration
|
|
84
|
-
Aws::AppRegistry::Endpoints::GetConfiguration.build(context)
|
|
85
|
-
when :list_applications
|
|
86
|
-
Aws::AppRegistry::Endpoints::ListApplications.build(context)
|
|
87
|
-
when :list_associated_attribute_groups
|
|
88
|
-
Aws::AppRegistry::Endpoints::ListAssociatedAttributeGroups.build(context)
|
|
89
|
-
when :list_associated_resources
|
|
90
|
-
Aws::AppRegistry::Endpoints::ListAssociatedResources.build(context)
|
|
91
|
-
when :list_attribute_groups
|
|
92
|
-
Aws::AppRegistry::Endpoints::ListAttributeGroups.build(context)
|
|
93
|
-
when :list_attribute_groups_for_application
|
|
94
|
-
Aws::AppRegistry::Endpoints::ListAttributeGroupsForApplication.build(context)
|
|
95
|
-
when :list_tags_for_resource
|
|
96
|
-
Aws::AppRegistry::Endpoints::ListTagsForResource.build(context)
|
|
97
|
-
when :put_configuration
|
|
98
|
-
Aws::AppRegistry::Endpoints::PutConfiguration.build(context)
|
|
99
|
-
when :sync_resource
|
|
100
|
-
Aws::AppRegistry::Endpoints::SyncResource.build(context)
|
|
101
|
-
when :tag_resource
|
|
102
|
-
Aws::AppRegistry::Endpoints::TagResource.build(context)
|
|
103
|
-
when :untag_resource
|
|
104
|
-
Aws::AppRegistry::Endpoints::UntagResource.build(context)
|
|
105
|
-
when :update_application
|
|
106
|
-
Aws::AppRegistry::Endpoints::UpdateApplication.build(context)
|
|
107
|
-
when :update_attribute_group
|
|
108
|
-
Aws::AppRegistry::Endpoints::UpdateAttributeGroup.build(context)
|
|
109
|
-
end
|
|
110
|
-
end
|
|
111
70
|
end
|
|
112
71
|
|
|
113
72
|
def add_handlers(handlers, _config)
|
data/lib/aws-sdk-appregistry.rb
CHANGED
|
@@ -11,16 +11,7 @@
|
|
|
11
11
|
require 'aws-sdk-core'
|
|
12
12
|
require 'aws-sigv4'
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
require_relative 'aws-sdk-appregistry/client_api'
|
|
16
|
-
require_relative 'aws-sdk-appregistry/plugins/endpoints.rb'
|
|
17
|
-
require_relative 'aws-sdk-appregistry/client'
|
|
18
|
-
require_relative 'aws-sdk-appregistry/errors'
|
|
19
|
-
require_relative 'aws-sdk-appregistry/resource'
|
|
20
|
-
require_relative 'aws-sdk-appregistry/endpoint_parameters'
|
|
21
|
-
require_relative 'aws-sdk-appregistry/endpoint_provider'
|
|
22
|
-
require_relative 'aws-sdk-appregistry/endpoints'
|
|
23
|
-
require_relative 'aws-sdk-appregistry/customizations'
|
|
14
|
+
Aws::Plugins::GlobalConfiguration.add_identifier(:appregistry)
|
|
24
15
|
|
|
25
16
|
# This module provides support for AWS Service Catalog App Registry. This module is available in the
|
|
26
17
|
# `aws-sdk-appregistry` gem.
|
|
@@ -51,7 +42,20 @@ require_relative 'aws-sdk-appregistry/customizations'
|
|
|
51
42
|
#
|
|
52
43
|
# @!group service
|
|
53
44
|
module Aws::AppRegistry
|
|
45
|
+
autoload :Types, 'aws-sdk-appregistry/types'
|
|
46
|
+
autoload :ClientApi, 'aws-sdk-appregistry/client_api'
|
|
47
|
+
module Plugins
|
|
48
|
+
autoload :Endpoints, 'aws-sdk-appregistry/plugins/endpoints.rb'
|
|
49
|
+
end
|
|
50
|
+
autoload :Client, 'aws-sdk-appregistry/client'
|
|
51
|
+
autoload :Errors, 'aws-sdk-appregistry/errors'
|
|
52
|
+
autoload :Resource, 'aws-sdk-appregistry/resource'
|
|
53
|
+
autoload :EndpointParameters, 'aws-sdk-appregistry/endpoint_parameters'
|
|
54
|
+
autoload :EndpointProvider, 'aws-sdk-appregistry/endpoint_provider'
|
|
55
|
+
autoload :Endpoints, 'aws-sdk-appregistry/endpoints'
|
|
54
56
|
|
|
55
|
-
GEM_VERSION = '1.
|
|
57
|
+
GEM_VERSION = '1.66.0'
|
|
56
58
|
|
|
57
59
|
end
|
|
60
|
+
|
|
61
|
+
require_relative 'aws-sdk-appregistry/customizations'
|
data/sig/client.rbs
CHANGED
|
@@ -15,8 +15,10 @@ module Aws
|
|
|
15
15
|
?credentials: untyped,
|
|
16
16
|
?region: String,
|
|
17
17
|
?access_key_id: String,
|
|
18
|
+
?account_id: String,
|
|
18
19
|
?active_endpoint_cache: bool,
|
|
19
20
|
?adaptive_retry_wait_to_fill: bool,
|
|
21
|
+
?auth_scheme_preference: Array[String],
|
|
20
22
|
?client_side_monitoring: bool,
|
|
21
23
|
?client_side_monitoring_client_id: String,
|
|
22
24
|
?client_side_monitoring_host: String,
|
|
@@ -38,7 +40,9 @@ module Aws
|
|
|
38
40
|
?logger: untyped,
|
|
39
41
|
?max_attempts: Integer,
|
|
40
42
|
?profile: String,
|
|
43
|
+
?request_checksum_calculation: String,
|
|
41
44
|
?request_min_compression_size_bytes: Integer,
|
|
45
|
+
?response_checksum_validation: String,
|
|
42
46
|
?retry_backoff: Proc,
|
|
43
47
|
?retry_base_delay: Float,
|
|
44
48
|
?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
|
|
@@ -48,7 +52,9 @@ module Aws
|
|
|
48
52
|
?sdk_ua_app_id: String,
|
|
49
53
|
?secret_access_key: String,
|
|
50
54
|
?session_token: String,
|
|
55
|
+
?sigv4a_signing_region_set: Array[String],
|
|
51
56
|
?stub_responses: untyped,
|
|
57
|
+
?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
|
|
52
58
|
?token_provider: untyped,
|
|
53
59
|
?use_dualstack_endpoint: bool,
|
|
54
60
|
?use_fips_endpoint: bool,
|
data/sig/resource.rbs
CHANGED
|
@@ -15,8 +15,10 @@ module Aws
|
|
|
15
15
|
?credentials: untyped,
|
|
16
16
|
?region: String,
|
|
17
17
|
?access_key_id: String,
|
|
18
|
+
?account_id: String,
|
|
18
19
|
?active_endpoint_cache: bool,
|
|
19
20
|
?adaptive_retry_wait_to_fill: bool,
|
|
21
|
+
?auth_scheme_preference: Array[String],
|
|
20
22
|
?client_side_monitoring: bool,
|
|
21
23
|
?client_side_monitoring_client_id: String,
|
|
22
24
|
?client_side_monitoring_host: String,
|
|
@@ -38,7 +40,9 @@ module Aws
|
|
|
38
40
|
?logger: untyped,
|
|
39
41
|
?max_attempts: Integer,
|
|
40
42
|
?profile: String,
|
|
43
|
+
?request_checksum_calculation: String,
|
|
41
44
|
?request_min_compression_size_bytes: Integer,
|
|
45
|
+
?response_checksum_validation: String,
|
|
42
46
|
?retry_backoff: Proc,
|
|
43
47
|
?retry_base_delay: Float,
|
|
44
48
|
?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
|
|
@@ -48,7 +52,9 @@ module Aws
|
|
|
48
52
|
?sdk_ua_app_id: String,
|
|
49
53
|
?secret_access_key: String,
|
|
50
54
|
?session_token: String,
|
|
55
|
+
?sigv4a_signing_region_set: Array[String],
|
|
51
56
|
?stub_responses: untyped,
|
|
57
|
+
?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
|
|
52
58
|
?token_provider: untyped,
|
|
53
59
|
?use_dualstack_endpoint: bool,
|
|
54
60
|
?use_fips_endpoint: bool,
|