aws-sdk-organizations 1.36.0 → 1.37.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 +5 -5
- data/lib/aws-sdk-organizations.rb +7 -4
- data/lib/aws-sdk-organizations/client.rb +65 -10
- data/lib/aws-sdk-organizations/errors.rb +64 -42
- data/lib/aws-sdk-organizations/resource.rb +7 -0
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 15054a9916309155409c216610991f0508b3347a4d8fd6e7f4851666cc2e21a3
|
4
|
+
data.tar.gz: db7c14b02206868628ae4909e823f8c90ed17fe87044c24c62c9f7f6fc1f8327
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 866c0468c08aa087aabaf3fb962372ab9b4f36d0625ffbb07df3fa8b2a0616e79471a481ae972a9ad50456b7410dedc8b009628a0b066b2e4261424fc4fcd023
|
7
|
+
data.tar.gz: 5bd7ac2e884264595a206150c65406696d2001c1cf6d1fe452b1c9ca544be70f1d4297347ddaea953f6dfe9310443a6a9a12a5ef662545a570ab5c3109edce34
|
@@ -24,17 +24,20 @@ require_relative 'aws-sdk-organizations/customizations'
|
|
24
24
|
# methods each accept a hash of request parameters and return a response
|
25
25
|
# structure.
|
26
26
|
#
|
27
|
+
# organizations = Aws::Organizations::Client.new
|
28
|
+
# resp = organizations.accept_handshake(params)
|
29
|
+
#
|
27
30
|
# See {Client} for more information.
|
28
31
|
#
|
29
32
|
# # Errors
|
30
33
|
#
|
31
|
-
# Errors returned from AWS Organizations
|
32
|
-
# extend {Errors::ServiceError}.
|
34
|
+
# Errors returned from AWS Organizations are defined in the
|
35
|
+
# {Errors} module and all extend {Errors::ServiceError}.
|
33
36
|
#
|
34
37
|
# begin
|
35
38
|
# # do stuff
|
36
39
|
# rescue Aws::Organizations::Errors::ServiceError
|
37
|
-
# # rescues all
|
40
|
+
# # rescues all AWS Organizations API errors
|
38
41
|
# end
|
39
42
|
#
|
40
43
|
# See {Errors} for more information.
|
@@ -42,6 +45,6 @@ require_relative 'aws-sdk-organizations/customizations'
|
|
42
45
|
# @service
|
43
46
|
module Aws::Organizations
|
44
47
|
|
45
|
-
GEM_VERSION = '1.
|
48
|
+
GEM_VERSION = '1.37.0'
|
46
49
|
|
47
50
|
end
|
@@ -30,6 +30,18 @@ require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
|
30
30
|
Aws::Plugins::GlobalConfiguration.add_identifier(:organizations)
|
31
31
|
|
32
32
|
module Aws::Organizations
|
33
|
+
# An API client for Organizations. To construct a client, you need to configure a `:region` and `:credentials`.
|
34
|
+
#
|
35
|
+
# client = Aws::Organizations::Client.new(
|
36
|
+
# region: region_name,
|
37
|
+
# credentials: credentials,
|
38
|
+
# # ...
|
39
|
+
# )
|
40
|
+
#
|
41
|
+
# For details on configuring region and credentials see
|
42
|
+
# the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
|
43
|
+
#
|
44
|
+
# See {#initialize} for a full list of supported configuration options.
|
33
45
|
class Client < Seahorse::Client::Base
|
34
46
|
|
35
47
|
include Aws::ClientStubs
|
@@ -108,6 +120,12 @@ module Aws::Organizations
|
|
108
120
|
# When set to `true`, a thread polling for endpoints will be running in
|
109
121
|
# the background every 60 secs (default). Defaults to `false`.
|
110
122
|
#
|
123
|
+
# @option options [Boolean] :adaptive_retry_wait_to_fill (true)
|
124
|
+
# Used only in `adaptive` retry mode. When true, the request will sleep
|
125
|
+
# until there is sufficent client side capacity to retry the request.
|
126
|
+
# When false, the request will raise a `RetryCapacityNotAvailableError` and will
|
127
|
+
# not retry instead of sleeping.
|
128
|
+
#
|
111
129
|
# @option options [Boolean] :client_side_monitoring (false)
|
112
130
|
# When `true`, client-side metrics will be collected for all API requests from
|
113
131
|
# this client.
|
@@ -132,6 +150,10 @@ module Aws::Organizations
|
|
132
150
|
# When `true`, an attempt is made to coerce request parameters into
|
133
151
|
# the required types.
|
134
152
|
#
|
153
|
+
# @option options [Boolean] :correct_clock_skew (true)
|
154
|
+
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
155
|
+
# a clock skew correction and retry requests with skewed client clocks.
|
156
|
+
#
|
135
157
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
136
158
|
# Set to true to disable SDK automatically adding host prefix
|
137
159
|
# to default service endpoint when available.
|
@@ -166,15 +188,29 @@ module Aws::Organizations
|
|
166
188
|
# The Logger instance to send log messages to. If this option
|
167
189
|
# is not set, logging will be disabled.
|
168
190
|
#
|
191
|
+
# @option options [Integer] :max_attempts (3)
|
192
|
+
# An integer representing the maximum number attempts that will be made for
|
193
|
+
# a single request, including the initial attempt. For example,
|
194
|
+
# setting this value to 5 will result in a request being retried up to
|
195
|
+
# 4 times. Used in `standard` and `adaptive` retry modes.
|
196
|
+
#
|
169
197
|
# @option options [String] :profile ("default")
|
170
198
|
# Used when loading credentials from the shared credentials file
|
171
199
|
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
172
200
|
#
|
201
|
+
# @option options [Proc] :retry_backoff
|
202
|
+
# A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
|
203
|
+
# This option is only used in the `legacy` retry mode.
|
204
|
+
#
|
173
205
|
# @option options [Float] :retry_base_delay (0.3)
|
174
|
-
# The base delay in seconds used by the default backoff function.
|
206
|
+
# The base delay in seconds used by the default backoff function. This option
|
207
|
+
# is only used in the `legacy` retry mode.
|
175
208
|
#
|
176
209
|
# @option options [Symbol] :retry_jitter (:none)
|
177
|
-
# A delay randomiser function used by the default backoff function.
|
210
|
+
# A delay randomiser function used by the default backoff function.
|
211
|
+
# Some predefined functions can be referenced by name - :none, :equal, :full,
|
212
|
+
# otherwise a Proc that takes and returns a number. This option is only used
|
213
|
+
# in the `legacy` retry mode.
|
178
214
|
#
|
179
215
|
# @see https://www.awsarchitectureblog.com/2015/03/backoff.html
|
180
216
|
#
|
@@ -182,11 +218,30 @@ module Aws::Organizations
|
|
182
218
|
# The maximum number of times to retry failed requests. Only
|
183
219
|
# ~ 500 level server errors and certain ~ 400 level client errors
|
184
220
|
# are retried. Generally, these are throttling errors, data
|
185
|
-
# checksum errors, networking errors, timeout errors
|
186
|
-
# errors from expired credentials.
|
221
|
+
# checksum errors, networking errors, timeout errors, auth errors,
|
222
|
+
# endpoint discovery, and errors from expired credentials.
|
223
|
+
# This option is only used in the `legacy` retry mode.
|
187
224
|
#
|
188
225
|
# @option options [Integer] :retry_max_delay (0)
|
189
|
-
# The maximum number of seconds to delay between retries (0 for no limit)
|
226
|
+
# The maximum number of seconds to delay between retries (0 for no limit)
|
227
|
+
# used by the default backoff function. This option is only used in the
|
228
|
+
# `legacy` retry mode.
|
229
|
+
#
|
230
|
+
# @option options [String] :retry_mode ("legacy")
|
231
|
+
# Specifies which retry algorithm to use. Values are:
|
232
|
+
#
|
233
|
+
# * `legacy` - The pre-existing retry behavior. This is default value if
|
234
|
+
# no retry mode is provided.
|
235
|
+
#
|
236
|
+
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
237
|
+
# This includes support for retry quotas, which limit the number of
|
238
|
+
# unsuccessful retries a client can make.
|
239
|
+
#
|
240
|
+
# * `adaptive` - An experimental retry mode that includes all the
|
241
|
+
# functionality of `standard` mode along with automatic client side
|
242
|
+
# throttling. This is a provisional mode that may change behavior
|
243
|
+
# in the future.
|
244
|
+
#
|
190
245
|
#
|
191
246
|
# @option options [String] :secret_access_key
|
192
247
|
#
|
@@ -219,16 +274,16 @@ module Aws::Organizations
|
|
219
274
|
# requests through. Formatted like 'http://proxy.com:123'.
|
220
275
|
#
|
221
276
|
# @option options [Float] :http_open_timeout (15) The number of
|
222
|
-
# seconds to wait when opening a HTTP session before
|
277
|
+
# seconds to wait when opening a HTTP session before raising a
|
223
278
|
# `Timeout::Error`.
|
224
279
|
#
|
225
280
|
# @option options [Integer] :http_read_timeout (60) The default
|
226
281
|
# number of seconds to wait for response data. This value can
|
227
282
|
# safely be set
|
228
|
-
# per-request on the session
|
283
|
+
# per-request on the session yielded by {#session_for}.
|
229
284
|
#
|
230
285
|
# @option options [Float] :http_idle_timeout (5) The number of
|
231
|
-
# seconds a connection is allowed to sit
|
286
|
+
# seconds a connection is allowed to sit idle before it is
|
232
287
|
# considered stale. Stale connections are closed and removed
|
233
288
|
# from the pool before making a request.
|
234
289
|
#
|
@@ -237,7 +292,7 @@ module Aws::Organizations
|
|
237
292
|
# request body. This option has no effect unless the request has
|
238
293
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
239
294
|
# disables this behaviour. This value can safely be set per
|
240
|
-
# request on the session
|
295
|
+
# request on the session yielded by {#session_for}.
|
241
296
|
#
|
242
297
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
243
298
|
# HTTP debug output will be sent to the `:logger`.
|
@@ -4689,7 +4744,7 @@ module Aws::Organizations
|
|
4689
4744
|
params: params,
|
4690
4745
|
config: config)
|
4691
4746
|
context[:gem_name] = 'aws-sdk-organizations'
|
4692
|
-
context[:gem_version] = '1.
|
4747
|
+
context[:gem_version] = '1.37.0'
|
4693
4748
|
Seahorse::Client::Request.new(handlers, context)
|
4694
4749
|
end
|
4695
4750
|
|
@@ -6,6 +6,70 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::Organizations
|
9
|
+
|
10
|
+
# When Organizations returns an error response, the Ruby SDK constructs and raises an error.
|
11
|
+
# These errors all extend Aws::Organizations::Errors::ServiceError < {Aws::Errors::ServiceError}
|
12
|
+
#
|
13
|
+
# You can rescue all Organizations errors using ServiceError:
|
14
|
+
#
|
15
|
+
# begin
|
16
|
+
# # do stuff
|
17
|
+
# rescue Aws::Organizations::Errors::ServiceError
|
18
|
+
# # rescues all Organizations API errors
|
19
|
+
# end
|
20
|
+
#
|
21
|
+
#
|
22
|
+
# ## Request Context
|
23
|
+
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
24
|
+
# information about the request that generated the error.
|
25
|
+
# See {Seahorse::Client::RequestContext} for more information.
|
26
|
+
#
|
27
|
+
# ## Error Classes
|
28
|
+
# * {AWSOrganizationsNotInUseException}
|
29
|
+
# * {AccessDeniedException}
|
30
|
+
# * {AccessDeniedForDependencyException}
|
31
|
+
# * {AccountNotFoundException}
|
32
|
+
# * {AccountOwnerNotVerifiedException}
|
33
|
+
# * {AlreadyInOrganizationException}
|
34
|
+
# * {ChildNotFoundException}
|
35
|
+
# * {ConcurrentModificationException}
|
36
|
+
# * {ConstraintViolationException}
|
37
|
+
# * {CreateAccountStatusNotFoundException}
|
38
|
+
# * {DestinationParentNotFoundException}
|
39
|
+
# * {DuplicateAccountException}
|
40
|
+
# * {DuplicateHandshakeException}
|
41
|
+
# * {DuplicateOrganizationalUnitException}
|
42
|
+
# * {DuplicatePolicyAttachmentException}
|
43
|
+
# * {DuplicatePolicyException}
|
44
|
+
# * {EffectivePolicyNotFoundException}
|
45
|
+
# * {FinalizingOrganizationException}
|
46
|
+
# * {HandshakeAlreadyInStateException}
|
47
|
+
# * {HandshakeConstraintViolationException}
|
48
|
+
# * {HandshakeNotFoundException}
|
49
|
+
# * {InvalidHandshakeTransitionException}
|
50
|
+
# * {InvalidInputException}
|
51
|
+
# * {MalformedPolicyDocumentException}
|
52
|
+
# * {MasterCannotLeaveOrganizationException}
|
53
|
+
# * {OrganizationNotEmptyException}
|
54
|
+
# * {OrganizationalUnitNotEmptyException}
|
55
|
+
# * {OrganizationalUnitNotFoundException}
|
56
|
+
# * {ParentNotFoundException}
|
57
|
+
# * {PolicyChangesInProgressException}
|
58
|
+
# * {PolicyInUseException}
|
59
|
+
# * {PolicyNotAttachedException}
|
60
|
+
# * {PolicyNotFoundException}
|
61
|
+
# * {PolicyTypeAlreadyEnabledException}
|
62
|
+
# * {PolicyTypeNotAvailableForOrganizationException}
|
63
|
+
# * {PolicyTypeNotEnabledException}
|
64
|
+
# * {RootNotFoundException}
|
65
|
+
# * {ServiceException}
|
66
|
+
# * {SourceParentNotFoundException}
|
67
|
+
# * {TargetNotFoundException}
|
68
|
+
# * {TooManyRequestsException}
|
69
|
+
# * {UnsupportedAPIEndpointException}
|
70
|
+
#
|
71
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
72
|
+
# if they are not defined above.
|
9
73
|
module Errors
|
10
74
|
|
11
75
|
extend Aws::Errors::DynamicErrors
|
@@ -23,7 +87,6 @@ module Aws::Organizations
|
|
23
87
|
def message
|
24
88
|
@message || @data[:message]
|
25
89
|
end
|
26
|
-
|
27
90
|
end
|
28
91
|
|
29
92
|
class AccessDeniedException < ServiceError
|
@@ -39,7 +102,6 @@ module Aws::Organizations
|
|
39
102
|
def message
|
40
103
|
@message || @data[:message]
|
41
104
|
end
|
42
|
-
|
43
105
|
end
|
44
106
|
|
45
107
|
class AccessDeniedForDependencyException < ServiceError
|
@@ -60,7 +122,6 @@ module Aws::Organizations
|
|
60
122
|
def reason
|
61
123
|
@data[:reason]
|
62
124
|
end
|
63
|
-
|
64
125
|
end
|
65
126
|
|
66
127
|
class AccountNotFoundException < ServiceError
|
@@ -76,7 +137,6 @@ module Aws::Organizations
|
|
76
137
|
def message
|
77
138
|
@message || @data[:message]
|
78
139
|
end
|
79
|
-
|
80
140
|
end
|
81
141
|
|
82
142
|
class AccountOwnerNotVerifiedException < ServiceError
|
@@ -92,7 +152,6 @@ module Aws::Organizations
|
|
92
152
|
def message
|
93
153
|
@message || @data[:message]
|
94
154
|
end
|
95
|
-
|
96
155
|
end
|
97
156
|
|
98
157
|
class AlreadyInOrganizationException < ServiceError
|
@@ -108,7 +167,6 @@ module Aws::Organizations
|
|
108
167
|
def message
|
109
168
|
@message || @data[:message]
|
110
169
|
end
|
111
|
-
|
112
170
|
end
|
113
171
|
|
114
172
|
class ChildNotFoundException < ServiceError
|
@@ -124,7 +182,6 @@ module Aws::Organizations
|
|
124
182
|
def message
|
125
183
|
@message || @data[:message]
|
126
184
|
end
|
127
|
-
|
128
185
|
end
|
129
186
|
|
130
187
|
class ConcurrentModificationException < ServiceError
|
@@ -140,7 +197,6 @@ module Aws::Organizations
|
|
140
197
|
def message
|
141
198
|
@message || @data[:message]
|
142
199
|
end
|
143
|
-
|
144
200
|
end
|
145
201
|
|
146
202
|
class ConstraintViolationException < ServiceError
|
@@ -161,7 +217,6 @@ module Aws::Organizations
|
|
161
217
|
def reason
|
162
218
|
@data[:reason]
|
163
219
|
end
|
164
|
-
|
165
220
|
end
|
166
221
|
|
167
222
|
class CreateAccountStatusNotFoundException < ServiceError
|
@@ -177,7 +232,6 @@ module Aws::Organizations
|
|
177
232
|
def message
|
178
233
|
@message || @data[:message]
|
179
234
|
end
|
180
|
-
|
181
235
|
end
|
182
236
|
|
183
237
|
class DestinationParentNotFoundException < ServiceError
|
@@ -193,7 +247,6 @@ module Aws::Organizations
|
|
193
247
|
def message
|
194
248
|
@message || @data[:message]
|
195
249
|
end
|
196
|
-
|
197
250
|
end
|
198
251
|
|
199
252
|
class DuplicateAccountException < ServiceError
|
@@ -209,7 +262,6 @@ module Aws::Organizations
|
|
209
262
|
def message
|
210
263
|
@message || @data[:message]
|
211
264
|
end
|
212
|
-
|
213
265
|
end
|
214
266
|
|
215
267
|
class DuplicateHandshakeException < ServiceError
|
@@ -225,7 +277,6 @@ module Aws::Organizations
|
|
225
277
|
def message
|
226
278
|
@message || @data[:message]
|
227
279
|
end
|
228
|
-
|
229
280
|
end
|
230
281
|
|
231
282
|
class DuplicateOrganizationalUnitException < ServiceError
|
@@ -241,7 +292,6 @@ module Aws::Organizations
|
|
241
292
|
def message
|
242
293
|
@message || @data[:message]
|
243
294
|
end
|
244
|
-
|
245
295
|
end
|
246
296
|
|
247
297
|
class DuplicatePolicyAttachmentException < ServiceError
|
@@ -257,7 +307,6 @@ module Aws::Organizations
|
|
257
307
|
def message
|
258
308
|
@message || @data[:message]
|
259
309
|
end
|
260
|
-
|
261
310
|
end
|
262
311
|
|
263
312
|
class DuplicatePolicyException < ServiceError
|
@@ -273,7 +322,6 @@ module Aws::Organizations
|
|
273
322
|
def message
|
274
323
|
@message || @data[:message]
|
275
324
|
end
|
276
|
-
|
277
325
|
end
|
278
326
|
|
279
327
|
class EffectivePolicyNotFoundException < ServiceError
|
@@ -289,7 +337,6 @@ module Aws::Organizations
|
|
289
337
|
def message
|
290
338
|
@message || @data[:message]
|
291
339
|
end
|
292
|
-
|
293
340
|
end
|
294
341
|
|
295
342
|
class FinalizingOrganizationException < ServiceError
|
@@ -305,7 +352,6 @@ module Aws::Organizations
|
|
305
352
|
def message
|
306
353
|
@message || @data[:message]
|
307
354
|
end
|
308
|
-
|
309
355
|
end
|
310
356
|
|
311
357
|
class HandshakeAlreadyInStateException < ServiceError
|
@@ -321,7 +367,6 @@ module Aws::Organizations
|
|
321
367
|
def message
|
322
368
|
@message || @data[:message]
|
323
369
|
end
|
324
|
-
|
325
370
|
end
|
326
371
|
|
327
372
|
class HandshakeConstraintViolationException < ServiceError
|
@@ -342,7 +387,6 @@ module Aws::Organizations
|
|
342
387
|
def reason
|
343
388
|
@data[:reason]
|
344
389
|
end
|
345
|
-
|
346
390
|
end
|
347
391
|
|
348
392
|
class HandshakeNotFoundException < ServiceError
|
@@ -358,7 +402,6 @@ module Aws::Organizations
|
|
358
402
|
def message
|
359
403
|
@message || @data[:message]
|
360
404
|
end
|
361
|
-
|
362
405
|
end
|
363
406
|
|
364
407
|
class InvalidHandshakeTransitionException < ServiceError
|
@@ -374,7 +417,6 @@ module Aws::Organizations
|
|
374
417
|
def message
|
375
418
|
@message || @data[:message]
|
376
419
|
end
|
377
|
-
|
378
420
|
end
|
379
421
|
|
380
422
|
class InvalidInputException < ServiceError
|
@@ -395,7 +437,6 @@ module Aws::Organizations
|
|
395
437
|
def reason
|
396
438
|
@data[:reason]
|
397
439
|
end
|
398
|
-
|
399
440
|
end
|
400
441
|
|
401
442
|
class MalformedPolicyDocumentException < ServiceError
|
@@ -411,7 +452,6 @@ module Aws::Organizations
|
|
411
452
|
def message
|
412
453
|
@message || @data[:message]
|
413
454
|
end
|
414
|
-
|
415
455
|
end
|
416
456
|
|
417
457
|
class MasterCannotLeaveOrganizationException < ServiceError
|
@@ -427,7 +467,6 @@ module Aws::Organizations
|
|
427
467
|
def message
|
428
468
|
@message || @data[:message]
|
429
469
|
end
|
430
|
-
|
431
470
|
end
|
432
471
|
|
433
472
|
class OrganizationNotEmptyException < ServiceError
|
@@ -443,7 +482,6 @@ module Aws::Organizations
|
|
443
482
|
def message
|
444
483
|
@message || @data[:message]
|
445
484
|
end
|
446
|
-
|
447
485
|
end
|
448
486
|
|
449
487
|
class OrganizationalUnitNotEmptyException < ServiceError
|
@@ -459,7 +497,6 @@ module Aws::Organizations
|
|
459
497
|
def message
|
460
498
|
@message || @data[:message]
|
461
499
|
end
|
462
|
-
|
463
500
|
end
|
464
501
|
|
465
502
|
class OrganizationalUnitNotFoundException < ServiceError
|
@@ -475,7 +512,6 @@ module Aws::Organizations
|
|
475
512
|
def message
|
476
513
|
@message || @data[:message]
|
477
514
|
end
|
478
|
-
|
479
515
|
end
|
480
516
|
|
481
517
|
class ParentNotFoundException < ServiceError
|
@@ -491,7 +527,6 @@ module Aws::Organizations
|
|
491
527
|
def message
|
492
528
|
@message || @data[:message]
|
493
529
|
end
|
494
|
-
|
495
530
|
end
|
496
531
|
|
497
532
|
class PolicyChangesInProgressException < ServiceError
|
@@ -507,7 +542,6 @@ module Aws::Organizations
|
|
507
542
|
def message
|
508
543
|
@message || @data[:message]
|
509
544
|
end
|
510
|
-
|
511
545
|
end
|
512
546
|
|
513
547
|
class PolicyInUseException < ServiceError
|
@@ -523,7 +557,6 @@ module Aws::Organizations
|
|
523
557
|
def message
|
524
558
|
@message || @data[:message]
|
525
559
|
end
|
526
|
-
|
527
560
|
end
|
528
561
|
|
529
562
|
class PolicyNotAttachedException < ServiceError
|
@@ -539,7 +572,6 @@ module Aws::Organizations
|
|
539
572
|
def message
|
540
573
|
@message || @data[:message]
|
541
574
|
end
|
542
|
-
|
543
575
|
end
|
544
576
|
|
545
577
|
class PolicyNotFoundException < ServiceError
|
@@ -555,7 +587,6 @@ module Aws::Organizations
|
|
555
587
|
def message
|
556
588
|
@message || @data[:message]
|
557
589
|
end
|
558
|
-
|
559
590
|
end
|
560
591
|
|
561
592
|
class PolicyTypeAlreadyEnabledException < ServiceError
|
@@ -571,7 +602,6 @@ module Aws::Organizations
|
|
571
602
|
def message
|
572
603
|
@message || @data[:message]
|
573
604
|
end
|
574
|
-
|
575
605
|
end
|
576
606
|
|
577
607
|
class PolicyTypeNotAvailableForOrganizationException < ServiceError
|
@@ -587,7 +617,6 @@ module Aws::Organizations
|
|
587
617
|
def message
|
588
618
|
@message || @data[:message]
|
589
619
|
end
|
590
|
-
|
591
620
|
end
|
592
621
|
|
593
622
|
class PolicyTypeNotEnabledException < ServiceError
|
@@ -603,7 +632,6 @@ module Aws::Organizations
|
|
603
632
|
def message
|
604
633
|
@message || @data[:message]
|
605
634
|
end
|
606
|
-
|
607
635
|
end
|
608
636
|
|
609
637
|
class RootNotFoundException < ServiceError
|
@@ -619,7 +647,6 @@ module Aws::Organizations
|
|
619
647
|
def message
|
620
648
|
@message || @data[:message]
|
621
649
|
end
|
622
|
-
|
623
650
|
end
|
624
651
|
|
625
652
|
class ServiceException < ServiceError
|
@@ -635,7 +662,6 @@ module Aws::Organizations
|
|
635
662
|
def message
|
636
663
|
@message || @data[:message]
|
637
664
|
end
|
638
|
-
|
639
665
|
end
|
640
666
|
|
641
667
|
class SourceParentNotFoundException < ServiceError
|
@@ -651,7 +677,6 @@ module Aws::Organizations
|
|
651
677
|
def message
|
652
678
|
@message || @data[:message]
|
653
679
|
end
|
654
|
-
|
655
680
|
end
|
656
681
|
|
657
682
|
class TargetNotFoundException < ServiceError
|
@@ -667,7 +692,6 @@ module Aws::Organizations
|
|
667
692
|
def message
|
668
693
|
@message || @data[:message]
|
669
694
|
end
|
670
|
-
|
671
695
|
end
|
672
696
|
|
673
697
|
class TooManyRequestsException < ServiceError
|
@@ -688,7 +712,6 @@ module Aws::Organizations
|
|
688
712
|
def message
|
689
713
|
@message || @data[:message]
|
690
714
|
end
|
691
|
-
|
692
715
|
end
|
693
716
|
|
694
717
|
class UnsupportedAPIEndpointException < ServiceError
|
@@ -704,7 +727,6 @@ module Aws::Organizations
|
|
704
727
|
def message
|
705
728
|
@message || @data[:message]
|
706
729
|
end
|
707
|
-
|
708
730
|
end
|
709
731
|
|
710
732
|
end
|
@@ -6,6 +6,13 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::Organizations
|
9
|
+
# This class provides a resource oriented interface for Organizations.
|
10
|
+
# To create a resource object:
|
11
|
+
# resource = Aws::Organizations::Resource.new(region: 'us-west-2')
|
12
|
+
# You can supply a client object with custom configuration that will be used for all resource operations.
|
13
|
+
# If you do not pass +:client+, a default client will be constructed.
|
14
|
+
# client = Aws::Organizations::Client.new(region: 'us-west-2')
|
15
|
+
# resource = Aws::Organizations::Resource.new(client: client)
|
9
16
|
class Resource
|
10
17
|
|
11
18
|
# @param options ({})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-organizations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.37.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: 2020-
|
11
|
+
date: 2020-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -80,8 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '0'
|
82
82
|
requirements: []
|
83
|
-
|
84
|
-
rubygems_version: 2.5.2.3
|
83
|
+
rubygems_version: 3.0.3
|
85
84
|
signing_key:
|
86
85
|
specification_version: 4
|
87
86
|
summary: AWS SDK for Ruby - Organizations
|