aws-sdk-ram 1.39.0 → 1.41.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1ade630d63954f4fb0bd703e0dee352288e8059e34bfd440cfb14782d1cb141
4
- data.tar.gz: 7c9b9e86437a59854ba589c0a3fc63774f6c1043630a4bffb261f65821188c87
3
+ metadata.gz: 0c0de1ed9acdba64e9555b8d1f6a9b5332554e474efa735359182d44215f454a
4
+ data.tar.gz: ffe8632558892f7f0a82de34b266666c9b350dfccce55fd2c99a5e5d800c4571
5
5
  SHA512:
6
- metadata.gz: 165322bfcdf2b424670f2a3718ad20c82844a0849e974f2a2576f082af9280ffda4f867a7860240fed94f02ddd3a9badaabcbe6d5141a9f7a68e06fda7a82df0
7
- data.tar.gz: 1bc9b28cd32a650397c1ab22d564ee183ddba6a2f3025b8d9dca061eacf2bb7654ff3716f0b93d11d0ffe461c085e53cd04cc8544aa81cde02625103cda19ea9
6
+ metadata.gz: e7c8a95c093378b3a3f723273a791c65038dbd81d2d5dd0a797ed16f782e582d13a71dde148010ed2496ac6b184f41f91362fd30a1da3e649e6fe3b46c5ea629
7
+ data.tar.gz: d3fcb8b9c9eb458adadcb5934f20cfdfcd361c22633d9422e0f15b9b1fc4a4add6a5c2b2733d9b44aa752660dc4c5e3efdc769c50e42684ae32df16c9cd7630f
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.41.0 (2023-01-09)
5
+ ------------------
6
+
7
+ * Feature - Enabled FIPS aws-us-gov endpoints in SDK.
8
+
9
+ 1.40.0 (2022-10-25)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.39.0 (2022-03-21)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.39.0
1
+ 1.41.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:ram)
@@ -79,8 +79,9 @@ module Aws::RAM
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::RestJson)
84
+ add_plugin(Aws::RAM::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -287,6 +288,19 @@ module Aws::RAM
287
288
  # ** Please note ** When response stubbing is enabled, no HTTP
288
289
  # requests are made, and retries are disabled.
289
290
  #
291
+ # @option options [Aws::TokenProvider] :token_provider
292
+ # A Bearer Token Provider. This can be an instance of any one of the
293
+ # following classes:
294
+ #
295
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
296
+ # tokens.
297
+ #
298
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
299
+ # access token generated from `aws login`.
300
+ #
301
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
302
+ # will be used to search for tokens configured for your profile in shared configuration files.
303
+ #
290
304
  # @option options [Boolean] :use_dualstack_endpoint
291
305
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
292
306
  # will be used if available.
@@ -300,6 +314,9 @@ module Aws::RAM
300
314
  # When `true`, request parameters are validated before
301
315
  # sending the request.
302
316
  #
317
+ # @option options [Aws::RAM::EndpointProvider] :endpoint_provider
318
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::RAM::EndpointParameters`
319
+ #
303
320
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
304
321
  # requests through. Formatted like 'http://proxy.com:123'.
305
322
  #
@@ -2302,7 +2319,7 @@ module Aws::RAM
2302
2319
  params: params,
2303
2320
  config: config)
2304
2321
  context[:gem_name] = 'aws-sdk-ram'
2305
- context[:gem_version] = '1.39.0'
2322
+ context[:gem_version] = '1.41.0'
2306
2323
  Seahorse::Client::Request.new(handlers, context)
2307
2324
  end
2308
2325
 
@@ -0,0 +1,69 @@
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::RAM
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_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # 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.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ if self[:region].nil?
54
+ raise ArgumentError, "Missing required EndpointParameter: :region"
55
+ end
56
+ self[:use_dual_stack] = options[:use_dual_stack]
57
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
+ if self[:use_dual_stack].nil?
59
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
60
+ end
61
+ self[:use_fips] = options[:use_fips]
62
+ self[:use_fips] = false if self[:use_fips].nil?
63
+ if self[:use_fips].nil?
64
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
65
+ end
66
+ self[:endpoint] = options[:endpoint]
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,126 @@
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::RAM
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(parameters)
26
+ @provider.resolve_endpoint(parameters)
27
+ end
28
+
29
+ # @api private
30
+ RULES = <<-JSON
31
+ eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
+ bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3Vt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y29uZGl0aW9ucyI6W3siZm4iOiJzdHJpbmdFcXVhbHMiLCJhcmd2IjpbeyJy
116
+ ZWYiOiJSZWdpb24ifSwidXMtZ292LXdlc3QtMSJdfV0sImVuZHBvaW50Ijp7
117
+ InVybCI6Imh0dHBzOi8vcmFtLnVzLWdvdi13ZXN0LTEuYW1hem9uYXdzLmNv
118
+ bSIsInByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRw
119
+ b2ludCJ9LHsiY29uZGl0aW9ucyI6W10sImVuZHBvaW50Ijp7InVybCI6Imh0
120
+ dHBzOi8vcmFtLntSZWdpb259LntQYXJ0aXRpb25SZXN1bHQjZG5zU3VmZml4
121
+ fSIsInByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRw
122
+ b2ludCJ9XX1dfV19
123
+
124
+ JSON
125
+ end
126
+ end
@@ -0,0 +1,365 @@
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::RAM
12
+ module Endpoints
13
+
14
+ class AcceptResourceShareInvitation
15
+ def self.build(context)
16
+ unless context.config.regional_endpoint
17
+ endpoint = context.config.endpoint.to_s
18
+ end
19
+ Aws::RAM::EndpointParameters.new(
20
+ region: context.config.region,
21
+ use_dual_stack: context.config.use_dualstack_endpoint,
22
+ use_fips: context.config.use_fips_endpoint,
23
+ endpoint: endpoint,
24
+ )
25
+ end
26
+ end
27
+
28
+ class AssociateResourceShare
29
+ def self.build(context)
30
+ unless context.config.regional_endpoint
31
+ endpoint = context.config.endpoint.to_s
32
+ end
33
+ Aws::RAM::EndpointParameters.new(
34
+ region: context.config.region,
35
+ use_dual_stack: context.config.use_dualstack_endpoint,
36
+ use_fips: context.config.use_fips_endpoint,
37
+ endpoint: endpoint,
38
+ )
39
+ end
40
+ end
41
+
42
+ class AssociateResourceSharePermission
43
+ def self.build(context)
44
+ unless context.config.regional_endpoint
45
+ endpoint = context.config.endpoint.to_s
46
+ end
47
+ Aws::RAM::EndpointParameters.new(
48
+ region: context.config.region,
49
+ use_dual_stack: context.config.use_dualstack_endpoint,
50
+ use_fips: context.config.use_fips_endpoint,
51
+ endpoint: endpoint,
52
+ )
53
+ end
54
+ end
55
+
56
+ class CreateResourceShare
57
+ def self.build(context)
58
+ unless context.config.regional_endpoint
59
+ endpoint = context.config.endpoint.to_s
60
+ end
61
+ Aws::RAM::EndpointParameters.new(
62
+ region: context.config.region,
63
+ use_dual_stack: context.config.use_dualstack_endpoint,
64
+ use_fips: context.config.use_fips_endpoint,
65
+ endpoint: endpoint,
66
+ )
67
+ end
68
+ end
69
+
70
+ class DeleteResourceShare
71
+ def self.build(context)
72
+ unless context.config.regional_endpoint
73
+ endpoint = context.config.endpoint.to_s
74
+ end
75
+ Aws::RAM::EndpointParameters.new(
76
+ region: context.config.region,
77
+ use_dual_stack: context.config.use_dualstack_endpoint,
78
+ use_fips: context.config.use_fips_endpoint,
79
+ endpoint: endpoint,
80
+ )
81
+ end
82
+ end
83
+
84
+ class DisassociateResourceShare
85
+ def self.build(context)
86
+ unless context.config.regional_endpoint
87
+ endpoint = context.config.endpoint.to_s
88
+ end
89
+ Aws::RAM::EndpointParameters.new(
90
+ region: context.config.region,
91
+ use_dual_stack: context.config.use_dualstack_endpoint,
92
+ use_fips: context.config.use_fips_endpoint,
93
+ endpoint: endpoint,
94
+ )
95
+ end
96
+ end
97
+
98
+ class DisassociateResourceSharePermission
99
+ def self.build(context)
100
+ unless context.config.regional_endpoint
101
+ endpoint = context.config.endpoint.to_s
102
+ end
103
+ Aws::RAM::EndpointParameters.new(
104
+ region: context.config.region,
105
+ use_dual_stack: context.config.use_dualstack_endpoint,
106
+ use_fips: context.config.use_fips_endpoint,
107
+ endpoint: endpoint,
108
+ )
109
+ end
110
+ end
111
+
112
+ class EnableSharingWithAwsOrganization
113
+ def self.build(context)
114
+ unless context.config.regional_endpoint
115
+ endpoint = context.config.endpoint.to_s
116
+ end
117
+ Aws::RAM::EndpointParameters.new(
118
+ region: context.config.region,
119
+ use_dual_stack: context.config.use_dualstack_endpoint,
120
+ use_fips: context.config.use_fips_endpoint,
121
+ endpoint: endpoint,
122
+ )
123
+ end
124
+ end
125
+
126
+ class GetPermission
127
+ def self.build(context)
128
+ unless context.config.regional_endpoint
129
+ endpoint = context.config.endpoint.to_s
130
+ end
131
+ Aws::RAM::EndpointParameters.new(
132
+ region: context.config.region,
133
+ use_dual_stack: context.config.use_dualstack_endpoint,
134
+ use_fips: context.config.use_fips_endpoint,
135
+ endpoint: endpoint,
136
+ )
137
+ end
138
+ end
139
+
140
+ class GetResourcePolicies
141
+ def self.build(context)
142
+ unless context.config.regional_endpoint
143
+ endpoint = context.config.endpoint.to_s
144
+ end
145
+ Aws::RAM::EndpointParameters.new(
146
+ region: context.config.region,
147
+ use_dual_stack: context.config.use_dualstack_endpoint,
148
+ use_fips: context.config.use_fips_endpoint,
149
+ endpoint: endpoint,
150
+ )
151
+ end
152
+ end
153
+
154
+ class GetResourceShareAssociations
155
+ def self.build(context)
156
+ unless context.config.regional_endpoint
157
+ endpoint = context.config.endpoint.to_s
158
+ end
159
+ Aws::RAM::EndpointParameters.new(
160
+ region: context.config.region,
161
+ use_dual_stack: context.config.use_dualstack_endpoint,
162
+ use_fips: context.config.use_fips_endpoint,
163
+ endpoint: endpoint,
164
+ )
165
+ end
166
+ end
167
+
168
+ class GetResourceShareInvitations
169
+ def self.build(context)
170
+ unless context.config.regional_endpoint
171
+ endpoint = context.config.endpoint.to_s
172
+ end
173
+ Aws::RAM::EndpointParameters.new(
174
+ region: context.config.region,
175
+ use_dual_stack: context.config.use_dualstack_endpoint,
176
+ use_fips: context.config.use_fips_endpoint,
177
+ endpoint: endpoint,
178
+ )
179
+ end
180
+ end
181
+
182
+ class GetResourceShares
183
+ def self.build(context)
184
+ unless context.config.regional_endpoint
185
+ endpoint = context.config.endpoint.to_s
186
+ end
187
+ Aws::RAM::EndpointParameters.new(
188
+ region: context.config.region,
189
+ use_dual_stack: context.config.use_dualstack_endpoint,
190
+ use_fips: context.config.use_fips_endpoint,
191
+ endpoint: endpoint,
192
+ )
193
+ end
194
+ end
195
+
196
+ class ListPendingInvitationResources
197
+ def self.build(context)
198
+ unless context.config.regional_endpoint
199
+ endpoint = context.config.endpoint.to_s
200
+ end
201
+ Aws::RAM::EndpointParameters.new(
202
+ region: context.config.region,
203
+ use_dual_stack: context.config.use_dualstack_endpoint,
204
+ use_fips: context.config.use_fips_endpoint,
205
+ endpoint: endpoint,
206
+ )
207
+ end
208
+ end
209
+
210
+ class ListPermissionVersions
211
+ def self.build(context)
212
+ unless context.config.regional_endpoint
213
+ endpoint = context.config.endpoint.to_s
214
+ end
215
+ Aws::RAM::EndpointParameters.new(
216
+ region: context.config.region,
217
+ use_dual_stack: context.config.use_dualstack_endpoint,
218
+ use_fips: context.config.use_fips_endpoint,
219
+ endpoint: endpoint,
220
+ )
221
+ end
222
+ end
223
+
224
+ class ListPermissions
225
+ def self.build(context)
226
+ unless context.config.regional_endpoint
227
+ endpoint = context.config.endpoint.to_s
228
+ end
229
+ Aws::RAM::EndpointParameters.new(
230
+ region: context.config.region,
231
+ use_dual_stack: context.config.use_dualstack_endpoint,
232
+ use_fips: context.config.use_fips_endpoint,
233
+ endpoint: endpoint,
234
+ )
235
+ end
236
+ end
237
+
238
+ class ListPrincipals
239
+ def self.build(context)
240
+ unless context.config.regional_endpoint
241
+ endpoint = context.config.endpoint.to_s
242
+ end
243
+ Aws::RAM::EndpointParameters.new(
244
+ region: context.config.region,
245
+ use_dual_stack: context.config.use_dualstack_endpoint,
246
+ use_fips: context.config.use_fips_endpoint,
247
+ endpoint: endpoint,
248
+ )
249
+ end
250
+ end
251
+
252
+ class ListResourceSharePermissions
253
+ def self.build(context)
254
+ unless context.config.regional_endpoint
255
+ endpoint = context.config.endpoint.to_s
256
+ end
257
+ Aws::RAM::EndpointParameters.new(
258
+ region: context.config.region,
259
+ use_dual_stack: context.config.use_dualstack_endpoint,
260
+ use_fips: context.config.use_fips_endpoint,
261
+ endpoint: endpoint,
262
+ )
263
+ end
264
+ end
265
+
266
+ class ListResourceTypes
267
+ def self.build(context)
268
+ unless context.config.regional_endpoint
269
+ endpoint = context.config.endpoint.to_s
270
+ end
271
+ Aws::RAM::EndpointParameters.new(
272
+ region: context.config.region,
273
+ use_dual_stack: context.config.use_dualstack_endpoint,
274
+ use_fips: context.config.use_fips_endpoint,
275
+ endpoint: endpoint,
276
+ )
277
+ end
278
+ end
279
+
280
+ class ListResources
281
+ def self.build(context)
282
+ unless context.config.regional_endpoint
283
+ endpoint = context.config.endpoint.to_s
284
+ end
285
+ Aws::RAM::EndpointParameters.new(
286
+ region: context.config.region,
287
+ use_dual_stack: context.config.use_dualstack_endpoint,
288
+ use_fips: context.config.use_fips_endpoint,
289
+ endpoint: endpoint,
290
+ )
291
+ end
292
+ end
293
+
294
+ class PromoteResourceShareCreatedFromPolicy
295
+ def self.build(context)
296
+ unless context.config.regional_endpoint
297
+ endpoint = context.config.endpoint.to_s
298
+ end
299
+ Aws::RAM::EndpointParameters.new(
300
+ region: context.config.region,
301
+ use_dual_stack: context.config.use_dualstack_endpoint,
302
+ use_fips: context.config.use_fips_endpoint,
303
+ endpoint: endpoint,
304
+ )
305
+ end
306
+ end
307
+
308
+ class RejectResourceShareInvitation
309
+ def self.build(context)
310
+ unless context.config.regional_endpoint
311
+ endpoint = context.config.endpoint.to_s
312
+ end
313
+ Aws::RAM::EndpointParameters.new(
314
+ region: context.config.region,
315
+ use_dual_stack: context.config.use_dualstack_endpoint,
316
+ use_fips: context.config.use_fips_endpoint,
317
+ endpoint: endpoint,
318
+ )
319
+ end
320
+ end
321
+
322
+ class TagResource
323
+ def self.build(context)
324
+ unless context.config.regional_endpoint
325
+ endpoint = context.config.endpoint.to_s
326
+ end
327
+ Aws::RAM::EndpointParameters.new(
328
+ region: context.config.region,
329
+ use_dual_stack: context.config.use_dualstack_endpoint,
330
+ use_fips: context.config.use_fips_endpoint,
331
+ endpoint: endpoint,
332
+ )
333
+ end
334
+ end
335
+
336
+ class UntagResource
337
+ def self.build(context)
338
+ unless context.config.regional_endpoint
339
+ endpoint = context.config.endpoint.to_s
340
+ end
341
+ Aws::RAM::EndpointParameters.new(
342
+ region: context.config.region,
343
+ use_dual_stack: context.config.use_dualstack_endpoint,
344
+ use_fips: context.config.use_fips_endpoint,
345
+ endpoint: endpoint,
346
+ )
347
+ end
348
+ end
349
+
350
+ class UpdateResourceShare
351
+ def self.build(context)
352
+ unless context.config.regional_endpoint
353
+ endpoint = context.config.endpoint.to_s
354
+ end
355
+ Aws::RAM::EndpointParameters.new(
356
+ region: context.config.region,
357
+ use_dual_stack: context.config.use_dualstack_endpoint,
358
+ use_fips: context.config.use_fips_endpoint,
359
+ endpoint: endpoint,
360
+ )
361
+ end
362
+ end
363
+
364
+ end
365
+ end
@@ -0,0 +1,118 @@
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::RAM
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::RAM::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::RAM::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::RAM::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 :accept_resource_share_invitation
60
+ Aws::RAM::Endpoints::AcceptResourceShareInvitation.build(context)
61
+ when :associate_resource_share
62
+ Aws::RAM::Endpoints::AssociateResourceShare.build(context)
63
+ when :associate_resource_share_permission
64
+ Aws::RAM::Endpoints::AssociateResourceSharePermission.build(context)
65
+ when :create_resource_share
66
+ Aws::RAM::Endpoints::CreateResourceShare.build(context)
67
+ when :delete_resource_share
68
+ Aws::RAM::Endpoints::DeleteResourceShare.build(context)
69
+ when :disassociate_resource_share
70
+ Aws::RAM::Endpoints::DisassociateResourceShare.build(context)
71
+ when :disassociate_resource_share_permission
72
+ Aws::RAM::Endpoints::DisassociateResourceSharePermission.build(context)
73
+ when :enable_sharing_with_aws_organization
74
+ Aws::RAM::Endpoints::EnableSharingWithAwsOrganization.build(context)
75
+ when :get_permission
76
+ Aws::RAM::Endpoints::GetPermission.build(context)
77
+ when :get_resource_policies
78
+ Aws::RAM::Endpoints::GetResourcePolicies.build(context)
79
+ when :get_resource_share_associations
80
+ Aws::RAM::Endpoints::GetResourceShareAssociations.build(context)
81
+ when :get_resource_share_invitations
82
+ Aws::RAM::Endpoints::GetResourceShareInvitations.build(context)
83
+ when :get_resource_shares
84
+ Aws::RAM::Endpoints::GetResourceShares.build(context)
85
+ when :list_pending_invitation_resources
86
+ Aws::RAM::Endpoints::ListPendingInvitationResources.build(context)
87
+ when :list_permission_versions
88
+ Aws::RAM::Endpoints::ListPermissionVersions.build(context)
89
+ when :list_permissions
90
+ Aws::RAM::Endpoints::ListPermissions.build(context)
91
+ when :list_principals
92
+ Aws::RAM::Endpoints::ListPrincipals.build(context)
93
+ when :list_resource_share_permissions
94
+ Aws::RAM::Endpoints::ListResourceSharePermissions.build(context)
95
+ when :list_resource_types
96
+ Aws::RAM::Endpoints::ListResourceTypes.build(context)
97
+ when :list_resources
98
+ Aws::RAM::Endpoints::ListResources.build(context)
99
+ when :promote_resource_share_created_from_policy
100
+ Aws::RAM::Endpoints::PromoteResourceShareCreatedFromPolicy.build(context)
101
+ when :reject_resource_share_invitation
102
+ Aws::RAM::Endpoints::RejectResourceShareInvitation.build(context)
103
+ when :tag_resource
104
+ Aws::RAM::Endpoints::TagResource.build(context)
105
+ when :untag_resource
106
+ Aws::RAM::Endpoints::UntagResource.build(context)
107
+ when :update_resource_share
108
+ Aws::RAM::Endpoints::UpdateResourceShare.build(context)
109
+ end
110
+ end
111
+ end
112
+
113
+ def add_handlers(handlers, _config)
114
+ handlers.add(Handler, step: :build, priority: 75)
115
+ end
116
+ end
117
+ end
118
+ end
@@ -10,14 +10,6 @@
10
10
  module Aws::RAM
11
11
  module Types
12
12
 
13
- # @note When making an API call, you may pass AcceptResourceShareInvitationRequest
14
- # data as a hash:
15
- #
16
- # {
17
- # resource_share_invitation_arn: "String", # required
18
- # client_token: "String",
19
- # }
20
- #
21
13
  # @!attribute [rw] resource_share_invitation_arn
22
14
  # The [Amazon Resoure Name (ARN)][1] of the invitation that you want
23
15
  # to accept.
@@ -73,17 +65,6 @@ module Aws::RAM
73
65
  include Aws::Structure
74
66
  end
75
67
 
76
- # @note When making an API call, you may pass AssociateResourceSharePermissionRequest
77
- # data as a hash:
78
- #
79
- # {
80
- # resource_share_arn: "String", # required
81
- # permission_arn: "String", # required
82
- # replace: false,
83
- # client_token: "String",
84
- # permission_version: 1,
85
- # }
86
- #
87
68
  # @!attribute [rw] resource_share_arn
88
69
  # Specifies the [Amazon Resoure Name (ARN)][1] of the resource share
89
70
  # to which you want to add or replace permissions.
@@ -179,16 +160,6 @@ module Aws::RAM
179
160
  include Aws::Structure
180
161
  end
181
162
 
182
- # @note When making an API call, you may pass AssociateResourceShareRequest
183
- # data as a hash:
184
- #
185
- # {
186
- # resource_share_arn: "String", # required
187
- # resource_arns: ["String"],
188
- # principals: ["String"],
189
- # client_token: "String",
190
- # }
191
- #
192
163
  # @!attribute [rw] resource_share_arn
193
164
  # Specifies the [Amazon Resoure Name (ARN)][1] of the resource share
194
165
  # that you want to add principals or resources to.
@@ -294,24 +265,6 @@ module Aws::RAM
294
265
  include Aws::Structure
295
266
  end
296
267
 
297
- # @note When making an API call, you may pass CreateResourceShareRequest
298
- # data as a hash:
299
- #
300
- # {
301
- # name: "String", # required
302
- # resource_arns: ["String"],
303
- # principals: ["String"],
304
- # tags: [
305
- # {
306
- # key: "TagKey",
307
- # value: "TagValue",
308
- # },
309
- # ],
310
- # allow_external_principals: false,
311
- # client_token: "String",
312
- # permission_arns: ["String"],
313
- # }
314
- #
315
268
  # @!attribute [rw] name
316
269
  # Specifies the name of the resource share.
317
270
  # @return [String]
@@ -434,14 +387,6 @@ module Aws::RAM
434
387
  include Aws::Structure
435
388
  end
436
389
 
437
- # @note When making an API call, you may pass DeleteResourceShareRequest
438
- # data as a hash:
439
- #
440
- # {
441
- # resource_share_arn: "String", # required
442
- # client_token: "String",
443
- # }
444
- #
445
390
  # @!attribute [rw] resource_share_arn
446
391
  # Specifies the [Amazon Resoure Name (ARN)][1] of the resource share
447
392
  # to delete.
@@ -498,15 +443,6 @@ module Aws::RAM
498
443
  include Aws::Structure
499
444
  end
500
445
 
501
- # @note When making an API call, you may pass DisassociateResourceSharePermissionRequest
502
- # data as a hash:
503
- #
504
- # {
505
- # resource_share_arn: "String", # required
506
- # permission_arn: "String", # required
507
- # client_token: "String",
508
- # }
509
- #
510
446
  # @!attribute [rw] resource_share_arn
511
447
  # The [Amazon Resoure Name (ARN)][1] of the resource share from which
512
448
  # you want to disassociate a permission.
@@ -574,16 +510,6 @@ module Aws::RAM
574
510
  include Aws::Structure
575
511
  end
576
512
 
577
- # @note When making an API call, you may pass DisassociateResourceShareRequest
578
- # data as a hash:
579
- #
580
- # {
581
- # resource_share_arn: "String", # required
582
- # resource_arns: ["String"],
583
- # principals: ["String"],
584
- # client_token: "String",
585
- # }
586
- #
587
513
  # @!attribute [rw] resource_share_arn
588
514
  # Specifies [Amazon Resoure Name (ARN)][1] of the resource share that
589
515
  # you want to remove resources from.
@@ -707,14 +633,6 @@ module Aws::RAM
707
633
  include Aws::Structure
708
634
  end
709
635
 
710
- # @note When making an API call, you may pass GetPermissionRequest
711
- # data as a hash:
712
- #
713
- # {
714
- # permission_arn: "String", # required
715
- # permission_version: 1,
716
- # }
717
- #
718
636
  # @!attribute [rw] permission_arn
719
637
  # Specifies the [Amazon Resoure Name (ARN)][1] of the permission whose
720
638
  # contents you want to retrieve. To find the ARN for a permission, use
@@ -755,16 +673,6 @@ module Aws::RAM
755
673
  include Aws::Structure
756
674
  end
757
675
 
758
- # @note When making an API call, you may pass GetResourcePoliciesRequest
759
- # data as a hash:
760
- #
761
- # {
762
- # resource_arns: ["String"], # required
763
- # principal: "String",
764
- # next_token: "String",
765
- # max_results: 1,
766
- # }
767
- #
768
676
  # @!attribute [rw] resource_arns
769
677
  # Specifies the [Amazon Resource Names (ARNs)][1] of the resources
770
678
  # whose policies you want to retrieve.
@@ -832,19 +740,6 @@ module Aws::RAM
832
740
  include Aws::Structure
833
741
  end
834
742
 
835
- # @note When making an API call, you may pass GetResourceShareAssociationsRequest
836
- # data as a hash:
837
- #
838
- # {
839
- # association_type: "PRINCIPAL", # required, accepts PRINCIPAL, RESOURCE
840
- # resource_share_arns: ["String"],
841
- # resource_arn: "String",
842
- # principal: "String",
843
- # association_status: "ASSOCIATING", # accepts ASSOCIATING, ASSOCIATED, FAILED, DISASSOCIATING, DISASSOCIATED
844
- # next_token: "String",
845
- # max_results: 1,
846
- # }
847
- #
848
743
  # @!attribute [rw] association_type
849
744
  # Specifies whether you want to retrieve the associations that involve
850
745
  # a specified resource or principal.
@@ -953,16 +848,6 @@ module Aws::RAM
953
848
  include Aws::Structure
954
849
  end
955
850
 
956
- # @note When making an API call, you may pass GetResourceShareInvitationsRequest
957
- # data as a hash:
958
- #
959
- # {
960
- # resource_share_invitation_arns: ["String"],
961
- # resource_share_arns: ["String"],
962
- # next_token: "String",
963
- # max_results: 1,
964
- # }
965
- #
966
851
  # @!attribute [rw] resource_share_invitation_arns
967
852
  # Specifies the [Amazon Resource Names (ARNs)][1] of the resource
968
853
  # share invitations you want information about.
@@ -1036,25 +921,6 @@ module Aws::RAM
1036
921
  include Aws::Structure
1037
922
  end
1038
923
 
1039
- # @note When making an API call, you may pass GetResourceSharesRequest
1040
- # data as a hash:
1041
- #
1042
- # {
1043
- # resource_share_arns: ["String"],
1044
- # resource_share_status: "PENDING", # accepts PENDING, ACTIVE, FAILED, DELETING, DELETED
1045
- # resource_owner: "SELF", # required, accepts SELF, OTHER-ACCOUNTS
1046
- # name: "String",
1047
- # tag_filters: [
1048
- # {
1049
- # tag_key: "TagKey",
1050
- # tag_values: ["TagValue"],
1051
- # },
1052
- # ],
1053
- # next_token: "String",
1054
- # max_results: 1,
1055
- # permission_arn: "String",
1056
- # }
1057
- #
1058
924
  # @!attribute [rw] resource_share_arns
1059
925
  # Specifies the [Amazon Resource Names (ARNs)][1] of individual
1060
926
  # resource shares that you want information about.
@@ -1252,16 +1118,6 @@ module Aws::RAM
1252
1118
  include Aws::Structure
1253
1119
  end
1254
1120
 
1255
- # @note When making an API call, you may pass ListPendingInvitationResourcesRequest
1256
- # data as a hash:
1257
- #
1258
- # {
1259
- # resource_share_invitation_arn: "String", # required
1260
- # next_token: "String",
1261
- # max_results: 1,
1262
- # resource_region_scope: "ALL", # accepts ALL, REGIONAL, GLOBAL
1263
- # }
1264
- #
1265
1121
  # @!attribute [rw] resource_share_invitation_arn
1266
1122
  # Specifies the [Amazon Resoure Name (ARN)][1] of the invitation. You
1267
1123
  # can use GetResourceShareInvitations to find the ARN of the
@@ -1343,15 +1199,6 @@ module Aws::RAM
1343
1199
  include Aws::Structure
1344
1200
  end
1345
1201
 
1346
- # @note When making an API call, you may pass ListPermissionVersionsRequest
1347
- # data as a hash:
1348
- #
1349
- # {
1350
- # permission_arn: "String", # required
1351
- # next_token: "String",
1352
- # max_results: 1,
1353
- # }
1354
- #
1355
1202
  # @!attribute [rw] permission_arn
1356
1203
  # Specifies the [Amazon Resoure Name (ARN)][1] of the RAM permission
1357
1204
  # whose versions you want to list. You can use the `permissionVersion`
@@ -1417,15 +1264,6 @@ module Aws::RAM
1417
1264
  include Aws::Structure
1418
1265
  end
1419
1266
 
1420
- # @note When making an API call, you may pass ListPermissionsRequest
1421
- # data as a hash:
1422
- #
1423
- # {
1424
- # resource_type: "String",
1425
- # next_token: "String",
1426
- # max_results: 1,
1427
- # }
1428
- #
1429
1267
  # @!attribute [rw] resource_type
1430
1268
  # Specifies that you want to list permissions for only the specified
1431
1269
  # resource type. For example, to list only permissions that apply to
@@ -1486,19 +1324,6 @@ module Aws::RAM
1486
1324
  include Aws::Structure
1487
1325
  end
1488
1326
 
1489
- # @note When making an API call, you may pass ListPrincipalsRequest
1490
- # data as a hash:
1491
- #
1492
- # {
1493
- # resource_owner: "SELF", # required, accepts SELF, OTHER-ACCOUNTS
1494
- # resource_arn: "String",
1495
- # principals: ["String"],
1496
- # resource_type: "String",
1497
- # resource_share_arns: ["String"],
1498
- # next_token: "String",
1499
- # max_results: 1,
1500
- # }
1501
- #
1502
1327
  # @!attribute [rw] resource_owner
1503
1328
  # Specifies that you want to list information for only resource shares
1504
1329
  # that match the following:
@@ -1628,15 +1453,6 @@ module Aws::RAM
1628
1453
  include Aws::Structure
1629
1454
  end
1630
1455
 
1631
- # @note When making an API call, you may pass ListResourceSharePermissionsRequest
1632
- # data as a hash:
1633
- #
1634
- # {
1635
- # resource_share_arn: "String", # required
1636
- # next_token: "String",
1637
- # max_results: 1,
1638
- # }
1639
- #
1640
1456
  # @!attribute [rw] resource_share_arn
1641
1457
  # Specifies the [Amazon Resoure Name (ARN)][1] of the resource share
1642
1458
  # for which you want to retrieve the associated permissions.
@@ -1700,15 +1516,6 @@ module Aws::RAM
1700
1516
  include Aws::Structure
1701
1517
  end
1702
1518
 
1703
- # @note When making an API call, you may pass ListResourceTypesRequest
1704
- # data as a hash:
1705
- #
1706
- # {
1707
- # next_token: "String",
1708
- # max_results: 1,
1709
- # resource_region_scope: "ALL", # accepts ALL, REGIONAL, GLOBAL
1710
- # }
1711
- #
1712
1519
  # @!attribute [rw] next_token
1713
1520
  # Specifies that you want to receive the next page of results. Valid
1714
1521
  # only if you received a `NextToken` response in the previous request.
@@ -1779,20 +1586,6 @@ module Aws::RAM
1779
1586
  include Aws::Structure
1780
1587
  end
1781
1588
 
1782
- # @note When making an API call, you may pass ListResourcesRequest
1783
- # data as a hash:
1784
- #
1785
- # {
1786
- # resource_owner: "SELF", # required, accepts SELF, OTHER-ACCOUNTS
1787
- # principal: "String",
1788
- # resource_type: "String",
1789
- # resource_arns: ["String"],
1790
- # resource_share_arns: ["String"],
1791
- # next_token: "String",
1792
- # max_results: 1,
1793
- # resource_region_scope: "ALL", # accepts ALL, REGIONAL, GLOBAL
1794
- # }
1795
- #
1796
1589
  # @!attribute [rw] resource_owner
1797
1590
  # Specifies that you want to list only the resource shares that match
1798
1591
  # the following:
@@ -1991,13 +1784,6 @@ module Aws::RAM
1991
1784
  include Aws::Structure
1992
1785
  end
1993
1786
 
1994
- # @note When making an API call, you may pass PromoteResourceShareCreatedFromPolicyRequest
1995
- # data as a hash:
1996
- #
1997
- # {
1998
- # resource_share_arn: "String", # required
1999
- # }
2000
- #
2001
1787
  # @!attribute [rw] resource_share_arn
2002
1788
  # Specifies the [Amazon Resoure Name (ARN)][1] of the resource share
2003
1789
  # to promote.
@@ -2028,14 +1814,6 @@ module Aws::RAM
2028
1814
  include Aws::Structure
2029
1815
  end
2030
1816
 
2031
- # @note When making an API call, you may pass RejectResourceShareInvitationRequest
2032
- # data as a hash:
2033
- #
2034
- # {
2035
- # resource_share_invitation_arn: "String", # required
2036
- # client_token: "String",
2037
- # }
2038
- #
2039
1817
  # @!attribute [rw] resource_share_invitation_arn
2040
1818
  # Specifies the [Amazon Resoure Name (ARN)][1] of the invitation that
2041
1819
  # you want to reject.
@@ -2682,14 +2460,6 @@ module Aws::RAM
2682
2460
  # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html
2683
2461
  # [2]: https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html
2684
2462
  #
2685
- # @note When making an API call, you may pass Tag
2686
- # data as a hash:
2687
- #
2688
- # {
2689
- # key: "TagKey",
2690
- # value: "TagValue",
2691
- # }
2692
- #
2693
2463
  # @!attribute [rw] key
2694
2464
  # The key, or name, attached to the tag. Every tag must have a key.
2695
2465
  # Key names are case sensitive.
@@ -2712,14 +2482,6 @@ module Aws::RAM
2712
2482
  # A tag key and optional list of possible values that you can use to
2713
2483
  # filter results for tagged resources.
2714
2484
  #
2715
- # @note When making an API call, you may pass TagFilter
2716
- # data as a hash:
2717
- #
2718
- # {
2719
- # tag_key: "TagKey",
2720
- # tag_values: ["TagValue"],
2721
- # }
2722
- #
2723
2485
  # @!attribute [rw] tag_key
2724
2486
  # The tag key. This must have a valid string value and can't be
2725
2487
  # empty.
@@ -2766,19 +2528,6 @@ module Aws::RAM
2766
2528
  include Aws::Structure
2767
2529
  end
2768
2530
 
2769
- # @note When making an API call, you may pass TagResourceRequest
2770
- # data as a hash:
2771
- #
2772
- # {
2773
- # resource_share_arn: "String", # required
2774
- # tags: [ # required
2775
- # {
2776
- # key: "TagKey",
2777
- # value: "TagValue",
2778
- # },
2779
- # ],
2780
- # }
2781
- #
2782
2531
  # @!attribute [rw] resource_share_arn
2783
2532
  # Specifies the [Amazon Resoure Name (ARN)][1] of the resource share
2784
2533
  # that you want to add tags to.
@@ -2834,14 +2583,6 @@ module Aws::RAM
2834
2583
  include Aws::Structure
2835
2584
  end
2836
2585
 
2837
- # @note When making an API call, you may pass UntagResourceRequest
2838
- # data as a hash:
2839
- #
2840
- # {
2841
- # resource_share_arn: "String", # required
2842
- # tag_keys: ["TagKey"], # required
2843
- # }
2844
- #
2845
2586
  # @!attribute [rw] resource_share_arn
2846
2587
  # Specifies the [Amazon Resoure Name (ARN)][1] of the resource share
2847
2588
  # that you want to remove tags from. The tags are removed from the
@@ -2869,16 +2610,6 @@ module Aws::RAM
2869
2610
  #
2870
2611
  class UntagResourceResponse < Aws::EmptyStructure; end
2871
2612
 
2872
- # @note When making an API call, you may pass UpdateResourceShareRequest
2873
- # data as a hash:
2874
- #
2875
- # {
2876
- # resource_share_arn: "String", # required
2877
- # name: "String",
2878
- # allow_external_principals: false,
2879
- # client_token: "String",
2880
- # }
2881
- #
2882
2613
  # @!attribute [rw] resource_share_arn
2883
2614
  # Specifies the [Amazon Resoure Name (ARN)][1] of the resource share
2884
2615
  # that you want to modify.
data/lib/aws-sdk-ram.rb CHANGED
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-ram/types'
15
15
  require_relative 'aws-sdk-ram/client_api'
16
+ require_relative 'aws-sdk-ram/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-ram/client'
17
18
  require_relative 'aws-sdk-ram/errors'
18
19
  require_relative 'aws-sdk-ram/resource'
20
+ require_relative 'aws-sdk-ram/endpoint_parameters'
21
+ require_relative 'aws-sdk-ram/endpoint_provider'
22
+ require_relative 'aws-sdk-ram/endpoints'
19
23
  require_relative 'aws-sdk-ram/customizations'
20
24
 
21
25
  # This module provides support for AWS Resource Access Manager. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-ram/customizations'
48
52
  # @!group service
49
53
  module Aws::RAM
50
54
 
51
- GEM_VERSION = '1.39.0'
55
+ GEM_VERSION = '1.41.0'
52
56
 
53
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ram
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.39.0
4
+ version: 1.41.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-03-21 00:00:00.000000000 Z
11
+ date: 2023-01-09 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-ram/client.rb
60
60
  - lib/aws-sdk-ram/client_api.rb
61
61
  - lib/aws-sdk-ram/customizations.rb
62
+ - lib/aws-sdk-ram/endpoint_parameters.rb
63
+ - lib/aws-sdk-ram/endpoint_provider.rb
64
+ - lib/aws-sdk-ram/endpoints.rb
62
65
  - lib/aws-sdk-ram/errors.rb
66
+ - lib/aws-sdk-ram/plugins/endpoints.rb
63
67
  - lib/aws-sdk-ram/resource.rb
64
68
  - lib/aws-sdk-ram/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby