@aws-sdk/client-organizations 3.186.0 → 3.190.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.
Files changed (80) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/Organizations.js +210 -217
  3. package/dist-es/OrganizationsClient.js +22 -28
  4. package/dist-es/commands/AcceptHandshakeCommand.js +21 -28
  5. package/dist-es/commands/AttachPolicyCommand.js +22 -29
  6. package/dist-es/commands/CancelHandshakeCommand.js +21 -28
  7. package/dist-es/commands/CloseAccountCommand.js +22 -29
  8. package/dist-es/commands/CreateAccountCommand.js +21 -28
  9. package/dist-es/commands/CreateGovCloudAccountCommand.js +21 -28
  10. package/dist-es/commands/CreateOrganizationCommand.js +21 -28
  11. package/dist-es/commands/CreateOrganizationalUnitCommand.js +21 -28
  12. package/dist-es/commands/CreatePolicyCommand.js +21 -28
  13. package/dist-es/commands/DeclineHandshakeCommand.js +21 -28
  14. package/dist-es/commands/DeleteOrganizationCommand.js +23 -30
  15. package/dist-es/commands/DeleteOrganizationalUnitCommand.js +22 -29
  16. package/dist-es/commands/DeletePolicyCommand.js +22 -29
  17. package/dist-es/commands/DeregisterDelegatedAdministratorCommand.js +22 -29
  18. package/dist-es/commands/DescribeAccountCommand.js +21 -28
  19. package/dist-es/commands/DescribeCreateAccountStatusCommand.js +21 -28
  20. package/dist-es/commands/DescribeEffectivePolicyCommand.js +21 -28
  21. package/dist-es/commands/DescribeHandshakeCommand.js +21 -28
  22. package/dist-es/commands/DescribeOrganizationCommand.js +22 -29
  23. package/dist-es/commands/DescribeOrganizationalUnitCommand.js +21 -28
  24. package/dist-es/commands/DescribePolicyCommand.js +21 -28
  25. package/dist-es/commands/DetachPolicyCommand.js +22 -29
  26. package/dist-es/commands/DisableAWSServiceAccessCommand.js +22 -29
  27. package/dist-es/commands/DisablePolicyTypeCommand.js +21 -28
  28. package/dist-es/commands/EnableAWSServiceAccessCommand.js +22 -29
  29. package/dist-es/commands/EnableAllFeaturesCommand.js +21 -28
  30. package/dist-es/commands/EnablePolicyTypeCommand.js +21 -28
  31. package/dist-es/commands/InviteAccountToOrganizationCommand.js +21 -28
  32. package/dist-es/commands/LeaveOrganizationCommand.js +23 -30
  33. package/dist-es/commands/ListAWSServiceAccessForOrganizationCommand.js +21 -28
  34. package/dist-es/commands/ListAccountsCommand.js +21 -28
  35. package/dist-es/commands/ListAccountsForParentCommand.js +21 -28
  36. package/dist-es/commands/ListChildrenCommand.js +21 -28
  37. package/dist-es/commands/ListCreateAccountStatusCommand.js +21 -28
  38. package/dist-es/commands/ListDelegatedAdministratorsCommand.js +21 -28
  39. package/dist-es/commands/ListDelegatedServicesForAccountCommand.js +21 -28
  40. package/dist-es/commands/ListHandshakesForAccountCommand.js +21 -28
  41. package/dist-es/commands/ListHandshakesForOrganizationCommand.js +21 -28
  42. package/dist-es/commands/ListOrganizationalUnitsForParentCommand.js +21 -28
  43. package/dist-es/commands/ListParentsCommand.js +21 -28
  44. package/dist-es/commands/ListPoliciesCommand.js +21 -28
  45. package/dist-es/commands/ListPoliciesForTargetCommand.js +21 -28
  46. package/dist-es/commands/ListRootsCommand.js +21 -28
  47. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  48. package/dist-es/commands/ListTargetsForPolicyCommand.js +21 -28
  49. package/dist-es/commands/MoveAccountCommand.js +22 -29
  50. package/dist-es/commands/RegisterDelegatedAdministratorCommand.js +22 -29
  51. package/dist-es/commands/RemoveAccountFromOrganizationCommand.js +22 -29
  52. package/dist-es/commands/TagResourceCommand.js +22 -29
  53. package/dist-es/commands/UntagResourceCommand.js +22 -29
  54. package/dist-es/commands/UpdateOrganizationalUnitCommand.js +21 -28
  55. package/dist-es/commands/UpdatePolicyCommand.js +21 -28
  56. package/dist-es/endpoints.js +8 -8
  57. package/dist-es/models/OrganizationsServiceException.js +5 -10
  58. package/dist-es/models/models_0.js +964 -720
  59. package/dist-es/pagination/ListAWSServiceAccessForOrganizationPaginator.js +25 -68
  60. package/dist-es/pagination/ListAccountsForParentPaginator.js +25 -68
  61. package/dist-es/pagination/ListAccountsPaginator.js +25 -68
  62. package/dist-es/pagination/ListChildrenPaginator.js +25 -68
  63. package/dist-es/pagination/ListCreateAccountStatusPaginator.js +25 -68
  64. package/dist-es/pagination/ListDelegatedAdministratorsPaginator.js +25 -68
  65. package/dist-es/pagination/ListDelegatedServicesForAccountPaginator.js +25 -68
  66. package/dist-es/pagination/ListHandshakesForAccountPaginator.js +25 -68
  67. package/dist-es/pagination/ListHandshakesForOrganizationPaginator.js +25 -68
  68. package/dist-es/pagination/ListOrganizationalUnitsForParentPaginator.js +25 -68
  69. package/dist-es/pagination/ListParentsPaginator.js +25 -68
  70. package/dist-es/pagination/ListPoliciesForTargetPaginator.js +25 -68
  71. package/dist-es/pagination/ListPoliciesPaginator.js +25 -68
  72. package/dist-es/pagination/ListRootsPaginator.js +25 -68
  73. package/dist-es/pagination/ListTagsForResourcePaginator.js +24 -67
  74. package/dist-es/pagination/ListTargetsForPolicyPaginator.js +25 -68
  75. package/dist-es/protocols/Aws_json1_1.js +4139 -5453
  76. package/dist-es/runtimeConfig.browser.js +26 -12
  77. package/dist-es/runtimeConfig.js +30 -12
  78. package/dist-es/runtimeConfig.native.js +8 -5
  79. package/dist-es/runtimeConfig.shared.js +8 -11
  80. package/package.json +33 -33
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UntagResourceRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UntagResourceCommand, serializeAws_json1_1UntagResourceCommand, } from "../protocols/Aws_json1_1";
6
- var UntagResourceCommand = (function (_super) {
7
- __extends(UntagResourceCommand, _super);
8
- function UntagResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UntagResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UntagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "OrganizationsClient";
18
- var commandName = "UntagResourceCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "OrganizationsClient";
15
+ const commandName = "UntagResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UntagResourceRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UntagResourceCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1UntagResourceCommand(input, context);
33
- };
34
- UntagResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UntagResourceCommand(output, context);
36
- };
37
- return UntagResourceCommand;
38
- }($Command));
39
- export { UntagResourceCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdateOrganizationalUnitRequestFilterSensitiveLog, UpdateOrganizationalUnitResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdateOrganizationalUnitCommand, serializeAws_json1_1UpdateOrganizationalUnitCommand, } from "../protocols/Aws_json1_1";
6
- var UpdateOrganizationalUnitCommand = (function (_super) {
7
- __extends(UpdateOrganizationalUnitCommand, _super);
8
- function UpdateOrganizationalUnitCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateOrganizationalUnitCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateOrganizationalUnitCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "OrganizationsClient";
18
- var commandName = "UpdateOrganizationalUnitCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "OrganizationsClient";
15
+ const commandName = "UpdateOrganizationalUnitCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateOrganizationalUnitRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateOrganizationalUnitResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateOrganizationalUnitCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1UpdateOrganizationalUnitCommand(input, context);
33
- };
34
- UpdateOrganizationalUnitCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdateOrganizationalUnitCommand(output, context);
36
- };
37
- return UpdateOrganizationalUnitCommand;
38
- }($Command));
39
- export { UpdateOrganizationalUnitCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdatePolicyRequestFilterSensitiveLog, UpdatePolicyResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdatePolicyCommand, serializeAws_json1_1UpdatePolicyCommand, } from "../protocols/Aws_json1_1";
6
- var UpdatePolicyCommand = (function (_super) {
7
- __extends(UpdatePolicyCommand, _super);
8
- function UpdatePolicyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdatePolicyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdatePolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "OrganizationsClient";
18
- var commandName = "UpdatePolicyCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "OrganizationsClient";
15
+ const commandName = "UpdatePolicyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdatePolicyRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdatePolicyResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdatePolicyCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1UpdatePolicyCommand(input, context);
33
- };
34
- UpdatePolicyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdatePolicyCommand(output, context);
36
- };
37
- return UpdatePolicyCommand;
38
- }($Command));
39
- export { UpdatePolicyCommand };
31
+ }
32
+ }
@@ -1,6 +1,5 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {
2
+ const regionHash = {
4
3
  "aws-cn-global": {
5
4
  variants: [
6
5
  {
@@ -37,7 +36,7 @@ var regionHash = {
37
36
  signingRegion: "us-gov-west-1",
38
37
  },
39
38
  };
40
- var partitionHash = {
39
+ const partitionHash = {
41
40
  aws: {
42
41
  regions: [
43
42
  "af-south-1",
@@ -162,8 +161,9 @@ var partitionHash = {
162
161
  endpoint: "aws-us-gov-global",
163
162
  },
164
163
  };
165
- export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
166
- return __generator(this, function (_a) {
167
- return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "organizations", regionHash: regionHash, partitionHash: partitionHash }))];
168
- });
169
- }); };
164
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
165
+ ...options,
166
+ signingService: "organizations",
167
+ regionHash,
168
+ partitionHash,
169
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
- var OrganizationsServiceException = (function (_super) {
4
- __extends(OrganizationsServiceException, _super);
5
- function OrganizationsServiceException(options) {
6
- var _this = _super.call(this, options) || this;
7
- Object.setPrototypeOf(_this, OrganizationsServiceException.prototype);
8
- return _this;
2
+ export class OrganizationsServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, OrganizationsServiceException.prototype);
9
6
  }
10
- return OrganizationsServiceException;
11
- }(__ServiceException));
12
- export { OrganizationsServiceException };
7
+ }