@aws-sdk/client-ivs-realtime 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/IVSRealTime.js +14 -140
- package/dist-cjs/protocols/Aws_restJson1.js +125 -229
- package/dist-es/IVSRealTime.js +14 -140
- package/dist-es/protocols/Aws_restJson1.js +108 -212
- package/dist-types/IVSRealTime.d.ts +63 -73
- package/dist-types/ts3.4/IVSRealTime.d.ts +4 -1
- package/package.json +6 -6
package/dist-es/IVSRealTime.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { CreateParticipantTokenCommand, } from "./commands/CreateParticipantTokenCommand";
|
|
2
3
|
import { CreateStageCommand } from "./commands/CreateStageCommand";
|
|
3
4
|
import { DeleteStageCommand } from "./commands/DeleteStageCommand";
|
|
@@ -9,145 +10,18 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
|
9
10
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
10
11
|
import { UpdateStageCommand } from "./commands/UpdateStageCommand";
|
|
11
12
|
import { IVSRealTimeClient } from "./IVSRealTimeClient";
|
|
13
|
+
const commands = {
|
|
14
|
+
CreateParticipantTokenCommand,
|
|
15
|
+
CreateStageCommand,
|
|
16
|
+
DeleteStageCommand,
|
|
17
|
+
DisconnectParticipantCommand,
|
|
18
|
+
GetStageCommand,
|
|
19
|
+
ListStagesCommand,
|
|
20
|
+
ListTagsForResourceCommand,
|
|
21
|
+
TagResourceCommand,
|
|
22
|
+
UntagResourceCommand,
|
|
23
|
+
UpdateStageCommand,
|
|
24
|
+
};
|
|
12
25
|
export class IVSRealTime extends IVSRealTimeClient {
|
|
13
|
-
createParticipantToken(args, optionsOrCb, cb) {
|
|
14
|
-
const command = new CreateParticipantTokenCommand(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
|
-
createStage(args, optionsOrCb, cb) {
|
|
28
|
-
const command = new CreateStageCommand(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
|
-
deleteStage(args, optionsOrCb, cb) {
|
|
42
|
-
const command = new DeleteStageCommand(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
|
-
disconnectParticipant(args, optionsOrCb, cb) {
|
|
56
|
-
const command = new DisconnectParticipantCommand(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
|
-
getStage(args, optionsOrCb, cb) {
|
|
70
|
-
const command = new GetStageCommand(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
|
-
listStages(args, optionsOrCb, cb) {
|
|
84
|
-
const command = new ListStagesCommand(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
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
98
|
-
const command = new ListTagsForResourceCommand(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
|
-
tagResource(args, optionsOrCb, cb) {
|
|
112
|
-
const command = new TagResourceCommand(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
|
-
updateStage(args, optionsOrCb, cb) {
|
|
140
|
-
const command = new UpdateStageCommand(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, IVSRealTime);
|