@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,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 { DeclineHandshakeRequestFilterSensitiveLog, DeclineHandshakeResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeclineHandshakeCommand, serializeAws_json1_1DeclineHandshakeCommand, } from "../protocols/Aws_json1_1";
6
- var DeclineHandshakeCommand = (function (_super) {
7
- __extends(DeclineHandshakeCommand, _super);
8
- function DeclineHandshakeCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeclineHandshakeCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeclineHandshakeCommand.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 = "DeclineHandshakeCommand";
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 = "DeclineHandshakeCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeclineHandshakeRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeclineHandshakeResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeclineHandshakeCommand.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_1DeclineHandshakeCommand(input, context);
33
- };
34
- DeclineHandshakeCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeclineHandshakeCommand(output, context);
36
- };
37
- return DeclineHandshakeCommand;
38
- }($Command));
39
- export { DeclineHandshakeCommand };
31
+ }
32
+ }
@@ -1,38 +1,31 @@
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 { deserializeAws_json1_1DeleteOrganizationCommand, serializeAws_json1_1DeleteOrganizationCommand, } from "../protocols/Aws_json1_1";
5
- var DeleteOrganizationCommand = (function (_super) {
6
- __extends(DeleteOrganizationCommand, _super);
7
- function DeleteOrganizationCommand(input) {
8
- var _this = _super.call(this) || this;
9
- _this.input = input;
10
- return _this;
4
+ export class DeleteOrganizationCommand extends $Command {
5
+ constructor(input) {
6
+ super();
7
+ this.input = input;
11
8
  }
12
- DeleteOrganizationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
9
+ resolveMiddleware(clientStack, configuration, options) {
13
10
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
14
- var stack = clientStack.concat(this.middlewareStack);
15
- var logger = configuration.logger;
16
- var clientName = "OrganizationsClient";
17
- var commandName = "DeleteOrganizationCommand";
18
- var handlerExecutionContext = {
19
- logger: logger,
20
- clientName: clientName,
21
- commandName: commandName,
22
- inputFilterSensitiveLog: function (input) { return input; },
23
- outputFilterSensitiveLog: function (output) { return output; },
11
+ const stack = clientStack.concat(this.middlewareStack);
12
+ const { logger } = configuration;
13
+ const clientName = "OrganizationsClient";
14
+ const commandName = "DeleteOrganizationCommand";
15
+ const handlerExecutionContext = {
16
+ logger,
17
+ clientName,
18
+ commandName,
19
+ inputFilterSensitiveLog: (input) => input,
20
+ outputFilterSensitiveLog: (output) => output,
24
21
  };
25
- var requestHandler = configuration.requestHandler;
26
- return stack.resolve(function (request) {
27
- return requestHandler.handle(request.request, options || {});
28
- }, handlerExecutionContext);
29
- };
30
- DeleteOrganizationCommand.prototype.serialize = function (input, context) {
22
+ const { requestHandler } = configuration;
23
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
24
+ }
25
+ serialize(input, context) {
31
26
  return serializeAws_json1_1DeleteOrganizationCommand(input, context);
32
- };
33
- DeleteOrganizationCommand.prototype.deserialize = function (output, context) {
27
+ }
28
+ deserialize(output, context) {
34
29
  return deserializeAws_json1_1DeleteOrganizationCommand(output, context);
35
- };
36
- return DeleteOrganizationCommand;
37
- }($Command));
38
- export { DeleteOrganizationCommand };
30
+ }
31
+ }
@@ -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 { DeleteOrganizationalUnitRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeleteOrganizationalUnitCommand, serializeAws_json1_1DeleteOrganizationalUnitCommand, } from "../protocols/Aws_json1_1";
6
- var DeleteOrganizationalUnitCommand = (function (_super) {
7
- __extends(DeleteOrganizationalUnitCommand, _super);
8
- function DeleteOrganizationalUnitCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteOrganizationalUnitCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteOrganizationalUnitCommand.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 = "DeleteOrganizationalUnitCommand";
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 = "DeleteOrganizationalUnitCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteOrganizationalUnitRequestFilterSensitiveLog,
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
- DeleteOrganizationalUnitCommand.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_1DeleteOrganizationalUnitCommand(input, context);
33
- };
34
- DeleteOrganizationalUnitCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeleteOrganizationalUnitCommand(output, context);
36
- };
37
- return DeleteOrganizationalUnitCommand;
38
- }($Command));
39
- export { DeleteOrganizationalUnitCommand };
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 { DeletePolicyRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeletePolicyCommand, serializeAws_json1_1DeletePolicyCommand, } from "../protocols/Aws_json1_1";
6
- var DeletePolicyCommand = (function (_super) {
7
- __extends(DeletePolicyCommand, _super);
8
- function DeletePolicyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeletePolicyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeletePolicyCommand.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 = "DeletePolicyCommand";
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 = "DeletePolicyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeletePolicyRequestFilterSensitiveLog,
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
- DeletePolicyCommand.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_1DeletePolicyCommand(input, context);
33
- };
34
- DeletePolicyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeletePolicyCommand(output, context);
36
- };
37
- return DeletePolicyCommand;
38
- }($Command));
39
- export { DeletePolicyCommand };
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 { DeregisterDelegatedAdministratorRequestFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeregisterDelegatedAdministratorCommand, serializeAws_json1_1DeregisterDelegatedAdministratorCommand, } from "../protocols/Aws_json1_1";
6
- var DeregisterDelegatedAdministratorCommand = (function (_super) {
7
- __extends(DeregisterDelegatedAdministratorCommand, _super);
8
- function DeregisterDelegatedAdministratorCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeregisterDelegatedAdministratorCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeregisterDelegatedAdministratorCommand.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 = "DeregisterDelegatedAdministratorCommand";
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 = "DeregisterDelegatedAdministratorCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeregisterDelegatedAdministratorRequestFilterSensitiveLog,
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
- DeregisterDelegatedAdministratorCommand.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_1DeregisterDelegatedAdministratorCommand(input, context);
33
- };
34
- DeregisterDelegatedAdministratorCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeregisterDelegatedAdministratorCommand(output, context);
36
- };
37
- return DeregisterDelegatedAdministratorCommand;
38
- }($Command));
39
- export { DeregisterDelegatedAdministratorCommand };
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 { DescribeAccountRequestFilterSensitiveLog, DescribeAccountResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeAccountCommand, serializeAws_json1_1DescribeAccountCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeAccountCommand = (function (_super) {
7
- __extends(DescribeAccountCommand, _super);
8
- function DescribeAccountCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeAccountCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeAccountCommand.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 = "DescribeAccountCommand";
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 = "DescribeAccountCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeAccountRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeAccountResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeAccountCommand.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_1DescribeAccountCommand(input, context);
33
- };
34
- DescribeAccountCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeAccountCommand(output, context);
36
- };
37
- return DescribeAccountCommand;
38
- }($Command));
39
- export { DescribeAccountCommand };
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 { DescribeCreateAccountStatusRequestFilterSensitiveLog, DescribeCreateAccountStatusResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeCreateAccountStatusCommand, serializeAws_json1_1DescribeCreateAccountStatusCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeCreateAccountStatusCommand = (function (_super) {
7
- __extends(DescribeCreateAccountStatusCommand, _super);
8
- function DescribeCreateAccountStatusCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeCreateAccountStatusCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeCreateAccountStatusCommand.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 = "DescribeCreateAccountStatusCommand";
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 = "DescribeCreateAccountStatusCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeCreateAccountStatusRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeCreateAccountStatusResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeCreateAccountStatusCommand.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_1DescribeCreateAccountStatusCommand(input, context);
33
- };
34
- DescribeCreateAccountStatusCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeCreateAccountStatusCommand(output, context);
36
- };
37
- return DescribeCreateAccountStatusCommand;
38
- }($Command));
39
- export { DescribeCreateAccountStatusCommand };
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 { DescribeEffectivePolicyRequestFilterSensitiveLog, DescribeEffectivePolicyResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeEffectivePolicyCommand, serializeAws_json1_1DescribeEffectivePolicyCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeEffectivePolicyCommand = (function (_super) {
7
- __extends(DescribeEffectivePolicyCommand, _super);
8
- function DescribeEffectivePolicyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeEffectivePolicyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeEffectivePolicyCommand.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 = "DescribeEffectivePolicyCommand";
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 = "DescribeEffectivePolicyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeEffectivePolicyRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeEffectivePolicyResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeEffectivePolicyCommand.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_1DescribeEffectivePolicyCommand(input, context);
33
- };
34
- DescribeEffectivePolicyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeEffectivePolicyCommand(output, context);
36
- };
37
- return DescribeEffectivePolicyCommand;
38
- }($Command));
39
- export { DescribeEffectivePolicyCommand };
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 { DescribeHandshakeRequestFilterSensitiveLog, DescribeHandshakeResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeHandshakeCommand, serializeAws_json1_1DescribeHandshakeCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeHandshakeCommand = (function (_super) {
7
- __extends(DescribeHandshakeCommand, _super);
8
- function DescribeHandshakeCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeHandshakeCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeHandshakeCommand.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 = "DescribeHandshakeCommand";
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 = "DescribeHandshakeCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeHandshakeRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeHandshakeResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeHandshakeCommand.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_1DescribeHandshakeCommand(input, context);
33
- };
34
- DescribeHandshakeCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeHandshakeCommand(output, context);
36
- };
37
- return DescribeHandshakeCommand;
38
- }($Command));
39
- export { DescribeHandshakeCommand };
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 { DescribeOrganizationResponseFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeOrganizationCommand, serializeAws_json1_1DescribeOrganizationCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeOrganizationCommand = (function (_super) {
7
- __extends(DescribeOrganizationCommand, _super);
8
- function DescribeOrganizationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeOrganizationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeOrganizationCommand.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 = "DescribeOrganizationCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
23
- inputFilterSensitiveLog: function (input) { return input; },
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "OrganizationsClient";
15
+ const commandName = "DescribeOrganizationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
20
+ inputFilterSensitiveLog: (input) => input,
24
21
  outputFilterSensitiveLog: DescribeOrganizationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeOrganizationCommand.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_1DescribeOrganizationCommand(input, context);
33
- };
34
- DescribeOrganizationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeOrganizationCommand(output, context);
36
- };
37
- return DescribeOrganizationCommand;
38
- }($Command));
39
- export { DescribeOrganizationCommand };
31
+ }
32
+ }