@aws-sdk/client-rbin 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/Rbin.js +14 -140
- package/dist-cjs/protocols/Aws_restJson1.js +145 -346
- package/dist-es/Rbin.js +14 -140
- package/dist-es/protocols/Aws_restJson1.js +130 -331
- package/dist-types/Rbin.d.ts +30 -44
- package/dist-types/ts3.4/Rbin.d.ts +2 -1
- package/package.json +6 -6
package/dist-es/Rbin.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { CreateRuleCommand } from "./commands/CreateRuleCommand";
|
|
2
3
|
import { DeleteRuleCommand } from "./commands/DeleteRuleCommand";
|
|
3
4
|
import { GetRuleCommand } from "./commands/GetRuleCommand";
|
|
@@ -9,145 +10,18 @@ import { UnlockRuleCommand } from "./commands/UnlockRuleCommand";
|
|
|
9
10
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
10
11
|
import { UpdateRuleCommand } from "./commands/UpdateRuleCommand";
|
|
11
12
|
import { RbinClient } from "./RbinClient";
|
|
13
|
+
const commands = {
|
|
14
|
+
CreateRuleCommand,
|
|
15
|
+
DeleteRuleCommand,
|
|
16
|
+
GetRuleCommand,
|
|
17
|
+
ListRulesCommand,
|
|
18
|
+
ListTagsForResourceCommand,
|
|
19
|
+
LockRuleCommand,
|
|
20
|
+
TagResourceCommand,
|
|
21
|
+
UnlockRuleCommand,
|
|
22
|
+
UntagResourceCommand,
|
|
23
|
+
UpdateRuleCommand,
|
|
24
|
+
};
|
|
12
25
|
export class Rbin extends RbinClient {
|
|
13
|
-
createRule(args, optionsOrCb, cb) {
|
|
14
|
-
const command = new CreateRuleCommand(args);
|
|
15
|
-
if (typeof optionsOrCb === "function") {
|
|
16
|
-
this.send(command, optionsOrCb);
|
|
17
|
-
}
|
|
18
|
-
else if (typeof cb === "function") {
|
|
19
|
-
if (typeof optionsOrCb !== "object")
|
|
20
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
21
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
return this.send(command, optionsOrCb);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
deleteRule(args, optionsOrCb, cb) {
|
|
28
|
-
const command = new DeleteRuleCommand(args);
|
|
29
|
-
if (typeof optionsOrCb === "function") {
|
|
30
|
-
this.send(command, optionsOrCb);
|
|
31
|
-
}
|
|
32
|
-
else if (typeof cb === "function") {
|
|
33
|
-
if (typeof optionsOrCb !== "object")
|
|
34
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
35
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
return this.send(command, optionsOrCb);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
getRule(args, optionsOrCb, cb) {
|
|
42
|
-
const command = new GetRuleCommand(args);
|
|
43
|
-
if (typeof optionsOrCb === "function") {
|
|
44
|
-
this.send(command, optionsOrCb);
|
|
45
|
-
}
|
|
46
|
-
else if (typeof cb === "function") {
|
|
47
|
-
if (typeof optionsOrCb !== "object")
|
|
48
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
49
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
return this.send(command, optionsOrCb);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
listRules(args, optionsOrCb, cb) {
|
|
56
|
-
const command = new ListRulesCommand(args);
|
|
57
|
-
if (typeof optionsOrCb === "function") {
|
|
58
|
-
this.send(command, optionsOrCb);
|
|
59
|
-
}
|
|
60
|
-
else if (typeof cb === "function") {
|
|
61
|
-
if (typeof optionsOrCb !== "object")
|
|
62
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
63
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
return this.send(command, optionsOrCb);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
70
|
-
const command = new ListTagsForResourceCommand(args);
|
|
71
|
-
if (typeof optionsOrCb === "function") {
|
|
72
|
-
this.send(command, optionsOrCb);
|
|
73
|
-
}
|
|
74
|
-
else if (typeof cb === "function") {
|
|
75
|
-
if (typeof optionsOrCb !== "object")
|
|
76
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
77
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
return this.send(command, optionsOrCb);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
lockRule(args, optionsOrCb, cb) {
|
|
84
|
-
const command = new LockRuleCommand(args);
|
|
85
|
-
if (typeof optionsOrCb === "function") {
|
|
86
|
-
this.send(command, optionsOrCb);
|
|
87
|
-
}
|
|
88
|
-
else if (typeof cb === "function") {
|
|
89
|
-
if (typeof optionsOrCb !== "object")
|
|
90
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
91
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
return this.send(command, optionsOrCb);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
tagResource(args, optionsOrCb, cb) {
|
|
98
|
-
const command = new TagResourceCommand(args);
|
|
99
|
-
if (typeof optionsOrCb === "function") {
|
|
100
|
-
this.send(command, optionsOrCb);
|
|
101
|
-
}
|
|
102
|
-
else if (typeof cb === "function") {
|
|
103
|
-
if (typeof optionsOrCb !== "object")
|
|
104
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
105
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
106
|
-
}
|
|
107
|
-
else {
|
|
108
|
-
return this.send(command, optionsOrCb);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
unlockRule(args, optionsOrCb, cb) {
|
|
112
|
-
const command = new UnlockRuleCommand(args);
|
|
113
|
-
if (typeof optionsOrCb === "function") {
|
|
114
|
-
this.send(command, optionsOrCb);
|
|
115
|
-
}
|
|
116
|
-
else if (typeof cb === "function") {
|
|
117
|
-
if (typeof optionsOrCb !== "object")
|
|
118
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
119
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
return this.send(command, optionsOrCb);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
untagResource(args, optionsOrCb, cb) {
|
|
126
|
-
const command = new UntagResourceCommand(args);
|
|
127
|
-
if (typeof optionsOrCb === "function") {
|
|
128
|
-
this.send(command, optionsOrCb);
|
|
129
|
-
}
|
|
130
|
-
else if (typeof cb === "function") {
|
|
131
|
-
if (typeof optionsOrCb !== "object")
|
|
132
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
133
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
134
|
-
}
|
|
135
|
-
else {
|
|
136
|
-
return this.send(command, optionsOrCb);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
updateRule(args, optionsOrCb, cb) {
|
|
140
|
-
const command = new UpdateRuleCommand(args);
|
|
141
|
-
if (typeof optionsOrCb === "function") {
|
|
142
|
-
this.send(command, optionsOrCb);
|
|
143
|
-
}
|
|
144
|
-
else if (typeof cb === "function") {
|
|
145
|
-
if (typeof optionsOrCb !== "object")
|
|
146
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
147
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
148
|
-
}
|
|
149
|
-
else {
|
|
150
|
-
return this.send(command, optionsOrCb);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
26
|
}
|
|
27
|
+
createAggregatedClient(commands, Rbin);
|