aws-sdk-workdocs 1.41.0 → 1.43.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb3755c2b0e1596753305f33cadb44e4335392016055ec67faf0baa40b972f03
4
- data.tar.gz: b5dcae499206eb19c044c58ee9db7ca6a839fff55ecf075be3a1354d3fbc6fe8
3
+ metadata.gz: 95b7b0d42e5e0d7a9236215ea6135a0d05ee895c58180d31fe4ee99a76a34016
4
+ data.tar.gz: aaa3b5226c6c561580371b99d8fd71b97cd47dd44a5ecf7715d3d02c05c62bb2
5
5
  SHA512:
6
- metadata.gz: 7b9532b5799de86e2b1acd4a44572cce6b8846db75eb4f06774ab342097d544401af027f1cd31fb71cec6d99d68b3f8f057b4545d28502736c04ca71db81be2e
7
- data.tar.gz: 367cd6dfa942e67b411c4de60cc4d7a175c945f5d9198663a12b7c9e318fe6f3f89d9d963d931cd35c59b7cfd4a8d6b915dbc15a9bb72a9161aff133be971e90
6
+ metadata.gz: bb260d427fbb578370a4d87bd8db01f04714c1ec57c60816ff00e3862b76ba2384de9c337ce7e2e9d75613101bb46bfc31116577bc432d5dde29d50d5c75d78f
7
+ data.tar.gz: da66acff527a4142fd01001965b681f84236621472e7c98e6438248cacd1d7b951c1e0b5aad284683503e1aa756f06d8a6b3c0522b006e81a61c6b4c1feccfa2
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.43.0 (2023-02-09)
5
+ ------------------
6
+
7
+ * Feature - Doc only update for the WorkDocs APIs.
8
+
9
+ 1.42.0 (2023-01-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
15
+
4
16
  1.41.0 (2022-11-14)
5
17
  ------------------
6
18
 
@@ -276,4 +288,4 @@ Unreleased Changes
276
288
  1.0.0.rc1 (2017-03-09)
277
289
  ------------------
278
290
 
279
- * Feature - Initial release of `aws-sdk-workdocs`.
291
+ * Feature - Initial release of `aws-sdk-workdocs`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.41.0
1
+ 1.43.0
@@ -374,8 +374,8 @@ module Aws::WorkDocs
374
374
  # document version, or fails to do so.
375
375
  #
376
376
  # @option params [String] :authentication_token
377
- # Amazon WorkDocs authentication token. Not required when using AWS
378
- # administrator credentials to access the API.
377
+ # Amazon WorkDocs authentication token. Not required when using Amazon
378
+ # Web Services administrator credentials to access the API.
379
379
  #
380
380
  # @option params [required, String] :document_id
381
381
  # The ID of the document.
@@ -409,8 +409,8 @@ module Aws::WorkDocs
409
409
  # The ID of the user.
410
410
  #
411
411
  # @option params [String] :authentication_token
412
- # Amazon WorkDocs authentication token. Not required when using AWS
413
- # administrator credentials to access the API.
412
+ # Amazon WorkDocs authentication token. Not required when using Amazon
413
+ # Web Services administrator credentials to access the API.
414
414
  #
415
415
  # @return [Types::ActivateUserResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
416
416
  #
@@ -457,8 +457,8 @@ module Aws::WorkDocs
457
457
  # different permissions.
458
458
  #
459
459
  # @option params [String] :authentication_token
460
- # Amazon WorkDocs authentication token. Not required when using AWS
461
- # administrator credentials to access the API.
460
+ # Amazon WorkDocs authentication token. Not required when using Amazon
461
+ # Web Services administrator credentials to access the API.
462
462
  #
463
463
  # @option params [required, String] :resource_id
464
464
  # The ID of the resource.
@@ -513,8 +513,8 @@ module Aws::WorkDocs
513
513
  # Adds a new comment to the specified document version.
514
514
  #
515
515
  # @option params [String] :authentication_token
516
- # Amazon WorkDocs authentication token. Not required when using AWS
517
- # administrator credentials to access the API.
516
+ # Amazon WorkDocs authentication token. Not required when using Amazon
517
+ # Web Services administrator credentials to access the API.
518
518
  #
519
519
  # @option params [required, String] :document_id
520
520
  # The ID of the document.
@@ -599,8 +599,8 @@ module Aws::WorkDocs
599
599
  # folder, document, or version).
600
600
  #
601
601
  # @option params [String] :authentication_token
602
- # Amazon WorkDocs authentication token. Not required when using AWS
603
- # administrator credentials to access the API.
602
+ # Amazon WorkDocs authentication token. Not required when using Amazon
603
+ # Web Services administrator credentials to access the API.
604
604
  #
605
605
  # @option params [required, String] :resource_id
606
606
  # The ID of the resource.
@@ -637,8 +637,8 @@ module Aws::WorkDocs
637
637
  # Creates a folder with the specified name and parent folder.
638
638
  #
639
639
  # @option params [String] :authentication_token
640
- # Amazon WorkDocs authentication token. Not required when using AWS
641
- # administrator credentials to access the API.
640
+ # Amazon WorkDocs authentication token. Not required when using Amazon
641
+ # Web Services administrator credentials to access the API.
642
642
  #
643
643
  # @option params [String] :name
644
644
  # The name of the new folder.
@@ -692,8 +692,8 @@ module Aws::WorkDocs
692
692
  # List of labels to add to the resource.
693
693
  #
694
694
  # @option params [String] :authentication_token
695
- # Amazon WorkDocs authentication token. Not required when using AWS
696
- # administrator credentials to access the API.
695
+ # Amazon WorkDocs authentication token. Not required when using Amazon
696
+ # Web Services administrator credentials to access the API.
697
697
  #
698
698
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
699
699
  #
@@ -796,8 +796,8 @@ module Aws::WorkDocs
796
796
  # The amount of storage for the user.
797
797
  #
798
798
  # @option params [String] :authentication_token
799
- # Amazon WorkDocs authentication token. Not required when using AWS
800
- # administrator credentials to access the API.
799
+ # Amazon WorkDocs authentication token. Not required when using Amazon
800
+ # Web Services administrator credentials to access the API.
801
801
  #
802
802
  # @return [Types::CreateUserResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
803
803
  #
@@ -856,8 +856,8 @@ module Aws::WorkDocs
856
856
  # The ID of the user.
857
857
  #
858
858
  # @option params [String] :authentication_token
859
- # Amazon WorkDocs authentication token. Not required when using AWS
860
- # administrator credentials to access the API.
859
+ # Amazon WorkDocs authentication token. Not required when using Amazon
860
+ # Web Services administrator credentials to access the API.
861
861
  #
862
862
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
863
863
  #
@@ -880,8 +880,8 @@ module Aws::WorkDocs
880
880
  # Deletes the specified comment from the document version.
881
881
  #
882
882
  # @option params [String] :authentication_token
883
- # Amazon WorkDocs authentication token. Not required when using AWS
884
- # administrator credentials to access the API.
883
+ # Amazon WorkDocs authentication token. Not required when using Amazon
884
+ # Web Services administrator credentials to access the API.
885
885
  #
886
886
  # @option params [required, String] :document_id
887
887
  # The ID of the document.
@@ -915,8 +915,8 @@ module Aws::WorkDocs
915
915
  # Deletes custom metadata from the specified resource.
916
916
  #
917
917
  # @option params [String] :authentication_token
918
- # Amazon WorkDocs authentication token. Not required when using AWS
919
- # administrator credentials to access the API.
918
+ # Amazon WorkDocs authentication token. Not required when using Amazon
919
+ # Web Services administrator credentials to access the API.
920
920
  #
921
921
  # @option params [required, String] :resource_id
922
922
  # The ID of the resource, either a document or folder.
@@ -957,8 +957,8 @@ module Aws::WorkDocs
957
957
  # metadata.
958
958
  #
959
959
  # @option params [String] :authentication_token
960
- # Amazon WorkDocs authentication token. Not required when using AWS
961
- # administrator credentials to access the API.
960
+ # Amazon WorkDocs authentication token. Not required when using Amazon
961
+ # Web Services administrator credentials to access the API.
962
962
  #
963
963
  # @option params [required, String] :document_id
964
964
  # The ID of the document.
@@ -981,22 +981,20 @@ module Aws::WorkDocs
981
981
  req.send_request(options)
982
982
  end
983
983
 
984
- # Deletes a version of an Amazon WorkDocs document. Use the
985
- # `DeletePriorVersions` parameter to delete prior versions.
984
+ # Deletes a specific version of a document.
986
985
  #
987
986
  # @option params [String] :authentication_token
988
- # Amazon WorkDocs authentication token. Not required when using AWS
989
- # administrator credentials to access the API.
987
+ # Amazon WorkDocs authentication token. Not required when using Amazon
988
+ # Web Services administrator credentials to access the API.
990
989
  #
991
990
  # @option params [required, String] :document_id
992
- # The ID of a document.
991
+ # The ID of the document associated with the version being deleted.
993
992
  #
994
993
  # @option params [required, String] :version_id
995
- # The version ID of a document.
994
+ # The ID of the version being deleted.
996
995
  #
997
996
  # @option params [required, Boolean] :delete_prior_versions
998
- # When set to `TRUE`, deletes the specified version and *all prior
999
- # versions* of a document.
997
+ # Deletes all versions of a document prior to the current version.
1000
998
  #
1001
999
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1002
1000
  #
@@ -1021,8 +1019,8 @@ module Aws::WorkDocs
1021
1019
  # Permanently deletes the specified folder and its contents.
1022
1020
  #
1023
1021
  # @option params [String] :authentication_token
1024
- # Amazon WorkDocs authentication token. Not required when using AWS
1025
- # administrator credentials to access the API.
1022
+ # Amazon WorkDocs authentication token. Not required when using Amazon
1023
+ # Web Services administrator credentials to access the API.
1026
1024
  #
1027
1025
  # @option params [required, String] :folder_id
1028
1026
  # The ID of the folder.
@@ -1048,8 +1046,8 @@ module Aws::WorkDocs
1048
1046
  # Deletes the contents of the specified folder.
1049
1047
  #
1050
1048
  # @option params [String] :authentication_token
1051
- # Amazon WorkDocs authentication token. Not required when using AWS
1052
- # administrator credentials to access the API.
1049
+ # Amazon WorkDocs authentication token. Not required when using Amazon
1050
+ # Web Services administrator credentials to access the API.
1053
1051
  #
1054
1052
  # @option params [required, String] :folder_id
1055
1053
  # The ID of the folder.
@@ -1078,8 +1076,8 @@ module Aws::WorkDocs
1078
1076
  # The ID of the resource.
1079
1077
  #
1080
1078
  # @option params [String] :authentication_token
1081
- # Amazon WorkDocs authentication token. Not required when using AWS
1082
- # administrator credentials to access the API.
1079
+ # Amazon WorkDocs authentication token. Not required when using Amazon
1080
+ # Web Services administrator credentials to access the API.
1083
1081
  #
1084
1082
  # @option params [Array<String>] :labels
1085
1083
  # List of labels to delete from the resource.
@@ -1135,10 +1133,14 @@ module Aws::WorkDocs
1135
1133
 
1136
1134
  # Deletes the specified user from a Simple AD or Microsoft AD directory.
1137
1135
  #
1136
+ # Deleting a user immediately and permanently deletes all content in
1137
+ # that user's folder structure. Site retention policies do NOT apply to
1138
+ # this type of deletion.
1139
+ #
1138
1140
  # @option params [String] :authentication_token
1139
1141
  # Amazon WorkDocs authentication token. Do not set this field when using
1140
- # administrative API actions, as in accessing the API using AWS
1141
- # credentials.
1142
+ # administrative API actions, as in accessing the API using Amazon Web
1143
+ # Services credentials.
1142
1144
  #
1143
1145
  # @option params [required, String] :user_id
1144
1146
  # The ID of the user.
@@ -1164,8 +1166,8 @@ module Aws::WorkDocs
1164
1166
  # Describes the user activities in a specified time period.
1165
1167
  #
1166
1168
  # @option params [String] :authentication_token
1167
- # Amazon WorkDocs authentication token. Not required when using AWS
1168
- # administrator credentials to access the API.
1169
+ # Amazon WorkDocs authentication token. Not required when using Amazon
1170
+ # Web Services administrator credentials to access the API.
1169
1171
  #
1170
1172
  # @option params [Time,DateTime,Date,Integer,String] :start_time
1171
1173
  # The timestamp that determines the starting time of the activities. The
@@ -1303,8 +1305,8 @@ module Aws::WorkDocs
1303
1305
  # List all the comments for the specified document version.
1304
1306
  #
1305
1307
  # @option params [String] :authentication_token
1306
- # Amazon WorkDocs authentication token. Not required when using AWS
1307
- # administrator credentials to access the API.
1308
+ # Amazon WorkDocs authentication token. Not required when using Amazon
1309
+ # Web Services administrator credentials to access the API.
1308
1310
  #
1309
1311
  # @option params [required, String] :document_id
1310
1312
  # The ID of the document.
@@ -1378,8 +1380,8 @@ module Aws::WorkDocs
1378
1380
  # By default, only active versions are returned.
1379
1381
  #
1380
1382
  # @option params [String] :authentication_token
1381
- # Amazon WorkDocs authentication token. Not required when using AWS
1382
- # administrator credentials to access the API.
1383
+ # Amazon WorkDocs authentication token. Not required when using Amazon
1384
+ # Web Services administrator credentials to access the API.
1383
1385
  #
1384
1386
  # @option params [required, String] :document_id
1385
1387
  # The ID of the document.
@@ -1455,8 +1457,8 @@ module Aws::WorkDocs
1455
1457
  # You can also request initialized documents.
1456
1458
  #
1457
1459
  # @option params [String] :authentication_token
1458
- # Amazon WorkDocs authentication token. Not required when using AWS
1459
- # administrator credentials to access the API.
1460
+ # Amazon WorkDocs authentication token. Not required when using Amazon
1461
+ # Web Services administrator credentials to access the API.
1460
1462
  #
1461
1463
  # @option params [required, String] :folder_id
1462
1464
  # The ID of the folder.
@@ -1556,8 +1558,8 @@ module Aws::WorkDocs
1556
1558
  # underlying Active Directory.
1557
1559
  #
1558
1560
  # @option params [String] :authentication_token
1559
- # Amazon WorkDocs authentication token. Not required when using AWS
1560
- # administrator credentials to access the API.
1561
+ # Amazon WorkDocs authentication token. Not required when using Amazon
1562
+ # Web Services administrator credentials to access the API.
1561
1563
  #
1562
1564
  # @option params [required, String] :search_query
1563
1565
  # A query to describe groups by group name.
@@ -1648,8 +1650,8 @@ module Aws::WorkDocs
1648
1650
  # Describes the permissions of a specified resource.
1649
1651
  #
1650
1652
  # @option params [String] :authentication_token
1651
- # Amazon WorkDocs authentication token. Not required when using AWS
1652
- # administrator credentials to access the API.
1653
+ # Amazon WorkDocs authentication token. Not required when using Amazon
1654
+ # Web Services administrator credentials to access the API.
1653
1655
  #
1654
1656
  # @option params [required, String] :resource_id
1655
1657
  # The ID of the resource.
@@ -1769,8 +1771,8 @@ module Aws::WorkDocs
1769
1771
  # you can use to request the next set of results.
1770
1772
  #
1771
1773
  # @option params [String] :authentication_token
1772
- # Amazon WorkDocs authentication token. Not required when using AWS
1773
- # administrator credentials to access the API.
1774
+ # Amazon WorkDocs authentication token. Not required when using Amazon
1775
+ # Web Services administrator credentials to access the API.
1774
1776
  #
1775
1777
  # @option params [String] :organization_id
1776
1778
  # The ID of the organization.
@@ -1935,8 +1937,8 @@ module Aws::WorkDocs
1935
1937
  # Retrieves details of a document.
1936
1938
  #
1937
1939
  # @option params [String] :authentication_token
1938
- # Amazon WorkDocs authentication token. Not required when using AWS
1939
- # administrator credentials to access the API.
1940
+ # Amazon WorkDocs authentication token. Not required when using Amazon
1941
+ # Web Services administrator credentials to access the API.
1940
1942
  #
1941
1943
  # @option params [required, String] :document_id
1942
1944
  # The ID of the document.
@@ -2003,8 +2005,8 @@ module Aws::WorkDocs
2003
2005
  # can also request the names of the parent folders.
2004
2006
  #
2005
2007
  # @option params [String] :authentication_token
2006
- # Amazon WorkDocs authentication token. Not required when using AWS
2007
- # administrator credentials to access the API.
2008
+ # Amazon WorkDocs authentication token. Not required when using Amazon
2009
+ # Web Services administrator credentials to access the API.
2008
2010
  #
2009
2011
  # @option params [required, String] :document_id
2010
2012
  # The ID of the document.
@@ -2051,8 +2053,8 @@ module Aws::WorkDocs
2051
2053
  # Retrieves version metadata for the specified document.
2052
2054
  #
2053
2055
  # @option params [String] :authentication_token
2054
- # Amazon WorkDocs authentication token. Not required when using AWS
2055
- # administrator credentials to access the API.
2056
+ # Amazon WorkDocs authentication token. Not required when using Amazon
2057
+ # Web Services administrator credentials to access the API.
2056
2058
  #
2057
2059
  # @option params [required, String] :document_id
2058
2060
  # The ID of the document.
@@ -2114,8 +2116,8 @@ module Aws::WorkDocs
2114
2116
  # Retrieves the metadata of the specified folder.
2115
2117
  #
2116
2118
  # @option params [String] :authentication_token
2117
- # Amazon WorkDocs authentication token. Not required when using AWS
2118
- # administrator credentials to access the API.
2119
+ # Amazon WorkDocs authentication token. Not required when using Amazon
2120
+ # Web Services administrator credentials to access the API.
2119
2121
  #
2120
2122
  # @option params [required, String] :folder_id
2121
2123
  # The ID of the folder.
@@ -2171,8 +2173,8 @@ module Aws::WorkDocs
2171
2173
  # can also request the parent folder names.
2172
2174
  #
2173
2175
  # @option params [String] :authentication_token
2174
- # Amazon WorkDocs authentication token. Not required when using AWS
2175
- # administrator credentials to access the API.
2176
+ # Amazon WorkDocs authentication token. Not required when using Amazon
2177
+ # Web Services administrator credentials to access the API.
2176
2178
  #
2177
2179
  # @option params [required, String] :folder_id
2178
2180
  # The ID of the folder.
@@ -2220,8 +2222,8 @@ module Aws::WorkDocs
2220
2222
  # The only `CollectionType` supported is `SHARED_WITH_ME`.
2221
2223
  #
2222
2224
  # @option params [String] :authentication_token
2223
- # The Amazon WorkDocs authentication token. Not required when using AWS
2224
- # administrator credentials to access the API.
2225
+ # The Amazon WorkDocs authentication token. Not required when using
2226
+ # Amazon Web Services administrator credentials to access the API.
2225
2227
  #
2226
2228
  # @option params [String] :user_id
2227
2229
  # The user ID for the resource collection. This is a required field for
@@ -2314,8 +2316,8 @@ module Aws::WorkDocs
2314
2316
  # To cancel the document upload, call AbortDocumentVersionUpload.
2315
2317
  #
2316
2318
  # @option params [String] :authentication_token
2317
- # Amazon WorkDocs authentication token. Not required when using AWS
2318
- # administrator credentials to access the API.
2319
+ # Amazon WorkDocs authentication token. Not required when using Amazon
2320
+ # Web Services administrator credentials to access the API.
2319
2321
  #
2320
2322
  # @option params [String] :id
2321
2323
  # The ID of the document.
@@ -2397,8 +2399,8 @@ module Aws::WorkDocs
2397
2399
  # Removes all the permissions from the specified resource.
2398
2400
  #
2399
2401
  # @option params [String] :authentication_token
2400
- # Amazon WorkDocs authentication token. Not required when using AWS
2401
- # administrator credentials to access the API.
2402
+ # Amazon WorkDocs authentication token. Not required when using Amazon
2403
+ # Web Services administrator credentials to access the API.
2402
2404
  #
2403
2405
  # @option params [required, String] :resource_id
2404
2406
  # The ID of the resource.
@@ -2425,8 +2427,8 @@ module Aws::WorkDocs
2425
2427
  # resource.
2426
2428
  #
2427
2429
  # @option params [String] :authentication_token
2428
- # Amazon WorkDocs authentication token. Not required when using AWS
2429
- # administrator credentials to access the API.
2430
+ # Amazon WorkDocs authentication token. Not required when using Amazon
2431
+ # Web Services administrator credentials to access the API.
2430
2432
  #
2431
2433
  # @option params [required, String] :resource_id
2432
2434
  # The ID of the resource.
@@ -2460,8 +2462,8 @@ module Aws::WorkDocs
2460
2462
  # Recovers a deleted version of an Amazon WorkDocs document.
2461
2463
  #
2462
2464
  # @option params [String] :authentication_token
2463
- # Amazon WorkDocs authentication token. Not required when using AWS
2464
- # administrator credentials to access the API.
2465
+ # Amazon WorkDocs authentication token. Not required when using Amazon
2466
+ # Web Services administrator credentials to access the API.
2465
2467
  #
2466
2468
  # @option params [required, String] :document_id
2467
2469
  # The ID of the document.
@@ -2488,8 +2490,8 @@ module Aws::WorkDocs
2488
2490
  # access to both the document and its parent folder, if applicable.
2489
2491
  #
2490
2492
  # @option params [String] :authentication_token
2491
- # Amazon WorkDocs authentication token. Not required when using AWS
2492
- # administrator credentials to access the API.
2493
+ # Amazon WorkDocs authentication token. Not required when using Amazon
2494
+ # Web Services administrator credentials to access the API.
2493
2495
  #
2494
2496
  # @option params [required, String] :document_id
2495
2497
  # The ID of the document.
@@ -2533,8 +2535,8 @@ module Aws::WorkDocs
2533
2535
  # InitiateDocumentVersionUpload.
2534
2536
  #
2535
2537
  # @option params [String] :authentication_token
2536
- # Amazon WorkDocs authentication token. Not required when using AWS
2537
- # administrator credentials to access the API.
2538
+ # Amazon WorkDocs authentication token. Not required when using Amazon
2539
+ # Web Services administrator credentials to access the API.
2538
2540
  #
2539
2541
  # @option params [required, String] :document_id
2540
2542
  # The ID of the document.
@@ -2570,8 +2572,8 @@ module Aws::WorkDocs
2570
2572
  # applicable.
2571
2573
  #
2572
2574
  # @option params [String] :authentication_token
2573
- # Amazon WorkDocs authentication token. Not required when using AWS
2574
- # administrator credentials to access the API.
2575
+ # Amazon WorkDocs authentication token. Not required when using Amazon
2576
+ # Web Services administrator credentials to access the API.
2575
2577
  #
2576
2578
  # @option params [required, String] :folder_id
2577
2579
  # The ID of the folder.
@@ -2611,8 +2613,8 @@ module Aws::WorkDocs
2611
2613
  # revokes administrative privileges to the Amazon WorkDocs site.
2612
2614
  #
2613
2615
  # @option params [String] :authentication_token
2614
- # Amazon WorkDocs authentication token. Not required when using AWS
2615
- # administrator credentials to access the API.
2616
+ # Amazon WorkDocs authentication token. Not required when using Amazon
2617
+ # Web Services administrator credentials to access the API.
2616
2618
  #
2617
2619
  # @option params [required, String] :user_id
2618
2620
  # The ID of the user.
@@ -2636,7 +2638,7 @@ module Aws::WorkDocs
2636
2638
  # The locale of the user.
2637
2639
  #
2638
2640
  # @option params [String] :grant_poweruser_privileges
2639
- # Boolean value to determine whether the user is granted Poweruser
2641
+ # Boolean value to determine whether the user is granted Power user
2640
2642
  # privileges.
2641
2643
  #
2642
2644
  # @return [Types::UpdateUserResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -2702,7 +2704,7 @@ module Aws::WorkDocs
2702
2704
  params: params,
2703
2705
  config: config)
2704
2706
  context[:gem_name] = 'aws-sdk-workdocs'
2705
- context[:gem_version] = '1.41.0'
2707
+ context[:gem_version] = '1.43.0'
2706
2708
  Seahorse::Client::Request.new(handlers, context)
2707
2709
  end
2708
2710
 
@@ -50,6 +50,9 @@ module Aws::WorkDocs
50
50
 
51
51
  def initialize(options = {})
52
52
  self[:region] = options[:region]
53
+ if self[:region].nil?
54
+ raise ArgumentError, "Missing required EndpointParameter: :region"
55
+ end
53
56
  self[:use_dual_stack] = options[:use_dual_stack]
54
57
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
58
  if self[:use_dual_stack].nil?
@@ -9,103 +9,43 @@
9
9
 
10
10
  module Aws::WorkDocs
11
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
- )
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
+ if Aws::Endpoints::Matchers.set?(endpoint)
19
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
+ end
22
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
+ end
25
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
+ return Aws::Endpoints::Endpoint.new(url: "https://workdocs-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
+ end
31
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
+ end
33
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ return Aws::Endpoints::Endpoint.new(url: "https://workdocs-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
+ end
37
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
38
+ end
39
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
+ return Aws::Endpoints::Endpoint.new(url: "https://workdocs.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
42
+ end
43
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
44
+ end
45
+ return Aws::Endpoints::Endpoint.new(url: "https://workdocs.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
21
46
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
47
+ raise ArgumentError, 'No endpoint could be resolved'
24
48
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
49
  end
28
-
29
- # @api private
30
- RULES = <<-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YXJ0aXRpb25SZXN1bHQifSwic3VwcG9y
98
- dHNEdWFsU3RhY2siXX1dfV0sInR5cGUiOiJ0cmVlIiwicnVsZXMiOlt7ImNv
99
- bmRpdGlvbnMiOltdLCJlbmRwb2ludCI6eyJ1cmwiOiJodHRwczovL3dvcmtk
100
- b2NzLntSZWdpb259LntQYXJ0aXRpb25SZXN1bHQjZHVhbFN0YWNrRG5zU3Vm
101
- Zml4fSIsInByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJl
102
- bmRwb2ludCJ9XX0seyJjb25kaXRpb25zIjpbXSwiZXJyb3IiOiJEdWFsU3Rh
103
- Y2sgaXMgZW5hYmxlZCBidXQgdGhpcyBwYXJ0aXRpb24gZG9lcyBub3Qgc3Vw
104
- cG9ydCBEdWFsU3RhY2siLCJ0eXBlIjoiZXJyb3IifV19LHsiY29uZGl0aW9u
105
- cyI6W10sImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vd29ya2RvY3Mue1Jl
106
- Z2lvbn0ue1BhcnRpdGlvblJlc3VsdCNkbnNTdWZmaXh9IiwicHJvcGVydGll
107
- cyI6e30sImhlYWRlcnMiOnt9fSwidHlwZSI6ImVuZHBvaW50In1dfV19
108
-
109
- JSON
110
50
  end
111
51
  end