@aws-sdk/client-controltower 3.454.0 → 3.458.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 (65) hide show
  1. package/README.md +86 -30
  2. package/dist-cjs/ControlTower.js +14 -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/UpdateLandingZoneCommand.js +51 -0
  10. package/dist-cjs/commands/index.js +7 -0
  11. package/dist-cjs/models/models_0.js +21 -1
  12. package/dist-cjs/pagination/ListLandingZonesPaginator.js +29 -0
  13. package/dist-cjs/pagination/index.js +1 -0
  14. package/dist-cjs/protocols/Aws_restJson1.js +508 -1
  15. package/dist-es/ControlTower.js +14 -0
  16. package/dist-es/commands/CreateLandingZoneCommand.js +47 -0
  17. package/dist-es/commands/DeleteLandingZoneCommand.js +47 -0
  18. package/dist-es/commands/GetLandingZoneCommand.js +47 -0
  19. package/dist-es/commands/GetLandingZoneOperationCommand.js +47 -0
  20. package/dist-es/commands/ListLandingZonesCommand.js +47 -0
  21. package/dist-es/commands/ResetLandingZoneCommand.js +47 -0
  22. package/dist-es/commands/UpdateLandingZoneCommand.js +47 -0
  23. package/dist-es/commands/index.js +7 -0
  24. package/dist-es/models/models_0.js +20 -0
  25. package/dist-es/pagination/ListLandingZonesPaginator.js +25 -0
  26. package/dist-es/pagination/index.js +1 -0
  27. package/dist-es/protocols/Aws_restJson1.js +493 -0
  28. package/dist-types/ControlTower.d.ts +64 -15
  29. package/dist-types/ControlTowerClient.d.ts +24 -17
  30. package/dist-types/commands/CreateLandingZoneCommand.d.ts +94 -0
  31. package/dist-types/commands/DeleteLandingZoneCommand.d.ts +92 -0
  32. package/dist-types/commands/DisableControlCommand.d.ts +5 -5
  33. package/dist-types/commands/EnableControlCommand.d.ts +5 -5
  34. package/dist-types/commands/GetControlOperationCommand.d.ts +4 -4
  35. package/dist-types/commands/GetEnabledControlCommand.d.ts +6 -6
  36. package/dist-types/commands/GetLandingZoneCommand.d.ts +97 -0
  37. package/dist-types/commands/GetLandingZoneOperationCommand.d.ts +95 -0
  38. package/dist-types/commands/ListEnabledControlsCommand.d.ts +7 -7
  39. package/dist-types/commands/ListLandingZonesCommand.d.ts +93 -0
  40. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -2
  41. package/dist-types/commands/ResetLandingZoneCommand.d.ts +92 -0
  42. package/dist-types/commands/TagResourceCommand.d.ts +2 -2
  43. package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
  44. package/dist-types/commands/UpdateLandingZoneCommand.d.ts +95 -0
  45. package/dist-types/commands/index.d.ts +7 -0
  46. package/dist-types/index.d.ts +15 -15
  47. package/dist-types/models/models_0.d.ts +400 -12
  48. package/dist-types/pagination/ListLandingZonesPaginator.d.ts +7 -0
  49. package/dist-types/pagination/index.d.ts +1 -0
  50. package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
  51. package/dist-types/ts3.4/ControlTower.d.ts +119 -0
  52. package/dist-types/ts3.4/ControlTowerClient.d.ts +44 -2
  53. package/dist-types/ts3.4/commands/CreateLandingZoneCommand.d.ts +38 -0
  54. package/dist-types/ts3.4/commands/DeleteLandingZoneCommand.d.ts +38 -0
  55. package/dist-types/ts3.4/commands/GetLandingZoneCommand.d.ts +35 -0
  56. package/dist-types/ts3.4/commands/GetLandingZoneOperationCommand.d.ts +42 -0
  57. package/dist-types/ts3.4/commands/ListLandingZonesCommand.d.ts +38 -0
  58. package/dist-types/ts3.4/commands/ResetLandingZoneCommand.d.ts +38 -0
  59. package/dist-types/ts3.4/commands/UpdateLandingZoneCommand.d.ts +38 -0
  60. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  61. package/dist-types/ts3.4/models/models_0.d.ts +99 -0
  62. package/dist-types/ts3.4/pagination/ListLandingZonesPaginator.d.ts +11 -0
  63. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  64. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +84 -0
  65. package/package.json +3 -3
@@ -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,18 @@
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("./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) {
@@ -120,3 +120,23 @@ exports.EnablementStatus = {
120
120
  SUCCEEDED: "SUCCEEDED",
121
121
  UNDER_CHANGE: "UNDER_CHANGE",
122
122
  };
123
+ exports.LandingZoneDriftStatus = {
124
+ DRIFTED: "DRIFTED",
125
+ IN_SYNC: "IN_SYNC",
126
+ };
127
+ exports.LandingZoneStatus = {
128
+ ACTIVE: "ACTIVE",
129
+ FAILED: "FAILED",
130
+ PROCESSING: "PROCESSING",
131
+ };
132
+ exports.LandingZoneOperationType = {
133
+ CREATE: "CREATE",
134
+ DELETE: "DELETE",
135
+ RESET: "RESET",
136
+ UPDATE: "UPDATE",
137
+ };
138
+ exports.LandingZoneOperationStatus = {
139
+ FAILED: "FAILED",
140
+ IN_PROGRESS: "IN_PROGRESS",
141
+ SUCCEEDED: "SUCCEEDED",
142
+ };
@@ -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);