aws-sdk-workdocs 1.16.0 → 1.21.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -340,6 +340,8 @@ module Aws::WorkDocs
340
340
  DeactivateUserRequest.add_member(:authentication_token, Shapes::ShapeRef.new(shape: AuthenticationHeaderType, location: "header", location_name: "Authentication"))
341
341
  DeactivateUserRequest.struct_class = Types::DeactivateUserRequest
342
342
 
343
+ DeactivatingLastSystemUserException.struct_class = Types::DeactivatingLastSystemUserException
344
+
343
345
  DeleteCommentRequest.add_member(:authentication_token, Shapes::ShapeRef.new(shape: AuthenticationHeaderType, location: "header", location_name: "Authentication"))
344
346
  DeleteCommentRequest.add_member(:document_id, Shapes::ShapeRef.new(shape: ResourceIdType, required: true, location: "uri", location_name: "DocumentId"))
345
347
  DeleteCommentRequest.add_member(:version_id, Shapes::ShapeRef.new(shape: DocumentVersionIdType, required: true, location: "uri", location_name: "VersionId"))
@@ -775,6 +777,8 @@ module Aws::WorkDocs
775
777
  TooManySubscriptionsException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "Message"))
776
778
  TooManySubscriptionsException.struct_class = Types::TooManySubscriptionsException
777
779
 
780
+ UnauthorizedOperationException.struct_class = Types::UnauthorizedOperationException
781
+
778
782
  UnauthorizedResourceAccessException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "Message"))
779
783
  UnauthorizedResourceAccessException.struct_class = Types::UnauthorizedResourceAccessException
780
784
 
@@ -6,6 +6,53 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::WorkDocs
9
+
10
+ # When WorkDocs returns an error response, the Ruby SDK constructs and raises an error.
11
+ # These errors all extend Aws::WorkDocs::Errors::ServiceError < {Aws::Errors::ServiceError}
12
+ #
13
+ # You can rescue all WorkDocs errors using ServiceError:
14
+ #
15
+ # begin
16
+ # # do stuff
17
+ # rescue Aws::WorkDocs::Errors::ServiceError
18
+ # # rescues all WorkDocs 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
+ # * {ConcurrentModificationException}
29
+ # * {ConflictingOperationException}
30
+ # * {CustomMetadataLimitExceededException}
31
+ # * {DeactivatingLastSystemUserException}
32
+ # * {DocumentLockedForCommentsException}
33
+ # * {DraftUploadOutOfSyncException}
34
+ # * {EntityAlreadyExistsException}
35
+ # * {EntityNotExistsException}
36
+ # * {FailedDependencyException}
37
+ # * {IllegalUserStateException}
38
+ # * {InvalidArgumentException}
39
+ # * {InvalidCommentOperationException}
40
+ # * {InvalidOperationException}
41
+ # * {InvalidPasswordException}
42
+ # * {LimitExceededException}
43
+ # * {ProhibitedStateException}
44
+ # * {RequestedEntityTooLargeException}
45
+ # * {ResourceAlreadyCheckedOutException}
46
+ # * {ServiceUnavailableException}
47
+ # * {StorageLimitExceededException}
48
+ # * {StorageLimitWillExceedException}
49
+ # * {TooManyLabelsException}
50
+ # * {TooManySubscriptionsException}
51
+ # * {UnauthorizedOperationException}
52
+ # * {UnauthorizedResourceAccessException}
53
+ #
54
+ # Additionally, error classes are dynamically generated for service errors based on the error code
55
+ # if they are not defined above.
9
56
  module Errors
10
57
 
11
58
  extend Aws::Errors::DynamicErrors
@@ -23,7 +70,6 @@ module Aws::WorkDocs
23
70
  def message
24
71
  @message || @data[:message]
25
72
  end
26
-
27
73
  end
28
74
 
29
75
  class ConflictingOperationException < ServiceError
@@ -39,7 +85,6 @@ module Aws::WorkDocs
39
85
  def message
40
86
  @message || @data[:message]
41
87
  end
42
-
43
88
  end
44
89
 
45
90
  class CustomMetadataLimitExceededException < ServiceError
@@ -55,7 +100,16 @@ module Aws::WorkDocs
55
100
  def message
56
101
  @message || @data[:message]
57
102
  end
103
+ end
104
+
105
+ class DeactivatingLastSystemUserException < ServiceError
58
106
 
107
+ # @param [Seahorse::Client::RequestContext] context
108
+ # @param [String] message
109
+ # @param [Aws::WorkDocs::Types::DeactivatingLastSystemUserException] data
110
+ def initialize(context, message, data = Aws::EmptyStructure.new)
111
+ super(context, message, data)
112
+ end
59
113
  end
60
114
 
61
115
  class DocumentLockedForCommentsException < ServiceError
@@ -71,7 +125,6 @@ module Aws::WorkDocs
71
125
  def message
72
126
  @message || @data[:message]
73
127
  end
74
-
75
128
  end
76
129
 
77
130
  class DraftUploadOutOfSyncException < ServiceError
@@ -87,7 +140,6 @@ module Aws::WorkDocs
87
140
  def message
88
141
  @message || @data[:message]
89
142
  end
90
-
91
143
  end
92
144
 
93
145
  class EntityAlreadyExistsException < ServiceError
@@ -103,7 +155,6 @@ module Aws::WorkDocs
103
155
  def message
104
156
  @message || @data[:message]
105
157
  end
106
-
107
158
  end
108
159
 
109
160
  class EntityNotExistsException < ServiceError
@@ -124,7 +175,6 @@ module Aws::WorkDocs
124
175
  def entity_ids
125
176
  @data[:entity_ids]
126
177
  end
127
-
128
178
  end
129
179
 
130
180
  class FailedDependencyException < ServiceError
@@ -140,7 +190,6 @@ module Aws::WorkDocs
140
190
  def message
141
191
  @message || @data[:message]
142
192
  end
143
-
144
193
  end
145
194
 
146
195
  class IllegalUserStateException < ServiceError
@@ -156,7 +205,6 @@ module Aws::WorkDocs
156
205
  def message
157
206
  @message || @data[:message]
158
207
  end
159
-
160
208
  end
161
209
 
162
210
  class InvalidArgumentException < ServiceError
@@ -172,7 +220,6 @@ module Aws::WorkDocs
172
220
  def message
173
221
  @message || @data[:message]
174
222
  end
175
-
176
223
  end
177
224
 
178
225
  class InvalidCommentOperationException < ServiceError
@@ -188,7 +235,6 @@ module Aws::WorkDocs
188
235
  def message
189
236
  @message || @data[:message]
190
237
  end
191
-
192
238
  end
193
239
 
194
240
  class InvalidOperationException < ServiceError
@@ -204,7 +250,6 @@ module Aws::WorkDocs
204
250
  def message
205
251
  @message || @data[:message]
206
252
  end
207
-
208
253
  end
209
254
 
210
255
  class InvalidPasswordException < ServiceError
@@ -220,7 +265,6 @@ module Aws::WorkDocs
220
265
  def message
221
266
  @message || @data[:message]
222
267
  end
223
-
224
268
  end
225
269
 
226
270
  class LimitExceededException < ServiceError
@@ -236,7 +280,6 @@ module Aws::WorkDocs
236
280
  def message
237
281
  @message || @data[:message]
238
282
  end
239
-
240
283
  end
241
284
 
242
285
  class ProhibitedStateException < ServiceError
@@ -252,7 +295,6 @@ module Aws::WorkDocs
252
295
  def message
253
296
  @message || @data[:message]
254
297
  end
255
-
256
298
  end
257
299
 
258
300
  class RequestedEntityTooLargeException < ServiceError
@@ -268,7 +310,6 @@ module Aws::WorkDocs
268
310
  def message
269
311
  @message || @data[:message]
270
312
  end
271
-
272
313
  end
273
314
 
274
315
  class ResourceAlreadyCheckedOutException < ServiceError
@@ -284,7 +325,6 @@ module Aws::WorkDocs
284
325
  def message
285
326
  @message || @data[:message]
286
327
  end
287
-
288
328
  end
289
329
 
290
330
  class ServiceUnavailableException < ServiceError
@@ -300,7 +340,6 @@ module Aws::WorkDocs
300
340
  def message
301
341
  @message || @data[:message]
302
342
  end
303
-
304
343
  end
305
344
 
306
345
  class StorageLimitExceededException < ServiceError
@@ -316,7 +355,6 @@ module Aws::WorkDocs
316
355
  def message
317
356
  @message || @data[:message]
318
357
  end
319
-
320
358
  end
321
359
 
322
360
  class StorageLimitWillExceedException < ServiceError
@@ -332,7 +370,6 @@ module Aws::WorkDocs
332
370
  def message
333
371
  @message || @data[:message]
334
372
  end
335
-
336
373
  end
337
374
 
338
375
  class TooManyLabelsException < ServiceError
@@ -348,7 +385,6 @@ module Aws::WorkDocs
348
385
  def message
349
386
  @message || @data[:message]
350
387
  end
351
-
352
388
  end
353
389
 
354
390
  class TooManySubscriptionsException < ServiceError
@@ -364,7 +400,16 @@ module Aws::WorkDocs
364
400
  def message
365
401
  @message || @data[:message]
366
402
  end
403
+ end
404
+
405
+ class UnauthorizedOperationException < ServiceError
367
406
 
407
+ # @param [Seahorse::Client::RequestContext] context
408
+ # @param [String] message
409
+ # @param [Aws::WorkDocs::Types::UnauthorizedOperationException] data
410
+ def initialize(context, message, data = Aws::EmptyStructure.new)
411
+ super(context, message, data)
412
+ end
368
413
  end
369
414
 
370
415
  class UnauthorizedResourceAccessException < ServiceError
@@ -380,7 +425,6 @@ module Aws::WorkDocs
380
425
  def message
381
426
  @message || @data[:message]
382
427
  end
383
-
384
428
  end
385
429
 
386
430
  end
@@ -6,6 +6,13 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::WorkDocs
9
+ # This class provides a resource oriented interface for WorkDocs.
10
+ # To create a resource object:
11
+ # resource = Aws::WorkDocs::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::WorkDocs::Client.new(region: 'us-west-2')
15
+ # resource = Aws::WorkDocs::Resource.new(client: client)
9
16
  class Resource
10
17
 
11
18
  # @param options ({})
@@ -18,9 +18,8 @@ module Aws::WorkDocs
18
18
  # }
19
19
  #
20
20
  # @!attribute [rw] authentication_token
21
- # Amazon WorkDocs authentication token. Do not set this field when
22
- # using administrative API actions, as in accessing the API using AWS
23
- # credentials.
21
+ # Amazon WorkDocs authentication token. Not required when using AWS
22
+ # administrator credentials to access the API.
24
23
  # @return [String]
25
24
  #
26
25
  # @!attribute [rw] document_id
@@ -53,9 +52,8 @@ module Aws::WorkDocs
53
52
  # @return [String]
54
53
  #
55
54
  # @!attribute [rw] authentication_token
56
- # Amazon WorkDocs authentication token. Do not set this field when
57
- # using administrative API actions, as in accessing the API using AWS
58
- # credentials.
55
+ # Amazon WorkDocs authentication token. Not required when using AWS
56
+ # administrator credentials to access the API.
59
57
  # @return [String]
60
58
  #
61
59
  # @see http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/ActivateUserRequest AWS API Documentation
@@ -159,9 +157,8 @@ module Aws::WorkDocs
159
157
  # }
160
158
  #
161
159
  # @!attribute [rw] authentication_token
162
- # Amazon WorkDocs authentication token. Do not set this field when
163
- # using administrative API actions, as in accessing the API using AWS
164
- # credentials.
160
+ # Amazon WorkDocs authentication token. Not required when using AWS
161
+ # administrator credentials to access the API.
165
162
  # @return [String]
166
163
  #
167
164
  # @!attribute [rw] resource_id
@@ -327,9 +324,8 @@ module Aws::WorkDocs
327
324
  # }
328
325
  #
329
326
  # @!attribute [rw] authentication_token
330
- # Amazon WorkDocs authentication token. Do not set this field when
331
- # using administrative API actions, as in accessing the API using AWS
332
- # credentials.
327
+ # Amazon WorkDocs authentication token. Not required when using AWS
328
+ # administrator credentials to access the API.
333
329
  # @return [String]
334
330
  #
335
331
  # @!attribute [rw] document_id
@@ -402,9 +398,8 @@ module Aws::WorkDocs
402
398
  # }
403
399
  #
404
400
  # @!attribute [rw] authentication_token
405
- # Amazon WorkDocs authentication token. Do not set this field when
406
- # using administrative API actions, as in accessing the API using AWS
407
- # credentials.
401
+ # Amazon WorkDocs authentication token. Not required when using AWS
402
+ # administrator credentials to access the API.
408
403
  # @return [String]
409
404
  #
410
405
  # @!attribute [rw] resource_id
@@ -444,9 +439,8 @@ module Aws::WorkDocs
444
439
  # }
445
440
  #
446
441
  # @!attribute [rw] authentication_token
447
- # Amazon WorkDocs authentication token. Do not set this field when
448
- # using administrative API actions, as in accessing the API using AWS
449
- # credentials.
442
+ # Amazon WorkDocs authentication token. Not required when using AWS
443
+ # administrator credentials to access the API.
450
444
  # @return [String]
451
445
  #
452
446
  # @!attribute [rw] name
@@ -495,9 +489,8 @@ module Aws::WorkDocs
495
489
  # @return [Array<String>]
496
490
  #
497
491
  # @!attribute [rw] authentication_token
498
- # Amazon WorkDocs authentication token. Do not set this field when
499
- # using administrative API actions, as in accessing the API using AWS
500
- # credentials.
492
+ # Amazon WorkDocs authentication token. Not required when using AWS
493
+ # administrator credentials to access the API.
501
494
  # @return [String]
502
495
  #
503
496
  # @see http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateLabelsRequest AWS API Documentation
@@ -613,9 +606,8 @@ module Aws::WorkDocs
613
606
  # @return [Types::StorageRuleType]
614
607
  #
615
608
  # @!attribute [rw] authentication_token
616
- # Amazon WorkDocs authentication token. Do not set this field when
617
- # using administrative API actions, as in accessing the API using AWS
618
- # credentials.
609
+ # Amazon WorkDocs authentication token. Not required when using AWS
610
+ # administrator credentials to access the API.
619
611
  # @return [String]
620
612
  #
621
613
  # @see http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateUserRequest AWS API Documentation
@@ -670,9 +662,8 @@ module Aws::WorkDocs
670
662
  # @return [String]
671
663
  #
672
664
  # @!attribute [rw] authentication_token
673
- # Amazon WorkDocs authentication token. Do not set this field when
674
- # using administrative API actions, as in accessing the API using AWS
675
- # credentials.
665
+ # Amazon WorkDocs authentication token. Not required when using AWS
666
+ # administrator credentials to access the API.
676
667
  # @return [String]
677
668
  #
678
669
  # @see http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeactivateUserRequest AWS API Documentation
@@ -683,6 +674,12 @@ module Aws::WorkDocs
683
674
  include Aws::Structure
684
675
  end
685
676
 
677
+ # The last user in the organization is being deactivated.
678
+ #
679
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeactivatingLastSystemUserException AWS API Documentation
680
+ #
681
+ class DeactivatingLastSystemUserException < Aws::EmptyStructure; end
682
+
686
683
  # @note When making an API call, you may pass DeleteCommentRequest
687
684
  # data as a hash:
688
685
  #
@@ -694,9 +691,8 @@ module Aws::WorkDocs
694
691
  # }
695
692
  #
696
693
  # @!attribute [rw] authentication_token
697
- # Amazon WorkDocs authentication token. Do not set this field when
698
- # using administrative API actions, as in accessing the API using AWS
699
- # credentials.
694
+ # Amazon WorkDocs authentication token. Not required when using AWS
695
+ # administrator credentials to access the API.
700
696
  # @return [String]
701
697
  #
702
698
  # @!attribute [rw] document_id
@@ -733,9 +729,8 @@ module Aws::WorkDocs
733
729
  # }
734
730
  #
735
731
  # @!attribute [rw] authentication_token
736
- # Amazon WorkDocs authentication token. Do not set this field when
737
- # using administrative API actions, as in accessing the API using AWS
738
- # credentials.
732
+ # Amazon WorkDocs authentication token. Not required when using AWS
733
+ # administrator credentials to access the API.
739
734
  # @return [String]
740
735
  #
741
736
  # @!attribute [rw] resource_id
@@ -780,9 +775,8 @@ module Aws::WorkDocs
780
775
  # }
781
776
  #
782
777
  # @!attribute [rw] authentication_token
783
- # Amazon WorkDocs authentication token. Do not set this field when
784
- # using administrative API actions, as in accessing the API using AWS
785
- # credentials.
778
+ # Amazon WorkDocs authentication token. Not required when using AWS
779
+ # administrator credentials to access the API.
786
780
  # @return [String]
787
781
  #
788
782
  # @!attribute [rw] document_id
@@ -806,9 +800,8 @@ module Aws::WorkDocs
806
800
  # }
807
801
  #
808
802
  # @!attribute [rw] authentication_token
809
- # Amazon WorkDocs authentication token. Do not set this field when
810
- # using administrative API actions, as in accessing the API using AWS
811
- # credentials.
803
+ # Amazon WorkDocs authentication token. Not required when using AWS
804
+ # administrator credentials to access the API.
812
805
  # @return [String]
813
806
  #
814
807
  # @!attribute [rw] folder_id
@@ -832,9 +825,8 @@ module Aws::WorkDocs
832
825
  # }
833
826
  #
834
827
  # @!attribute [rw] authentication_token
835
- # Amazon WorkDocs authentication token. Do not set this field when
836
- # using administrative API actions, as in accessing the API using AWS
837
- # credentials.
828
+ # Amazon WorkDocs authentication token. Not required when using AWS
829
+ # administrator credentials to access the API.
838
830
  # @return [String]
839
831
  #
840
832
  # @!attribute [rw] folder_id
@@ -864,9 +856,8 @@ module Aws::WorkDocs
864
856
  # @return [String]
865
857
  #
866
858
  # @!attribute [rw] authentication_token
867
- # Amazon WorkDocs authentication token. Do not set this field when
868
- # using administrative API actions, as in accessing the API using AWS
869
- # credentials.
859
+ # Amazon WorkDocs authentication token. Not required when using AWS
860
+ # administrator credentials to access the API.
870
861
  # @return [String]
871
862
  #
872
863
  # @!attribute [rw] labels
@@ -958,9 +949,8 @@ module Aws::WorkDocs
958
949
  # }
959
950
  #
960
951
  # @!attribute [rw] authentication_token
961
- # Amazon WorkDocs authentication token. Do not set this field when
962
- # using administrative API actions, as in accessing the API using AWS
963
- # credentials.
952
+ # Amazon WorkDocs authentication token. Not required when using AWS
953
+ # administrator credentials to access the API.
964
954
  # @return [String]
965
955
  #
966
956
  # @!attribute [rw] start_time
@@ -1054,9 +1044,8 @@ module Aws::WorkDocs
1054
1044
  # }
1055
1045
  #
1056
1046
  # @!attribute [rw] authentication_token
1057
- # Amazon WorkDocs authentication token. Do not set this field when
1058
- # using administrative API actions, as in accessing the API using AWS
1059
- # credentials.
1047
+ # Amazon WorkDocs authentication token. Not required when using AWS
1048
+ # administrator credentials to access the API.
1060
1049
  # @return [String]
1061
1050
  #
1062
1051
  # @!attribute [rw] document_id
@@ -1117,9 +1106,8 @@ module Aws::WorkDocs
1117
1106
  # }
1118
1107
  #
1119
1108
  # @!attribute [rw] authentication_token
1120
- # Amazon WorkDocs authentication token. Do not set this field when
1121
- # using administrative API actions, as in accessing the API using AWS
1122
- # credentials.
1109
+ # Amazon WorkDocs authentication token. Not required when using AWS
1110
+ # administrator credentials to access the API.
1123
1111
  # @return [String]
1124
1112
  #
1125
1113
  # @!attribute [rw] document_id
@@ -1189,9 +1177,8 @@ module Aws::WorkDocs
1189
1177
  # }
1190
1178
  #
1191
1179
  # @!attribute [rw] authentication_token
1192
- # Amazon WorkDocs authentication token. Do not set this field when
1193
- # using administrative API actions, as in accessing the API using AWS
1194
- # credentials.
1180
+ # Amazon WorkDocs authentication token. Not required when using AWS
1181
+ # administrator credentials to access the API.
1195
1182
  # @return [String]
1196
1183
  #
1197
1184
  # @!attribute [rw] folder_id
@@ -1272,9 +1259,8 @@ module Aws::WorkDocs
1272
1259
  # }
1273
1260
  #
1274
1261
  # @!attribute [rw] authentication_token
1275
- # Amazon WorkDocs authentication token. Do not set this field when
1276
- # using administrative API actions, as in accessing the API using AWS
1277
- # credentials.
1262
+ # Amazon WorkDocs authentication token. Not required when using AWS
1263
+ # administrator credentials to access the API.
1278
1264
  # @return [String]
1279
1265
  #
1280
1266
  # @!attribute [rw] search_query
@@ -1382,9 +1368,8 @@ module Aws::WorkDocs
1382
1368
  # }
1383
1369
  #
1384
1370
  # @!attribute [rw] authentication_token
1385
- # Amazon WorkDocs authentication token. Do not set this field when
1386
- # using administrative API actions, as in accessing the API using AWS
1387
- # credentials.
1371
+ # Amazon WorkDocs authentication token. Not required when using AWS
1372
+ # administrator credentials to access the API.
1388
1373
  # @return [String]
1389
1374
  #
1390
1375
  # @!attribute [rw] resource_id
@@ -1442,9 +1427,7 @@ module Aws::WorkDocs
1442
1427
  # }
1443
1428
  #
1444
1429
  # @!attribute [rw] authentication_token
1445
- # Amazon WorkDocs authentication token. Do not set this field when
1446
- # using administrative API actions, as in accessing the API using AWS
1447
- # credentials.
1430
+ # Amazon WorkDocs authentication token.
1448
1431
  # @return [String]
1449
1432
  #
1450
1433
  # @!attribute [rw] limit
@@ -1498,9 +1481,8 @@ module Aws::WorkDocs
1498
1481
  # }
1499
1482
  #
1500
1483
  # @!attribute [rw] authentication_token
1501
- # Amazon WorkDocs authentication token. Do not set this field when
1502
- # using administrative API actions, as in accessing the API using AWS
1503
- # credentials.
1484
+ # Amazon WorkDocs authentication token. Not required when using AWS
1485
+ # administrator credentials to access the API.
1504
1486
  # @return [String]
1505
1487
  #
1506
1488
  # @!attribute [rw] organization_id
@@ -1842,9 +1824,7 @@ module Aws::WorkDocs
1842
1824
  # }
1843
1825
  #
1844
1826
  # @!attribute [rw] authentication_token
1845
- # Amazon WorkDocs authentication token. Do not set this field when
1846
- # using administrative API actions, as in accessing the API using AWS
1847
- # credentials.
1827
+ # Amazon WorkDocs authentication token.
1848
1828
  # @return [String]
1849
1829
  #
1850
1830
  # @see http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetCurrentUserRequest AWS API Documentation
@@ -1877,9 +1857,8 @@ module Aws::WorkDocs
1877
1857
  # }
1878
1858
  #
1879
1859
  # @!attribute [rw] authentication_token
1880
- # Amazon WorkDocs authentication token. Do not set this field when
1881
- # using administrative API actions, as in accessing the API using AWS
1882
- # credentials.
1860
+ # Amazon WorkDocs authentication token. Not required when using AWS
1861
+ # administrator credentials to access the API.
1883
1862
  # @return [String]
1884
1863
  #
1885
1864
  # @!attribute [rw] document_id
@@ -1931,9 +1910,8 @@ module Aws::WorkDocs
1931
1910
  # }
1932
1911
  #
1933
1912
  # @!attribute [rw] authentication_token
1934
- # Amazon WorkDocs authentication token. Do not set this field when
1935
- # using administrative API actions, as in accessing the API using AWS
1936
- # credentials.
1913
+ # Amazon WorkDocs authentication token. Not required when using AWS
1914
+ # administrator credentials to access the API.
1937
1915
  # @return [String]
1938
1916
  #
1939
1917
  # @!attribute [rw] document_id
@@ -1981,9 +1959,8 @@ module Aws::WorkDocs
1981
1959
  # }
1982
1960
  #
1983
1961
  # @!attribute [rw] authentication_token
1984
- # Amazon WorkDocs authentication token. Do not set this field when
1985
- # using administrative API actions, as in accessing the API using AWS
1986
- # credentials.
1962
+ # Amazon WorkDocs authentication token. Not required when using AWS
1963
+ # administrator credentials to access the API.
1987
1964
  # @return [String]
1988
1965
  #
1989
1966
  # @!attribute [rw] document_id
@@ -2042,9 +2019,8 @@ module Aws::WorkDocs
2042
2019
  # }
2043
2020
  #
2044
2021
  # @!attribute [rw] authentication_token
2045
- # Amazon WorkDocs authentication token. Do not set this field when
2046
- # using administrative API actions, as in accessing the API using AWS
2047
- # credentials.
2022
+ # Amazon WorkDocs authentication token. Not required when using AWS
2023
+ # administrator credentials to access the API.
2048
2024
  # @return [String]
2049
2025
  #
2050
2026
  # @!attribute [rw] folder_id
@@ -2096,9 +2072,8 @@ module Aws::WorkDocs
2096
2072
  # }
2097
2073
  #
2098
2074
  # @!attribute [rw] authentication_token
2099
- # Amazon WorkDocs authentication token. Do not set this field when
2100
- # using administrative API actions, as in accessing the API using AWS
2101
- # credentials.
2075
+ # Amazon WorkDocs authentication token. Not required when using AWS
2076
+ # administrator credentials to access the API.
2102
2077
  # @return [String]
2103
2078
  #
2104
2079
  # @!attribute [rw] folder_id
@@ -2146,9 +2121,8 @@ module Aws::WorkDocs
2146
2121
  # }
2147
2122
  #
2148
2123
  # @!attribute [rw] authentication_token
2149
- # The Amazon WorkDocs authentication token. Do not set this field when
2150
- # using administrative API actions, as in accessing the API operation
2151
- # using AWS credentials.
2124
+ # The Amazon WorkDocs authentication token. Not required when using
2125
+ # AWS administrator credentials to access the API.
2152
2126
  # @return [String]
2153
2127
  #
2154
2128
  # @!attribute [rw] user_id
@@ -2247,9 +2221,8 @@ module Aws::WorkDocs
2247
2221
  # }
2248
2222
  #
2249
2223
  # @!attribute [rw] authentication_token
2250
- # Amazon WorkDocs authentication token. Do not set this field when
2251
- # using administrative API actions, as in accessing the API using AWS
2252
- # credentials.
2224
+ # Amazon WorkDocs authentication token. Not required when using AWS
2225
+ # administrator credentials to access the API.
2253
2226
  # @return [String]
2254
2227
  #
2255
2228
  # @!attribute [rw] id
@@ -2480,9 +2453,8 @@ module Aws::WorkDocs
2480
2453
  # }
2481
2454
  #
2482
2455
  # @!attribute [rw] authentication_token
2483
- # Amazon WorkDocs authentication token. Do not set this field when
2484
- # using administrative API actions, as in accessing the API using AWS
2485
- # credentials.
2456
+ # Amazon WorkDocs authentication token. Not required when using AWS
2457
+ # administrator credentials to access the API.
2486
2458
  # @return [String]
2487
2459
  #
2488
2460
  # @!attribute [rw] resource_id
@@ -2508,9 +2480,8 @@ module Aws::WorkDocs
2508
2480
  # }
2509
2481
  #
2510
2482
  # @!attribute [rw] authentication_token
2511
- # Amazon WorkDocs authentication token. Do not set this field when
2512
- # using administrative API actions, as in accessing the API using AWS
2513
- # credentials.
2483
+ # Amazon WorkDocs authentication token. Not required when using AWS
2484
+ # administrator credentials to access the API.
2514
2485
  # @return [String]
2515
2486
  #
2516
2487
  # @!attribute [rw] resource_id
@@ -2816,6 +2787,12 @@ module Aws::WorkDocs
2816
2787
  include Aws::Structure
2817
2788
  end
2818
2789
 
2790
+ # The operation is not permitted.
2791
+ #
2792
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UnauthorizedOperationException AWS API Documentation
2793
+ #
2794
+ class UnauthorizedOperationException < Aws::EmptyStructure; end
2795
+
2819
2796
  # The caller does not have access to perform the action on the resource.
2820
2797
  #
2821
2798
  # @!attribute [rw] message
@@ -2840,9 +2817,8 @@ module Aws::WorkDocs
2840
2817
  # }
2841
2818
  #
2842
2819
  # @!attribute [rw] authentication_token
2843
- # Amazon WorkDocs authentication token. Do not set this field when
2844
- # using administrative API actions, as in accessing the API using AWS
2845
- # credentials.
2820
+ # Amazon WorkDocs authentication token. Not required when using AWS
2821
+ # administrator credentials to access the API.
2846
2822
  # @return [String]
2847
2823
  #
2848
2824
  # @!attribute [rw] document_id
@@ -2884,9 +2860,8 @@ module Aws::WorkDocs
2884
2860
  # }
2885
2861
  #
2886
2862
  # @!attribute [rw] authentication_token
2887
- # Amazon WorkDocs authentication token. Do not set this field when
2888
- # using administrative API actions, as in accessing the API using AWS
2889
- # credentials.
2863
+ # Amazon WorkDocs authentication token. Not required when using AWS
2864
+ # administrator credentials to access the API.
2890
2865
  # @return [String]
2891
2866
  #
2892
2867
  # @!attribute [rw] document_id
@@ -2923,9 +2898,8 @@ module Aws::WorkDocs
2923
2898
  # }
2924
2899
  #
2925
2900
  # @!attribute [rw] authentication_token
2926
- # Amazon WorkDocs authentication token. Do not set this field when
2927
- # using administrative API actions, as in accessing the API using AWS
2928
- # credentials.
2901
+ # Amazon WorkDocs authentication token. Not required when using AWS
2902
+ # administrator credentials to access the API.
2929
2903
  # @return [String]
2930
2904
  #
2931
2905
  # @!attribute [rw] folder_id
@@ -2975,9 +2949,8 @@ module Aws::WorkDocs
2975
2949
  # }
2976
2950
  #
2977
2951
  # @!attribute [rw] authentication_token
2978
- # Amazon WorkDocs authentication token. Do not set this field when
2979
- # using administrative API actions, as in accessing the API using AWS
2980
- # credentials.
2952
+ # Amazon WorkDocs authentication token. Not required when using AWS
2953
+ # administrator credentials to access the API.
2981
2954
  # @return [String]
2982
2955
  #
2983
2956
  # @!attribute [rw] user_id