@aws-sdk/client-organizations 3.183.0 → 3.186.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 (81) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/Organizations.js +217 -210
  4. package/dist-es/OrganizationsClient.js +28 -22
  5. package/dist-es/commands/AcceptHandshakeCommand.js +28 -21
  6. package/dist-es/commands/AttachPolicyCommand.js +29 -22
  7. package/dist-es/commands/CancelHandshakeCommand.js +28 -21
  8. package/dist-es/commands/CloseAccountCommand.js +29 -22
  9. package/dist-es/commands/CreateAccountCommand.js +28 -21
  10. package/dist-es/commands/CreateGovCloudAccountCommand.js +28 -21
  11. package/dist-es/commands/CreateOrganizationCommand.js +28 -21
  12. package/dist-es/commands/CreateOrganizationalUnitCommand.js +28 -21
  13. package/dist-es/commands/CreatePolicyCommand.js +28 -21
  14. package/dist-es/commands/DeclineHandshakeCommand.js +28 -21
  15. package/dist-es/commands/DeleteOrganizationCommand.js +30 -23
  16. package/dist-es/commands/DeleteOrganizationalUnitCommand.js +29 -22
  17. package/dist-es/commands/DeletePolicyCommand.js +29 -22
  18. package/dist-es/commands/DeregisterDelegatedAdministratorCommand.js +29 -22
  19. package/dist-es/commands/DescribeAccountCommand.js +28 -21
  20. package/dist-es/commands/DescribeCreateAccountStatusCommand.js +28 -21
  21. package/dist-es/commands/DescribeEffectivePolicyCommand.js +28 -21
  22. package/dist-es/commands/DescribeHandshakeCommand.js +28 -21
  23. package/dist-es/commands/DescribeOrganizationCommand.js +29 -22
  24. package/dist-es/commands/DescribeOrganizationalUnitCommand.js +28 -21
  25. package/dist-es/commands/DescribePolicyCommand.js +28 -21
  26. package/dist-es/commands/DetachPolicyCommand.js +29 -22
  27. package/dist-es/commands/DisableAWSServiceAccessCommand.js +29 -22
  28. package/dist-es/commands/DisablePolicyTypeCommand.js +28 -21
  29. package/dist-es/commands/EnableAWSServiceAccessCommand.js +29 -22
  30. package/dist-es/commands/EnableAllFeaturesCommand.js +28 -21
  31. package/dist-es/commands/EnablePolicyTypeCommand.js +28 -21
  32. package/dist-es/commands/InviteAccountToOrganizationCommand.js +28 -21
  33. package/dist-es/commands/LeaveOrganizationCommand.js +30 -23
  34. package/dist-es/commands/ListAWSServiceAccessForOrganizationCommand.js +28 -21
  35. package/dist-es/commands/ListAccountsCommand.js +28 -21
  36. package/dist-es/commands/ListAccountsForParentCommand.js +28 -21
  37. package/dist-es/commands/ListChildrenCommand.js +28 -21
  38. package/dist-es/commands/ListCreateAccountStatusCommand.js +28 -21
  39. package/dist-es/commands/ListDelegatedAdministratorsCommand.js +28 -21
  40. package/dist-es/commands/ListDelegatedServicesForAccountCommand.js +28 -21
  41. package/dist-es/commands/ListHandshakesForAccountCommand.js +28 -21
  42. package/dist-es/commands/ListHandshakesForOrganizationCommand.js +28 -21
  43. package/dist-es/commands/ListOrganizationalUnitsForParentCommand.js +28 -21
  44. package/dist-es/commands/ListParentsCommand.js +28 -21
  45. package/dist-es/commands/ListPoliciesCommand.js +28 -21
  46. package/dist-es/commands/ListPoliciesForTargetCommand.js +28 -21
  47. package/dist-es/commands/ListRootsCommand.js +28 -21
  48. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  49. package/dist-es/commands/ListTargetsForPolicyCommand.js +28 -21
  50. package/dist-es/commands/MoveAccountCommand.js +29 -22
  51. package/dist-es/commands/RegisterDelegatedAdministratorCommand.js +29 -22
  52. package/dist-es/commands/RemoveAccountFromOrganizationCommand.js +29 -22
  53. package/dist-es/commands/TagResourceCommand.js +29 -22
  54. package/dist-es/commands/UntagResourceCommand.js +29 -22
  55. package/dist-es/commands/UpdateOrganizationalUnitCommand.js +28 -21
  56. package/dist-es/commands/UpdatePolicyCommand.js +28 -21
  57. package/dist-es/endpoints.js +8 -8
  58. package/dist-es/models/OrganizationsServiceException.js +10 -5
  59. package/dist-es/models/models_0.js +720 -964
  60. package/dist-es/pagination/ListAWSServiceAccessForOrganizationPaginator.js +68 -25
  61. package/dist-es/pagination/ListAccountsForParentPaginator.js +68 -25
  62. package/dist-es/pagination/ListAccountsPaginator.js +68 -25
  63. package/dist-es/pagination/ListChildrenPaginator.js +68 -25
  64. package/dist-es/pagination/ListCreateAccountStatusPaginator.js +68 -25
  65. package/dist-es/pagination/ListDelegatedAdministratorsPaginator.js +68 -25
  66. package/dist-es/pagination/ListDelegatedServicesForAccountPaginator.js +68 -25
  67. package/dist-es/pagination/ListHandshakesForAccountPaginator.js +68 -25
  68. package/dist-es/pagination/ListHandshakesForOrganizationPaginator.js +68 -25
  69. package/dist-es/pagination/ListOrganizationalUnitsForParentPaginator.js +68 -25
  70. package/dist-es/pagination/ListParentsPaginator.js +68 -25
  71. package/dist-es/pagination/ListPoliciesForTargetPaginator.js +68 -25
  72. package/dist-es/pagination/ListPoliciesPaginator.js +68 -25
  73. package/dist-es/pagination/ListRootsPaginator.js +68 -25
  74. package/dist-es/pagination/ListTagsForResourcePaginator.js +67 -24
  75. package/dist-es/pagination/ListTargetsForPolicyPaginator.js +68 -25
  76. package/dist-es/protocols/Aws_json1_1.js +5453 -4139
  77. package/dist-es/runtimeConfig.browser.js +12 -26
  78. package/dist-es/runtimeConfig.js +12 -30
  79. package/dist-es/runtimeConfig.native.js +5 -8
  80. package/dist-es/runtimeConfig.shared.js +11 -8
  81. package/package.json +33 -33
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListParentsRequestFilterSensitiveLog, ListParentsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1ListParentsCommand, serializeAws_json1_1ListParentsCommand, } from "../protocols/Aws_json1_1";
5
- export class ListParentsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListParentsCommand = (function (_super) {
7
+ __extends(ListParentsCommand, _super);
8
+ function ListParentsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListParentsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "OrganizationsClient";
15
- const commandName = "ListParentsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "OrganizationsClient";
18
+ var commandName = "ListParentsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListParentsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListParentsResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListParentsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1ListParentsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListParentsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1ListParentsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListParentsCommand;
38
+ }($Command));
39
+ export { ListParentsCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListPoliciesRequestFilterSensitiveLog, ListPoliciesResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1ListPoliciesCommand, serializeAws_json1_1ListPoliciesCommand, } from "../protocols/Aws_json1_1";
5
- export class ListPoliciesCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListPoliciesCommand = (function (_super) {
7
+ __extends(ListPoliciesCommand, _super);
8
+ function ListPoliciesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListPoliciesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "OrganizationsClient";
15
- const commandName = "ListPoliciesCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "OrganizationsClient";
18
+ var commandName = "ListPoliciesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListPoliciesRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListPoliciesResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListPoliciesCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1ListPoliciesCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListPoliciesCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1ListPoliciesCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListPoliciesCommand;
38
+ }($Command));
39
+ export { ListPoliciesCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListPoliciesForTargetRequestFilterSensitiveLog, ListPoliciesForTargetResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1ListPoliciesForTargetCommand, serializeAws_json1_1ListPoliciesForTargetCommand, } from "../protocols/Aws_json1_1";
5
- export class ListPoliciesForTargetCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListPoliciesForTargetCommand = (function (_super) {
7
+ __extends(ListPoliciesForTargetCommand, _super);
8
+ function ListPoliciesForTargetCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListPoliciesForTargetCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "OrganizationsClient";
15
- const commandName = "ListPoliciesForTargetCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "OrganizationsClient";
18
+ var commandName = "ListPoliciesForTargetCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListPoliciesForTargetRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListPoliciesForTargetResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListPoliciesForTargetCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1ListPoliciesForTargetCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListPoliciesForTargetCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1ListPoliciesForTargetCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListPoliciesForTargetCommand;
38
+ }($Command));
39
+ export { ListPoliciesForTargetCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListRootsRequestFilterSensitiveLog, ListRootsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1ListRootsCommand, serializeAws_json1_1ListRootsCommand } from "../protocols/Aws_json1_1";
5
- export class ListRootsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListRootsCommand = (function (_super) {
7
+ __extends(ListRootsCommand, _super);
8
+ function ListRootsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListRootsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "OrganizationsClient";
15
- const commandName = "ListRootsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "OrganizationsClient";
18
+ var commandName = "ListRootsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListRootsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListRootsResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListRootsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1ListRootsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListRootsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1ListRootsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListRootsCommand;
38
+ }($Command));
39
+ export { ListRootsCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListTagsForResourceRequestFilterSensitiveLog, ListTagsForResourceResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1ListTagsForResourceCommand, serializeAws_json1_1ListTagsForResourceCommand, } from "../protocols/Aws_json1_1";
5
- export class ListTagsForResourceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListTagsForResourceCommand = (function (_super) {
7
+ __extends(ListTagsForResourceCommand, _super);
8
+ function ListTagsForResourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListTagsForResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "OrganizationsClient";
15
- const commandName = "ListTagsForResourceCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "OrganizationsClient";
18
+ var commandName = "ListTagsForResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListTagsForResourceRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListTagsForResourceResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListTagsForResourceCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1ListTagsForResourceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1ListTagsForResourceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListTagsForResourceCommand;
38
+ }($Command));
39
+ export { ListTagsForResourceCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListTargetsForPolicyRequestFilterSensitiveLog, ListTargetsForPolicyResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1ListTargetsForPolicyCommand, serializeAws_json1_1ListTargetsForPolicyCommand, } from "../protocols/Aws_json1_1";
5
- export class ListTargetsForPolicyCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListTargetsForPolicyCommand = (function (_super) {
7
+ __extends(ListTargetsForPolicyCommand, _super);
8
+ function ListTargetsForPolicyCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListTargetsForPolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "OrganizationsClient";
15
- const commandName = "ListTargetsForPolicyCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "OrganizationsClient";
18
+ var commandName = "ListTargetsForPolicyCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListTargetsForPolicyRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListTargetsForPolicyResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListTargetsForPolicyCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1ListTargetsForPolicyCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListTargetsForPolicyCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1ListTargetsForPolicyCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListTargetsForPolicyCommand;
38
+ }($Command));
39
+ export { ListTargetsForPolicyCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { MoveAccountRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_json1_1MoveAccountCommand, serializeAws_json1_1MoveAccountCommand, } from "../protocols/Aws_json1_1";
5
- export class MoveAccountCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var MoveAccountCommand = (function (_super) {
7
+ __extends(MoveAccountCommand, _super);
8
+ function MoveAccountCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ MoveAccountCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "OrganizationsClient";
15
- const commandName = "MoveAccountCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "OrganizationsClient";
18
+ var commandName = "MoveAccountCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: MoveAccountRequestFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ MoveAccountCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1MoveAccountCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ MoveAccountCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1MoveAccountCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return MoveAccountCommand;
38
+ }($Command));
39
+ export { MoveAccountCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { RegisterDelegatedAdministratorRequestFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1RegisterDelegatedAdministratorCommand, serializeAws_json1_1RegisterDelegatedAdministratorCommand, } from "../protocols/Aws_json1_1";
5
- export class RegisterDelegatedAdministratorCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var RegisterDelegatedAdministratorCommand = (function (_super) {
7
+ __extends(RegisterDelegatedAdministratorCommand, _super);
8
+ function RegisterDelegatedAdministratorCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ RegisterDelegatedAdministratorCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "OrganizationsClient";
15
- const commandName = "RegisterDelegatedAdministratorCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "OrganizationsClient";
18
+ var commandName = "RegisterDelegatedAdministratorCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: RegisterDelegatedAdministratorRequestFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ RegisterDelegatedAdministratorCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1RegisterDelegatedAdministratorCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ RegisterDelegatedAdministratorCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1RegisterDelegatedAdministratorCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return RegisterDelegatedAdministratorCommand;
38
+ }($Command));
39
+ export { RegisterDelegatedAdministratorCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { RemoveAccountFromOrganizationRequestFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1RemoveAccountFromOrganizationCommand, serializeAws_json1_1RemoveAccountFromOrganizationCommand, } from "../protocols/Aws_json1_1";
5
- export class RemoveAccountFromOrganizationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var RemoveAccountFromOrganizationCommand = (function (_super) {
7
+ __extends(RemoveAccountFromOrganizationCommand, _super);
8
+ function RemoveAccountFromOrganizationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ RemoveAccountFromOrganizationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "OrganizationsClient";
15
- const commandName = "RemoveAccountFromOrganizationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "OrganizationsClient";
18
+ var commandName = "RemoveAccountFromOrganizationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: RemoveAccountFromOrganizationRequestFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ RemoveAccountFromOrganizationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1RemoveAccountFromOrganizationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ RemoveAccountFromOrganizationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1RemoveAccountFromOrganizationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return RemoveAccountFromOrganizationCommand;
38
+ }($Command));
39
+ export { RemoveAccountFromOrganizationCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { TagResourceRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_json1_1TagResourceCommand, serializeAws_json1_1TagResourceCommand, } from "../protocols/Aws_json1_1";
5
- export class TagResourceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var TagResourceCommand = (function (_super) {
7
+ __extends(TagResourceCommand, _super);
8
+ function TagResourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ TagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "OrganizationsClient";
15
- const commandName = "TagResourceCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "OrganizationsClient";
18
+ var commandName = "TagResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: TagResourceRequestFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ TagResourceCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1TagResourceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ TagResourceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1TagResourceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return TagResourceCommand;
38
+ }($Command));
39
+ export { TagResourceCommand };