@aws-sdk/client-controltower 3.454.0 → 3.459.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/README.md +95 -31
  2. package/dist-cjs/ControlTower.js +16 -0
  3. package/dist-cjs/commands/CreateLandingZoneCommand.js +51 -0
  4. package/dist-cjs/commands/DeleteLandingZoneCommand.js +51 -0
  5. package/dist-cjs/commands/GetLandingZoneCommand.js +51 -0
  6. package/dist-cjs/commands/GetLandingZoneOperationCommand.js +51 -0
  7. package/dist-cjs/commands/ListLandingZonesCommand.js +51 -0
  8. package/dist-cjs/commands/ResetLandingZoneCommand.js +51 -0
  9. package/dist-cjs/commands/UpdateEnabledControlCommand.js +51 -0
  10. package/dist-cjs/commands/UpdateLandingZoneCommand.js +51 -0
  11. package/dist-cjs/commands/index.js +8 -0
  12. package/dist-cjs/models/models_0.js +22 -1
  13. package/dist-cjs/pagination/ListLandingZonesPaginator.js +29 -0
  14. package/dist-cjs/pagination/index.js +1 -0
  15. package/dist-cjs/protocols/Aws_restJson1.js +682 -56
  16. package/dist-es/ControlTower.js +16 -0
  17. package/dist-es/commands/CreateLandingZoneCommand.js +47 -0
  18. package/dist-es/commands/DeleteLandingZoneCommand.js +47 -0
  19. package/dist-es/commands/GetLandingZoneCommand.js +47 -0
  20. package/dist-es/commands/GetLandingZoneOperationCommand.js +47 -0
  21. package/dist-es/commands/ListLandingZonesCommand.js +47 -0
  22. package/dist-es/commands/ResetLandingZoneCommand.js +47 -0
  23. package/dist-es/commands/UpdateEnabledControlCommand.js +47 -0
  24. package/dist-es/commands/UpdateLandingZoneCommand.js +47 -0
  25. package/dist-es/commands/index.js +8 -0
  26. package/dist-es/models/models_0.js +21 -0
  27. package/dist-es/pagination/ListLandingZonesPaginator.js +25 -0
  28. package/dist-es/pagination/index.js +1 -0
  29. package/dist-es/protocols/Aws_restJson1.js +659 -49
  30. package/dist-types/ControlTower.d.ts +72 -16
  31. package/dist-types/ControlTowerClient.d.ts +26 -18
  32. package/dist-types/commands/CreateLandingZoneCommand.d.ts +94 -0
  33. package/dist-types/commands/DeleteLandingZoneCommand.d.ts +92 -0
  34. package/dist-types/commands/DisableControlCommand.d.ts +9 -9
  35. package/dist-types/commands/EnableControlCommand.d.ts +15 -9
  36. package/dist-types/commands/GetControlOperationCommand.d.ts +6 -6
  37. package/dist-types/commands/GetEnabledControlCommand.d.ts +14 -8
  38. package/dist-types/commands/GetLandingZoneCommand.d.ts +97 -0
  39. package/dist-types/commands/GetLandingZoneOperationCommand.d.ts +95 -0
  40. package/dist-types/commands/ListEnabledControlsCommand.d.ts +9 -9
  41. package/dist-types/commands/ListLandingZonesCommand.d.ts +93 -0
  42. package/dist-types/commands/ListTagsForResourceCommand.d.ts +4 -4
  43. package/dist-types/commands/ResetLandingZoneCommand.d.ts +92 -0
  44. package/dist-types/commands/TagResourceCommand.d.ts +4 -4
  45. package/dist-types/commands/UntagResourceCommand.d.ts +4 -4
  46. package/dist-types/commands/UpdateEnabledControlCommand.d.ts +107 -0
  47. package/dist-types/commands/UpdateLandingZoneCommand.d.ts +95 -0
  48. package/dist-types/commands/index.d.ts +8 -0
  49. package/dist-types/index.d.ts +16 -16
  50. package/dist-types/models/models_0.d.ts +472 -29
  51. package/dist-types/pagination/ListLandingZonesPaginator.d.ts +7 -0
  52. package/dist-types/pagination/index.d.ts +1 -0
  53. package/dist-types/protocols/Aws_restJson1.d.ts +72 -0
  54. package/dist-types/ts3.4/ControlTower.d.ts +136 -0
  55. package/dist-types/ts3.4/ControlTowerClient.d.ts +50 -2
  56. package/dist-types/ts3.4/commands/CreateLandingZoneCommand.d.ts +38 -0
  57. package/dist-types/ts3.4/commands/DeleteLandingZoneCommand.d.ts +38 -0
  58. package/dist-types/ts3.4/commands/GetLandingZoneCommand.d.ts +35 -0
  59. package/dist-types/ts3.4/commands/GetLandingZoneOperationCommand.d.ts +42 -0
  60. package/dist-types/ts3.4/commands/ListLandingZonesCommand.d.ts +38 -0
  61. package/dist-types/ts3.4/commands/ResetLandingZoneCommand.d.ts +38 -0
  62. package/dist-types/ts3.4/commands/UpdateEnabledControlCommand.d.ts +42 -0
  63. package/dist-types/ts3.4/commands/UpdateLandingZoneCommand.d.ts +38 -0
  64. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  65. package/dist-types/ts3.4/models/models_0.d.ts +117 -0
  66. package/dist-types/ts3.4/pagination/ListLandingZonesPaginator.d.ts +11 -0
  67. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  68. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +96 -0
  69. package/package.json +3 -3
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateEnabledControlCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class UpdateEnabledControlCommand 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, UpdateEnabledControlCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "ControlTowerClient";
29
+ const commandName = "UpdateEnabledControlCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "AWSControlTowerApis",
38
+ operation: "UpdateEnabledControl",
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_UpdateEnabledControlCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_UpdateEnabledControlCommand)(output, context);
49
+ }
50
+ }
51
+ exports.UpdateEnabledControlCommand = UpdateEnabledControlCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateLandingZoneCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class UpdateLandingZoneCommand 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, UpdateLandingZoneCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "ControlTowerClient";
29
+ const commandName = "UpdateLandingZoneCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "AWSControlTowerApis",
38
+ operation: "UpdateLandingZone",
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_UpdateLandingZoneCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_UpdateLandingZoneCommand)(output, context);
49
+ }
50
+ }
51
+ exports.UpdateLandingZoneCommand = UpdateLandingZoneCommand;
@@ -1,11 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./CreateLandingZoneCommand"), exports);
5
+ tslib_1.__exportStar(require("./DeleteLandingZoneCommand"), exports);
4
6
  tslib_1.__exportStar(require("./DisableControlCommand"), exports);
5
7
  tslib_1.__exportStar(require("./EnableControlCommand"), exports);
6
8
  tslib_1.__exportStar(require("./GetControlOperationCommand"), exports);
7
9
  tslib_1.__exportStar(require("./GetEnabledControlCommand"), exports);
10
+ tslib_1.__exportStar(require("./GetLandingZoneCommand"), exports);
11
+ tslib_1.__exportStar(require("./GetLandingZoneOperationCommand"), exports);
8
12
  tslib_1.__exportStar(require("./ListEnabledControlsCommand"), exports);
13
+ tslib_1.__exportStar(require("./ListLandingZonesCommand"), exports);
9
14
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
15
+ tslib_1.__exportStar(require("./ResetLandingZoneCommand"), exports);
10
16
  tslib_1.__exportStar(require("./TagResourceCommand"), exports);
11
17
  tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
18
+ tslib_1.__exportStar(require("./UpdateEnabledControlCommand"), exports);
19
+ tslib_1.__exportStar(require("./UpdateLandingZoneCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EnablementStatus = exports.DriftStatus = exports.ControlOperationStatus = exports.ControlOperationType = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
3
+ exports.LandingZoneOperationStatus = exports.LandingZoneOperationType = exports.LandingZoneStatus = exports.LandingZoneDriftStatus = exports.EnablementStatus = exports.DriftStatus = exports.ControlOperationStatus = exports.ControlOperationType = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
4
4
  const ControlTowerServiceException_1 = require("./ControlTowerServiceException");
5
5
  class AccessDeniedException extends ControlTowerServiceException_1.ControlTowerServiceException {
6
6
  constructor(opts) {
@@ -103,6 +103,7 @@ exports.ValidationException = ValidationException;
103
103
  exports.ControlOperationType = {
104
104
  DISABLE_CONTROL: "DISABLE_CONTROL",
105
105
  ENABLE_CONTROL: "ENABLE_CONTROL",
106
+ UPDATE_ENABLED_CONTROL: "UPDATE_ENABLED_CONTROL",
106
107
  };
107
108
  exports.ControlOperationStatus = {
108
109
  FAILED: "FAILED",
@@ -120,3 +121,23 @@ exports.EnablementStatus = {
120
121
  SUCCEEDED: "SUCCEEDED",
121
122
  UNDER_CHANGE: "UNDER_CHANGE",
122
123
  };
124
+ exports.LandingZoneDriftStatus = {
125
+ DRIFTED: "DRIFTED",
126
+ IN_SYNC: "IN_SYNC",
127
+ };
128
+ exports.LandingZoneStatus = {
129
+ ACTIVE: "ACTIVE",
130
+ FAILED: "FAILED",
131
+ PROCESSING: "PROCESSING",
132
+ };
133
+ exports.LandingZoneOperationType = {
134
+ CREATE: "CREATE",
135
+ DELETE: "DELETE",
136
+ RESET: "RESET",
137
+ UPDATE: "UPDATE",
138
+ };
139
+ exports.LandingZoneOperationStatus = {
140
+ FAILED: "FAILED",
141
+ IN_PROGRESS: "IN_PROGRESS",
142
+ SUCCEEDED: "SUCCEEDED",
143
+ };
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListLandingZones = void 0;
4
+ const ListLandingZonesCommand_1 = require("../commands/ListLandingZonesCommand");
5
+ const ControlTowerClient_1 = require("../ControlTowerClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListLandingZonesCommand_1.ListLandingZonesCommand(input), ...args);
8
+ };
9
+ async function* paginateListLandingZones(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["maxResults"] = config.pageSize;
16
+ if (config.client instanceof ControlTowerClient_1.ControlTowerClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected ControlTower | ControlTowerClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListLandingZones = paginateListLandingZones;
@@ -3,3 +3,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./Interfaces"), exports);
5
5
  tslib_1.__exportStar(require("./ListEnabledControlsPaginator"), exports);
6
+ tslib_1.__exportStar(require("./ListLandingZonesPaginator"), exports);