@aws-sdk/client-organizations 3.45.0 → 3.47.2

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.
@@ -41,30 +41,10 @@ export var HandshakeState;
41
41
  HandshakeState["OPEN"] = "OPEN";
42
42
  HandshakeState["REQUESTED"] = "REQUESTED";
43
43
  })(HandshakeState || (HandshakeState = {}));
44
- export var AccessDeniedException;
45
- (function (AccessDeniedException) {
46
- AccessDeniedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
47
- })(AccessDeniedException || (AccessDeniedException = {}));
48
44
  export var AccessDeniedForDependencyExceptionReason;
49
45
  (function (AccessDeniedForDependencyExceptionReason) {
50
46
  AccessDeniedForDependencyExceptionReason["ACCESS_DENIED_DURING_CREATE_SERVICE_LINKED_ROLE"] = "ACCESS_DENIED_DURING_CREATE_SERVICE_LINKED_ROLE";
51
47
  })(AccessDeniedForDependencyExceptionReason || (AccessDeniedForDependencyExceptionReason = {}));
52
- export var AccessDeniedForDependencyException;
53
- (function (AccessDeniedForDependencyException) {
54
- AccessDeniedForDependencyException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
55
- })(AccessDeniedForDependencyException || (AccessDeniedForDependencyException = {}));
56
- export var AWSOrganizationsNotInUseException;
57
- (function (AWSOrganizationsNotInUseException) {
58
- AWSOrganizationsNotInUseException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
59
- })(AWSOrganizationsNotInUseException || (AWSOrganizationsNotInUseException = {}));
60
- export var ConcurrentModificationException;
61
- (function (ConcurrentModificationException) {
62
- ConcurrentModificationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
63
- })(ConcurrentModificationException || (ConcurrentModificationException = {}));
64
- export var HandshakeAlreadyInStateException;
65
- (function (HandshakeAlreadyInStateException) {
66
- HandshakeAlreadyInStateException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
67
- })(HandshakeAlreadyInStateException || (HandshakeAlreadyInStateException = {}));
68
48
  export var HandshakeConstraintViolationExceptionReason;
69
49
  (function (HandshakeConstraintViolationExceptionReason) {
70
50
  HandshakeConstraintViolationExceptionReason["ACCOUNT_NUMBER_LIMIT_EXCEEDED"] = "ACCOUNT_NUMBER_LIMIT_EXCEEDED";
@@ -77,18 +57,6 @@ export var HandshakeConstraintViolationExceptionReason;
77
57
  HandshakeConstraintViolationExceptionReason["ORGANIZATION_MEMBERSHIP_CHANGE_RATE_LIMIT_EXCEEDED"] = "ORGANIZATION_MEMBERSHIP_CHANGE_RATE_LIMIT_EXCEEDED";
78
58
  HandshakeConstraintViolationExceptionReason["PAYMENT_INSTRUMENT_REQUIRED"] = "PAYMENT_INSTRUMENT_REQUIRED";
79
59
  })(HandshakeConstraintViolationExceptionReason || (HandshakeConstraintViolationExceptionReason = {}));
80
- export var HandshakeConstraintViolationException;
81
- (function (HandshakeConstraintViolationException) {
82
- HandshakeConstraintViolationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
83
- })(HandshakeConstraintViolationException || (HandshakeConstraintViolationException = {}));
84
- export var HandshakeNotFoundException;
85
- (function (HandshakeNotFoundException) {
86
- HandshakeNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
87
- })(HandshakeNotFoundException || (HandshakeNotFoundException = {}));
88
- export var InvalidHandshakeTransitionException;
89
- (function (InvalidHandshakeTransitionException) {
90
- InvalidHandshakeTransitionException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
91
- })(InvalidHandshakeTransitionException || (InvalidHandshakeTransitionException = {}));
92
60
  export var InvalidInputExceptionReason;
93
61
  (function (InvalidInputExceptionReason) {
94
62
  InvalidInputExceptionReason["DUPLICATE_TAG_KEY"] = "DUPLICATE_TAG_KEY";
@@ -116,18 +84,6 @@ export var InvalidInputExceptionReason;
116
84
  InvalidInputExceptionReason["TARGET_NOT_SUPPORTED"] = "TARGET_NOT_SUPPORTED";
117
85
  InvalidInputExceptionReason["UNRECOGNIZED_SERVICE_PRINCIPAL"] = "UNRECOGNIZED_SERVICE_PRINCIPAL";
118
86
  })(InvalidInputExceptionReason || (InvalidInputExceptionReason = {}));
119
- export var InvalidInputException;
120
- (function (InvalidInputException) {
121
- InvalidInputException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
122
- })(InvalidInputException || (InvalidInputException = {}));
123
- export var ServiceException;
124
- (function (ServiceException) {
125
- ServiceException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
126
- })(ServiceException || (ServiceException = {}));
127
- export var TooManyRequestsException;
128
- (function (TooManyRequestsException) {
129
- TooManyRequestsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
130
- })(TooManyRequestsException || (TooManyRequestsException = {}));
131
87
  export var AccountJoinedMethod;
132
88
  (function (AccountJoinedMethod) {
133
89
  AccountJoinedMethod["CREATED"] = "CREATED";
@@ -142,26 +98,6 @@ export var Account;
142
98
  (function (Account) {
143
99
  Account.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Email && { Email: SENSITIVE_STRING })), (obj.Name && { Name: SENSITIVE_STRING }))); };
144
100
  })(Account || (Account = {}));
145
- export var AccountAlreadyRegisteredException;
146
- (function (AccountAlreadyRegisteredException) {
147
- AccountAlreadyRegisteredException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
148
- })(AccountAlreadyRegisteredException || (AccountAlreadyRegisteredException = {}));
149
- export var AccountNotFoundException;
150
- (function (AccountNotFoundException) {
151
- AccountNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
152
- })(AccountNotFoundException || (AccountNotFoundException = {}));
153
- export var AccountNotRegisteredException;
154
- (function (AccountNotRegisteredException) {
155
- AccountNotRegisteredException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
156
- })(AccountNotRegisteredException || (AccountNotRegisteredException = {}));
157
- export var AccountOwnerNotVerifiedException;
158
- (function (AccountOwnerNotVerifiedException) {
159
- AccountOwnerNotVerifiedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
160
- })(AccountOwnerNotVerifiedException || (AccountOwnerNotVerifiedException = {}));
161
- export var AlreadyInOrganizationException;
162
- (function (AlreadyInOrganizationException) {
163
- AlreadyInOrganizationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
164
- })(AlreadyInOrganizationException || (AlreadyInOrganizationException = {}));
165
101
  export var AttachPolicyRequest;
166
102
  (function (AttachPolicyRequest) {
167
103
  AttachPolicyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -197,34 +133,6 @@ export var ConstraintViolationExceptionReason;
197
133
  ConstraintViolationExceptionReason["TAG_POLICY_VIOLATION"] = "TAG_POLICY_VIOLATION";
198
134
  ConstraintViolationExceptionReason["WAIT_PERIOD_ACTIVE"] = "WAIT_PERIOD_ACTIVE";
199
135
  })(ConstraintViolationExceptionReason || (ConstraintViolationExceptionReason = {}));
200
- export var ConstraintViolationException;
201
- (function (ConstraintViolationException) {
202
- ConstraintViolationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
203
- })(ConstraintViolationException || (ConstraintViolationException = {}));
204
- export var DuplicatePolicyAttachmentException;
205
- (function (DuplicatePolicyAttachmentException) {
206
- DuplicatePolicyAttachmentException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
207
- })(DuplicatePolicyAttachmentException || (DuplicatePolicyAttachmentException = {}));
208
- export var PolicyChangesInProgressException;
209
- (function (PolicyChangesInProgressException) {
210
- PolicyChangesInProgressException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
211
- })(PolicyChangesInProgressException || (PolicyChangesInProgressException = {}));
212
- export var PolicyNotFoundException;
213
- (function (PolicyNotFoundException) {
214
- PolicyNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
215
- })(PolicyNotFoundException || (PolicyNotFoundException = {}));
216
- export var PolicyTypeNotEnabledException;
217
- (function (PolicyTypeNotEnabledException) {
218
- PolicyTypeNotEnabledException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
219
- })(PolicyTypeNotEnabledException || (PolicyTypeNotEnabledException = {}));
220
- export var TargetNotFoundException;
221
- (function (TargetNotFoundException) {
222
- TargetNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
223
- })(TargetNotFoundException || (TargetNotFoundException = {}));
224
- export var UnsupportedAPIEndpointException;
225
- (function (UnsupportedAPIEndpointException) {
226
- UnsupportedAPIEndpointException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
227
- })(UnsupportedAPIEndpointException || (UnsupportedAPIEndpointException = {}));
228
136
  export var CancelHandshakeRequest;
229
137
  (function (CancelHandshakeRequest) {
230
138
  CancelHandshakeRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -274,10 +182,6 @@ export var CreateAccountResponse;
274
182
  CreateAccountStatus: CreateAccountStatus.filterSensitiveLog(obj.CreateAccountStatus),
275
183
  }))); };
276
184
  })(CreateAccountResponse || (CreateAccountResponse = {}));
277
- export var FinalizingOrganizationException;
278
- (function (FinalizingOrganizationException) {
279
- FinalizingOrganizationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
280
- })(FinalizingOrganizationException || (FinalizingOrganizationException = {}));
281
185
  export var CreateGovCloudAccountRequest;
282
186
  (function (CreateGovCloudAccountRequest) {
283
187
  CreateGovCloudAccountRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Email && { Email: SENSITIVE_STRING })), (obj.AccountName && { AccountName: SENSITIVE_STRING }))); };
@@ -334,14 +238,6 @@ export var CreateOrganizationalUnitResponse;
334
238
  (function (CreateOrganizationalUnitResponse) {
335
239
  CreateOrganizationalUnitResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
336
240
  })(CreateOrganizationalUnitResponse || (CreateOrganizationalUnitResponse = {}));
337
- export var DuplicateOrganizationalUnitException;
338
- (function (DuplicateOrganizationalUnitException) {
339
- DuplicateOrganizationalUnitException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
340
- })(DuplicateOrganizationalUnitException || (DuplicateOrganizationalUnitException = {}));
341
- export var ParentNotFoundException;
342
- (function (ParentNotFoundException) {
343
- ParentNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
344
- })(ParentNotFoundException || (ParentNotFoundException = {}));
345
241
  export var CreatePolicyRequest;
346
242
  (function (CreatePolicyRequest) {
347
243
  CreatePolicyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -358,46 +254,18 @@ export var CreatePolicyResponse;
358
254
  (function (CreatePolicyResponse) {
359
255
  CreatePolicyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
360
256
  })(CreatePolicyResponse || (CreatePolicyResponse = {}));
361
- export var DuplicatePolicyException;
362
- (function (DuplicatePolicyException) {
363
- DuplicatePolicyException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
364
- })(DuplicatePolicyException || (DuplicatePolicyException = {}));
365
- export var MalformedPolicyDocumentException;
366
- (function (MalformedPolicyDocumentException) {
367
- MalformedPolicyDocumentException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
368
- })(MalformedPolicyDocumentException || (MalformedPolicyDocumentException = {}));
369
- export var PolicyTypeNotAvailableForOrganizationException;
370
- (function (PolicyTypeNotAvailableForOrganizationException) {
371
- PolicyTypeNotAvailableForOrganizationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
372
- })(PolicyTypeNotAvailableForOrganizationException || (PolicyTypeNotAvailableForOrganizationException = {}));
373
257
  export var DeclineHandshakeRequest;
374
258
  (function (DeclineHandshakeRequest) {
375
259
  DeclineHandshakeRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
376
260
  })(DeclineHandshakeRequest || (DeclineHandshakeRequest = {}));
377
- export var OrganizationNotEmptyException;
378
- (function (OrganizationNotEmptyException) {
379
- OrganizationNotEmptyException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
380
- })(OrganizationNotEmptyException || (OrganizationNotEmptyException = {}));
381
261
  export var DeleteOrganizationalUnitRequest;
382
262
  (function (DeleteOrganizationalUnitRequest) {
383
263
  DeleteOrganizationalUnitRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
384
264
  })(DeleteOrganizationalUnitRequest || (DeleteOrganizationalUnitRequest = {}));
385
- export var OrganizationalUnitNotEmptyException;
386
- (function (OrganizationalUnitNotEmptyException) {
387
- OrganizationalUnitNotEmptyException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
388
- })(OrganizationalUnitNotEmptyException || (OrganizationalUnitNotEmptyException = {}));
389
- export var OrganizationalUnitNotFoundException;
390
- (function (OrganizationalUnitNotFoundException) {
391
- OrganizationalUnitNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
392
- })(OrganizationalUnitNotFoundException || (OrganizationalUnitNotFoundException = {}));
393
265
  export var DeletePolicyRequest;
394
266
  (function (DeletePolicyRequest) {
395
267
  DeletePolicyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
396
268
  })(DeletePolicyRequest || (DeletePolicyRequest = {}));
397
- export var PolicyInUseException;
398
- (function (PolicyInUseException) {
399
- PolicyInUseException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
400
- })(PolicyInUseException || (PolicyInUseException = {}));
401
269
  export var DeregisterDelegatedAdministratorRequest;
402
270
  (function (DeregisterDelegatedAdministratorRequest) {
403
271
  DeregisterDelegatedAdministratorRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -410,10 +278,6 @@ export var DescribeAccountResponse;
410
278
  (function (DescribeAccountResponse) {
411
279
  DescribeAccountResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Account && { Account: Account.filterSensitiveLog(obj.Account) }))); };
412
280
  })(DescribeAccountResponse || (DescribeAccountResponse = {}));
413
- export var CreateAccountStatusNotFoundException;
414
- (function (CreateAccountStatusNotFoundException) {
415
- CreateAccountStatusNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
416
- })(CreateAccountStatusNotFoundException || (CreateAccountStatusNotFoundException = {}));
417
281
  export var DescribeCreateAccountStatusRequest;
418
282
  (function (DescribeCreateAccountStatusRequest) {
419
283
  DescribeCreateAccountStatusRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -442,10 +306,6 @@ export var DescribeEffectivePolicyResponse;
442
306
  (function (DescribeEffectivePolicyResponse) {
443
307
  DescribeEffectivePolicyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
444
308
  })(DescribeEffectivePolicyResponse || (DescribeEffectivePolicyResponse = {}));
445
- export var EffectivePolicyNotFoundException;
446
- (function (EffectivePolicyNotFoundException) {
447
- EffectivePolicyNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
448
- })(EffectivePolicyNotFoundException || (EffectivePolicyNotFoundException = {}));
449
309
  export var DescribeHandshakeRequest;
450
310
  (function (DescribeHandshakeRequest) {
451
311
  DescribeHandshakeRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -474,10 +334,6 @@ export var DetachPolicyRequest;
474
334
  (function (DetachPolicyRequest) {
475
335
  DetachPolicyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
476
336
  })(DetachPolicyRequest || (DetachPolicyRequest = {}));
477
- export var PolicyNotAttachedException;
478
- (function (PolicyNotAttachedException) {
479
- PolicyNotAttachedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
480
- })(PolicyNotAttachedException || (PolicyNotAttachedException = {}));
481
337
  export var DisableAWSServiceAccessRequest;
482
338
  (function (DisableAWSServiceAccessRequest) {
483
339
  DisableAWSServiceAccessRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -494,10 +350,6 @@ export var DisablePolicyTypeResponse;
494
350
  (function (DisablePolicyTypeResponse) {
495
351
  DisablePolicyTypeResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
496
352
  })(DisablePolicyTypeResponse || (DisablePolicyTypeResponse = {}));
497
- export var RootNotFoundException;
498
- (function (RootNotFoundException) {
499
- RootNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
500
- })(RootNotFoundException || (RootNotFoundException = {}));
501
353
  export var EnableAllFeaturesRequest;
502
354
  (function (EnableAllFeaturesRequest) {
503
355
  EnableAllFeaturesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -514,22 +366,10 @@ export var EnablePolicyTypeResponse;
514
366
  (function (EnablePolicyTypeResponse) {
515
367
  EnablePolicyTypeResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
516
368
  })(EnablePolicyTypeResponse || (EnablePolicyTypeResponse = {}));
517
- export var PolicyTypeAlreadyEnabledException;
518
- (function (PolicyTypeAlreadyEnabledException) {
519
- PolicyTypeAlreadyEnabledException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
520
- })(PolicyTypeAlreadyEnabledException || (PolicyTypeAlreadyEnabledException = {}));
521
- export var DuplicateHandshakeException;
522
- (function (DuplicateHandshakeException) {
523
- DuplicateHandshakeException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
524
- })(DuplicateHandshakeException || (DuplicateHandshakeException = {}));
525
369
  export var InviteAccountToOrganizationRequest;
526
370
  (function (InviteAccountToOrganizationRequest) {
527
371
  InviteAccountToOrganizationRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Target && { Target: HandshakeParty.filterSensitiveLog(obj.Target) })), (obj.Notes && { Notes: SENSITIVE_STRING }))); };
528
372
  })(InviteAccountToOrganizationRequest || (InviteAccountToOrganizationRequest = {}));
529
- export var MasterCannotLeaveOrganizationException;
530
- (function (MasterCannotLeaveOrganizationException) {
531
- MasterCannotLeaveOrganizationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
532
- })(MasterCannotLeaveOrganizationException || (MasterCannotLeaveOrganizationException = {}));
533
373
  export var ListAccountsRequest;
534
374
  (function (ListAccountsRequest) {
535
375
  ListAccountsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -633,10 +473,6 @@ export var ListOrganizationalUnitsForParentResponse;
633
473
  (function (ListOrganizationalUnitsForParentResponse) {
634
474
  ListOrganizationalUnitsForParentResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
635
475
  })(ListOrganizationalUnitsForParentResponse || (ListOrganizationalUnitsForParentResponse = {}));
636
- export var ChildNotFoundException;
637
- (function (ChildNotFoundException) {
638
- ChildNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
639
- })(ChildNotFoundException || (ChildNotFoundException = {}));
640
476
  export var ListParentsRequest;
641
477
  (function (ListParentsRequest) {
642
478
  ListParentsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -704,22 +540,10 @@ export var ListTargetsForPolicyResponse;
704
540
  (function (ListTargetsForPolicyResponse) {
705
541
  ListTargetsForPolicyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
706
542
  })(ListTargetsForPolicyResponse || (ListTargetsForPolicyResponse = {}));
707
- export var DestinationParentNotFoundException;
708
- (function (DestinationParentNotFoundException) {
709
- DestinationParentNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
710
- })(DestinationParentNotFoundException || (DestinationParentNotFoundException = {}));
711
- export var DuplicateAccountException;
712
- (function (DuplicateAccountException) {
713
- DuplicateAccountException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
714
- })(DuplicateAccountException || (DuplicateAccountException = {}));
715
543
  export var MoveAccountRequest;
716
544
  (function (MoveAccountRequest) {
717
545
  MoveAccountRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
718
546
  })(MoveAccountRequest || (MoveAccountRequest = {}));
719
- export var SourceParentNotFoundException;
720
- (function (SourceParentNotFoundException) {
721
- SourceParentNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
722
- })(SourceParentNotFoundException || (SourceParentNotFoundException = {}));
723
547
  export var RegisterDelegatedAdministratorRequest;
724
548
  (function (RegisterDelegatedAdministratorRequest) {
725
549
  RegisterDelegatedAdministratorRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1,8 +1,8 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
5
- import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
6
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
7
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
8
8
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
10
10
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
11
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
12
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
13
15
  export var getRuntimeConfig = function (config) {
14
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
+ var defaultsMode = resolveDefaultsModeConfig(config);
18
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
15
19
  var clientSharedValues = getSharedRuntimeConfig(config);
16
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
+ switch (_a.label) {
22
+ case 0: return [4, defaultConfigProvider()];
23
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
+ }
25
+ }); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
17
26
  };
@@ -1,21 +1,28 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
8
8
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
- import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
10
10
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
11
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
15
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
16
17
  export var getRuntimeConfig = function (config) {
17
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
- emitWarningIfUnsupportedVersion(process.version);
19
+ var defaultsMode = resolveDefaultsModeConfig(config);
20
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
19
21
  var clientSharedValues = getSharedRuntimeConfig(config);
20
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
22
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
23
+ switch (_a.label) {
24
+ case 0: return [4, defaultConfigProvider()];
25
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
26
+ }
27
+ }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
21
28
  };
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { AcceptHandshakeCommandInput, AcceptHandshakeCommandOutput } from "./commands/AcceptHandshakeCommand";
10
10
  import { AttachPolicyCommandInput, AttachPolicyCommandOutput } from "./commands/AttachPolicyCommand";
@@ -159,6 +159,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
159
159
  * @internal
160
160
  */
161
161
  defaultUserAgentProvider?: Provider<__UserAgent>;
162
+ /**
163
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
164
+ */
165
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
162
166
  }
163
167
  declare type OrganizationsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
164
168
  /**