@aws-sdk/client-organizations 3.46.0 → 3.47.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
12
+ * Support awsQueryError trait ([#3174](https://github.com/aws/aws-sdk-js-v3/issues/3174)) ([351bd3a](https://github.com/aws/aws-sdk-js-v3/commit/351bd3a40ad37be79d823d6a0e4e48304728ea6f))
13
+
14
+
15
+
16
+
17
+
6
18
  # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
7
19
 
8
20
 
@@ -1,9 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateOrganizationRequest = exports.OrganizationFeatureSet = exports.CreateGovCloudAccountResponse = exports.CreateGovCloudAccountRequest = exports.FinalizingOrganizationException = exports.CreateAccountResponse = exports.CreateAccountStatus = exports.CreateAccountState = exports.CreateAccountFailureReason = exports.CreateAccountRequest = exports.Tag = exports.IAMUserAccessToBilling = exports.CancelHandshakeRequest = exports.UnsupportedAPIEndpointException = exports.TargetNotFoundException = exports.PolicyTypeNotEnabledException = exports.PolicyNotFoundException = exports.PolicyChangesInProgressException = exports.DuplicatePolicyAttachmentException = exports.ConstraintViolationException = exports.ConstraintViolationExceptionReason = exports.AttachPolicyRequest = exports.AlreadyInOrganizationException = exports.AccountOwnerNotVerifiedException = exports.AccountNotRegisteredException = exports.AccountNotFoundException = exports.AccountAlreadyRegisteredException = exports.Account = exports.AccountStatus = exports.AccountJoinedMethod = exports.TooManyRequestsException = exports.ServiceException = exports.InvalidInputException = exports.InvalidInputExceptionReason = exports.InvalidHandshakeTransitionException = exports.HandshakeNotFoundException = exports.HandshakeConstraintViolationException = exports.HandshakeConstraintViolationExceptionReason = exports.HandshakeAlreadyInStateException = exports.ConcurrentModificationException = exports.AWSOrganizationsNotInUseException = exports.AccessDeniedForDependencyException = exports.AccessDeniedForDependencyExceptionReason = exports.AccessDeniedException = exports.HandshakeState = exports.HandshakeResourceType = exports.HandshakeParty = exports.HandshakePartyType = exports.ActionType = exports.AcceptHandshakeRequest = void 0;
4
- exports.EnableAWSServiceAccessRequest = exports.EnableAllFeaturesRequest = exports.RootNotFoundException = exports.DisablePolicyTypeResponse = exports.Root = exports.DisablePolicyTypeRequest = exports.DisableAWSServiceAccessRequest = exports.PolicyNotAttachedException = exports.DetachPolicyRequest = exports.DescribePolicyResponse = exports.DescribePolicyRequest = exports.DescribeOrganizationalUnitResponse = exports.DescribeOrganizationalUnitRequest = exports.DescribeOrganizationResponse = exports.DescribeHandshakeRequest = exports.EffectivePolicyNotFoundException = exports.DescribeEffectivePolicyResponse = exports.EffectivePolicy = exports.DescribeEffectivePolicyRequest = exports.EffectivePolicyType = exports.DescribeCreateAccountStatusResponse = exports.DescribeCreateAccountStatusRequest = exports.CreateAccountStatusNotFoundException = exports.DescribeAccountResponse = exports.DescribeAccountRequest = exports.DeregisterDelegatedAdministratorRequest = exports.PolicyInUseException = exports.DeletePolicyRequest = exports.OrganizationalUnitNotFoundException = exports.OrganizationalUnitNotEmptyException = exports.DeleteOrganizationalUnitRequest = exports.OrganizationNotEmptyException = exports.DeclineHandshakeRequest = exports.PolicyTypeNotAvailableForOrganizationException = exports.MalformedPolicyDocumentException = exports.DuplicatePolicyException = exports.CreatePolicyResponse = exports.Policy = exports.PolicySummary = exports.CreatePolicyRequest = exports.ParentNotFoundException = exports.DuplicateOrganizationalUnitException = exports.CreateOrganizationalUnitResponse = exports.OrganizationalUnit = exports.CreateOrganizationalUnitRequest = exports.CreateOrganizationResponse = exports.Organization = exports.PolicyTypeSummary = exports.PolicyType = exports.PolicyTypeStatus = void 0;
5
- exports.MoveAccountRequest = exports.DuplicateAccountException = exports.DestinationParentNotFoundException = exports.ListTargetsForPolicyResponse = exports.PolicyTargetSummary = exports.TargetType = exports.ListTargetsForPolicyRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListRootsResponse = exports.ListRootsRequest = exports.ListPoliciesForTargetResponse = exports.ListPoliciesForTargetRequest = exports.ListPoliciesResponse = exports.ListPoliciesRequest = exports.ListParentsResponse = exports.Parent = exports.ParentType = exports.ListParentsRequest = exports.ChildNotFoundException = exports.ListOrganizationalUnitsForParentResponse = exports.ListOrganizationalUnitsForParentRequest = exports.ListHandshakesForOrganizationRequest = exports.ListHandshakesForAccountRequest = exports.HandshakeFilter = exports.ListDelegatedServicesForAccountResponse = exports.DelegatedService = exports.ListDelegatedServicesForAccountRequest = exports.ListDelegatedAdministratorsResponse = exports.DelegatedAdministrator = exports.ListDelegatedAdministratorsRequest = exports.ListCreateAccountStatusResponse = exports.ListCreateAccountStatusRequest = exports.ListChildrenResponse = exports.Child = exports.ListChildrenRequest = exports.ChildType = exports.ListAWSServiceAccessForOrganizationResponse = exports.EnabledServicePrincipal = exports.ListAWSServiceAccessForOrganizationRequest = exports.ListAccountsForParentResponse = exports.ListAccountsForParentRequest = exports.ListAccountsResponse = exports.ListAccountsRequest = exports.MasterCannotLeaveOrganizationException = exports.InviteAccountToOrganizationRequest = exports.DuplicateHandshakeException = exports.PolicyTypeAlreadyEnabledException = exports.EnablePolicyTypeResponse = exports.EnablePolicyTypeRequest = void 0;
6
- exports.ListHandshakesForOrganizationResponse = exports.ListHandshakesForAccountResponse = exports.InviteAccountToOrganizationResponse = exports.EnableAllFeaturesResponse = exports.DescribeHandshakeResponse = exports.DeclineHandshakeResponse = exports.CancelHandshakeResponse = exports.AcceptHandshakeResponse = exports.Handshake = exports.HandshakeResource = exports.UpdatePolicyResponse = exports.UpdatePolicyRequest = exports.UpdateOrganizationalUnitResponse = exports.UpdateOrganizationalUnitRequest = exports.UntagResourceRequest = exports.TagResourceRequest = exports.RemoveAccountFromOrganizationRequest = exports.RegisterDelegatedAdministratorRequest = exports.SourceParentNotFoundException = void 0;
3
+ exports.DescribeEffectivePolicyResponse = exports.EffectivePolicy = exports.DescribeEffectivePolicyRequest = exports.EffectivePolicyType = exports.DescribeCreateAccountStatusResponse = exports.DescribeCreateAccountStatusRequest = exports.DescribeAccountResponse = exports.DescribeAccountRequest = exports.DeregisterDelegatedAdministratorRequest = exports.DeletePolicyRequest = exports.DeleteOrganizationalUnitRequest = exports.DeclineHandshakeRequest = exports.CreatePolicyResponse = exports.Policy = exports.PolicySummary = exports.CreatePolicyRequest = exports.CreateOrganizationalUnitResponse = exports.OrganizationalUnit = exports.CreateOrganizationalUnitRequest = exports.CreateOrganizationResponse = exports.Organization = exports.PolicyTypeSummary = exports.PolicyType = exports.PolicyTypeStatus = exports.CreateOrganizationRequest = exports.OrganizationFeatureSet = exports.CreateGovCloudAccountResponse = exports.CreateGovCloudAccountRequest = exports.CreateAccountResponse = exports.CreateAccountStatus = exports.CreateAccountState = exports.CreateAccountFailureReason = exports.CreateAccountRequest = exports.Tag = exports.IAMUserAccessToBilling = exports.CancelHandshakeRequest = exports.ConstraintViolationExceptionReason = exports.AttachPolicyRequest = exports.Account = exports.AccountStatus = exports.AccountJoinedMethod = exports.InvalidInputExceptionReason = exports.HandshakeConstraintViolationExceptionReason = exports.AccessDeniedForDependencyExceptionReason = exports.HandshakeState = exports.HandshakeResourceType = exports.HandshakeParty = exports.HandshakePartyType = exports.ActionType = exports.AcceptHandshakeRequest = void 0;
4
+ exports.ListRootsResponse = exports.ListRootsRequest = exports.ListPoliciesForTargetResponse = exports.ListPoliciesForTargetRequest = exports.ListPoliciesResponse = exports.ListPoliciesRequest = exports.ListParentsResponse = exports.Parent = exports.ParentType = exports.ListParentsRequest = exports.ListOrganizationalUnitsForParentResponse = exports.ListOrganizationalUnitsForParentRequest = exports.ListHandshakesForOrganizationRequest = exports.ListHandshakesForAccountRequest = exports.HandshakeFilter = exports.ListDelegatedServicesForAccountResponse = exports.DelegatedService = exports.ListDelegatedServicesForAccountRequest = exports.ListDelegatedAdministratorsResponse = exports.DelegatedAdministrator = exports.ListDelegatedAdministratorsRequest = exports.ListCreateAccountStatusResponse = exports.ListCreateAccountStatusRequest = exports.ListChildrenResponse = exports.Child = exports.ListChildrenRequest = exports.ChildType = exports.ListAWSServiceAccessForOrganizationResponse = exports.EnabledServicePrincipal = exports.ListAWSServiceAccessForOrganizationRequest = exports.ListAccountsForParentResponse = exports.ListAccountsForParentRequest = exports.ListAccountsResponse = exports.ListAccountsRequest = exports.InviteAccountToOrganizationRequest = exports.EnablePolicyTypeResponse = exports.EnablePolicyTypeRequest = exports.EnableAWSServiceAccessRequest = exports.EnableAllFeaturesRequest = exports.DisablePolicyTypeResponse = exports.Root = exports.DisablePolicyTypeRequest = exports.DisableAWSServiceAccessRequest = exports.DetachPolicyRequest = exports.DescribePolicyResponse = exports.DescribePolicyRequest = exports.DescribeOrganizationalUnitResponse = exports.DescribeOrganizationalUnitRequest = exports.DescribeOrganizationResponse = exports.DescribeHandshakeRequest = void 0;
5
+ exports.ListHandshakesForOrganizationResponse = exports.ListHandshakesForAccountResponse = exports.InviteAccountToOrganizationResponse = exports.EnableAllFeaturesResponse = exports.DescribeHandshakeResponse = exports.DeclineHandshakeResponse = exports.CancelHandshakeResponse = exports.AcceptHandshakeResponse = exports.Handshake = exports.HandshakeResource = exports.UpdatePolicyResponse = exports.UpdatePolicyRequest = exports.UpdateOrganizationalUnitResponse = exports.UpdateOrganizationalUnitRequest = exports.UntagResourceRequest = exports.TagResourceRequest = exports.RemoveAccountFromOrganizationRequest = exports.RegisterDelegatedAdministratorRequest = exports.MoveAccountRequest = exports.ListTargetsForPolicyResponse = exports.PolicyTargetSummary = exports.TargetType = exports.ListTargetsForPolicyRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = void 0;
7
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
8
7
  var AcceptHandshakeRequest;
9
8
  (function (AcceptHandshakeRequest) {
@@ -51,40 +50,10 @@ var HandshakeState;
51
50
  HandshakeState["OPEN"] = "OPEN";
52
51
  HandshakeState["REQUESTED"] = "REQUESTED";
53
52
  })(HandshakeState = exports.HandshakeState || (exports.HandshakeState = {}));
54
- var AccessDeniedException;
55
- (function (AccessDeniedException) {
56
- AccessDeniedException.filterSensitiveLog = (obj) => ({
57
- ...obj,
58
- });
59
- })(AccessDeniedException = exports.AccessDeniedException || (exports.AccessDeniedException = {}));
60
53
  var AccessDeniedForDependencyExceptionReason;
61
54
  (function (AccessDeniedForDependencyExceptionReason) {
62
55
  AccessDeniedForDependencyExceptionReason["ACCESS_DENIED_DURING_CREATE_SERVICE_LINKED_ROLE"] = "ACCESS_DENIED_DURING_CREATE_SERVICE_LINKED_ROLE";
63
56
  })(AccessDeniedForDependencyExceptionReason = exports.AccessDeniedForDependencyExceptionReason || (exports.AccessDeniedForDependencyExceptionReason = {}));
64
- var AccessDeniedForDependencyException;
65
- (function (AccessDeniedForDependencyException) {
66
- AccessDeniedForDependencyException.filterSensitiveLog = (obj) => ({
67
- ...obj,
68
- });
69
- })(AccessDeniedForDependencyException = exports.AccessDeniedForDependencyException || (exports.AccessDeniedForDependencyException = {}));
70
- var AWSOrganizationsNotInUseException;
71
- (function (AWSOrganizationsNotInUseException) {
72
- AWSOrganizationsNotInUseException.filterSensitiveLog = (obj) => ({
73
- ...obj,
74
- });
75
- })(AWSOrganizationsNotInUseException = exports.AWSOrganizationsNotInUseException || (exports.AWSOrganizationsNotInUseException = {}));
76
- var ConcurrentModificationException;
77
- (function (ConcurrentModificationException) {
78
- ConcurrentModificationException.filterSensitiveLog = (obj) => ({
79
- ...obj,
80
- });
81
- })(ConcurrentModificationException = exports.ConcurrentModificationException || (exports.ConcurrentModificationException = {}));
82
- var HandshakeAlreadyInStateException;
83
- (function (HandshakeAlreadyInStateException) {
84
- HandshakeAlreadyInStateException.filterSensitiveLog = (obj) => ({
85
- ...obj,
86
- });
87
- })(HandshakeAlreadyInStateException = exports.HandshakeAlreadyInStateException || (exports.HandshakeAlreadyInStateException = {}));
88
57
  var HandshakeConstraintViolationExceptionReason;
89
58
  (function (HandshakeConstraintViolationExceptionReason) {
90
59
  HandshakeConstraintViolationExceptionReason["ACCOUNT_NUMBER_LIMIT_EXCEEDED"] = "ACCOUNT_NUMBER_LIMIT_EXCEEDED";
@@ -97,24 +66,6 @@ var HandshakeConstraintViolationExceptionReason;
97
66
  HandshakeConstraintViolationExceptionReason["ORGANIZATION_MEMBERSHIP_CHANGE_RATE_LIMIT_EXCEEDED"] = "ORGANIZATION_MEMBERSHIP_CHANGE_RATE_LIMIT_EXCEEDED";
98
67
  HandshakeConstraintViolationExceptionReason["PAYMENT_INSTRUMENT_REQUIRED"] = "PAYMENT_INSTRUMENT_REQUIRED";
99
68
  })(HandshakeConstraintViolationExceptionReason = exports.HandshakeConstraintViolationExceptionReason || (exports.HandshakeConstraintViolationExceptionReason = {}));
100
- var HandshakeConstraintViolationException;
101
- (function (HandshakeConstraintViolationException) {
102
- HandshakeConstraintViolationException.filterSensitiveLog = (obj) => ({
103
- ...obj,
104
- });
105
- })(HandshakeConstraintViolationException = exports.HandshakeConstraintViolationException || (exports.HandshakeConstraintViolationException = {}));
106
- var HandshakeNotFoundException;
107
- (function (HandshakeNotFoundException) {
108
- HandshakeNotFoundException.filterSensitiveLog = (obj) => ({
109
- ...obj,
110
- });
111
- })(HandshakeNotFoundException = exports.HandshakeNotFoundException || (exports.HandshakeNotFoundException = {}));
112
- var InvalidHandshakeTransitionException;
113
- (function (InvalidHandshakeTransitionException) {
114
- InvalidHandshakeTransitionException.filterSensitiveLog = (obj) => ({
115
- ...obj,
116
- });
117
- })(InvalidHandshakeTransitionException = exports.InvalidHandshakeTransitionException || (exports.InvalidHandshakeTransitionException = {}));
118
69
  var InvalidInputExceptionReason;
119
70
  (function (InvalidInputExceptionReason) {
120
71
  InvalidInputExceptionReason["DUPLICATE_TAG_KEY"] = "DUPLICATE_TAG_KEY";
@@ -142,24 +93,6 @@ var InvalidInputExceptionReason;
142
93
  InvalidInputExceptionReason["TARGET_NOT_SUPPORTED"] = "TARGET_NOT_SUPPORTED";
143
94
  InvalidInputExceptionReason["UNRECOGNIZED_SERVICE_PRINCIPAL"] = "UNRECOGNIZED_SERVICE_PRINCIPAL";
144
95
  })(InvalidInputExceptionReason = exports.InvalidInputExceptionReason || (exports.InvalidInputExceptionReason = {}));
145
- var InvalidInputException;
146
- (function (InvalidInputException) {
147
- InvalidInputException.filterSensitiveLog = (obj) => ({
148
- ...obj,
149
- });
150
- })(InvalidInputException = exports.InvalidInputException || (exports.InvalidInputException = {}));
151
- var ServiceException;
152
- (function (ServiceException) {
153
- ServiceException.filterSensitiveLog = (obj) => ({
154
- ...obj,
155
- });
156
- })(ServiceException = exports.ServiceException || (exports.ServiceException = {}));
157
- var TooManyRequestsException;
158
- (function (TooManyRequestsException) {
159
- TooManyRequestsException.filterSensitiveLog = (obj) => ({
160
- ...obj,
161
- });
162
- })(TooManyRequestsException = exports.TooManyRequestsException || (exports.TooManyRequestsException = {}));
163
96
  var AccountJoinedMethod;
164
97
  (function (AccountJoinedMethod) {
165
98
  AccountJoinedMethod["CREATED"] = "CREATED";
@@ -178,36 +111,6 @@ var Account;
178
111
  ...(obj.Name && { Name: smithy_client_1.SENSITIVE_STRING }),
179
112
  });
180
113
  })(Account = exports.Account || (exports.Account = {}));
181
- var AccountAlreadyRegisteredException;
182
- (function (AccountAlreadyRegisteredException) {
183
- AccountAlreadyRegisteredException.filterSensitiveLog = (obj) => ({
184
- ...obj,
185
- });
186
- })(AccountAlreadyRegisteredException = exports.AccountAlreadyRegisteredException || (exports.AccountAlreadyRegisteredException = {}));
187
- var AccountNotFoundException;
188
- (function (AccountNotFoundException) {
189
- AccountNotFoundException.filterSensitiveLog = (obj) => ({
190
- ...obj,
191
- });
192
- })(AccountNotFoundException = exports.AccountNotFoundException || (exports.AccountNotFoundException = {}));
193
- var AccountNotRegisteredException;
194
- (function (AccountNotRegisteredException) {
195
- AccountNotRegisteredException.filterSensitiveLog = (obj) => ({
196
- ...obj,
197
- });
198
- })(AccountNotRegisteredException = exports.AccountNotRegisteredException || (exports.AccountNotRegisteredException = {}));
199
- var AccountOwnerNotVerifiedException;
200
- (function (AccountOwnerNotVerifiedException) {
201
- AccountOwnerNotVerifiedException.filterSensitiveLog = (obj) => ({
202
- ...obj,
203
- });
204
- })(AccountOwnerNotVerifiedException = exports.AccountOwnerNotVerifiedException || (exports.AccountOwnerNotVerifiedException = {}));
205
- var AlreadyInOrganizationException;
206
- (function (AlreadyInOrganizationException) {
207
- AlreadyInOrganizationException.filterSensitiveLog = (obj) => ({
208
- ...obj,
209
- });
210
- })(AlreadyInOrganizationException = exports.AlreadyInOrganizationException || (exports.AlreadyInOrganizationException = {}));
211
114
  var AttachPolicyRequest;
212
115
  (function (AttachPolicyRequest) {
213
116
  AttachPolicyRequest.filterSensitiveLog = (obj) => ({
@@ -245,48 +148,6 @@ var ConstraintViolationExceptionReason;
245
148
  ConstraintViolationExceptionReason["TAG_POLICY_VIOLATION"] = "TAG_POLICY_VIOLATION";
246
149
  ConstraintViolationExceptionReason["WAIT_PERIOD_ACTIVE"] = "WAIT_PERIOD_ACTIVE";
247
150
  })(ConstraintViolationExceptionReason = exports.ConstraintViolationExceptionReason || (exports.ConstraintViolationExceptionReason = {}));
248
- var ConstraintViolationException;
249
- (function (ConstraintViolationException) {
250
- ConstraintViolationException.filterSensitiveLog = (obj) => ({
251
- ...obj,
252
- });
253
- })(ConstraintViolationException = exports.ConstraintViolationException || (exports.ConstraintViolationException = {}));
254
- var DuplicatePolicyAttachmentException;
255
- (function (DuplicatePolicyAttachmentException) {
256
- DuplicatePolicyAttachmentException.filterSensitiveLog = (obj) => ({
257
- ...obj,
258
- });
259
- })(DuplicatePolicyAttachmentException = exports.DuplicatePolicyAttachmentException || (exports.DuplicatePolicyAttachmentException = {}));
260
- var PolicyChangesInProgressException;
261
- (function (PolicyChangesInProgressException) {
262
- PolicyChangesInProgressException.filterSensitiveLog = (obj) => ({
263
- ...obj,
264
- });
265
- })(PolicyChangesInProgressException = exports.PolicyChangesInProgressException || (exports.PolicyChangesInProgressException = {}));
266
- var PolicyNotFoundException;
267
- (function (PolicyNotFoundException) {
268
- PolicyNotFoundException.filterSensitiveLog = (obj) => ({
269
- ...obj,
270
- });
271
- })(PolicyNotFoundException = exports.PolicyNotFoundException || (exports.PolicyNotFoundException = {}));
272
- var PolicyTypeNotEnabledException;
273
- (function (PolicyTypeNotEnabledException) {
274
- PolicyTypeNotEnabledException.filterSensitiveLog = (obj) => ({
275
- ...obj,
276
- });
277
- })(PolicyTypeNotEnabledException = exports.PolicyTypeNotEnabledException || (exports.PolicyTypeNotEnabledException = {}));
278
- var TargetNotFoundException;
279
- (function (TargetNotFoundException) {
280
- TargetNotFoundException.filterSensitiveLog = (obj) => ({
281
- ...obj,
282
- });
283
- })(TargetNotFoundException = exports.TargetNotFoundException || (exports.TargetNotFoundException = {}));
284
- var UnsupportedAPIEndpointException;
285
- (function (UnsupportedAPIEndpointException) {
286
- UnsupportedAPIEndpointException.filterSensitiveLog = (obj) => ({
287
- ...obj,
288
- });
289
- })(UnsupportedAPIEndpointException = exports.UnsupportedAPIEndpointException || (exports.UnsupportedAPIEndpointException = {}));
290
151
  var CancelHandshakeRequest;
291
152
  (function (CancelHandshakeRequest) {
292
153
  CancelHandshakeRequest.filterSensitiveLog = (obj) => ({
@@ -350,12 +211,6 @@ var CreateAccountResponse;
350
211
  }),
351
212
  });
352
213
  })(CreateAccountResponse = exports.CreateAccountResponse || (exports.CreateAccountResponse = {}));
353
- var FinalizingOrganizationException;
354
- (function (FinalizingOrganizationException) {
355
- FinalizingOrganizationException.filterSensitiveLog = (obj) => ({
356
- ...obj,
357
- });
358
- })(FinalizingOrganizationException = exports.FinalizingOrganizationException || (exports.FinalizingOrganizationException = {}));
359
214
  var CreateGovCloudAccountRequest;
360
215
  (function (CreateGovCloudAccountRequest) {
361
216
  CreateGovCloudAccountRequest.filterSensitiveLog = (obj) => ({
@@ -435,18 +290,6 @@ var CreateOrganizationalUnitResponse;
435
290
  ...obj,
436
291
  });
437
292
  })(CreateOrganizationalUnitResponse = exports.CreateOrganizationalUnitResponse || (exports.CreateOrganizationalUnitResponse = {}));
438
- var DuplicateOrganizationalUnitException;
439
- (function (DuplicateOrganizationalUnitException) {
440
- DuplicateOrganizationalUnitException.filterSensitiveLog = (obj) => ({
441
- ...obj,
442
- });
443
- })(DuplicateOrganizationalUnitException = exports.DuplicateOrganizationalUnitException || (exports.DuplicateOrganizationalUnitException = {}));
444
- var ParentNotFoundException;
445
- (function (ParentNotFoundException) {
446
- ParentNotFoundException.filterSensitiveLog = (obj) => ({
447
- ...obj,
448
- });
449
- })(ParentNotFoundException = exports.ParentNotFoundException || (exports.ParentNotFoundException = {}));
450
293
  var CreatePolicyRequest;
451
294
  (function (CreatePolicyRequest) {
452
295
  CreatePolicyRequest.filterSensitiveLog = (obj) => ({
@@ -471,66 +314,24 @@ var CreatePolicyResponse;
471
314
  ...obj,
472
315
  });
473
316
  })(CreatePolicyResponse = exports.CreatePolicyResponse || (exports.CreatePolicyResponse = {}));
474
- var DuplicatePolicyException;
475
- (function (DuplicatePolicyException) {
476
- DuplicatePolicyException.filterSensitiveLog = (obj) => ({
477
- ...obj,
478
- });
479
- })(DuplicatePolicyException = exports.DuplicatePolicyException || (exports.DuplicatePolicyException = {}));
480
- var MalformedPolicyDocumentException;
481
- (function (MalformedPolicyDocumentException) {
482
- MalformedPolicyDocumentException.filterSensitiveLog = (obj) => ({
483
- ...obj,
484
- });
485
- })(MalformedPolicyDocumentException = exports.MalformedPolicyDocumentException || (exports.MalformedPolicyDocumentException = {}));
486
- var PolicyTypeNotAvailableForOrganizationException;
487
- (function (PolicyTypeNotAvailableForOrganizationException) {
488
- PolicyTypeNotAvailableForOrganizationException.filterSensitiveLog = (obj) => ({
489
- ...obj,
490
- });
491
- })(PolicyTypeNotAvailableForOrganizationException = exports.PolicyTypeNotAvailableForOrganizationException || (exports.PolicyTypeNotAvailableForOrganizationException = {}));
492
317
  var DeclineHandshakeRequest;
493
318
  (function (DeclineHandshakeRequest) {
494
319
  DeclineHandshakeRequest.filterSensitiveLog = (obj) => ({
495
320
  ...obj,
496
321
  });
497
322
  })(DeclineHandshakeRequest = exports.DeclineHandshakeRequest || (exports.DeclineHandshakeRequest = {}));
498
- var OrganizationNotEmptyException;
499
- (function (OrganizationNotEmptyException) {
500
- OrganizationNotEmptyException.filterSensitiveLog = (obj) => ({
501
- ...obj,
502
- });
503
- })(OrganizationNotEmptyException = exports.OrganizationNotEmptyException || (exports.OrganizationNotEmptyException = {}));
504
323
  var DeleteOrganizationalUnitRequest;
505
324
  (function (DeleteOrganizationalUnitRequest) {
506
325
  DeleteOrganizationalUnitRequest.filterSensitiveLog = (obj) => ({
507
326
  ...obj,
508
327
  });
509
328
  })(DeleteOrganizationalUnitRequest = exports.DeleteOrganizationalUnitRequest || (exports.DeleteOrganizationalUnitRequest = {}));
510
- var OrganizationalUnitNotEmptyException;
511
- (function (OrganizationalUnitNotEmptyException) {
512
- OrganizationalUnitNotEmptyException.filterSensitiveLog = (obj) => ({
513
- ...obj,
514
- });
515
- })(OrganizationalUnitNotEmptyException = exports.OrganizationalUnitNotEmptyException || (exports.OrganizationalUnitNotEmptyException = {}));
516
- var OrganizationalUnitNotFoundException;
517
- (function (OrganizationalUnitNotFoundException) {
518
- OrganizationalUnitNotFoundException.filterSensitiveLog = (obj) => ({
519
- ...obj,
520
- });
521
- })(OrganizationalUnitNotFoundException = exports.OrganizationalUnitNotFoundException || (exports.OrganizationalUnitNotFoundException = {}));
522
329
  var DeletePolicyRequest;
523
330
  (function (DeletePolicyRequest) {
524
331
  DeletePolicyRequest.filterSensitiveLog = (obj) => ({
525
332
  ...obj,
526
333
  });
527
334
  })(DeletePolicyRequest = exports.DeletePolicyRequest || (exports.DeletePolicyRequest = {}));
528
- var PolicyInUseException;
529
- (function (PolicyInUseException) {
530
- PolicyInUseException.filterSensitiveLog = (obj) => ({
531
- ...obj,
532
- });
533
- })(PolicyInUseException = exports.PolicyInUseException || (exports.PolicyInUseException = {}));
534
335
  var DeregisterDelegatedAdministratorRequest;
535
336
  (function (DeregisterDelegatedAdministratorRequest) {
536
337
  DeregisterDelegatedAdministratorRequest.filterSensitiveLog = (obj) => ({
@@ -550,12 +351,6 @@ var DescribeAccountResponse;
550
351
  ...(obj.Account && { Account: Account.filterSensitiveLog(obj.Account) }),
551
352
  });
552
353
  })(DescribeAccountResponse = exports.DescribeAccountResponse || (exports.DescribeAccountResponse = {}));
553
- var CreateAccountStatusNotFoundException;
554
- (function (CreateAccountStatusNotFoundException) {
555
- CreateAccountStatusNotFoundException.filterSensitiveLog = (obj) => ({
556
- ...obj,
557
- });
558
- })(CreateAccountStatusNotFoundException = exports.CreateAccountStatusNotFoundException || (exports.CreateAccountStatusNotFoundException = {}));
559
354
  var DescribeCreateAccountStatusRequest;
560
355
  (function (DescribeCreateAccountStatusRequest) {
561
356
  DescribeCreateAccountStatusRequest.filterSensitiveLog = (obj) => ({
@@ -595,12 +390,6 @@ var DescribeEffectivePolicyResponse;
595
390
  ...obj,
596
391
  });
597
392
  })(DescribeEffectivePolicyResponse = exports.DescribeEffectivePolicyResponse || (exports.DescribeEffectivePolicyResponse = {}));
598
- var EffectivePolicyNotFoundException;
599
- (function (EffectivePolicyNotFoundException) {
600
- EffectivePolicyNotFoundException.filterSensitiveLog = (obj) => ({
601
- ...obj,
602
- });
603
- })(EffectivePolicyNotFoundException = exports.EffectivePolicyNotFoundException || (exports.EffectivePolicyNotFoundException = {}));
604
393
  var DescribeHandshakeRequest;
605
394
  (function (DescribeHandshakeRequest) {
606
395
  DescribeHandshakeRequest.filterSensitiveLog = (obj) => ({
@@ -644,12 +433,6 @@ var DetachPolicyRequest;
644
433
  ...obj,
645
434
  });
646
435
  })(DetachPolicyRequest = exports.DetachPolicyRequest || (exports.DetachPolicyRequest = {}));
647
- var PolicyNotAttachedException;
648
- (function (PolicyNotAttachedException) {
649
- PolicyNotAttachedException.filterSensitiveLog = (obj) => ({
650
- ...obj,
651
- });
652
- })(PolicyNotAttachedException = exports.PolicyNotAttachedException || (exports.PolicyNotAttachedException = {}));
653
436
  var DisableAWSServiceAccessRequest;
654
437
  (function (DisableAWSServiceAccessRequest) {
655
438
  DisableAWSServiceAccessRequest.filterSensitiveLog = (obj) => ({
@@ -674,12 +457,6 @@ var DisablePolicyTypeResponse;
674
457
  ...obj,
675
458
  });
676
459
  })(DisablePolicyTypeResponse = exports.DisablePolicyTypeResponse || (exports.DisablePolicyTypeResponse = {}));
677
- var RootNotFoundException;
678
- (function (RootNotFoundException) {
679
- RootNotFoundException.filterSensitiveLog = (obj) => ({
680
- ...obj,
681
- });
682
- })(RootNotFoundException = exports.RootNotFoundException || (exports.RootNotFoundException = {}));
683
460
  var EnableAllFeaturesRequest;
684
461
  (function (EnableAllFeaturesRequest) {
685
462
  EnableAllFeaturesRequest.filterSensitiveLog = (obj) => ({
@@ -704,18 +481,6 @@ var EnablePolicyTypeResponse;
704
481
  ...obj,
705
482
  });
706
483
  })(EnablePolicyTypeResponse = exports.EnablePolicyTypeResponse || (exports.EnablePolicyTypeResponse = {}));
707
- var PolicyTypeAlreadyEnabledException;
708
- (function (PolicyTypeAlreadyEnabledException) {
709
- PolicyTypeAlreadyEnabledException.filterSensitiveLog = (obj) => ({
710
- ...obj,
711
- });
712
- })(PolicyTypeAlreadyEnabledException = exports.PolicyTypeAlreadyEnabledException || (exports.PolicyTypeAlreadyEnabledException = {}));
713
- var DuplicateHandshakeException;
714
- (function (DuplicateHandshakeException) {
715
- DuplicateHandshakeException.filterSensitiveLog = (obj) => ({
716
- ...obj,
717
- });
718
- })(DuplicateHandshakeException = exports.DuplicateHandshakeException || (exports.DuplicateHandshakeException = {}));
719
484
  var InviteAccountToOrganizationRequest;
720
485
  (function (InviteAccountToOrganizationRequest) {
721
486
  InviteAccountToOrganizationRequest.filterSensitiveLog = (obj) => ({
@@ -724,12 +489,6 @@ var InviteAccountToOrganizationRequest;
724
489
  ...(obj.Notes && { Notes: smithy_client_1.SENSITIVE_STRING }),
725
490
  });
726
491
  })(InviteAccountToOrganizationRequest = exports.InviteAccountToOrganizationRequest || (exports.InviteAccountToOrganizationRequest = {}));
727
- var MasterCannotLeaveOrganizationException;
728
- (function (MasterCannotLeaveOrganizationException) {
729
- MasterCannotLeaveOrganizationException.filterSensitiveLog = (obj) => ({
730
- ...obj,
731
- });
732
- })(MasterCannotLeaveOrganizationException = exports.MasterCannotLeaveOrganizationException || (exports.MasterCannotLeaveOrganizationException = {}));
733
492
  var ListAccountsRequest;
734
493
  (function (ListAccountsRequest) {
735
494
  ListAccountsRequest.filterSensitiveLog = (obj) => ({
@@ -883,12 +642,6 @@ var ListOrganizationalUnitsForParentResponse;
883
642
  ...obj,
884
643
  });
885
644
  })(ListOrganizationalUnitsForParentResponse = exports.ListOrganizationalUnitsForParentResponse || (exports.ListOrganizationalUnitsForParentResponse = {}));
886
- var ChildNotFoundException;
887
- (function (ChildNotFoundException) {
888
- ChildNotFoundException.filterSensitiveLog = (obj) => ({
889
- ...obj,
890
- });
891
- })(ChildNotFoundException = exports.ChildNotFoundException || (exports.ChildNotFoundException = {}));
892
645
  var ListParentsRequest;
893
646
  (function (ListParentsRequest) {
894
647
  ListParentsRequest.filterSensitiveLog = (obj) => ({
@@ -984,30 +737,12 @@ var ListTargetsForPolicyResponse;
984
737
  ...obj,
985
738
  });
986
739
  })(ListTargetsForPolicyResponse = exports.ListTargetsForPolicyResponse || (exports.ListTargetsForPolicyResponse = {}));
987
- var DestinationParentNotFoundException;
988
- (function (DestinationParentNotFoundException) {
989
- DestinationParentNotFoundException.filterSensitiveLog = (obj) => ({
990
- ...obj,
991
- });
992
- })(DestinationParentNotFoundException = exports.DestinationParentNotFoundException || (exports.DestinationParentNotFoundException = {}));
993
- var DuplicateAccountException;
994
- (function (DuplicateAccountException) {
995
- DuplicateAccountException.filterSensitiveLog = (obj) => ({
996
- ...obj,
997
- });
998
- })(DuplicateAccountException = exports.DuplicateAccountException || (exports.DuplicateAccountException = {}));
999
740
  var MoveAccountRequest;
1000
741
  (function (MoveAccountRequest) {
1001
742
  MoveAccountRequest.filterSensitiveLog = (obj) => ({
1002
743
  ...obj,
1003
744
  });
1004
745
  })(MoveAccountRequest = exports.MoveAccountRequest || (exports.MoveAccountRequest = {}));
1005
- var SourceParentNotFoundException;
1006
- (function (SourceParentNotFoundException) {
1007
- SourceParentNotFoundException.filterSensitiveLog = (obj) => ({
1008
- ...obj,
1009
- });
1010
- })(SourceParentNotFoundException = exports.SourceParentNotFoundException || (exports.SourceParentNotFoundException = {}));
1011
746
  var RegisterDelegatedAdministratorRequest;
1012
747
  (function (RegisterDelegatedAdministratorRequest) {
1013
748
  RegisterDelegatedAdministratorRequest.filterSensitiveLog = (obj) => ({
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
13
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
+ const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
16
18
  const getRuntimeConfig = (config) => {
17
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
+ const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
21
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
18
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
19
23
  return {
20
24
  ...clientSharedValues,
21
25
  ...config,
22
26
  runtime: "browser",
27
+ defaultsMode,
23
28
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
24
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
25
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
27
32
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
28
33
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
29
34
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
30
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
31
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
35
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
32
37
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
33
38
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
34
39
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
@@ -15,13 +15,18 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
15
15
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
18
20
  const getRuntimeConfig = (config) => {
19
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
22
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
23
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
20
24
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
21
25
  return {
22
26
  ...clientSharedValues,
23
27
  ...config,
24
28
  runtime: "node",
29
+ defaultsMode,
25
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
26
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
27
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
@@ -29,8 +34,11 @@ const getRuntimeConfig = (config) => {
29
34
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
30
35
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
31
36
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
32
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
33
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
37
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
38
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
39
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
+ }),
34
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
35
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
36
44
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),