@aws-sdk/client-organizations 3.181.0 → 3.183.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 +8 -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,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var OrganizationsClient = (function (_super) {
13
- __extends(OrganizationsClient, _super);
14
- function OrganizationsClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class OrganizationsClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- OrganizationsClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return OrganizationsClient;
38
- }(__Client));
39
- export { OrganizationsClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
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 { AcceptHandshakeRequestFilterSensitiveLog, AcceptHandshakeResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1AcceptHandshakeCommand, serializeAws_json1_1AcceptHandshakeCommand, } from "../protocols/Aws_json1_1";
6
- var AcceptHandshakeCommand = (function (_super) {
7
- __extends(AcceptHandshakeCommand, _super);
8
- function AcceptHandshakeCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class AcceptHandshakeCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- AcceptHandshakeCommand.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 = "AcceptHandshakeCommand";
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 = "AcceptHandshakeCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: AcceptHandshakeRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: AcceptHandshakeResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- AcceptHandshakeCommand.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_1AcceptHandshakeCommand(input, context);
33
- };
34
- AcceptHandshakeCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1AcceptHandshakeCommand(output, context);
36
- };
37
- return AcceptHandshakeCommand;
38
- }($Command));
39
- export { AcceptHandshakeCommand };
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 { AttachPolicyRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_json1_1AttachPolicyCommand, serializeAws_json1_1AttachPolicyCommand, } from "../protocols/Aws_json1_1";
6
- var AttachPolicyCommand = (function (_super) {
7
- __extends(AttachPolicyCommand, _super);
8
- function AttachPolicyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class AttachPolicyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- AttachPolicyCommand.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 = "AttachPolicyCommand";
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 = "AttachPolicyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: AttachPolicyRequestFilterSensitiveLog,
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
- AttachPolicyCommand.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_1AttachPolicyCommand(input, context);
33
- };
34
- AttachPolicyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1AttachPolicyCommand(output, context);
36
- };
37
- return AttachPolicyCommand;
38
- }($Command));
39
- export { AttachPolicyCommand };
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 { CancelHandshakeRequestFilterSensitiveLog, CancelHandshakeResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CancelHandshakeCommand, serializeAws_json1_1CancelHandshakeCommand, } from "../protocols/Aws_json1_1";
6
- var CancelHandshakeCommand = (function (_super) {
7
- __extends(CancelHandshakeCommand, _super);
8
- function CancelHandshakeCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CancelHandshakeCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CancelHandshakeCommand.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 = "CancelHandshakeCommand";
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 = "CancelHandshakeCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CancelHandshakeRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CancelHandshakeResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CancelHandshakeCommand.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_1CancelHandshakeCommand(input, context);
33
- };
34
- CancelHandshakeCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CancelHandshakeCommand(output, context);
36
- };
37
- return CancelHandshakeCommand;
38
- }($Command));
39
- export { CancelHandshakeCommand };
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 { CloseAccountRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CloseAccountCommand, serializeAws_json1_1CloseAccountCommand, } from "../protocols/Aws_json1_1";
6
- var CloseAccountCommand = (function (_super) {
7
- __extends(CloseAccountCommand, _super);
8
- function CloseAccountCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CloseAccountCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CloseAccountCommand.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 = "CloseAccountCommand";
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 = "CloseAccountCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CloseAccountRequestFilterSensitiveLog,
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
- CloseAccountCommand.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_1CloseAccountCommand(input, context);
33
- };
34
- CloseAccountCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CloseAccountCommand(output, context);
36
- };
37
- return CloseAccountCommand;
38
- }($Command));
39
- export { CloseAccountCommand };
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 { CreateAccountRequestFilterSensitiveLog, CreateAccountResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateAccountCommand, serializeAws_json1_1CreateAccountCommand, } from "../protocols/Aws_json1_1";
6
- var CreateAccountCommand = (function (_super) {
7
- __extends(CreateAccountCommand, _super);
8
- function CreateAccountCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateAccountCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateAccountCommand.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 = "CreateAccountCommand";
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 = "CreateAccountCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateAccountRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateAccountResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateAccountCommand.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_1CreateAccountCommand(input, context);
33
- };
34
- CreateAccountCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateAccountCommand(output, context);
36
- };
37
- return CreateAccountCommand;
38
- }($Command));
39
- export { CreateAccountCommand };
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 { CreateGovCloudAccountRequestFilterSensitiveLog, CreateGovCloudAccountResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateGovCloudAccountCommand, serializeAws_json1_1CreateGovCloudAccountCommand, } from "../protocols/Aws_json1_1";
6
- var CreateGovCloudAccountCommand = (function (_super) {
7
- __extends(CreateGovCloudAccountCommand, _super);
8
- function CreateGovCloudAccountCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateGovCloudAccountCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateGovCloudAccountCommand.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 = "CreateGovCloudAccountCommand";
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 = "CreateGovCloudAccountCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateGovCloudAccountRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateGovCloudAccountResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateGovCloudAccountCommand.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_1CreateGovCloudAccountCommand(input, context);
33
- };
34
- CreateGovCloudAccountCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateGovCloudAccountCommand(output, context);
36
- };
37
- return CreateGovCloudAccountCommand;
38
- }($Command));
39
- export { CreateGovCloudAccountCommand };
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 { CreateOrganizationRequestFilterSensitiveLog, CreateOrganizationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateOrganizationCommand, serializeAws_json1_1CreateOrganizationCommand, } from "../protocols/Aws_json1_1";
6
- var CreateOrganizationCommand = (function (_super) {
7
- __extends(CreateOrganizationCommand, _super);
8
- function CreateOrganizationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateOrganizationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateOrganizationCommand.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 = "CreateOrganizationCommand";
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 = "CreateOrganizationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateOrganizationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateOrganizationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateOrganizationCommand.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_1CreateOrganizationCommand(input, context);
33
- };
34
- CreateOrganizationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateOrganizationCommand(output, context);
36
- };
37
- return CreateOrganizationCommand;
38
- }($Command));
39
- export { CreateOrganizationCommand };
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 { CreateOrganizationalUnitRequestFilterSensitiveLog, CreateOrganizationalUnitResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateOrganizationalUnitCommand, serializeAws_json1_1CreateOrganizationalUnitCommand, } from "../protocols/Aws_json1_1";
6
- var CreateOrganizationalUnitCommand = (function (_super) {
7
- __extends(CreateOrganizationalUnitCommand, _super);
8
- function CreateOrganizationalUnitCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateOrganizationalUnitCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateOrganizationalUnitCommand.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 = "CreateOrganizationalUnitCommand";
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 = "CreateOrganizationalUnitCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateOrganizationalUnitRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateOrganizationalUnitResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateOrganizationalUnitCommand.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_1CreateOrganizationalUnitCommand(input, context);
33
- };
34
- CreateOrganizationalUnitCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateOrganizationalUnitCommand(output, context);
36
- };
37
- return CreateOrganizationalUnitCommand;
38
- }($Command));
39
- export { CreateOrganizationalUnitCommand };
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 { CreatePolicyRequestFilterSensitiveLog, CreatePolicyResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreatePolicyCommand, serializeAws_json1_1CreatePolicyCommand, } from "../protocols/Aws_json1_1";
6
- var CreatePolicyCommand = (function (_super) {
7
- __extends(CreatePolicyCommand, _super);
8
- function CreatePolicyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreatePolicyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreatePolicyCommand.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 = "CreatePolicyCommand";
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 = "CreatePolicyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreatePolicyRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreatePolicyResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreatePolicyCommand.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_1CreatePolicyCommand(input, context);
33
- };
34
- CreatePolicyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreatePolicyCommand(output, context);
36
- };
37
- return CreatePolicyCommand;
38
- }($Command));
39
- export { CreatePolicyCommand };
31
+ }
32
+ }