@aws-sdk/client-cloudcontrol 3.312.0 → 3.316.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/CloudControl.js +12 -112
- package/dist-cjs/protocols/Aws_json1_0.js +96 -302
- package/dist-es/CloudControl.js +12 -112
- package/dist-es/protocols/Aws_json1_0.js +97 -303
- package/dist-types/CloudControl.d.ts +16 -56
- package/dist-types/ts3.4/CloudControl.d.ts +4 -1
- package/package.json +6 -6
package/dist-cjs/CloudControl.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CloudControl = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const CloudControlClient_1 = require("./CloudControlClient");
|
|
5
6
|
const CancelResourceRequestCommand_1 = require("./commands/CancelResourceRequestCommand");
|
|
6
7
|
const CreateResourceCommand_1 = require("./commands/CreateResourceCommand");
|
|
@@ -10,118 +11,17 @@ const GetResourceRequestStatusCommand_1 = require("./commands/GetResourceRequest
|
|
|
10
11
|
const ListResourceRequestsCommand_1 = require("./commands/ListResourceRequestsCommand");
|
|
11
12
|
const ListResourcesCommand_1 = require("./commands/ListResourcesCommand");
|
|
12
13
|
const UpdateResourceCommand_1 = require("./commands/UpdateResourceCommand");
|
|
14
|
+
const commands = {
|
|
15
|
+
CancelResourceRequestCommand: CancelResourceRequestCommand_1.CancelResourceRequestCommand,
|
|
16
|
+
CreateResourceCommand: CreateResourceCommand_1.CreateResourceCommand,
|
|
17
|
+
DeleteResourceCommand: DeleteResourceCommand_1.DeleteResourceCommand,
|
|
18
|
+
GetResourceCommand: GetResourceCommand_1.GetResourceCommand,
|
|
19
|
+
GetResourceRequestStatusCommand: GetResourceRequestStatusCommand_1.GetResourceRequestStatusCommand,
|
|
20
|
+
ListResourceRequestsCommand: ListResourceRequestsCommand_1.ListResourceRequestsCommand,
|
|
21
|
+
ListResourcesCommand: ListResourcesCommand_1.ListResourcesCommand,
|
|
22
|
+
UpdateResourceCommand: UpdateResourceCommand_1.UpdateResourceCommand,
|
|
23
|
+
};
|
|
13
24
|
class CloudControl extends CloudControlClient_1.CloudControlClient {
|
|
14
|
-
cancelResourceRequest(args, optionsOrCb, cb) {
|
|
15
|
-
const command = new CancelResourceRequestCommand_1.CancelResourceRequestCommand(args);
|
|
16
|
-
if (typeof optionsOrCb === "function") {
|
|
17
|
-
this.send(command, optionsOrCb);
|
|
18
|
-
}
|
|
19
|
-
else if (typeof cb === "function") {
|
|
20
|
-
if (typeof optionsOrCb !== "object")
|
|
21
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
22
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
return this.send(command, optionsOrCb);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
createResource(args, optionsOrCb, cb) {
|
|
29
|
-
const command = new CreateResourceCommand_1.CreateResourceCommand(args);
|
|
30
|
-
if (typeof optionsOrCb === "function") {
|
|
31
|
-
this.send(command, optionsOrCb);
|
|
32
|
-
}
|
|
33
|
-
else if (typeof cb === "function") {
|
|
34
|
-
if (typeof optionsOrCb !== "object")
|
|
35
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
36
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
return this.send(command, optionsOrCb);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
deleteResource(args, optionsOrCb, cb) {
|
|
43
|
-
const command = new DeleteResourceCommand_1.DeleteResourceCommand(args);
|
|
44
|
-
if (typeof optionsOrCb === "function") {
|
|
45
|
-
this.send(command, optionsOrCb);
|
|
46
|
-
}
|
|
47
|
-
else if (typeof cb === "function") {
|
|
48
|
-
if (typeof optionsOrCb !== "object")
|
|
49
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
50
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
return this.send(command, optionsOrCb);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
getResource(args, optionsOrCb, cb) {
|
|
57
|
-
const command = new GetResourceCommand_1.GetResourceCommand(args);
|
|
58
|
-
if (typeof optionsOrCb === "function") {
|
|
59
|
-
this.send(command, optionsOrCb);
|
|
60
|
-
}
|
|
61
|
-
else if (typeof cb === "function") {
|
|
62
|
-
if (typeof optionsOrCb !== "object")
|
|
63
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
64
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
return this.send(command, optionsOrCb);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
getResourceRequestStatus(args, optionsOrCb, cb) {
|
|
71
|
-
const command = new GetResourceRequestStatusCommand_1.GetResourceRequestStatusCommand(args);
|
|
72
|
-
if (typeof optionsOrCb === "function") {
|
|
73
|
-
this.send(command, optionsOrCb);
|
|
74
|
-
}
|
|
75
|
-
else if (typeof cb === "function") {
|
|
76
|
-
if (typeof optionsOrCb !== "object")
|
|
77
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
78
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
return this.send(command, optionsOrCb);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
listResourceRequests(args, optionsOrCb, cb) {
|
|
85
|
-
const command = new ListResourceRequestsCommand_1.ListResourceRequestsCommand(args);
|
|
86
|
-
if (typeof optionsOrCb === "function") {
|
|
87
|
-
this.send(command, optionsOrCb);
|
|
88
|
-
}
|
|
89
|
-
else if (typeof cb === "function") {
|
|
90
|
-
if (typeof optionsOrCb !== "object")
|
|
91
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
92
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
return this.send(command, optionsOrCb);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
listResources(args, optionsOrCb, cb) {
|
|
99
|
-
const command = new ListResourcesCommand_1.ListResourcesCommand(args);
|
|
100
|
-
if (typeof optionsOrCb === "function") {
|
|
101
|
-
this.send(command, optionsOrCb);
|
|
102
|
-
}
|
|
103
|
-
else if (typeof cb === "function") {
|
|
104
|
-
if (typeof optionsOrCb !== "object")
|
|
105
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
106
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
return this.send(command, optionsOrCb);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
updateResource(args, optionsOrCb, cb) {
|
|
113
|
-
const command = new UpdateResourceCommand_1.UpdateResourceCommand(args);
|
|
114
|
-
if (typeof optionsOrCb === "function") {
|
|
115
|
-
this.send(command, optionsOrCb);
|
|
116
|
-
}
|
|
117
|
-
else if (typeof cb === "function") {
|
|
118
|
-
if (typeof optionsOrCb !== "object")
|
|
119
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
120
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
return this.send(command, optionsOrCb);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
25
|
}
|
|
127
26
|
exports.CloudControl = CloudControl;
|
|
27
|
+
(0, smithy_client_1.createAggregatedClient)(commands, CloudControl);
|