@aws-sdk/client-controltower 3.163.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.
- package/CHANGELOG.md +11 -0
- package/LICENSE +201 -0
- package/README.md +275 -0
- package/dist-cjs/ControlTower.js +67 -0
- package/dist-cjs/ControlTowerClient.js +37 -0
- package/dist-cjs/commands/DisableControlCommand.js +36 -0
- package/dist-cjs/commands/EnableControlCommand.js +36 -0
- package/dist-cjs/commands/GetControlOperationCommand.js +36 -0
- package/dist-cjs/commands/ListEnabledControlsCommand.js +36 -0
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/endpoints.js +169 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/ControlTowerServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +153 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListEnabledControlsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +5 -0
- package/dist-cjs/protocols/Aws_restJson1.js +468 -0
- package/dist-cjs/runtimeConfig.browser.js +45 -0
- package/dist-cjs/runtimeConfig.js +52 -0
- package/dist-cjs/runtimeConfig.native.js +16 -0
- package/dist-cjs/runtimeConfig.shared.js +17 -0
- package/dist-es/ControlTower.js +70 -0
- package/dist-es/ControlTowerClient.js +39 -0
- package/dist-es/commands/DisableControlCommand.js +39 -0
- package/dist-es/commands/EnableControlCommand.js +39 -0
- package/dist-es/commands/GetControlOperationCommand.js +39 -0
- package/dist-es/commands/ListEnabledControlsCommand.js +39 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/endpoints.js +165 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/ControlTowerServiceException.js +12 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +114 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListEnabledControlsPaginator.js +75 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +589 -0
- package/dist-es/runtimeConfig.browser.js +26 -0
- package/dist-es/runtimeConfig.js +30 -0
- package/dist-es/runtimeConfig.native.js +8 -0
- package/dist-es/runtimeConfig.shared.js +13 -0
- package/dist-types/ControlTower.d.ts +112 -0
- package/dist-types/ControlTowerClient.d.ts +218 -0
- package/dist-types/commands/DisableControlCommand.d.ts +37 -0
- package/dist-types/commands/EnableControlCommand.d.ts +37 -0
- package/dist-types/commands/GetControlOperationCommand.d.ts +37 -0
- package/dist-types/commands/ListEnabledControlsCommand.d.ts +36 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/endpoints.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/ControlTowerServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +255 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListEnabledControlsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +14 -0
- package/dist-types/runtimeConfig.browser.d.ts +40 -0
- package/dist-types/runtimeConfig.d.ts +40 -0
- package/dist-types/runtimeConfig.native.d.ts +39 -0
- package/dist-types/runtimeConfig.shared.d.ts +13 -0
- package/dist-types/ts3.4/ControlTower.d.ts +25 -0
- package/dist-types/ts3.4/ControlTowerClient.d.ts +77 -0
- package/dist-types/ts3.4/commands/DisableControlCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/EnableControlCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetControlOperationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListEnabledControlsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/ControlTowerServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +150 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListEnabledControlsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +14 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +99 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { DisableControlCommand, } from "./commands/DisableControlCommand";
|
|
3
|
+
import { EnableControlCommand, } from "./commands/EnableControlCommand";
|
|
4
|
+
import { GetControlOperationCommand, } from "./commands/GetControlOperationCommand";
|
|
5
|
+
import { ListEnabledControlsCommand, } from "./commands/ListEnabledControlsCommand";
|
|
6
|
+
import { ControlTowerClient } from "./ControlTowerClient";
|
|
7
|
+
var ControlTower = (function (_super) {
|
|
8
|
+
__extends(ControlTower, _super);
|
|
9
|
+
function ControlTower() {
|
|
10
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
11
|
+
}
|
|
12
|
+
ControlTower.prototype.disableControl = function (args, optionsOrCb, cb) {
|
|
13
|
+
var command = new DisableControlCommand(args);
|
|
14
|
+
if (typeof optionsOrCb === "function") {
|
|
15
|
+
this.send(command, optionsOrCb);
|
|
16
|
+
}
|
|
17
|
+
else if (typeof cb === "function") {
|
|
18
|
+
if (typeof optionsOrCb !== "object")
|
|
19
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
20
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
return this.send(command, optionsOrCb);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
ControlTower.prototype.enableControl = function (args, optionsOrCb, cb) {
|
|
27
|
+
var command = new EnableControlCommand(args);
|
|
28
|
+
if (typeof optionsOrCb === "function") {
|
|
29
|
+
this.send(command, optionsOrCb);
|
|
30
|
+
}
|
|
31
|
+
else if (typeof cb === "function") {
|
|
32
|
+
if (typeof optionsOrCb !== "object")
|
|
33
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
34
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
return this.send(command, optionsOrCb);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
ControlTower.prototype.getControlOperation = function (args, optionsOrCb, cb) {
|
|
41
|
+
var command = new GetControlOperationCommand(args);
|
|
42
|
+
if (typeof optionsOrCb === "function") {
|
|
43
|
+
this.send(command, optionsOrCb);
|
|
44
|
+
}
|
|
45
|
+
else if (typeof cb === "function") {
|
|
46
|
+
if (typeof optionsOrCb !== "object")
|
|
47
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
48
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
return this.send(command, optionsOrCb);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
ControlTower.prototype.listEnabledControls = function (args, optionsOrCb, cb) {
|
|
55
|
+
var command = new ListEnabledControlsCommand(args);
|
|
56
|
+
if (typeof optionsOrCb === "function") {
|
|
57
|
+
this.send(command, optionsOrCb);
|
|
58
|
+
}
|
|
59
|
+
else if (typeof cb === "function") {
|
|
60
|
+
if (typeof optionsOrCb !== "object")
|
|
61
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
62
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
return this.send(command, optionsOrCb);
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
return ControlTower;
|
|
69
|
+
}(ControlTowerClient));
|
|
70
|
+
export { ControlTower };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
|
+
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
|
+
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
5
|
+
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
6
|
+
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
7
|
+
import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
8
|
+
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
9
|
+
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
|
+
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
12
|
+
var ControlTowerClient = (function (_super) {
|
|
13
|
+
__extends(ControlTowerClient, _super);
|
|
14
|
+
function ControlTowerClient(configuration) {
|
|
15
|
+
var _this = this;
|
|
16
|
+
var _config_0 = __getRuntimeConfig(configuration);
|
|
17
|
+
var _config_1 = resolveRegionConfig(_config_0);
|
|
18
|
+
var _config_2 = resolveEndpointsConfig(_config_1);
|
|
19
|
+
var _config_3 = resolveRetryConfig(_config_2);
|
|
20
|
+
var _config_4 = resolveHostHeaderConfig(_config_3);
|
|
21
|
+
var _config_5 = resolveAwsAuthConfig(_config_4);
|
|
22
|
+
var _config_6 = resolveUserAgentConfig(_config_5);
|
|
23
|
+
_this = _super.call(this, _config_6) || this;
|
|
24
|
+
_this.config = _config_6;
|
|
25
|
+
_this.middlewareStack.use(getRetryPlugin(_this.config));
|
|
26
|
+
_this.middlewareStack.use(getContentLengthPlugin(_this.config));
|
|
27
|
+
_this.middlewareStack.use(getHostHeaderPlugin(_this.config));
|
|
28
|
+
_this.middlewareStack.use(getLoggerPlugin(_this.config));
|
|
29
|
+
_this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
|
|
30
|
+
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
+
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
+
return _this;
|
|
33
|
+
}
|
|
34
|
+
ControlTowerClient.prototype.destroy = function () {
|
|
35
|
+
_super.prototype.destroy.call(this);
|
|
36
|
+
};
|
|
37
|
+
return ControlTowerClient;
|
|
38
|
+
}(__Client));
|
|
39
|
+
export { ControlTowerClient };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DisableControlInputFilterSensitiveLog, DisableControlOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DisableControlCommand, serializeAws_restJson1DisableControlCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var DisableControlCommand = (function (_super) {
|
|
7
|
+
__extends(DisableControlCommand, _super);
|
|
8
|
+
function DisableControlCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DisableControlCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ControlTowerClient";
|
|
18
|
+
var commandName = "DisableControlCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DisableControlInputFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DisableControlOutputFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DisableControlCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1DisableControlCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DisableControlCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1DisableControlCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DisableControlCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DisableControlCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { EnableControlInputFilterSensitiveLog, EnableControlOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1EnableControlCommand, serializeAws_restJson1EnableControlCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var EnableControlCommand = (function (_super) {
|
|
7
|
+
__extends(EnableControlCommand, _super);
|
|
8
|
+
function EnableControlCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
EnableControlCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ControlTowerClient";
|
|
18
|
+
var commandName = "EnableControlCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: EnableControlInputFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: EnableControlOutputFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
EnableControlCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1EnableControlCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
EnableControlCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1EnableControlCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return EnableControlCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { EnableControlCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetControlOperationInputFilterSensitiveLog, GetControlOperationOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetControlOperationCommand, serializeAws_restJson1GetControlOperationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var GetControlOperationCommand = (function (_super) {
|
|
7
|
+
__extends(GetControlOperationCommand, _super);
|
|
8
|
+
function GetControlOperationCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetControlOperationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ControlTowerClient";
|
|
18
|
+
var commandName = "GetControlOperationCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetControlOperationInputFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetControlOperationOutputFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetControlOperationCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1GetControlOperationCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetControlOperationCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1GetControlOperationCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetControlOperationCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetControlOperationCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListEnabledControlsInputFilterSensitiveLog, ListEnabledControlsOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListEnabledControlsCommand, serializeAws_restJson1ListEnabledControlsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var ListEnabledControlsCommand = (function (_super) {
|
|
7
|
+
__extends(ListEnabledControlsCommand, _super);
|
|
8
|
+
function ListEnabledControlsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListEnabledControlsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ControlTowerClient";
|
|
18
|
+
var commandName = "ListEnabledControlsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListEnabledControlsInputFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListEnabledControlsOutputFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListEnabledControlsCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1ListEnabledControlsCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListEnabledControlsCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1ListEnabledControlsCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListEnabledControlsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListEnabledControlsCommand };
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
|
+
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
3
|
+
var regionHash = {
|
|
4
|
+
"ca-central-1": {
|
|
5
|
+
variants: [
|
|
6
|
+
{
|
|
7
|
+
hostname: "controltower-fips.ca-central-1.amazonaws.com",
|
|
8
|
+
tags: ["fips"],
|
|
9
|
+
},
|
|
10
|
+
],
|
|
11
|
+
},
|
|
12
|
+
"us-east-1": {
|
|
13
|
+
variants: [
|
|
14
|
+
{
|
|
15
|
+
hostname: "controltower-fips.us-east-1.amazonaws.com",
|
|
16
|
+
tags: ["fips"],
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
"us-east-2": {
|
|
21
|
+
variants: [
|
|
22
|
+
{
|
|
23
|
+
hostname: "controltower-fips.us-east-2.amazonaws.com",
|
|
24
|
+
tags: ["fips"],
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
},
|
|
28
|
+
"us-west-2": {
|
|
29
|
+
variants: [
|
|
30
|
+
{
|
|
31
|
+
hostname: "controltower-fips.us-west-2.amazonaws.com",
|
|
32
|
+
tags: ["fips"],
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
var partitionHash = {
|
|
38
|
+
aws: {
|
|
39
|
+
regions: [
|
|
40
|
+
"af-south-1",
|
|
41
|
+
"ap-east-1",
|
|
42
|
+
"ap-northeast-1",
|
|
43
|
+
"ap-northeast-2",
|
|
44
|
+
"ap-northeast-3",
|
|
45
|
+
"ap-south-1",
|
|
46
|
+
"ap-southeast-1",
|
|
47
|
+
"ap-southeast-2",
|
|
48
|
+
"ap-southeast-3",
|
|
49
|
+
"ca-central-1",
|
|
50
|
+
"ca-central-1-fips",
|
|
51
|
+
"eu-central-1",
|
|
52
|
+
"eu-north-1",
|
|
53
|
+
"eu-south-1",
|
|
54
|
+
"eu-west-1",
|
|
55
|
+
"eu-west-2",
|
|
56
|
+
"eu-west-3",
|
|
57
|
+
"me-central-1",
|
|
58
|
+
"me-south-1",
|
|
59
|
+
"sa-east-1",
|
|
60
|
+
"us-east-1",
|
|
61
|
+
"us-east-1-fips",
|
|
62
|
+
"us-east-2",
|
|
63
|
+
"us-east-2-fips",
|
|
64
|
+
"us-west-1",
|
|
65
|
+
"us-west-2",
|
|
66
|
+
"us-west-2-fips",
|
|
67
|
+
],
|
|
68
|
+
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
|
|
69
|
+
variants: [
|
|
70
|
+
{
|
|
71
|
+
hostname: "controltower.{region}.amazonaws.com",
|
|
72
|
+
tags: [],
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
hostname: "controltower-fips.{region}.amazonaws.com",
|
|
76
|
+
tags: ["fips"],
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
hostname: "controltower-fips.{region}.api.aws",
|
|
80
|
+
tags: ["dualstack", "fips"],
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
hostname: "controltower.{region}.api.aws",
|
|
84
|
+
tags: ["dualstack"],
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
},
|
|
88
|
+
"aws-cn": {
|
|
89
|
+
regions: ["cn-north-1", "cn-northwest-1"],
|
|
90
|
+
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
|
91
|
+
variants: [
|
|
92
|
+
{
|
|
93
|
+
hostname: "controltower.{region}.amazonaws.com.cn",
|
|
94
|
+
tags: [],
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
hostname: "controltower-fips.{region}.amazonaws.com.cn",
|
|
98
|
+
tags: ["fips"],
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
hostname: "controltower-fips.{region}.api.amazonwebservices.com.cn",
|
|
102
|
+
tags: ["dualstack", "fips"],
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
hostname: "controltower.{region}.api.amazonwebservices.com.cn",
|
|
106
|
+
tags: ["dualstack"],
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
},
|
|
110
|
+
"aws-iso": {
|
|
111
|
+
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
112
|
+
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
|
113
|
+
variants: [
|
|
114
|
+
{
|
|
115
|
+
hostname: "controltower.{region}.c2s.ic.gov",
|
|
116
|
+
tags: [],
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
hostname: "controltower-fips.{region}.c2s.ic.gov",
|
|
120
|
+
tags: ["fips"],
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
},
|
|
124
|
+
"aws-iso-b": {
|
|
125
|
+
regions: ["us-isob-east-1"],
|
|
126
|
+
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
|
127
|
+
variants: [
|
|
128
|
+
{
|
|
129
|
+
hostname: "controltower.{region}.sc2s.sgov.gov",
|
|
130
|
+
tags: [],
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
hostname: "controltower-fips.{region}.sc2s.sgov.gov",
|
|
134
|
+
tags: ["fips"],
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
},
|
|
138
|
+
"aws-us-gov": {
|
|
139
|
+
regions: ["us-gov-east-1", "us-gov-west-1"],
|
|
140
|
+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
141
|
+
variants: [
|
|
142
|
+
{
|
|
143
|
+
hostname: "controltower.{region}.amazonaws.com",
|
|
144
|
+
tags: [],
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
hostname: "controltower-fips.{region}.amazonaws.com",
|
|
148
|
+
tags: ["fips"],
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
hostname: "controltower-fips.{region}.api.aws",
|
|
152
|
+
tags: ["dualstack", "fips"],
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
hostname: "controltower.{region}.api.aws",
|
|
156
|
+
tags: ["dualstack"],
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
},
|
|
160
|
+
};
|
|
161
|
+
export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
162
|
+
return __generator(this, function (_a) {
|
|
163
|
+
return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "controltower", regionHash: regionHash, partitionHash: partitionHash }))];
|
|
164
|
+
});
|
|
165
|
+
}); };
|
package/dist-es/index.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
+
var ControlTowerServiceException = (function (_super) {
|
|
4
|
+
__extends(ControlTowerServiceException, _super);
|
|
5
|
+
function ControlTowerServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, ControlTowerServiceException.prototype);
|
|
8
|
+
return _this;
|
|
9
|
+
}
|
|
10
|
+
return ControlTowerServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { ControlTowerServiceException };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
2
|
+
import { ControlTowerServiceException as __BaseException } from "./ControlTowerServiceException";
|
|
3
|
+
var AccessDeniedException = (function (_super) {
|
|
4
|
+
__extends(AccessDeniedException, _super);
|
|
5
|
+
function AccessDeniedException(opts) {
|
|
6
|
+
var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
|
|
7
|
+
_this.name = "AccessDeniedException";
|
|
8
|
+
_this.$fault = "client";
|
|
9
|
+
Object.setPrototypeOf(_this, AccessDeniedException.prototype);
|
|
10
|
+
return _this;
|
|
11
|
+
}
|
|
12
|
+
return AccessDeniedException;
|
|
13
|
+
}(__BaseException));
|
|
14
|
+
export { AccessDeniedException };
|
|
15
|
+
var ConflictException = (function (_super) {
|
|
16
|
+
__extends(ConflictException, _super);
|
|
17
|
+
function ConflictException(opts) {
|
|
18
|
+
var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
|
|
19
|
+
_this.name = "ConflictException";
|
|
20
|
+
_this.$fault = "client";
|
|
21
|
+
Object.setPrototypeOf(_this, ConflictException.prototype);
|
|
22
|
+
return _this;
|
|
23
|
+
}
|
|
24
|
+
return ConflictException;
|
|
25
|
+
}(__BaseException));
|
|
26
|
+
export { ConflictException };
|
|
27
|
+
var InternalServerException = (function (_super) {
|
|
28
|
+
__extends(InternalServerException, _super);
|
|
29
|
+
function InternalServerException(opts) {
|
|
30
|
+
var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
|
|
31
|
+
_this.name = "InternalServerException";
|
|
32
|
+
_this.$fault = "server";
|
|
33
|
+
_this.$retryable = {};
|
|
34
|
+
Object.setPrototypeOf(_this, InternalServerException.prototype);
|
|
35
|
+
return _this;
|
|
36
|
+
}
|
|
37
|
+
return InternalServerException;
|
|
38
|
+
}(__BaseException));
|
|
39
|
+
export { InternalServerException };
|
|
40
|
+
var ResourceNotFoundException = (function (_super) {
|
|
41
|
+
__extends(ResourceNotFoundException, _super);
|
|
42
|
+
function ResourceNotFoundException(opts) {
|
|
43
|
+
var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
|
|
44
|
+
_this.name = "ResourceNotFoundException";
|
|
45
|
+
_this.$fault = "client";
|
|
46
|
+
Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
|
|
47
|
+
return _this;
|
|
48
|
+
}
|
|
49
|
+
return ResourceNotFoundException;
|
|
50
|
+
}(__BaseException));
|
|
51
|
+
export { ResourceNotFoundException };
|
|
52
|
+
var ServiceQuotaExceededException = (function (_super) {
|
|
53
|
+
__extends(ServiceQuotaExceededException, _super);
|
|
54
|
+
function ServiceQuotaExceededException(opts) {
|
|
55
|
+
var _this = _super.call(this, __assign({ name: "ServiceQuotaExceededException", $fault: "client" }, opts)) || this;
|
|
56
|
+
_this.name = "ServiceQuotaExceededException";
|
|
57
|
+
_this.$fault = "client";
|
|
58
|
+
Object.setPrototypeOf(_this, ServiceQuotaExceededException.prototype);
|
|
59
|
+
return _this;
|
|
60
|
+
}
|
|
61
|
+
return ServiceQuotaExceededException;
|
|
62
|
+
}(__BaseException));
|
|
63
|
+
export { ServiceQuotaExceededException };
|
|
64
|
+
var ThrottlingException = (function (_super) {
|
|
65
|
+
__extends(ThrottlingException, _super);
|
|
66
|
+
function ThrottlingException(opts) {
|
|
67
|
+
var _this = _super.call(this, __assign({ name: "ThrottlingException", $fault: "client" }, opts)) || this;
|
|
68
|
+
_this.name = "ThrottlingException";
|
|
69
|
+
_this.$fault = "client";
|
|
70
|
+
_this.$retryable = {
|
|
71
|
+
throttling: true,
|
|
72
|
+
};
|
|
73
|
+
Object.setPrototypeOf(_this, ThrottlingException.prototype);
|
|
74
|
+
_this.serviceCode = opts.serviceCode;
|
|
75
|
+
_this.quotaCode = opts.quotaCode;
|
|
76
|
+
_this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
77
|
+
return _this;
|
|
78
|
+
}
|
|
79
|
+
return ThrottlingException;
|
|
80
|
+
}(__BaseException));
|
|
81
|
+
export { ThrottlingException };
|
|
82
|
+
var ValidationException = (function (_super) {
|
|
83
|
+
__extends(ValidationException, _super);
|
|
84
|
+
function ValidationException(opts) {
|
|
85
|
+
var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
|
|
86
|
+
_this.name = "ValidationException";
|
|
87
|
+
_this.$fault = "client";
|
|
88
|
+
Object.setPrototypeOf(_this, ValidationException.prototype);
|
|
89
|
+
return _this;
|
|
90
|
+
}
|
|
91
|
+
return ValidationException;
|
|
92
|
+
}(__BaseException));
|
|
93
|
+
export { ValidationException };
|
|
94
|
+
export var ControlOperationType;
|
|
95
|
+
(function (ControlOperationType) {
|
|
96
|
+
ControlOperationType["DISABLE_CONTROL"] = "DISABLE_CONTROL";
|
|
97
|
+
ControlOperationType["ENABLE_CONTROL"] = "ENABLE_CONTROL";
|
|
98
|
+
})(ControlOperationType || (ControlOperationType = {}));
|
|
99
|
+
export var ControlOperationStatus;
|
|
100
|
+
(function (ControlOperationStatus) {
|
|
101
|
+
ControlOperationStatus["FAILED"] = "FAILED";
|
|
102
|
+
ControlOperationStatus["IN_PROGRESS"] = "IN_PROGRESS";
|
|
103
|
+
ControlOperationStatus["SUCCEEDED"] = "SUCCEEDED";
|
|
104
|
+
})(ControlOperationStatus || (ControlOperationStatus = {}));
|
|
105
|
+
export var DisableControlInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
106
|
+
export var DisableControlOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
107
|
+
export var EnableControlInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
108
|
+
export var EnableControlOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
109
|
+
export var GetControlOperationInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
110
|
+
export var ControlOperationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
111
|
+
export var GetControlOperationOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
112
|
+
export var ListEnabledControlsInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
113
|
+
export var EnabledControlSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
114
|
+
export var ListEnabledControlsOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListEnabledControlsCommand, } from "../commands/ListEnabledControlsCommand";
|
|
3
|
+
import { ControlTower } from "../ControlTower";
|
|
4
|
+
import { ControlTowerClient } from "../ControlTowerClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListEnabledControlsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listEnabledControls.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListEnabledControls(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListEnabledControls_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.nextToken = token;
|
|
49
|
+
input["maxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof ControlTower)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof ControlTowerClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected ControlTower | ControlTowerClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.nextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|