@aws-sdk/client-controltower 3.478.0 → 3.481.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 (69) hide show
  1. package/dist-cjs/commands/CreateLandingZoneCommand.js +18 -41
  2. package/dist-cjs/commands/DeleteLandingZoneCommand.js +18 -41
  3. package/dist-cjs/commands/DisableControlCommand.js +18 -41
  4. package/dist-cjs/commands/EnableControlCommand.js +18 -41
  5. package/dist-cjs/commands/GetControlOperationCommand.js +18 -41
  6. package/dist-cjs/commands/GetEnabledControlCommand.js +18 -41
  7. package/dist-cjs/commands/GetLandingZoneCommand.js +18 -41
  8. package/dist-cjs/commands/GetLandingZoneOperationCommand.js +18 -41
  9. package/dist-cjs/commands/ListEnabledControlsCommand.js +18 -41
  10. package/dist-cjs/commands/ListLandingZonesCommand.js +18 -41
  11. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  12. package/dist-cjs/commands/ResetLandingZoneCommand.js +18 -41
  13. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  14. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  15. package/dist-cjs/commands/UpdateEnabledControlCommand.js +18 -41
  16. package/dist-cjs/commands/UpdateLandingZoneCommand.js +18 -41
  17. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  18. package/dist-es/commands/CreateLandingZoneCommand.js +18 -41
  19. package/dist-es/commands/DeleteLandingZoneCommand.js +18 -41
  20. package/dist-es/commands/DisableControlCommand.js +18 -41
  21. package/dist-es/commands/EnableControlCommand.js +18 -41
  22. package/dist-es/commands/GetControlOperationCommand.js +18 -41
  23. package/dist-es/commands/GetEnabledControlCommand.js +18 -41
  24. package/dist-es/commands/GetLandingZoneCommand.js +18 -41
  25. package/dist-es/commands/GetLandingZoneOperationCommand.js +18 -41
  26. package/dist-es/commands/ListEnabledControlsCommand.js +18 -41
  27. package/dist-es/commands/ListLandingZonesCommand.js +18 -41
  28. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  29. package/dist-es/commands/ResetLandingZoneCommand.js +18 -41
  30. package/dist-es/commands/TagResourceCommand.js +18 -41
  31. package/dist-es/commands/UntagResourceCommand.js +18 -41
  32. package/dist-es/commands/UpdateEnabledControlCommand.js +18 -41
  33. package/dist-es/commands/UpdateLandingZoneCommand.js +18 -41
  34. package/dist-es/endpoint/EndpointParameters.js +6 -0
  35. package/dist-types/commands/CreateLandingZoneCommand.d.ts +6 -21
  36. package/dist-types/commands/DeleteLandingZoneCommand.d.ts +6 -21
  37. package/dist-types/commands/DisableControlCommand.d.ts +6 -21
  38. package/dist-types/commands/EnableControlCommand.d.ts +6 -21
  39. package/dist-types/commands/GetControlOperationCommand.d.ts +6 -21
  40. package/dist-types/commands/GetEnabledControlCommand.d.ts +6 -21
  41. package/dist-types/commands/GetLandingZoneCommand.d.ts +6 -21
  42. package/dist-types/commands/GetLandingZoneOperationCommand.d.ts +6 -21
  43. package/dist-types/commands/ListEnabledControlsCommand.d.ts +6 -21
  44. package/dist-types/commands/ListLandingZonesCommand.d.ts +6 -21
  45. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  46. package/dist-types/commands/ResetLandingZoneCommand.d.ts +6 -21
  47. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  48. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  49. package/dist-types/commands/UpdateEnabledControlCommand.d.ts +6 -21
  50. package/dist-types/commands/UpdateLandingZoneCommand.d.ts +6 -21
  51. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  52. package/dist-types/ts3.4/commands/CreateLandingZoneCommand.d.ts +14 -23
  53. package/dist-types/ts3.4/commands/DeleteLandingZoneCommand.d.ts +14 -23
  54. package/dist-types/ts3.4/commands/DisableControlCommand.d.ts +14 -23
  55. package/dist-types/ts3.4/commands/EnableControlCommand.d.ts +14 -23
  56. package/dist-types/ts3.4/commands/GetControlOperationCommand.d.ts +14 -23
  57. package/dist-types/ts3.4/commands/GetEnabledControlCommand.d.ts +14 -23
  58. package/dist-types/ts3.4/commands/GetLandingZoneCommand.d.ts +14 -23
  59. package/dist-types/ts3.4/commands/GetLandingZoneOperationCommand.d.ts +12 -24
  60. package/dist-types/ts3.4/commands/ListEnabledControlsCommand.d.ts +14 -23
  61. package/dist-types/ts3.4/commands/ListLandingZonesCommand.d.ts +14 -23
  62. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  63. package/dist-types/ts3.4/commands/ResetLandingZoneCommand.d.ts +14 -23
  64. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  65. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  66. package/dist-types/ts3.4/commands/UpdateEnabledControlCommand.d.ts +12 -24
  67. package/dist-types/ts3.4/commands/UpdateLandingZoneCommand.d.ts +14 -23
  68. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  69. package/package.json +9 -9
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class CreateLandingZoneCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateLandingZoneCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ControlTowerClient";
29
- const commandName = "CreateLandingZoneCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AWSControlTowerApis",
38
- operation: "CreateLandingZone",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_CreateLandingZoneCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_CreateLandingZoneCommand)(output, context);
49
- }
10
+ class CreateLandingZoneCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AWSControlTowerApis", "CreateLandingZone", {})
22
+ .n("ControlTowerClient", "CreateLandingZoneCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_CreateLandingZoneCommand)
25
+ .de(Aws_restJson1_1.de_CreateLandingZoneCommand)
26
+ .build() {
50
27
  }
51
28
  exports.CreateLandingZoneCommand = CreateLandingZoneCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class DeleteLandingZoneCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteLandingZoneCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ControlTowerClient";
29
- const commandName = "DeleteLandingZoneCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AWSControlTowerApis",
38
- operation: "DeleteLandingZone",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_DeleteLandingZoneCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_DeleteLandingZoneCommand)(output, context);
49
- }
10
+ class DeleteLandingZoneCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AWSControlTowerApis", "DeleteLandingZone", {})
22
+ .n("ControlTowerClient", "DeleteLandingZoneCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_DeleteLandingZoneCommand)
25
+ .de(Aws_restJson1_1.de_DeleteLandingZoneCommand)
26
+ .build() {
50
27
  }
51
28
  exports.DeleteLandingZoneCommand = DeleteLandingZoneCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class DisableControlCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DisableControlCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ControlTowerClient";
29
- const commandName = "DisableControlCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AWSControlTowerApis",
38
- operation: "DisableControl",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_DisableControlCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_DisableControlCommand)(output, context);
49
- }
10
+ class DisableControlCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AWSControlTowerApis", "DisableControl", {})
22
+ .n("ControlTowerClient", "DisableControlCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_DisableControlCommand)
25
+ .de(Aws_restJson1_1.de_DisableControlCommand)
26
+ .build() {
50
27
  }
51
28
  exports.DisableControlCommand = DisableControlCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class EnableControlCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, EnableControlCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ControlTowerClient";
29
- const commandName = "EnableControlCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AWSControlTowerApis",
38
- operation: "EnableControl",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_EnableControlCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_EnableControlCommand)(output, context);
49
- }
10
+ class EnableControlCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AWSControlTowerApis", "EnableControl", {})
22
+ .n("ControlTowerClient", "EnableControlCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_EnableControlCommand)
25
+ .de(Aws_restJson1_1.de_EnableControlCommand)
26
+ .build() {
50
27
  }
51
28
  exports.EnableControlCommand = EnableControlCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class GetControlOperationCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetControlOperationCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ControlTowerClient";
29
- const commandName = "GetControlOperationCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AWSControlTowerApis",
38
- operation: "GetControlOperation",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_GetControlOperationCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_GetControlOperationCommand)(output, context);
49
- }
10
+ class GetControlOperationCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AWSControlTowerApis", "GetControlOperation", {})
22
+ .n("ControlTowerClient", "GetControlOperationCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_GetControlOperationCommand)
25
+ .de(Aws_restJson1_1.de_GetControlOperationCommand)
26
+ .build() {
50
27
  }
51
28
  exports.GetControlOperationCommand = GetControlOperationCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class GetEnabledControlCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetEnabledControlCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ControlTowerClient";
29
- const commandName = "GetEnabledControlCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AWSControlTowerApis",
38
- operation: "GetEnabledControl",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_GetEnabledControlCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_GetEnabledControlCommand)(output, context);
49
- }
10
+ class GetEnabledControlCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AWSControlTowerApis", "GetEnabledControl", {})
22
+ .n("ControlTowerClient", "GetEnabledControlCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_GetEnabledControlCommand)
25
+ .de(Aws_restJson1_1.de_GetEnabledControlCommand)
26
+ .build() {
50
27
  }
51
28
  exports.GetEnabledControlCommand = GetEnabledControlCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class GetLandingZoneCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetLandingZoneCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ControlTowerClient";
29
- const commandName = "GetLandingZoneCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AWSControlTowerApis",
38
- operation: "GetLandingZone",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_GetLandingZoneCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_GetLandingZoneCommand)(output, context);
49
- }
10
+ class GetLandingZoneCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AWSControlTowerApis", "GetLandingZone", {})
22
+ .n("ControlTowerClient", "GetLandingZoneCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_GetLandingZoneCommand)
25
+ .de(Aws_restJson1_1.de_GetLandingZoneCommand)
26
+ .build() {
50
27
  }
51
28
  exports.GetLandingZoneCommand = GetLandingZoneCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class GetLandingZoneOperationCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetLandingZoneOperationCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ControlTowerClient";
29
- const commandName = "GetLandingZoneOperationCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AWSControlTowerApis",
38
- operation: "GetLandingZoneOperation",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_GetLandingZoneOperationCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_GetLandingZoneOperationCommand)(output, context);
49
- }
10
+ class GetLandingZoneOperationCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AWSControlTowerApis", "GetLandingZoneOperation", {})
22
+ .n("ControlTowerClient", "GetLandingZoneOperationCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_GetLandingZoneOperationCommand)
25
+ .de(Aws_restJson1_1.de_GetLandingZoneOperationCommand)
26
+ .build() {
50
27
  }
51
28
  exports.GetLandingZoneOperationCommand = GetLandingZoneOperationCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class ListEnabledControlsCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListEnabledControlsCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ControlTowerClient";
29
- const commandName = "ListEnabledControlsCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AWSControlTowerApis",
38
- operation: "ListEnabledControls",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_ListEnabledControlsCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_ListEnabledControlsCommand)(output, context);
49
- }
10
+ class ListEnabledControlsCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AWSControlTowerApis", "ListEnabledControls", {})
22
+ .n("ControlTowerClient", "ListEnabledControlsCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_ListEnabledControlsCommand)
25
+ .de(Aws_restJson1_1.de_ListEnabledControlsCommand)
26
+ .build() {
50
27
  }
51
28
  exports.ListEnabledControlsCommand = ListEnabledControlsCommand;