@aws-sdk/client-controltower 3.1076.0 → 3.1078.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 (104) hide show
  1. package/dist-cjs/index.js +39 -285
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/CreateLandingZoneCommand.js +2 -14
  4. package/dist-es/commands/DeleteLandingZoneCommand.js +2 -14
  5. package/dist-es/commands/DisableBaselineCommand.js +2 -14
  6. package/dist-es/commands/DisableControlCommand.js +2 -14
  7. package/dist-es/commands/EnableBaselineCommand.js +2 -14
  8. package/dist-es/commands/EnableControlCommand.js +2 -14
  9. package/dist-es/commands/GetBaselineCommand.js +2 -14
  10. package/dist-es/commands/GetBaselineOperationCommand.js +2 -14
  11. package/dist-es/commands/GetControlOperationCommand.js +2 -14
  12. package/dist-es/commands/GetEnabledBaselineCommand.js +2 -14
  13. package/dist-es/commands/GetEnabledControlCommand.js +2 -14
  14. package/dist-es/commands/GetLandingZoneCommand.js +2 -14
  15. package/dist-es/commands/GetLandingZoneOperationCommand.js +2 -14
  16. package/dist-es/commands/ListBaselinesCommand.js +2 -14
  17. package/dist-es/commands/ListControlOperationsCommand.js +2 -14
  18. package/dist-es/commands/ListEnabledBaselinesCommand.js +2 -14
  19. package/dist-es/commands/ListEnabledControlsCommand.js +2 -14
  20. package/dist-es/commands/ListLandingZoneOperationsCommand.js +2 -14
  21. package/dist-es/commands/ListLandingZonesCommand.js +2 -14
  22. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  23. package/dist-es/commands/ResetEnabledBaselineCommand.js +2 -14
  24. package/dist-es/commands/ResetEnabledControlCommand.js +2 -14
  25. package/dist-es/commands/ResetLandingZoneCommand.js +2 -14
  26. package/dist-es/commands/TagResourceCommand.js +2 -14
  27. package/dist-es/commands/UntagResourceCommand.js +2 -14
  28. package/dist-es/commands/UpdateEnabledBaselineCommand.js +2 -14
  29. package/dist-es/commands/UpdateEnabledControlCommand.js +2 -14
  30. package/dist-es/commands/UpdateLandingZoneCommand.js +2 -14
  31. package/dist-es/index.js +1 -0
  32. package/dist-es/runtimeConfig.browser.js +0 -2
  33. package/dist-es/runtimeConfig.js +1 -2
  34. package/dist-es/runtimeConfig.native.js +0 -2
  35. package/dist-es/runtimeConfig.shared.js +2 -0
  36. package/dist-types/commandBuilder.d.ts +18 -0
  37. package/dist-types/commands/CreateLandingZoneCommand.d.ts +3 -8
  38. package/dist-types/commands/DeleteLandingZoneCommand.d.ts +3 -8
  39. package/dist-types/commands/DisableBaselineCommand.d.ts +3 -8
  40. package/dist-types/commands/DisableControlCommand.d.ts +3 -8
  41. package/dist-types/commands/EnableBaselineCommand.d.ts +3 -8
  42. package/dist-types/commands/EnableControlCommand.d.ts +3 -8
  43. package/dist-types/commands/GetBaselineCommand.d.ts +3 -8
  44. package/dist-types/commands/GetBaselineOperationCommand.d.ts +3 -8
  45. package/dist-types/commands/GetControlOperationCommand.d.ts +3 -8
  46. package/dist-types/commands/GetEnabledBaselineCommand.d.ts +3 -8
  47. package/dist-types/commands/GetEnabledControlCommand.d.ts +3 -8
  48. package/dist-types/commands/GetLandingZoneCommand.d.ts +3 -8
  49. package/dist-types/commands/GetLandingZoneOperationCommand.d.ts +3 -8
  50. package/dist-types/commands/ListBaselinesCommand.d.ts +3 -8
  51. package/dist-types/commands/ListControlOperationsCommand.d.ts +3 -8
  52. package/dist-types/commands/ListEnabledBaselinesCommand.d.ts +3 -8
  53. package/dist-types/commands/ListEnabledControlsCommand.d.ts +3 -8
  54. package/dist-types/commands/ListLandingZoneOperationsCommand.d.ts +3 -8
  55. package/dist-types/commands/ListLandingZonesCommand.d.ts +3 -8
  56. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  57. package/dist-types/commands/ResetEnabledBaselineCommand.d.ts +3 -8
  58. package/dist-types/commands/ResetEnabledControlCommand.d.ts +3 -8
  59. package/dist-types/commands/ResetLandingZoneCommand.d.ts +3 -8
  60. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  61. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  62. package/dist-types/commands/UpdateEnabledBaselineCommand.d.ts +3 -8
  63. package/dist-types/commands/UpdateEnabledControlCommand.d.ts +3 -8
  64. package/dist-types/commands/UpdateLandingZoneCommand.d.ts +3 -8
  65. package/dist-types/index.d.ts +1 -0
  66. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  67. package/dist-types/runtimeConfig.d.ts +1 -1
  68. package/dist-types/runtimeConfig.native.d.ts +1 -1
  69. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  70. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  71. package/dist-types/ts3.4/commands/CreateLandingZoneCommand.d.ts +7 -16
  72. package/dist-types/ts3.4/commands/DeleteLandingZoneCommand.d.ts +7 -16
  73. package/dist-types/ts3.4/commands/DisableBaselineCommand.d.ts +7 -16
  74. package/dist-types/ts3.4/commands/DisableControlCommand.d.ts +7 -16
  75. package/dist-types/ts3.4/commands/EnableBaselineCommand.d.ts +7 -16
  76. package/dist-types/ts3.4/commands/EnableControlCommand.d.ts +7 -16
  77. package/dist-types/ts3.4/commands/GetBaselineCommand.d.ts +7 -16
  78. package/dist-types/ts3.4/commands/GetBaselineOperationCommand.d.ts +7 -16
  79. package/dist-types/ts3.4/commands/GetControlOperationCommand.d.ts +7 -16
  80. package/dist-types/ts3.4/commands/GetEnabledBaselineCommand.d.ts +7 -16
  81. package/dist-types/ts3.4/commands/GetEnabledControlCommand.d.ts +7 -16
  82. package/dist-types/ts3.4/commands/GetLandingZoneCommand.d.ts +7 -16
  83. package/dist-types/ts3.4/commands/GetLandingZoneOperationCommand.d.ts +7 -16
  84. package/dist-types/ts3.4/commands/ListBaselinesCommand.d.ts +7 -16
  85. package/dist-types/ts3.4/commands/ListControlOperationsCommand.d.ts +7 -16
  86. package/dist-types/ts3.4/commands/ListEnabledBaselinesCommand.d.ts +7 -16
  87. package/dist-types/ts3.4/commands/ListEnabledControlsCommand.d.ts +7 -16
  88. package/dist-types/ts3.4/commands/ListLandingZoneOperationsCommand.d.ts +7 -16
  89. package/dist-types/ts3.4/commands/ListLandingZonesCommand.d.ts +7 -16
  90. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  91. package/dist-types/ts3.4/commands/ResetEnabledBaselineCommand.d.ts +7 -16
  92. package/dist-types/ts3.4/commands/ResetEnabledControlCommand.d.ts +7 -16
  93. package/dist-types/ts3.4/commands/ResetLandingZoneCommand.d.ts +7 -16
  94. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  95. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  96. package/dist-types/ts3.4/commands/UpdateEnabledBaselineCommand.d.ts +7 -16
  97. package/dist-types/ts3.4/commands/UpdateEnabledControlCommand.d.ts +7 -16
  98. package/dist-types/ts3.4/commands/UpdateLandingZoneCommand.d.ts +7 -16
  99. package/dist-types/ts3.4/index.d.ts +1 -0
  100. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  101. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  102. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  103. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  104. package/package.json +8 -10
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetLandingZone$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetLandingZoneCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSControlTowerApis", "GetLandingZone", {})
13
- .n("ControlTowerClient", "GetLandingZoneCommand")
14
- .sc(GetLandingZone$)
15
- .build() {
3
+ export class GetLandingZoneCommand extends command(_ep0, _mw0, "GetLandingZone", GetLandingZone$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetLandingZoneOperation$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetLandingZoneOperationCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSControlTowerApis", "GetLandingZoneOperation", {})
13
- .n("ControlTowerClient", "GetLandingZoneOperationCommand")
14
- .sc(GetLandingZoneOperation$)
15
- .build() {
3
+ export class GetLandingZoneOperationCommand extends command(_ep0, _mw0, "GetLandingZoneOperation", GetLandingZoneOperation$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListBaselines$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListBaselinesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSControlTowerApis", "ListBaselines", {})
13
- .n("ControlTowerClient", "ListBaselinesCommand")
14
- .sc(ListBaselines$)
15
- .build() {
3
+ export class ListBaselinesCommand extends command(_ep0, _mw0, "ListBaselines", ListBaselines$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListControlOperations$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListControlOperationsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSControlTowerApis", "ListControlOperations", {})
13
- .n("ControlTowerClient", "ListControlOperationsCommand")
14
- .sc(ListControlOperations$)
15
- .build() {
3
+ export class ListControlOperationsCommand extends command(_ep0, _mw0, "ListControlOperations", ListControlOperations$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListEnabledBaselines$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListEnabledBaselinesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSControlTowerApis", "ListEnabledBaselines", {})
13
- .n("ControlTowerClient", "ListEnabledBaselinesCommand")
14
- .sc(ListEnabledBaselines$)
15
- .build() {
3
+ export class ListEnabledBaselinesCommand extends command(_ep0, _mw0, "ListEnabledBaselines", ListEnabledBaselines$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListEnabledControls$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListEnabledControlsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSControlTowerApis", "ListEnabledControls", {})
13
- .n("ControlTowerClient", "ListEnabledControlsCommand")
14
- .sc(ListEnabledControls$)
15
- .build() {
3
+ export class ListEnabledControlsCommand extends command(_ep0, _mw0, "ListEnabledControls", ListEnabledControls$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListLandingZoneOperations$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListLandingZoneOperationsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSControlTowerApis", "ListLandingZoneOperations", {})
13
- .n("ControlTowerClient", "ListLandingZoneOperationsCommand")
14
- .sc(ListLandingZoneOperations$)
15
- .build() {
3
+ export class ListLandingZoneOperationsCommand extends command(_ep0, _mw0, "ListLandingZoneOperations", ListLandingZoneOperations$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListLandingZones$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListLandingZonesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSControlTowerApis", "ListLandingZones", {})
13
- .n("ControlTowerClient", "ListLandingZonesCommand")
14
- .sc(ListLandingZones$)
15
- .build() {
3
+ export class ListLandingZonesCommand extends command(_ep0, _mw0, "ListLandingZones", ListLandingZones$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListTagsForResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListTagsForResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSControlTowerApis", "ListTagsForResource", {})
13
- .n("ControlTowerClient", "ListTagsForResourceCommand")
14
- .sc(ListTagsForResource$)
15
- .build() {
3
+ export class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ResetEnabledBaseline$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ResetEnabledBaselineCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSControlTowerApis", "ResetEnabledBaseline", {})
13
- .n("ControlTowerClient", "ResetEnabledBaselineCommand")
14
- .sc(ResetEnabledBaseline$)
15
- .build() {
3
+ export class ResetEnabledBaselineCommand extends command(_ep0, _mw0, "ResetEnabledBaseline", ResetEnabledBaseline$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ResetEnabledControl$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ResetEnabledControlCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSControlTowerApis", "ResetEnabledControl", {})
13
- .n("ControlTowerClient", "ResetEnabledControlCommand")
14
- .sc(ResetEnabledControl$)
15
- .build() {
3
+ export class ResetEnabledControlCommand extends command(_ep0, _mw0, "ResetEnabledControl", ResetEnabledControl$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ResetLandingZone$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ResetLandingZoneCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSControlTowerApis", "ResetLandingZone", {})
13
- .n("ControlTowerClient", "ResetLandingZoneCommand")
14
- .sc(ResetLandingZone$)
15
- .build() {
3
+ export class ResetLandingZoneCommand extends command(_ep0, _mw0, "ResetLandingZone", ResetLandingZone$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { TagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class TagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSControlTowerApis", "TagResource", {})
13
- .n("ControlTowerClient", "TagResourceCommand")
14
- .sc(TagResource$)
15
- .build() {
3
+ export class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UntagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UntagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSControlTowerApis", "UntagResource", {})
13
- .n("ControlTowerClient", "UntagResourceCommand")
14
- .sc(UntagResource$)
15
- .build() {
3
+ export class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UpdateEnabledBaseline$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateEnabledBaselineCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSControlTowerApis", "UpdateEnabledBaseline", {})
13
- .n("ControlTowerClient", "UpdateEnabledBaselineCommand")
14
- .sc(UpdateEnabledBaseline$)
15
- .build() {
3
+ export class UpdateEnabledBaselineCommand extends command(_ep0, _mw0, "UpdateEnabledBaseline", UpdateEnabledBaseline$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UpdateEnabledControl$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateEnabledControlCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSControlTowerApis", "UpdateEnabledControl", {})
13
- .n("ControlTowerClient", "UpdateEnabledControlCommand")
14
- .sc(UpdateEnabledControl$)
15
- .build() {
3
+ export class UpdateEnabledControlCommand extends command(_ep0, _mw0, "UpdateEnabledControl", UpdateEnabledControl$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UpdateLandingZone$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateLandingZoneCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSControlTowerApis", "UpdateLandingZone", {})
13
- .n("ControlTowerClient", "UpdateLandingZoneCommand")
14
- .sc(UpdateLandingZone$)
15
- .build() {
3
+ export class UpdateLandingZoneCommand extends command(_ep0, _mw0, "UpdateLandingZone", UpdateLandingZone$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./ControlTowerClient";
2
2
  export * from "./ControlTower";
3
3
  export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
4
5
  export * from "./schemas/schemas_0";
5
6
  export * from "./pagination";
6
7
  export * from "./models/enums";
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
11
  export const getRuntimeConfig = (config) => {
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
35
35
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
36
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
37
  }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
38
  streamCollector: config?.streamCollector ?? streamCollector,
40
39
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
40
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
31
32
  serviceTarget: "AWSControlTowerApis",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "ControlTower",
35
+ sha256: config?.sha256 ?? Sha256,
34
36
  urlParser: config?.urlParser ?? parseUrl,
35
37
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
38
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { ControlTowerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./ControlTowerClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
+ new (input: I): import("@smithy/core/client").CommandImpl<I, O, ControlTowerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, ControlTowerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
9
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
10
+ };
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { ControlTowerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ControlTowerClient";
4
2
  import type { CreateLandingZoneInput, CreateLandingZoneOutput } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface CreateLandingZoneCommandInput extends CreateLandingZoneInput {
22
19
  export interface CreateLandingZoneCommandOutput extends CreateLandingZoneOutput, __MetadataBearer {
23
20
  }
24
21
  declare const CreateLandingZoneCommand_base: {
25
- new (input: CreateLandingZoneCommandInput): import("@smithy/core/client").CommandImpl<CreateLandingZoneCommandInput, CreateLandingZoneCommandOutput, ControlTowerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateLandingZoneCommandInput): import("@smithy/core/client").CommandImpl<CreateLandingZoneCommandInput, CreateLandingZoneCommandOutput, ControlTowerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateLandingZoneCommandInput): import("@smithy/core/client").CommandImpl<CreateLandingZoneCommandInput, CreateLandingZoneCommandOutput, import("..").ControlTowerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateLandingZoneCommandInput): import("@smithy/core/client").CommandImpl<CreateLandingZoneCommandInput, CreateLandingZoneCommandOutput, import("..").ControlTowerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates a new landing zone. This API call starts an asynchronous operation that creates and configures a landing zone, based on the parameters specified in the manifest JSON file.</p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { ControlTowerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ControlTowerClient";
4
2
  import type { DeleteLandingZoneInput, DeleteLandingZoneOutput } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface DeleteLandingZoneCommandInput extends DeleteLandingZoneInput {
22
19
  export interface DeleteLandingZoneCommandOutput extends DeleteLandingZoneOutput, __MetadataBearer {
23
20
  }
24
21
  declare const DeleteLandingZoneCommand_base: {
25
- new (input: DeleteLandingZoneCommandInput): import("@smithy/core/client").CommandImpl<DeleteLandingZoneCommandInput, DeleteLandingZoneCommandOutput, ControlTowerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DeleteLandingZoneCommandInput): import("@smithy/core/client").CommandImpl<DeleteLandingZoneCommandInput, DeleteLandingZoneCommandOutput, ControlTowerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DeleteLandingZoneCommandInput): import("@smithy/core/client").CommandImpl<DeleteLandingZoneCommandInput, DeleteLandingZoneCommandOutput, import("..").ControlTowerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeleteLandingZoneCommandInput): import("@smithy/core/client").CommandImpl<DeleteLandingZoneCommandInput, DeleteLandingZoneCommandOutput, import("..").ControlTowerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Decommissions a landing zone. This API call starts an asynchronous operation that deletes Amazon Web Services Control Tower resources deployed in accounts managed by Amazon Web Services Control Tower.</p> <p>Decommissioning a landing zone is a process with significant consequences, and it cannot be undone. We strongly recommend that you perform this decommissioning process only if you intend to stop using your landing zone.</p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { ControlTowerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ControlTowerClient";
4
2
  import type { DisableBaselineInput, DisableBaselineOutput } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface DisableBaselineCommandInput extends DisableBaselineInput {
22
19
  export interface DisableBaselineCommandOutput extends DisableBaselineOutput, __MetadataBearer {
23
20
  }
24
21
  declare const DisableBaselineCommand_base: {
25
- new (input: DisableBaselineCommandInput): import("@smithy/core/client").CommandImpl<DisableBaselineCommandInput, DisableBaselineCommandOutput, ControlTowerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DisableBaselineCommandInput): import("@smithy/core/client").CommandImpl<DisableBaselineCommandInput, DisableBaselineCommandOutput, ControlTowerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DisableBaselineCommandInput): import("@smithy/core/client").CommandImpl<DisableBaselineCommandInput, DisableBaselineCommandOutput, import("..").ControlTowerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DisableBaselineCommandInput): import("@smithy/core/client").CommandImpl<DisableBaselineCommandInput, DisableBaselineCommandOutput, import("..").ControlTowerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Disable an <code>EnabledBaseline</code> resource on the specified Target. This API starts an asynchronous operation to remove all resources deployed as part of the baseline enablement. The resource will vary depending on the enabled baseline. For usage examples, see <a href="https://docs.aws.amazon.com/controltower/latest/userguide/baseline-api-examples.html"> <i>the Amazon Web Services Control Tower User Guide</i> </a>.</p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { ControlTowerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ControlTowerClient";
4
2
  import type { DisableControlInput, DisableControlOutput } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface DisableControlCommandInput extends DisableControlInput {
22
19
  export interface DisableControlCommandOutput extends DisableControlOutput, __MetadataBearer {
23
20
  }
24
21
  declare const DisableControlCommand_base: {
25
- new (input: DisableControlCommandInput): import("@smithy/core/client").CommandImpl<DisableControlCommandInput, DisableControlCommandOutput, ControlTowerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (...[input]: [] | [DisableControlCommandInput]): import("@smithy/core/client").CommandImpl<DisableControlCommandInput, DisableControlCommandOutput, ControlTowerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DisableControlCommandInput): import("@smithy/core/client").CommandImpl<DisableControlCommandInput, DisableControlCommandOutput, import("..").ControlTowerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (...[input]: [] | [DisableControlCommandInput]): import("@smithy/core/client").CommandImpl<DisableControlCommandInput, DisableControlCommandOutput, import("..").ControlTowerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>This API call turns off a control. It starts an asynchronous operation that deletes Amazon Web Services resources on the specified organizational unit and the accounts it contains. The resources will vary according to the control that you specify. For usage examples, see the <a href="https://docs.aws.amazon.com/controltower/latest/controlreference/control-api-examples-short.html"> <i>Controls Reference Guide</i> </a>.</p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { ControlTowerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ControlTowerClient";
4
2
  import type { EnableBaselineInput, EnableBaselineOutput } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface EnableBaselineCommandInput extends EnableBaselineInput {
22
19
  export interface EnableBaselineCommandOutput extends EnableBaselineOutput, __MetadataBearer {
23
20
  }
24
21
  declare const EnableBaselineCommand_base: {
25
- new (input: EnableBaselineCommandInput): import("@smithy/core/client").CommandImpl<EnableBaselineCommandInput, EnableBaselineCommandOutput, ControlTowerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: EnableBaselineCommandInput): import("@smithy/core/client").CommandImpl<EnableBaselineCommandInput, EnableBaselineCommandOutput, ControlTowerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: EnableBaselineCommandInput): import("@smithy/core/client").CommandImpl<EnableBaselineCommandInput, EnableBaselineCommandOutput, import("..").ControlTowerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: EnableBaselineCommandInput): import("@smithy/core/client").CommandImpl<EnableBaselineCommandInput, EnableBaselineCommandOutput, import("..").ControlTowerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Enable (apply) a <code>Baseline</code> to a Target. This API starts an asynchronous operation to deploy resources specified by the <code>Baseline</code> to the specified Target. For usage examples, see <a href="https://docs.aws.amazon.com/controltower/latest/userguide/baseline-api-examples.html"> <i>the Amazon Web Services Control Tower User Guide</i> </a>.</p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { ControlTowerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ControlTowerClient";
4
2
  import type { EnableControlInput, EnableControlOutput } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface EnableControlCommandInput extends EnableControlInput {
22
19
  export interface EnableControlCommandOutput extends EnableControlOutput, __MetadataBearer {
23
20
  }
24
21
  declare const EnableControlCommand_base: {
25
- new (input: EnableControlCommandInput): import("@smithy/core/client").CommandImpl<EnableControlCommandInput, EnableControlCommandOutput, ControlTowerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: EnableControlCommandInput): import("@smithy/core/client").CommandImpl<EnableControlCommandInput, EnableControlCommandOutput, ControlTowerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: EnableControlCommandInput): import("@smithy/core/client").CommandImpl<EnableControlCommandInput, EnableControlCommandOutput, import("..").ControlTowerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: EnableControlCommandInput): import("@smithy/core/client").CommandImpl<EnableControlCommandInput, EnableControlCommandOutput, import("..").ControlTowerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>This API call activates a control. It starts an asynchronous operation that creates Amazon Web Services resources on the specified organizational unit and the accounts it contains. The resources created will vary according to the control that you specify. For usage examples, see the <a href="https://docs.aws.amazon.com/controltower/latest/controlreference/control-api-examples-short.html"> <i>Controls Reference Guide</i> </a>.</p>