@aws-sdk/client-controltower 3.315.0 → 3.319.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/dist-cjs/ControlTower.js
CHANGED
|
@@ -1,67 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ControlTower = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const DisableControlCommand_1 = require("./commands/DisableControlCommand");
|
|
5
6
|
const EnableControlCommand_1 = require("./commands/EnableControlCommand");
|
|
6
7
|
const GetControlOperationCommand_1 = require("./commands/GetControlOperationCommand");
|
|
7
8
|
const ListEnabledControlsCommand_1 = require("./commands/ListEnabledControlsCommand");
|
|
8
9
|
const ControlTowerClient_1 = require("./ControlTowerClient");
|
|
10
|
+
const commands = {
|
|
11
|
+
DisableControlCommand: DisableControlCommand_1.DisableControlCommand,
|
|
12
|
+
EnableControlCommand: EnableControlCommand_1.EnableControlCommand,
|
|
13
|
+
GetControlOperationCommand: GetControlOperationCommand_1.GetControlOperationCommand,
|
|
14
|
+
ListEnabledControlsCommand: ListEnabledControlsCommand_1.ListEnabledControlsCommand,
|
|
15
|
+
};
|
|
9
16
|
class ControlTower extends ControlTowerClient_1.ControlTowerClient {
|
|
10
|
-
disableControl(args, optionsOrCb, cb) {
|
|
11
|
-
const command = new DisableControlCommand_1.DisableControlCommand(args);
|
|
12
|
-
if (typeof optionsOrCb === "function") {
|
|
13
|
-
this.send(command, optionsOrCb);
|
|
14
|
-
}
|
|
15
|
-
else if (typeof cb === "function") {
|
|
16
|
-
if (typeof optionsOrCb !== "object")
|
|
17
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
18
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
return this.send(command, optionsOrCb);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
enableControl(args, optionsOrCb, cb) {
|
|
25
|
-
const command = new EnableControlCommand_1.EnableControlCommand(args);
|
|
26
|
-
if (typeof optionsOrCb === "function") {
|
|
27
|
-
this.send(command, optionsOrCb);
|
|
28
|
-
}
|
|
29
|
-
else if (typeof cb === "function") {
|
|
30
|
-
if (typeof optionsOrCb !== "object")
|
|
31
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
32
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
return this.send(command, optionsOrCb);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
getControlOperation(args, optionsOrCb, cb) {
|
|
39
|
-
const command = new GetControlOperationCommand_1.GetControlOperationCommand(args);
|
|
40
|
-
if (typeof optionsOrCb === "function") {
|
|
41
|
-
this.send(command, optionsOrCb);
|
|
42
|
-
}
|
|
43
|
-
else if (typeof cb === "function") {
|
|
44
|
-
if (typeof optionsOrCb !== "object")
|
|
45
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
46
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
return this.send(command, optionsOrCb);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
listEnabledControls(args, optionsOrCb, cb) {
|
|
53
|
-
const command = new ListEnabledControlsCommand_1.ListEnabledControlsCommand(args);
|
|
54
|
-
if (typeof optionsOrCb === "function") {
|
|
55
|
-
this.send(command, optionsOrCb);
|
|
56
|
-
}
|
|
57
|
-
else if (typeof cb === "function") {
|
|
58
|
-
if (typeof optionsOrCb !== "object")
|
|
59
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
60
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
return this.send(command, optionsOrCb);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
17
|
}
|
|
67
18
|
exports.ControlTower = ControlTower;
|
|
19
|
+
(0, smithy_client_1.createAggregatedClient)(commands, ControlTower);
|
package/dist-es/ControlTower.js
CHANGED
|
@@ -1,63 +1,15 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { DisableControlCommand, } from "./commands/DisableControlCommand";
|
|
2
3
|
import { EnableControlCommand, } from "./commands/EnableControlCommand";
|
|
3
4
|
import { GetControlOperationCommand, } from "./commands/GetControlOperationCommand";
|
|
4
5
|
import { ListEnabledControlsCommand, } from "./commands/ListEnabledControlsCommand";
|
|
5
6
|
import { ControlTowerClient } from "./ControlTowerClient";
|
|
7
|
+
const commands = {
|
|
8
|
+
DisableControlCommand,
|
|
9
|
+
EnableControlCommand,
|
|
10
|
+
GetControlOperationCommand,
|
|
11
|
+
ListEnabledControlsCommand,
|
|
12
|
+
};
|
|
6
13
|
export class ControlTower extends ControlTowerClient {
|
|
7
|
-
disableControl(args, optionsOrCb, cb) {
|
|
8
|
-
const command = new DisableControlCommand(args);
|
|
9
|
-
if (typeof optionsOrCb === "function") {
|
|
10
|
-
this.send(command, optionsOrCb);
|
|
11
|
-
}
|
|
12
|
-
else if (typeof cb === "function") {
|
|
13
|
-
if (typeof optionsOrCb !== "object")
|
|
14
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
15
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
return this.send(command, optionsOrCb);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
enableControl(args, optionsOrCb, cb) {
|
|
22
|
-
const command = new EnableControlCommand(args);
|
|
23
|
-
if (typeof optionsOrCb === "function") {
|
|
24
|
-
this.send(command, optionsOrCb);
|
|
25
|
-
}
|
|
26
|
-
else if (typeof cb === "function") {
|
|
27
|
-
if (typeof optionsOrCb !== "object")
|
|
28
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
29
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
return this.send(command, optionsOrCb);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
getControlOperation(args, optionsOrCb, cb) {
|
|
36
|
-
const command = new GetControlOperationCommand(args);
|
|
37
|
-
if (typeof optionsOrCb === "function") {
|
|
38
|
-
this.send(command, optionsOrCb);
|
|
39
|
-
}
|
|
40
|
-
else if (typeof cb === "function") {
|
|
41
|
-
if (typeof optionsOrCb !== "object")
|
|
42
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
43
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
return this.send(command, optionsOrCb);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
listEnabledControls(args, optionsOrCb, cb) {
|
|
50
|
-
const command = new ListEnabledControlsCommand(args);
|
|
51
|
-
if (typeof optionsOrCb === "function") {
|
|
52
|
-
this.send(command, optionsOrCb);
|
|
53
|
-
}
|
|
54
|
-
else if (typeof cb === "function") {
|
|
55
|
-
if (typeof optionsOrCb !== "object")
|
|
56
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
57
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
return this.send(command, optionsOrCb);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
14
|
}
|
|
15
|
+
createAggregatedClient(commands, ControlTower);
|
|
@@ -4,6 +4,32 @@ import { EnableControlCommandInput, EnableControlCommandOutput } from "./command
|
|
|
4
4
|
import { GetControlOperationCommandInput, GetControlOperationCommandOutput } from "./commands/GetControlOperationCommand";
|
|
5
5
|
import { ListEnabledControlsCommandInput, ListEnabledControlsCommandOutput } from "./commands/ListEnabledControlsCommand";
|
|
6
6
|
import { ControlTowerClient } from "./ControlTowerClient";
|
|
7
|
+
export interface ControlTower {
|
|
8
|
+
/**
|
|
9
|
+
* @see {@link DisableControlCommand}
|
|
10
|
+
*/
|
|
11
|
+
disableControl(args: DisableControlCommandInput, options?: __HttpHandlerOptions): Promise<DisableControlCommandOutput>;
|
|
12
|
+
disableControl(args: DisableControlCommandInput, cb: (err: any, data?: DisableControlCommandOutput) => void): void;
|
|
13
|
+
disableControl(args: DisableControlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisableControlCommandOutput) => void): void;
|
|
14
|
+
/**
|
|
15
|
+
* @see {@link EnableControlCommand}
|
|
16
|
+
*/
|
|
17
|
+
enableControl(args: EnableControlCommandInput, options?: __HttpHandlerOptions): Promise<EnableControlCommandOutput>;
|
|
18
|
+
enableControl(args: EnableControlCommandInput, cb: (err: any, data?: EnableControlCommandOutput) => void): void;
|
|
19
|
+
enableControl(args: EnableControlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: EnableControlCommandOutput) => void): void;
|
|
20
|
+
/**
|
|
21
|
+
* @see {@link GetControlOperationCommand}
|
|
22
|
+
*/
|
|
23
|
+
getControlOperation(args: GetControlOperationCommandInput, options?: __HttpHandlerOptions): Promise<GetControlOperationCommandOutput>;
|
|
24
|
+
getControlOperation(args: GetControlOperationCommandInput, cb: (err: any, data?: GetControlOperationCommandOutput) => void): void;
|
|
25
|
+
getControlOperation(args: GetControlOperationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetControlOperationCommandOutput) => void): void;
|
|
26
|
+
/**
|
|
27
|
+
* @see {@link ListEnabledControlsCommand}
|
|
28
|
+
*/
|
|
29
|
+
listEnabledControls(args: ListEnabledControlsCommandInput, options?: __HttpHandlerOptions): Promise<ListEnabledControlsCommandOutput>;
|
|
30
|
+
listEnabledControls(args: ListEnabledControlsCommandInput, cb: (err: any, data?: ListEnabledControlsCommandOutput) => void): void;
|
|
31
|
+
listEnabledControls(args: ListEnabledControlsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEnabledControlsCommandOutput) => void): void;
|
|
32
|
+
}
|
|
7
33
|
/**
|
|
8
34
|
* @public
|
|
9
35
|
* <p>These interfaces allow you to apply the AWS library of pre-defined <i>controls</i> to your
|
|
@@ -78,40 +104,5 @@ import { ControlTowerClient } from "./ControlTowerClient";
|
|
|
78
104
|
* </p>
|
|
79
105
|
* <p>AWS Control Tower supports AWS CloudTrail, a service that records AWS API calls for your AWS account and delivers log files to an Amazon S3 bucket. By using information collected by CloudTrail, you can determine which requests the AWS Control Tower service received, who made the request and when, and so on. For more about AWS Control Tower and its support for CloudTrail, see <a href="https://docs.aws.amazon.com/controltower/latest/userguide/logging-using-cloudtrail.html">Logging AWS Control Tower Actions with AWS CloudTrail</a> in the AWS Control Tower User Guide. To learn more about CloudTrail, including how to turn it on and find your log files, see the AWS CloudTrail User Guide.</p>
|
|
80
106
|
*/
|
|
81
|
-
export declare class ControlTower extends ControlTowerClient {
|
|
82
|
-
/**
|
|
83
|
-
* @public
|
|
84
|
-
* <p>This API call turns off a control. It starts an asynchronous operation that deletes AWS resources on the specified
|
|
85
|
-
* organizational unit and the accounts it contains. The resources will vary according to the
|
|
86
|
-
* control that you specify.</p>
|
|
87
|
-
*/
|
|
88
|
-
disableControl(args: DisableControlCommandInput, options?: __HttpHandlerOptions): Promise<DisableControlCommandOutput>;
|
|
89
|
-
disableControl(args: DisableControlCommandInput, cb: (err: any, data?: DisableControlCommandOutput) => void): void;
|
|
90
|
-
disableControl(args: DisableControlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisableControlCommandOutput) => void): void;
|
|
91
|
-
/**
|
|
92
|
-
* @public
|
|
93
|
-
* <p>This API call activates a control. It starts an asynchronous operation that creates AWS resources on the specified
|
|
94
|
-
* organizational unit and the accounts it contains. The resources created will vary according to
|
|
95
|
-
* the control that you specify.</p>
|
|
96
|
-
*/
|
|
97
|
-
enableControl(args: EnableControlCommandInput, options?: __HttpHandlerOptions): Promise<EnableControlCommandOutput>;
|
|
98
|
-
enableControl(args: EnableControlCommandInput, cb: (err: any, data?: EnableControlCommandOutput) => void): void;
|
|
99
|
-
enableControl(args: EnableControlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: EnableControlCommandOutput) => void): void;
|
|
100
|
-
/**
|
|
101
|
-
* @public
|
|
102
|
-
* <p>Returns the status of a particular <code>EnableControl</code> or
|
|
103
|
-
* <code>DisableControl</code> operation. Displays a message in case of error.
|
|
104
|
-
* Details for an operation are available for 90 days.</p>
|
|
105
|
-
*/
|
|
106
|
-
getControlOperation(args: GetControlOperationCommandInput, options?: __HttpHandlerOptions): Promise<GetControlOperationCommandOutput>;
|
|
107
|
-
getControlOperation(args: GetControlOperationCommandInput, cb: (err: any, data?: GetControlOperationCommandOutput) => void): void;
|
|
108
|
-
getControlOperation(args: GetControlOperationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetControlOperationCommandOutput) => void): void;
|
|
109
|
-
/**
|
|
110
|
-
* @public
|
|
111
|
-
* <p>Lists the controls enabled by AWS Control Tower on the specified organizational unit and
|
|
112
|
-
* the accounts it contains.</p>
|
|
113
|
-
*/
|
|
114
|
-
listEnabledControls(args: ListEnabledControlsCommandInput, options?: __HttpHandlerOptions): Promise<ListEnabledControlsCommandOutput>;
|
|
115
|
-
listEnabledControls(args: ListEnabledControlsCommandInput, cb: (err: any, data?: ListEnabledControlsCommandOutput) => void): void;
|
|
116
|
-
listEnabledControls(args: ListEnabledControlsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEnabledControlsCommandOutput) => void): void;
|
|
107
|
+
export declare class ControlTower extends ControlTowerClient implements ControlTower {
|
|
117
108
|
}
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
ListEnabledControlsCommandOutput,
|
|
17
17
|
} from "./commands/ListEnabledControlsCommand";
|
|
18
18
|
import { ControlTowerClient } from "./ControlTowerClient";
|
|
19
|
-
export
|
|
19
|
+
export interface ControlTower {
|
|
20
20
|
disableControl(
|
|
21
21
|
args: DisableControlCommandInput,
|
|
22
22
|
options?: __HttpHandlerOptions
|
|
@@ -70,3 +70,6 @@ export declare class ControlTower extends ControlTowerClient {
|
|
|
70
70
|
cb: (err: any, data?: ListEnabledControlsCommandOutput) => void
|
|
71
71
|
): void;
|
|
72
72
|
}
|
|
73
|
+
export declare class ControlTower
|
|
74
|
+
extends ControlTowerClient
|
|
75
|
+
implements ControlTower {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-controltower",
|
|
3
3
|
"description": "AWS SDK for JavaScript Controltower Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.319.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.319.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.319.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
"@aws-sdk/middleware-serde": "3.310.0",
|
|
37
37
|
"@aws-sdk/middleware-signing": "3.310.0",
|
|
38
38
|
"@aws-sdk/middleware-stack": "3.310.0",
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.319.0",
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.319.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|
|
54
54
|
"@aws-sdk/util-user-agent-node": "3.310.0",
|