@aws-sdk/client-controltower 3.511.0 → 3.514.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 (103) hide show
  1. package/README.md +81 -9
  2. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +1 -0
  3. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  4. package/dist-cjs/commands/DisableBaselineCommand.js +1 -0
  5. package/dist-cjs/commands/EnableBaselineCommand.js +1 -0
  6. package/dist-cjs/commands/GetBaselineCommand.js +1 -0
  7. package/dist-cjs/commands/GetBaselineOperationCommand.js +1 -0
  8. package/dist-cjs/commands/GetEnabledBaselineCommand.js +1 -0
  9. package/dist-cjs/commands/ListBaselinesCommand.js +1 -0
  10. package/dist-cjs/commands/ListEnabledBaselinesCommand.js +1 -0
  11. package/dist-cjs/commands/ResetEnabledBaselineCommand.js +1 -0
  12. package/dist-cjs/commands/UpdateEnabledBaselineCommand.js +1 -0
  13. package/dist-cjs/index.js +638 -49
  14. package/dist-cjs/pagination/ListBaselinesPaginator.js +1 -0
  15. package/dist-cjs/pagination/ListEnabledBaselinesPaginator.js +1 -0
  16. package/dist-cjs/runtimeConfig.shared.js +10 -0
  17. package/dist-es/ControlTower.js +18 -0
  18. package/dist-es/ControlTowerClient.js +17 -4
  19. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  20. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  21. package/dist-es/commands/DisableBaselineCommand.js +24 -0
  22. package/dist-es/commands/EnableBaselineCommand.js +24 -0
  23. package/dist-es/commands/GetBaselineCommand.js +24 -0
  24. package/dist-es/commands/GetBaselineOperationCommand.js +24 -0
  25. package/dist-es/commands/GetEnabledBaselineCommand.js +24 -0
  26. package/dist-es/commands/ListBaselinesCommand.js +24 -0
  27. package/dist-es/commands/ListEnabledBaselinesCommand.js +24 -0
  28. package/dist-es/commands/ResetEnabledBaselineCommand.js +24 -0
  29. package/dist-es/commands/UpdateEnabledBaselineCommand.js +24 -0
  30. package/dist-es/commands/index.js +9 -0
  31. package/dist-es/models/models_0.js +40 -29
  32. package/dist-es/pagination/ListBaselinesPaginator.js +4 -0
  33. package/dist-es/pagination/ListEnabledBaselinesPaginator.js +4 -0
  34. package/dist-es/pagination/index.js +2 -0
  35. package/dist-es/protocols/Aws_restJson1.js +310 -0
  36. package/dist-es/runtimeConfig.shared.js +10 -0
  37. package/dist-es/runtimeExtensions.js +3 -0
  38. package/dist-types/ControlTower.d.ts +65 -2
  39. package/dist-types/ControlTowerClient.d.ts +26 -15
  40. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  41. package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
  42. package/dist-types/commands/CreateLandingZoneCommand.d.ts +1 -1
  43. package/dist-types/commands/DeleteLandingZoneCommand.d.ts +1 -1
  44. package/dist-types/commands/DisableBaselineCommand.d.ts +79 -0
  45. package/dist-types/commands/DisableControlCommand.d.ts +2 -2
  46. package/dist-types/commands/EnableBaselineCommand.d.ts +91 -0
  47. package/dist-types/commands/EnableControlCommand.d.ts +1 -1
  48. package/dist-types/commands/GetBaselineCommand.d.ts +75 -0
  49. package/dist-types/commands/GetBaselineOperationCommand.d.ts +80 -0
  50. package/dist-types/commands/GetControlOperationCommand.d.ts +1 -1
  51. package/dist-types/commands/GetEnabledBaselineCommand.d.ts +88 -0
  52. package/dist-types/commands/GetEnabledControlCommand.d.ts +1 -1
  53. package/dist-types/commands/GetLandingZoneCommand.d.ts +1 -1
  54. package/dist-types/commands/GetLandingZoneOperationCommand.d.ts +1 -1
  55. package/dist-types/commands/ListBaselinesCommand.d.ts +78 -0
  56. package/dist-types/commands/ListEnabledBaselinesCommand.d.ts +91 -0
  57. package/dist-types/commands/ListEnabledControlsCommand.d.ts +1 -1
  58. package/dist-types/commands/ListLandingZonesCommand.d.ts +1 -1
  59. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  60. package/dist-types/commands/ResetEnabledBaselineCommand.d.ts +79 -0
  61. package/dist-types/commands/ResetLandingZoneCommand.d.ts +1 -1
  62. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  63. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  64. package/dist-types/commands/UpdateEnabledBaselineCommand.d.ts +86 -0
  65. package/dist-types/commands/UpdateEnabledControlCommand.d.ts +1 -1
  66. package/dist-types/commands/UpdateLandingZoneCommand.d.ts +1 -1
  67. package/dist-types/commands/index.d.ts +9 -0
  68. package/dist-types/extensionConfiguration.d.ts +2 -1
  69. package/dist-types/index.d.ts +2 -2
  70. package/dist-types/models/models_0.d.ts +541 -94
  71. package/dist-types/pagination/ListBaselinesPaginator.d.ts +7 -0
  72. package/dist-types/pagination/ListEnabledBaselinesPaginator.d.ts +7 -0
  73. package/dist-types/pagination/index.d.ts +2 -0
  74. package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
  75. package/dist-types/runtimeConfig.browser.d.ts +5 -3
  76. package/dist-types/runtimeConfig.d.ts +4 -2
  77. package/dist-types/runtimeConfig.native.d.ts +6 -4
  78. package/dist-types/runtimeConfig.shared.d.ts +2 -0
  79. package/dist-types/ts3.4/ControlTower.d.ts +153 -0
  80. package/dist-types/ts3.4/ControlTowerClient.d.ts +65 -9
  81. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  82. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
  83. package/dist-types/ts3.4/commands/DisableBaselineCommand.d.ts +29 -0
  84. package/dist-types/ts3.4/commands/EnableBaselineCommand.d.ts +26 -0
  85. package/dist-types/ts3.4/commands/GetBaselineCommand.d.ts +26 -0
  86. package/dist-types/ts3.4/commands/GetBaselineOperationCommand.d.ts +30 -0
  87. package/dist-types/ts3.4/commands/GetEnabledBaselineCommand.d.ts +30 -0
  88. package/dist-types/ts3.4/commands/ListBaselinesCommand.d.ts +26 -0
  89. package/dist-types/ts3.4/commands/ListEnabledBaselinesCommand.d.ts +30 -0
  90. package/dist-types/ts3.4/commands/ResetEnabledBaselineCommand.d.ts +30 -0
  91. package/dist-types/ts3.4/commands/UpdateEnabledBaselineCommand.d.ts +30 -0
  92. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  93. package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
  94. package/dist-types/ts3.4/models/models_0.d.ts +151 -28
  95. package/dist-types/ts3.4/pagination/ListBaselinesPaginator.d.ts +11 -0
  96. package/dist-types/ts3.4/pagination/ListEnabledBaselinesPaginator.d.ts +11 -0
  97. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  98. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
  99. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
  100. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -4
  101. package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -8
  102. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
  103. package/package.json +7 -7
@@ -0,0 +1 @@
1
+ module.exports = require("../index.js");
@@ -0,0 +1 @@
1
+ module.exports = require("../index.js");
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
+ const core_1 = require("@aws-sdk/core");
4
5
  const smithy_client_1 = require("@smithy/smithy-client");
5
6
  const url_parser_1 = require("@smithy/url-parser");
6
7
  const util_base64_1 = require("@smithy/util-base64");
7
8
  const util_utf8_1 = require("@smithy/util-utf8");
9
+ const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
8
10
  const endpointResolver_1 = require("./endpoint/endpointResolver");
9
11
  const getRuntimeConfig = (config) => {
10
12
  return {
@@ -14,6 +16,14 @@ const getRuntimeConfig = (config) => {
14
16
  disableHostPrefix: config?.disableHostPrefix ?? false,
15
17
  endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
16
18
  extensions: config?.extensions ?? [],
19
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultControlTowerHttpAuthSchemeProvider,
20
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
21
+ {
22
+ schemeId: "aws.auth#sigv4",
23
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
24
+ signer: new core_1.AwsSdkSigV4Signer(),
25
+ },
26
+ ],
17
27
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
18
28
  serviceId: config?.serviceId ?? "ControlTower",
19
29
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
@@ -1,36 +1,54 @@
1
1
  import { createAggregatedClient } from "@smithy/smithy-client";
2
2
  import { CreateLandingZoneCommand, } from "./commands/CreateLandingZoneCommand";
3
3
  import { DeleteLandingZoneCommand, } from "./commands/DeleteLandingZoneCommand";
4
+ import { DisableBaselineCommand, } from "./commands/DisableBaselineCommand";
4
5
  import { DisableControlCommand, } from "./commands/DisableControlCommand";
6
+ import { EnableBaselineCommand, } from "./commands/EnableBaselineCommand";
5
7
  import { EnableControlCommand, } from "./commands/EnableControlCommand";
8
+ import { GetBaselineCommand } from "./commands/GetBaselineCommand";
9
+ import { GetBaselineOperationCommand, } from "./commands/GetBaselineOperationCommand";
6
10
  import { GetControlOperationCommand, } from "./commands/GetControlOperationCommand";
11
+ import { GetEnabledBaselineCommand, } from "./commands/GetEnabledBaselineCommand";
7
12
  import { GetEnabledControlCommand, } from "./commands/GetEnabledControlCommand";
8
13
  import { GetLandingZoneCommand, } from "./commands/GetLandingZoneCommand";
9
14
  import { GetLandingZoneOperationCommand, } from "./commands/GetLandingZoneOperationCommand";
15
+ import { ListBaselinesCommand, } from "./commands/ListBaselinesCommand";
16
+ import { ListEnabledBaselinesCommand, } from "./commands/ListEnabledBaselinesCommand";
10
17
  import { ListEnabledControlsCommand, } from "./commands/ListEnabledControlsCommand";
11
18
  import { ListLandingZonesCommand, } from "./commands/ListLandingZonesCommand";
12
19
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
20
+ import { ResetEnabledBaselineCommand, } from "./commands/ResetEnabledBaselineCommand";
13
21
  import { ResetLandingZoneCommand, } from "./commands/ResetLandingZoneCommand";
14
22
  import { TagResourceCommand } from "./commands/TagResourceCommand";
15
23
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
24
+ import { UpdateEnabledBaselineCommand, } from "./commands/UpdateEnabledBaselineCommand";
16
25
  import { UpdateEnabledControlCommand, } from "./commands/UpdateEnabledControlCommand";
17
26
  import { UpdateLandingZoneCommand, } from "./commands/UpdateLandingZoneCommand";
18
27
  import { ControlTowerClient } from "./ControlTowerClient";
19
28
  const commands = {
20
29
  CreateLandingZoneCommand,
21
30
  DeleteLandingZoneCommand,
31
+ DisableBaselineCommand,
22
32
  DisableControlCommand,
33
+ EnableBaselineCommand,
23
34
  EnableControlCommand,
35
+ GetBaselineCommand,
36
+ GetBaselineOperationCommand,
24
37
  GetControlOperationCommand,
38
+ GetEnabledBaselineCommand,
25
39
  GetEnabledControlCommand,
26
40
  GetLandingZoneCommand,
27
41
  GetLandingZoneOperationCommand,
42
+ ListBaselinesCommand,
43
+ ListEnabledBaselinesCommand,
28
44
  ListEnabledControlsCommand,
29
45
  ListLandingZonesCommand,
30
46
  ListTagsForResourceCommand,
47
+ ResetEnabledBaselineCommand,
31
48
  ResetLandingZoneCommand,
32
49
  TagResourceCommand,
33
50
  UntagResourceCommand,
51
+ UpdateEnabledBaselineCommand,
34
52
  UpdateEnabledControlCommand,
35
53
  UpdateLandingZoneCommand,
36
54
  };
@@ -1,13 +1,14 @@
1
1
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
2
2
  import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
3
3
  import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
4
- import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
5
4
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
6
5
  import { resolveRegionConfig } from "@smithy/config-resolver";
6
+ import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
7
7
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
8
8
  import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
9
9
  import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
10
10
  import { Client as __Client, } from "@smithy/smithy-client";
11
+ import { defaultControlTowerHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
11
12
  import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
12
13
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
13
14
  import { resolveRuntimeExtensions } from "./runtimeExtensions";
@@ -20,8 +21,8 @@ export class ControlTowerClient extends __Client {
20
21
  const _config_3 = resolveEndpointConfig(_config_2);
21
22
  const _config_4 = resolveRetryConfig(_config_3);
22
23
  const _config_5 = resolveHostHeaderConfig(_config_4);
23
- const _config_6 = resolveAwsAuthConfig(_config_5);
24
- const _config_7 = resolveUserAgentConfig(_config_6);
24
+ const _config_6 = resolveUserAgentConfig(_config_5);
25
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
25
26
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
26
27
  super(_config_8);
27
28
  this.config = _config_8;
@@ -30,10 +31,22 @@ export class ControlTowerClient extends __Client {
30
31
  this.middlewareStack.use(getHostHeaderPlugin(this.config));
31
32
  this.middlewareStack.use(getLoggerPlugin(this.config));
32
33
  this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
33
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
34
34
  this.middlewareStack.use(getUserAgentPlugin(this.config));
35
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
36
+ httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
37
+ identityProviderConfigProvider: this.getIdentityProviderConfigProvider(),
38
+ }));
39
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
35
40
  }
36
41
  destroy() {
37
42
  super.destroy();
38
43
  }
44
+ getDefaultHttpAuthSchemeParametersProvider() {
45
+ return defaultControlTowerHttpAuthSchemeParametersProvider;
46
+ }
47
+ getIdentityProviderConfigProvider() {
48
+ return async (config) => new DefaultIdentityProviderConfig({
49
+ "aws.auth#sigv4": config.credentials,
50
+ });
51
+ }
39
52
  }
@@ -0,0 +1,38 @@
1
+ export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
2
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
3
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
4
+ let _credentials = runtimeConfig.credentials;
5
+ return {
6
+ setHttpAuthScheme(httpAuthScheme) {
7
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
8
+ if (index === -1) {
9
+ _httpAuthSchemes.push(httpAuthScheme);
10
+ }
11
+ else {
12
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
13
+ }
14
+ },
15
+ httpAuthSchemes() {
16
+ return _httpAuthSchemes;
17
+ },
18
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
19
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
20
+ },
21
+ httpAuthSchemeProvider() {
22
+ return _httpAuthSchemeProvider;
23
+ },
24
+ setCredentials(credentials) {
25
+ _credentials = credentials;
26
+ },
27
+ credentials() {
28
+ return _credentials;
29
+ },
30
+ };
31
+ };
32
+ export const resolveHttpAuthRuntimeConfig = (config) => {
33
+ return {
34
+ httpAuthSchemes: config.httpAuthSchemes(),
35
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
36
+ credentials: config.credentials(),
37
+ };
38
+ };
@@ -0,0 +1,41 @@
1
+ import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core";
2
+ import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
3
+ export const defaultControlTowerHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
+ return {
5
+ operation: getSmithyContext(context).operation,
6
+ region: (await normalizeProvider(config.region)()) ||
7
+ (() => {
8
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
9
+ })(),
10
+ };
11
+ };
12
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
13
+ return {
14
+ schemeId: "aws.auth#sigv4",
15
+ signingProperties: {
16
+ name: "controltower",
17
+ region: authParameters.region,
18
+ },
19
+ propertiesExtractor: (config, context) => ({
20
+ signingProperties: {
21
+ config,
22
+ context,
23
+ },
24
+ }),
25
+ };
26
+ }
27
+ export const defaultControlTowerHttpAuthSchemeProvider = (authParameters) => {
28
+ const options = [];
29
+ switch (authParameters.operation) {
30
+ default: {
31
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
32
+ }
33
+ }
34
+ return options;
35
+ };
36
+ export const resolveHttpAuthSchemeConfig = (config) => {
37
+ const config_0 = resolveAwsSdkSigV4Config(config);
38
+ return {
39
+ ...config_0,
40
+ };
41
+ };
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DisableBaselineCommand, se_DisableBaselineCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DisableBaselineCommand 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", "DisableBaseline", {})
19
+ .n("ControlTowerClient", "DisableBaselineCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DisableBaselineCommand)
22
+ .de(de_DisableBaselineCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_EnableBaselineCommand, se_EnableBaselineCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class EnableBaselineCommand 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", "EnableBaseline", {})
19
+ .n("ControlTowerClient", "EnableBaselineCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_EnableBaselineCommand)
22
+ .de(de_EnableBaselineCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetBaselineCommand, se_GetBaselineCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetBaselineCommand 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", "GetBaseline", {})
19
+ .n("ControlTowerClient", "GetBaselineCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetBaselineCommand)
22
+ .de(de_GetBaselineCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetBaselineOperationCommand, se_GetBaselineOperationCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetBaselineOperationCommand 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", "GetBaselineOperation", {})
19
+ .n("ControlTowerClient", "GetBaselineOperationCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetBaselineOperationCommand)
22
+ .de(de_GetBaselineOperationCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetEnabledBaselineCommand, se_GetEnabledBaselineCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetEnabledBaselineCommand 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", "GetEnabledBaseline", {})
19
+ .n("ControlTowerClient", "GetEnabledBaselineCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetEnabledBaselineCommand)
22
+ .de(de_GetEnabledBaselineCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListBaselinesCommand, se_ListBaselinesCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListBaselinesCommand 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", "ListBaselines", {})
19
+ .n("ControlTowerClient", "ListBaselinesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListBaselinesCommand)
22
+ .de(de_ListBaselinesCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListEnabledBaselinesCommand, se_ListEnabledBaselinesCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListEnabledBaselinesCommand 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", "ListEnabledBaselines", {})
19
+ .n("ControlTowerClient", "ListEnabledBaselinesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListEnabledBaselinesCommand)
22
+ .de(de_ListEnabledBaselinesCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ResetEnabledBaselineCommand, se_ResetEnabledBaselineCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ResetEnabledBaselineCommand 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", "ResetEnabledBaseline", {})
19
+ .n("ControlTowerClient", "ResetEnabledBaselineCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ResetEnabledBaselineCommand)
22
+ .de(de_ResetEnabledBaselineCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_UpdateEnabledBaselineCommand, se_UpdateEnabledBaselineCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class UpdateEnabledBaselineCommand 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", "UpdateEnabledBaseline", {})
19
+ .n("ControlTowerClient", "UpdateEnabledBaselineCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateEnabledBaselineCommand)
22
+ .de(de_UpdateEnabledBaselineCommand)
23
+ .build() {
24
+ }
@@ -1,16 +1,25 @@
1
1
  export * from "./CreateLandingZoneCommand";
2
2
  export * from "./DeleteLandingZoneCommand";
3
+ export * from "./DisableBaselineCommand";
3
4
  export * from "./DisableControlCommand";
5
+ export * from "./EnableBaselineCommand";
4
6
  export * from "./EnableControlCommand";
7
+ export * from "./GetBaselineCommand";
8
+ export * from "./GetBaselineOperationCommand";
5
9
  export * from "./GetControlOperationCommand";
10
+ export * from "./GetEnabledBaselineCommand";
6
11
  export * from "./GetEnabledControlCommand";
7
12
  export * from "./GetLandingZoneCommand";
8
13
  export * from "./GetLandingZoneOperationCommand";
14
+ export * from "./ListBaselinesCommand";
15
+ export * from "./ListEnabledBaselinesCommand";
9
16
  export * from "./ListEnabledControlsCommand";
10
17
  export * from "./ListLandingZonesCommand";
11
18
  export * from "./ListTagsForResourceCommand";
19
+ export * from "./ResetEnabledBaselineCommand";
12
20
  export * from "./ResetLandingZoneCommand";
13
21
  export * from "./TagResourceCommand";
14
22
  export * from "./UntagResourceCommand";
23
+ export * from "./UpdateEnabledBaselineCommand";
15
24
  export * from "./UpdateEnabledControlCommand";
16
25
  export * from "./UpdateLandingZoneCommand";
@@ -11,18 +11,6 @@ export class AccessDeniedException extends __BaseException {
11
11
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
12
  }
13
13
  }
14
- export class ConflictException extends __BaseException {
15
- constructor(opts) {
16
- super({
17
- name: "ConflictException",
18
- $fault: "client",
19
- ...opts,
20
- });
21
- this.name = "ConflictException";
22
- this.$fault = "client";
23
- Object.setPrototypeOf(this, ConflictException.prototype);
24
- }
25
- }
26
14
  export class InternalServerException extends __BaseException {
27
15
  constructor(opts) {
28
16
  super({
@@ -48,18 +36,6 @@ export class ResourceNotFoundException extends __BaseException {
48
36
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
49
37
  }
50
38
  }
51
- export class ServiceQuotaExceededException extends __BaseException {
52
- constructor(opts) {
53
- super({
54
- name: "ServiceQuotaExceededException",
55
- $fault: "client",
56
- ...opts,
57
- });
58
- this.name = "ServiceQuotaExceededException";
59
- this.$fault = "client";
60
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
61
- }
62
- }
63
39
  export class ThrottlingException extends __BaseException {
64
40
  constructor(opts) {
65
41
  super({
@@ -90,6 +66,46 @@ export class ValidationException extends __BaseException {
90
66
  Object.setPrototypeOf(this, ValidationException.prototype);
91
67
  }
92
68
  }
69
+ export class ConflictException extends __BaseException {
70
+ constructor(opts) {
71
+ super({
72
+ name: "ConflictException",
73
+ $fault: "client",
74
+ ...opts,
75
+ });
76
+ this.name = "ConflictException";
77
+ this.$fault = "client";
78
+ Object.setPrototypeOf(this, ConflictException.prototype);
79
+ }
80
+ }
81
+ export class ServiceQuotaExceededException extends __BaseException {
82
+ constructor(opts) {
83
+ super({
84
+ name: "ServiceQuotaExceededException",
85
+ $fault: "client",
86
+ ...opts,
87
+ });
88
+ this.name = "ServiceQuotaExceededException";
89
+ this.$fault = "client";
90
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
91
+ }
92
+ }
93
+ export const BaselineOperationType = {
94
+ DISABLE_BASELINE: "DISABLE_BASELINE",
95
+ ENABLE_BASELINE: "ENABLE_BASELINE",
96
+ RESET_ENABLED_BASELINE: "RESET_ENABLED_BASELINE",
97
+ UPDATE_ENABLED_BASELINE: "UPDATE_ENABLED_BASELINE",
98
+ };
99
+ export const BaselineOperationStatus = {
100
+ FAILED: "FAILED",
101
+ IN_PROGRESS: "IN_PROGRESS",
102
+ SUCCEEDED: "SUCCEEDED",
103
+ };
104
+ export const EnablementStatus = {
105
+ FAILED: "FAILED",
106
+ SUCCEEDED: "SUCCEEDED",
107
+ UNDER_CHANGE: "UNDER_CHANGE",
108
+ };
93
109
  export const ControlOperationType = {
94
110
  DISABLE_CONTROL: "DISABLE_CONTROL",
95
111
  ENABLE_CONTROL: "ENABLE_CONTROL",
@@ -106,11 +122,6 @@ export const DriftStatus = {
106
122
  NOT_CHECKING: "NOT_CHECKING",
107
123
  UNKNOWN: "UNKNOWN",
108
124
  };
109
- export const EnablementStatus = {
110
- FAILED: "FAILED",
111
- SUCCEEDED: "SUCCEEDED",
112
- UNDER_CHANGE: "UNDER_CHANGE",
113
- };
114
125
  export const LandingZoneDriftStatus = {
115
126
  DRIFTED: "DRIFTED",
116
127
  IN_SYNC: "IN_SYNC",
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListBaselinesCommand, } from "../commands/ListBaselinesCommand";
3
+ import { ControlTowerClient } from "../ControlTowerClient";
4
+ export const paginateListBaselines = createPaginator(ControlTowerClient, ListBaselinesCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListEnabledBaselinesCommand, } from "../commands/ListEnabledBaselinesCommand";
3
+ import { ControlTowerClient } from "../ControlTowerClient";
4
+ export const paginateListEnabledBaselines = createPaginator(ControlTowerClient, ListEnabledBaselinesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,3 +1,5 @@
1
1
  export * from "./Interfaces";
2
+ export * from "./ListBaselinesPaginator";
3
+ export * from "./ListEnabledBaselinesPaginator";
2
4
  export * from "./ListEnabledControlsPaginator";
3
5
  export * from "./ListLandingZonesPaginator";