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