@effect-aws/client-ivs 1.10.5
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/Errors/package.json +6 -0
- package/IvsClientInstance/package.json +6 -0
- package/IvsService/package.json +6 -0
- package/IvsServiceConfig/package.json +6 -0
- package/LICENSE +19 -0
- package/README.md +58 -0
- package/dist/cjs/Errors.d.ts +17 -0
- package/dist/cjs/Errors.d.ts.map +1 -0
- package/dist/cjs/Errors.js +16 -0
- package/dist/cjs/Errors.js.map +1 -0
- package/dist/cjs/IvsClientInstance.d.ts +24 -0
- package/dist/cjs/IvsClientInstance.d.ts.map +1 -0
- package/dist/cjs/IvsClientInstance.js +50 -0
- package/dist/cjs/IvsClientInstance.js.map +1 -0
- package/dist/cjs/IvsService.d.ts +186 -0
- package/dist/cjs/IvsService.d.ts.map +1 -0
- package/dist/cjs/IvsService.js +94 -0
- package/dist/cjs/IvsService.js.map +1 -0
- package/dist/cjs/IvsServiceConfig.d.ts +25 -0
- package/dist/cjs/IvsServiceConfig.d.ts.map +1 -0
- package/dist/cjs/IvsServiceConfig.js +35 -0
- package/dist/cjs/IvsServiceConfig.js.map +1 -0
- package/dist/cjs/index.d.ts +44 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +56 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/dts/Errors.d.ts +17 -0
- package/dist/dts/Errors.d.ts.map +1 -0
- package/dist/dts/IvsClientInstance.d.ts +24 -0
- package/dist/dts/IvsClientInstance.d.ts.map +1 -0
- package/dist/dts/IvsService.d.ts +186 -0
- package/dist/dts/IvsService.d.ts.map +1 -0
- package/dist/dts/IvsServiceConfig.d.ts +25 -0
- package/dist/dts/IvsServiceConfig.d.ts.map +1 -0
- package/dist/dts/index.d.ts +44 -0
- package/dist/dts/index.d.ts.map +1 -0
- package/dist/esm/Errors.js +13 -0
- package/dist/esm/Errors.js.map +1 -0
- package/dist/esm/IvsClientInstance.js +23 -0
- package/dist/esm/IvsClientInstance.js.map +1 -0
- package/dist/esm/IvsService.js +67 -0
- package/dist/esm/IvsService.js.map +1 -0
- package/dist/esm/IvsServiceConfig.js +31 -0
- package/dist/esm/IvsServiceConfig.js.map +1 -0
- package/dist/esm/index.js +27 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +4 -0
- package/package.json +71 -0
- package/src/Errors.ts +38 -0
- package/src/IvsClientInstance.ts +33 -0
- package/src/IvsService.ts +725 -0
- package/src/IvsServiceConfig.ts +51 -0
- package/src/index.ts +50 -0
|
@@ -0,0 +1,725 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import {
|
|
5
|
+
BatchGetChannelCommand,
|
|
6
|
+
type BatchGetChannelCommandInput,
|
|
7
|
+
type BatchGetChannelCommandOutput,
|
|
8
|
+
BatchGetStreamKeyCommand,
|
|
9
|
+
type BatchGetStreamKeyCommandInput,
|
|
10
|
+
type BatchGetStreamKeyCommandOutput,
|
|
11
|
+
BatchStartViewerSessionRevocationCommand,
|
|
12
|
+
type BatchStartViewerSessionRevocationCommandInput,
|
|
13
|
+
type BatchStartViewerSessionRevocationCommandOutput,
|
|
14
|
+
CreateChannelCommand,
|
|
15
|
+
type CreateChannelCommandInput,
|
|
16
|
+
type CreateChannelCommandOutput,
|
|
17
|
+
CreatePlaybackRestrictionPolicyCommand,
|
|
18
|
+
type CreatePlaybackRestrictionPolicyCommandInput,
|
|
19
|
+
type CreatePlaybackRestrictionPolicyCommandOutput,
|
|
20
|
+
CreateRecordingConfigurationCommand,
|
|
21
|
+
type CreateRecordingConfigurationCommandInput,
|
|
22
|
+
type CreateRecordingConfigurationCommandOutput,
|
|
23
|
+
CreateStreamKeyCommand,
|
|
24
|
+
type CreateStreamKeyCommandInput,
|
|
25
|
+
type CreateStreamKeyCommandOutput,
|
|
26
|
+
DeleteChannelCommand,
|
|
27
|
+
type DeleteChannelCommandInput,
|
|
28
|
+
type DeleteChannelCommandOutput,
|
|
29
|
+
DeletePlaybackKeyPairCommand,
|
|
30
|
+
type DeletePlaybackKeyPairCommandInput,
|
|
31
|
+
type DeletePlaybackKeyPairCommandOutput,
|
|
32
|
+
DeletePlaybackRestrictionPolicyCommand,
|
|
33
|
+
type DeletePlaybackRestrictionPolicyCommandInput,
|
|
34
|
+
type DeletePlaybackRestrictionPolicyCommandOutput,
|
|
35
|
+
DeleteRecordingConfigurationCommand,
|
|
36
|
+
type DeleteRecordingConfigurationCommandInput,
|
|
37
|
+
type DeleteRecordingConfigurationCommandOutput,
|
|
38
|
+
DeleteStreamKeyCommand,
|
|
39
|
+
type DeleteStreamKeyCommandInput,
|
|
40
|
+
type DeleteStreamKeyCommandOutput,
|
|
41
|
+
GetChannelCommand,
|
|
42
|
+
type GetChannelCommandInput,
|
|
43
|
+
type GetChannelCommandOutput,
|
|
44
|
+
GetPlaybackKeyPairCommand,
|
|
45
|
+
type GetPlaybackKeyPairCommandInput,
|
|
46
|
+
type GetPlaybackKeyPairCommandOutput,
|
|
47
|
+
GetPlaybackRestrictionPolicyCommand,
|
|
48
|
+
type GetPlaybackRestrictionPolicyCommandInput,
|
|
49
|
+
type GetPlaybackRestrictionPolicyCommandOutput,
|
|
50
|
+
GetRecordingConfigurationCommand,
|
|
51
|
+
type GetRecordingConfigurationCommandInput,
|
|
52
|
+
type GetRecordingConfigurationCommandOutput,
|
|
53
|
+
GetStreamCommand,
|
|
54
|
+
type GetStreamCommandInput,
|
|
55
|
+
type GetStreamCommandOutput,
|
|
56
|
+
GetStreamKeyCommand,
|
|
57
|
+
type GetStreamKeyCommandInput,
|
|
58
|
+
type GetStreamKeyCommandOutput,
|
|
59
|
+
GetStreamSessionCommand,
|
|
60
|
+
type GetStreamSessionCommandInput,
|
|
61
|
+
type GetStreamSessionCommandOutput,
|
|
62
|
+
ImportPlaybackKeyPairCommand,
|
|
63
|
+
type ImportPlaybackKeyPairCommandInput,
|
|
64
|
+
type ImportPlaybackKeyPairCommandOutput,
|
|
65
|
+
type IvsClient,
|
|
66
|
+
type IvsClientConfig,
|
|
67
|
+
ListChannelsCommand,
|
|
68
|
+
type ListChannelsCommandInput,
|
|
69
|
+
type ListChannelsCommandOutput,
|
|
70
|
+
ListPlaybackKeyPairsCommand,
|
|
71
|
+
type ListPlaybackKeyPairsCommandInput,
|
|
72
|
+
type ListPlaybackKeyPairsCommandOutput,
|
|
73
|
+
ListPlaybackRestrictionPoliciesCommand,
|
|
74
|
+
type ListPlaybackRestrictionPoliciesCommandInput,
|
|
75
|
+
type ListPlaybackRestrictionPoliciesCommandOutput,
|
|
76
|
+
ListRecordingConfigurationsCommand,
|
|
77
|
+
type ListRecordingConfigurationsCommandInput,
|
|
78
|
+
type ListRecordingConfigurationsCommandOutput,
|
|
79
|
+
ListStreamKeysCommand,
|
|
80
|
+
type ListStreamKeysCommandInput,
|
|
81
|
+
type ListStreamKeysCommandOutput,
|
|
82
|
+
ListStreamsCommand,
|
|
83
|
+
type ListStreamsCommandInput,
|
|
84
|
+
type ListStreamsCommandOutput,
|
|
85
|
+
ListStreamSessionsCommand,
|
|
86
|
+
type ListStreamSessionsCommandInput,
|
|
87
|
+
type ListStreamSessionsCommandOutput,
|
|
88
|
+
ListTagsForResourceCommand,
|
|
89
|
+
type ListTagsForResourceCommandInput,
|
|
90
|
+
type ListTagsForResourceCommandOutput,
|
|
91
|
+
PutMetadataCommand,
|
|
92
|
+
type PutMetadataCommandInput,
|
|
93
|
+
type PutMetadataCommandOutput,
|
|
94
|
+
StartViewerSessionRevocationCommand,
|
|
95
|
+
type StartViewerSessionRevocationCommandInput,
|
|
96
|
+
type StartViewerSessionRevocationCommandOutput,
|
|
97
|
+
StopStreamCommand,
|
|
98
|
+
type StopStreamCommandInput,
|
|
99
|
+
type StopStreamCommandOutput,
|
|
100
|
+
TagResourceCommand,
|
|
101
|
+
type TagResourceCommandInput,
|
|
102
|
+
type TagResourceCommandOutput,
|
|
103
|
+
UntagResourceCommand,
|
|
104
|
+
type UntagResourceCommandInput,
|
|
105
|
+
type UntagResourceCommandOutput,
|
|
106
|
+
UpdateChannelCommand,
|
|
107
|
+
type UpdateChannelCommandInput,
|
|
108
|
+
type UpdateChannelCommandOutput,
|
|
109
|
+
UpdatePlaybackRestrictionPolicyCommand,
|
|
110
|
+
type UpdatePlaybackRestrictionPolicyCommandInput,
|
|
111
|
+
type UpdatePlaybackRestrictionPolicyCommandOutput,
|
|
112
|
+
} from "@aws-sdk/client-ivs";
|
|
113
|
+
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
114
|
+
import { Service } from "@effect-aws/commons";
|
|
115
|
+
import type { Cause } from "effect";
|
|
116
|
+
import { Effect, Layer } from "effect";
|
|
117
|
+
import type {
|
|
118
|
+
AccessDeniedError,
|
|
119
|
+
ChannelNotBroadcastingError,
|
|
120
|
+
ConflictError,
|
|
121
|
+
InternalServerError,
|
|
122
|
+
PendingVerificationError,
|
|
123
|
+
ResourceNotFoundError,
|
|
124
|
+
SdkError,
|
|
125
|
+
ServiceQuotaExceededError,
|
|
126
|
+
StreamUnavailableError,
|
|
127
|
+
ThrottlingError,
|
|
128
|
+
ValidationError,
|
|
129
|
+
} from "./Errors.js";
|
|
130
|
+
import { AllServiceErrors } from "./Errors.js";
|
|
131
|
+
import * as Instance from "./IvsClientInstance.js";
|
|
132
|
+
import * as IvsServiceConfig from "./IvsServiceConfig.js";
|
|
133
|
+
|
|
134
|
+
const commands = {
|
|
135
|
+
BatchGetChannelCommand,
|
|
136
|
+
BatchGetStreamKeyCommand,
|
|
137
|
+
BatchStartViewerSessionRevocationCommand,
|
|
138
|
+
CreateChannelCommand,
|
|
139
|
+
CreatePlaybackRestrictionPolicyCommand,
|
|
140
|
+
CreateRecordingConfigurationCommand,
|
|
141
|
+
CreateStreamKeyCommand,
|
|
142
|
+
DeleteChannelCommand,
|
|
143
|
+
DeletePlaybackKeyPairCommand,
|
|
144
|
+
DeletePlaybackRestrictionPolicyCommand,
|
|
145
|
+
DeleteRecordingConfigurationCommand,
|
|
146
|
+
DeleteStreamKeyCommand,
|
|
147
|
+
GetChannelCommand,
|
|
148
|
+
GetPlaybackKeyPairCommand,
|
|
149
|
+
GetPlaybackRestrictionPolicyCommand,
|
|
150
|
+
GetRecordingConfigurationCommand,
|
|
151
|
+
GetStreamCommand,
|
|
152
|
+
GetStreamKeyCommand,
|
|
153
|
+
GetStreamSessionCommand,
|
|
154
|
+
ImportPlaybackKeyPairCommand,
|
|
155
|
+
ListChannelsCommand,
|
|
156
|
+
ListPlaybackKeyPairsCommand,
|
|
157
|
+
ListPlaybackRestrictionPoliciesCommand,
|
|
158
|
+
ListRecordingConfigurationsCommand,
|
|
159
|
+
ListStreamKeysCommand,
|
|
160
|
+
ListStreamSessionsCommand,
|
|
161
|
+
ListStreamsCommand,
|
|
162
|
+
ListTagsForResourceCommand,
|
|
163
|
+
PutMetadataCommand,
|
|
164
|
+
StartViewerSessionRevocationCommand,
|
|
165
|
+
StopStreamCommand,
|
|
166
|
+
TagResourceCommand,
|
|
167
|
+
UntagResourceCommand,
|
|
168
|
+
UpdateChannelCommand,
|
|
169
|
+
UpdatePlaybackRestrictionPolicyCommand,
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
interface IvsService$ {
|
|
173
|
+
readonly _: unique symbol;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* @see {@link BatchGetChannelCommand}
|
|
177
|
+
*/
|
|
178
|
+
batchGetChannel(
|
|
179
|
+
args: BatchGetChannelCommandInput,
|
|
180
|
+
options?: HttpHandlerOptions,
|
|
181
|
+
): Effect.Effect<
|
|
182
|
+
BatchGetChannelCommandOutput,
|
|
183
|
+
Cause.TimeoutException | SdkError
|
|
184
|
+
>;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* @see {@link BatchGetStreamKeyCommand}
|
|
188
|
+
*/
|
|
189
|
+
batchGetStreamKey(
|
|
190
|
+
args: BatchGetStreamKeyCommandInput,
|
|
191
|
+
options?: HttpHandlerOptions,
|
|
192
|
+
): Effect.Effect<
|
|
193
|
+
BatchGetStreamKeyCommandOutput,
|
|
194
|
+
Cause.TimeoutException | SdkError
|
|
195
|
+
>;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* @see {@link BatchStartViewerSessionRevocationCommand}
|
|
199
|
+
*/
|
|
200
|
+
batchStartViewerSessionRevocation(
|
|
201
|
+
args: BatchStartViewerSessionRevocationCommandInput,
|
|
202
|
+
options?: HttpHandlerOptions,
|
|
203
|
+
): Effect.Effect<
|
|
204
|
+
BatchStartViewerSessionRevocationCommandOutput,
|
|
205
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | PendingVerificationError | ThrottlingError | ValidationError
|
|
206
|
+
>;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @see {@link CreateChannelCommand}
|
|
210
|
+
*/
|
|
211
|
+
createChannel(
|
|
212
|
+
args: CreateChannelCommandInput,
|
|
213
|
+
options?: HttpHandlerOptions,
|
|
214
|
+
): Effect.Effect<
|
|
215
|
+
CreateChannelCommandOutput,
|
|
216
|
+
| Cause.TimeoutException
|
|
217
|
+
| SdkError
|
|
218
|
+
| AccessDeniedError
|
|
219
|
+
| PendingVerificationError
|
|
220
|
+
| ResourceNotFoundError
|
|
221
|
+
| ServiceQuotaExceededError
|
|
222
|
+
| ValidationError
|
|
223
|
+
>;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* @see {@link CreatePlaybackRestrictionPolicyCommand}
|
|
227
|
+
*/
|
|
228
|
+
createPlaybackRestrictionPolicy(
|
|
229
|
+
args: CreatePlaybackRestrictionPolicyCommandInput,
|
|
230
|
+
options?: HttpHandlerOptions,
|
|
231
|
+
): Effect.Effect<
|
|
232
|
+
CreatePlaybackRestrictionPolicyCommandOutput,
|
|
233
|
+
| Cause.TimeoutException
|
|
234
|
+
| SdkError
|
|
235
|
+
| AccessDeniedError
|
|
236
|
+
| PendingVerificationError
|
|
237
|
+
| ServiceQuotaExceededError
|
|
238
|
+
| ThrottlingError
|
|
239
|
+
| ValidationError
|
|
240
|
+
>;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* @see {@link CreateRecordingConfigurationCommand}
|
|
244
|
+
*/
|
|
245
|
+
createRecordingConfiguration(
|
|
246
|
+
args: CreateRecordingConfigurationCommandInput,
|
|
247
|
+
options?: HttpHandlerOptions,
|
|
248
|
+
): Effect.Effect<
|
|
249
|
+
CreateRecordingConfigurationCommandOutput,
|
|
250
|
+
| Cause.TimeoutException
|
|
251
|
+
| SdkError
|
|
252
|
+
| AccessDeniedError
|
|
253
|
+
| ConflictError
|
|
254
|
+
| InternalServerError
|
|
255
|
+
| PendingVerificationError
|
|
256
|
+
| ServiceQuotaExceededError
|
|
257
|
+
| ValidationError
|
|
258
|
+
>;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* @see {@link CreateStreamKeyCommand}
|
|
262
|
+
*/
|
|
263
|
+
createStreamKey(
|
|
264
|
+
args: CreateStreamKeyCommandInput,
|
|
265
|
+
options?: HttpHandlerOptions,
|
|
266
|
+
): Effect.Effect<
|
|
267
|
+
CreateStreamKeyCommandOutput,
|
|
268
|
+
| Cause.TimeoutException
|
|
269
|
+
| SdkError
|
|
270
|
+
| AccessDeniedError
|
|
271
|
+
| PendingVerificationError
|
|
272
|
+
| ResourceNotFoundError
|
|
273
|
+
| ServiceQuotaExceededError
|
|
274
|
+
| ValidationError
|
|
275
|
+
>;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* @see {@link DeleteChannelCommand}
|
|
279
|
+
*/
|
|
280
|
+
deleteChannel(
|
|
281
|
+
args: DeleteChannelCommandInput,
|
|
282
|
+
options?: HttpHandlerOptions,
|
|
283
|
+
): Effect.Effect<
|
|
284
|
+
DeleteChannelCommandOutput,
|
|
285
|
+
| Cause.TimeoutException
|
|
286
|
+
| SdkError
|
|
287
|
+
| AccessDeniedError
|
|
288
|
+
| ConflictError
|
|
289
|
+
| PendingVerificationError
|
|
290
|
+
| ResourceNotFoundError
|
|
291
|
+
| ValidationError
|
|
292
|
+
>;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* @see {@link DeletePlaybackKeyPairCommand}
|
|
296
|
+
*/
|
|
297
|
+
deletePlaybackKeyPair(
|
|
298
|
+
args: DeletePlaybackKeyPairCommandInput,
|
|
299
|
+
options?: HttpHandlerOptions,
|
|
300
|
+
): Effect.Effect<
|
|
301
|
+
DeletePlaybackKeyPairCommandOutput,
|
|
302
|
+
| Cause.TimeoutException
|
|
303
|
+
| SdkError
|
|
304
|
+
| AccessDeniedError
|
|
305
|
+
| PendingVerificationError
|
|
306
|
+
| ResourceNotFoundError
|
|
307
|
+
| ValidationError
|
|
308
|
+
>;
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* @see {@link DeletePlaybackRestrictionPolicyCommand}
|
|
312
|
+
*/
|
|
313
|
+
deletePlaybackRestrictionPolicy(
|
|
314
|
+
args: DeletePlaybackRestrictionPolicyCommandInput,
|
|
315
|
+
options?: HttpHandlerOptions,
|
|
316
|
+
): Effect.Effect<
|
|
317
|
+
DeletePlaybackRestrictionPolicyCommandOutput,
|
|
318
|
+
| Cause.TimeoutException
|
|
319
|
+
| SdkError
|
|
320
|
+
| AccessDeniedError
|
|
321
|
+
| ConflictError
|
|
322
|
+
| PendingVerificationError
|
|
323
|
+
| ResourceNotFoundError
|
|
324
|
+
| ValidationError
|
|
325
|
+
>;
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* @see {@link DeleteRecordingConfigurationCommand}
|
|
329
|
+
*/
|
|
330
|
+
deleteRecordingConfiguration(
|
|
331
|
+
args: DeleteRecordingConfigurationCommandInput,
|
|
332
|
+
options?: HttpHandlerOptions,
|
|
333
|
+
): Effect.Effect<
|
|
334
|
+
DeleteRecordingConfigurationCommandOutput,
|
|
335
|
+
| Cause.TimeoutException
|
|
336
|
+
| SdkError
|
|
337
|
+
| AccessDeniedError
|
|
338
|
+
| ConflictError
|
|
339
|
+
| InternalServerError
|
|
340
|
+
| ResourceNotFoundError
|
|
341
|
+
| ValidationError
|
|
342
|
+
>;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* @see {@link DeleteStreamKeyCommand}
|
|
346
|
+
*/
|
|
347
|
+
deleteStreamKey(
|
|
348
|
+
args: DeleteStreamKeyCommandInput,
|
|
349
|
+
options?: HttpHandlerOptions,
|
|
350
|
+
): Effect.Effect<
|
|
351
|
+
DeleteStreamKeyCommandOutput,
|
|
352
|
+
| Cause.TimeoutException
|
|
353
|
+
| SdkError
|
|
354
|
+
| AccessDeniedError
|
|
355
|
+
| PendingVerificationError
|
|
356
|
+
| ResourceNotFoundError
|
|
357
|
+
| ValidationError
|
|
358
|
+
>;
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* @see {@link GetChannelCommand}
|
|
362
|
+
*/
|
|
363
|
+
getChannel(
|
|
364
|
+
args: GetChannelCommandInput,
|
|
365
|
+
options?: HttpHandlerOptions,
|
|
366
|
+
): Effect.Effect<
|
|
367
|
+
GetChannelCommandOutput,
|
|
368
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | ResourceNotFoundError | ValidationError
|
|
369
|
+
>;
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* @see {@link GetPlaybackKeyPairCommand}
|
|
373
|
+
*/
|
|
374
|
+
getPlaybackKeyPair(
|
|
375
|
+
args: GetPlaybackKeyPairCommandInput,
|
|
376
|
+
options?: HttpHandlerOptions,
|
|
377
|
+
): Effect.Effect<
|
|
378
|
+
GetPlaybackKeyPairCommandOutput,
|
|
379
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | ResourceNotFoundError | ValidationError
|
|
380
|
+
>;
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* @see {@link GetPlaybackRestrictionPolicyCommand}
|
|
384
|
+
*/
|
|
385
|
+
getPlaybackRestrictionPolicy(
|
|
386
|
+
args: GetPlaybackRestrictionPolicyCommandInput,
|
|
387
|
+
options?: HttpHandlerOptions,
|
|
388
|
+
): Effect.Effect<
|
|
389
|
+
GetPlaybackRestrictionPolicyCommandOutput,
|
|
390
|
+
| Cause.TimeoutException
|
|
391
|
+
| SdkError
|
|
392
|
+
| AccessDeniedError
|
|
393
|
+
| PendingVerificationError
|
|
394
|
+
| ResourceNotFoundError
|
|
395
|
+
| ValidationError
|
|
396
|
+
>;
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* @see {@link GetRecordingConfigurationCommand}
|
|
400
|
+
*/
|
|
401
|
+
getRecordingConfiguration(
|
|
402
|
+
args: GetRecordingConfigurationCommandInput,
|
|
403
|
+
options?: HttpHandlerOptions,
|
|
404
|
+
): Effect.Effect<
|
|
405
|
+
GetRecordingConfigurationCommandOutput,
|
|
406
|
+
| Cause.TimeoutException
|
|
407
|
+
| SdkError
|
|
408
|
+
| AccessDeniedError
|
|
409
|
+
| InternalServerError
|
|
410
|
+
| ResourceNotFoundError
|
|
411
|
+
| ValidationError
|
|
412
|
+
>;
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* @see {@link GetStreamCommand}
|
|
416
|
+
*/
|
|
417
|
+
getStream(
|
|
418
|
+
args: GetStreamCommandInput,
|
|
419
|
+
options?: HttpHandlerOptions,
|
|
420
|
+
): Effect.Effect<
|
|
421
|
+
GetStreamCommandOutput,
|
|
422
|
+
| Cause.TimeoutException
|
|
423
|
+
| SdkError
|
|
424
|
+
| AccessDeniedError
|
|
425
|
+
| ChannelNotBroadcastingError
|
|
426
|
+
| ResourceNotFoundError
|
|
427
|
+
| ValidationError
|
|
428
|
+
>;
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* @see {@link GetStreamKeyCommand}
|
|
432
|
+
*/
|
|
433
|
+
getStreamKey(
|
|
434
|
+
args: GetStreamKeyCommandInput,
|
|
435
|
+
options?: HttpHandlerOptions,
|
|
436
|
+
): Effect.Effect<
|
|
437
|
+
GetStreamKeyCommandOutput,
|
|
438
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | ResourceNotFoundError | ValidationError
|
|
439
|
+
>;
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* @see {@link GetStreamSessionCommand}
|
|
443
|
+
*/
|
|
444
|
+
getStreamSession(
|
|
445
|
+
args: GetStreamSessionCommandInput,
|
|
446
|
+
options?: HttpHandlerOptions,
|
|
447
|
+
): Effect.Effect<
|
|
448
|
+
GetStreamSessionCommandOutput,
|
|
449
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | ResourceNotFoundError | ValidationError
|
|
450
|
+
>;
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* @see {@link ImportPlaybackKeyPairCommand}
|
|
454
|
+
*/
|
|
455
|
+
importPlaybackKeyPair(
|
|
456
|
+
args: ImportPlaybackKeyPairCommandInput,
|
|
457
|
+
options?: HttpHandlerOptions,
|
|
458
|
+
): Effect.Effect<
|
|
459
|
+
ImportPlaybackKeyPairCommandOutput,
|
|
460
|
+
| Cause.TimeoutException
|
|
461
|
+
| SdkError
|
|
462
|
+
| AccessDeniedError
|
|
463
|
+
| ConflictError
|
|
464
|
+
| PendingVerificationError
|
|
465
|
+
| ServiceQuotaExceededError
|
|
466
|
+
| ValidationError
|
|
467
|
+
>;
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* @see {@link ListChannelsCommand}
|
|
471
|
+
*/
|
|
472
|
+
listChannels(
|
|
473
|
+
args: ListChannelsCommandInput,
|
|
474
|
+
options?: HttpHandlerOptions,
|
|
475
|
+
): Effect.Effect<
|
|
476
|
+
ListChannelsCommandOutput,
|
|
477
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | ConflictError | ValidationError
|
|
478
|
+
>;
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* @see {@link ListPlaybackKeyPairsCommand}
|
|
482
|
+
*/
|
|
483
|
+
listPlaybackKeyPairs(
|
|
484
|
+
args: ListPlaybackKeyPairsCommandInput,
|
|
485
|
+
options?: HttpHandlerOptions,
|
|
486
|
+
): Effect.Effect<
|
|
487
|
+
ListPlaybackKeyPairsCommandOutput,
|
|
488
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | ValidationError
|
|
489
|
+
>;
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* @see {@link ListPlaybackRestrictionPoliciesCommand}
|
|
493
|
+
*/
|
|
494
|
+
listPlaybackRestrictionPolicies(
|
|
495
|
+
args: ListPlaybackRestrictionPoliciesCommandInput,
|
|
496
|
+
options?: HttpHandlerOptions,
|
|
497
|
+
): Effect.Effect<
|
|
498
|
+
ListPlaybackRestrictionPoliciesCommandOutput,
|
|
499
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | ConflictError | PendingVerificationError | ValidationError
|
|
500
|
+
>;
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* @see {@link ListRecordingConfigurationsCommand}
|
|
504
|
+
*/
|
|
505
|
+
listRecordingConfigurations(
|
|
506
|
+
args: ListRecordingConfigurationsCommandInput,
|
|
507
|
+
options?: HttpHandlerOptions,
|
|
508
|
+
): Effect.Effect<
|
|
509
|
+
ListRecordingConfigurationsCommandOutput,
|
|
510
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ValidationError
|
|
511
|
+
>;
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* @see {@link ListStreamKeysCommand}
|
|
515
|
+
*/
|
|
516
|
+
listStreamKeys(
|
|
517
|
+
args: ListStreamKeysCommandInput,
|
|
518
|
+
options?: HttpHandlerOptions,
|
|
519
|
+
): Effect.Effect<
|
|
520
|
+
ListStreamKeysCommandOutput,
|
|
521
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | ResourceNotFoundError | ValidationError
|
|
522
|
+
>;
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* @see {@link ListStreamSessionsCommand}
|
|
526
|
+
*/
|
|
527
|
+
listStreamSessions(
|
|
528
|
+
args: ListStreamSessionsCommandInput,
|
|
529
|
+
options?: HttpHandlerOptions,
|
|
530
|
+
): Effect.Effect<
|
|
531
|
+
ListStreamSessionsCommandOutput,
|
|
532
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | ResourceNotFoundError | ValidationError
|
|
533
|
+
>;
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* @see {@link ListStreamsCommand}
|
|
537
|
+
*/
|
|
538
|
+
listStreams(
|
|
539
|
+
args: ListStreamsCommandInput,
|
|
540
|
+
options?: HttpHandlerOptions,
|
|
541
|
+
): Effect.Effect<
|
|
542
|
+
ListStreamsCommandOutput,
|
|
543
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | ValidationError
|
|
544
|
+
>;
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* @see {@link ListTagsForResourceCommand}
|
|
548
|
+
*/
|
|
549
|
+
listTagsForResource(
|
|
550
|
+
args: ListTagsForResourceCommandInput,
|
|
551
|
+
options?: HttpHandlerOptions,
|
|
552
|
+
): Effect.Effect<
|
|
553
|
+
ListTagsForResourceCommandOutput,
|
|
554
|
+
Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ValidationError
|
|
555
|
+
>;
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* @see {@link PutMetadataCommand}
|
|
559
|
+
*/
|
|
560
|
+
putMetadata(
|
|
561
|
+
args: PutMetadataCommandInput,
|
|
562
|
+
options?: HttpHandlerOptions,
|
|
563
|
+
): Effect.Effect<
|
|
564
|
+
PutMetadataCommandOutput,
|
|
565
|
+
| Cause.TimeoutException
|
|
566
|
+
| SdkError
|
|
567
|
+
| AccessDeniedError
|
|
568
|
+
| ChannelNotBroadcastingError
|
|
569
|
+
| ResourceNotFoundError
|
|
570
|
+
| ThrottlingError
|
|
571
|
+
| ValidationError
|
|
572
|
+
>;
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* @see {@link StartViewerSessionRevocationCommand}
|
|
576
|
+
*/
|
|
577
|
+
startViewerSessionRevocation(
|
|
578
|
+
args: StartViewerSessionRevocationCommandInput,
|
|
579
|
+
options?: HttpHandlerOptions,
|
|
580
|
+
): Effect.Effect<
|
|
581
|
+
StartViewerSessionRevocationCommandOutput,
|
|
582
|
+
| Cause.TimeoutException
|
|
583
|
+
| SdkError
|
|
584
|
+
| AccessDeniedError
|
|
585
|
+
| InternalServerError
|
|
586
|
+
| PendingVerificationError
|
|
587
|
+
| ResourceNotFoundError
|
|
588
|
+
| ThrottlingError
|
|
589
|
+
| ValidationError
|
|
590
|
+
>;
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* @see {@link StopStreamCommand}
|
|
594
|
+
*/
|
|
595
|
+
stopStream(
|
|
596
|
+
args: StopStreamCommandInput,
|
|
597
|
+
options?: HttpHandlerOptions,
|
|
598
|
+
): Effect.Effect<
|
|
599
|
+
StopStreamCommandOutput,
|
|
600
|
+
| Cause.TimeoutException
|
|
601
|
+
| SdkError
|
|
602
|
+
| AccessDeniedError
|
|
603
|
+
| ChannelNotBroadcastingError
|
|
604
|
+
| ResourceNotFoundError
|
|
605
|
+
| StreamUnavailableError
|
|
606
|
+
| ValidationError
|
|
607
|
+
>;
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* @see {@link TagResourceCommand}
|
|
611
|
+
*/
|
|
612
|
+
tagResource(
|
|
613
|
+
args: TagResourceCommandInput,
|
|
614
|
+
options?: HttpHandlerOptions,
|
|
615
|
+
): Effect.Effect<
|
|
616
|
+
TagResourceCommandOutput,
|
|
617
|
+
Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ValidationError
|
|
618
|
+
>;
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* @see {@link UntagResourceCommand}
|
|
622
|
+
*/
|
|
623
|
+
untagResource(
|
|
624
|
+
args: UntagResourceCommandInput,
|
|
625
|
+
options?: HttpHandlerOptions,
|
|
626
|
+
): Effect.Effect<
|
|
627
|
+
UntagResourceCommandOutput,
|
|
628
|
+
Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ValidationError
|
|
629
|
+
>;
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* @see {@link UpdateChannelCommand}
|
|
633
|
+
*/
|
|
634
|
+
updateChannel(
|
|
635
|
+
args: UpdateChannelCommandInput,
|
|
636
|
+
options?: HttpHandlerOptions,
|
|
637
|
+
): Effect.Effect<
|
|
638
|
+
UpdateChannelCommandOutput,
|
|
639
|
+
| Cause.TimeoutException
|
|
640
|
+
| SdkError
|
|
641
|
+
| AccessDeniedError
|
|
642
|
+
| ConflictError
|
|
643
|
+
| PendingVerificationError
|
|
644
|
+
| ResourceNotFoundError
|
|
645
|
+
| ValidationError
|
|
646
|
+
>;
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* @see {@link UpdatePlaybackRestrictionPolicyCommand}
|
|
650
|
+
*/
|
|
651
|
+
updatePlaybackRestrictionPolicy(
|
|
652
|
+
args: UpdatePlaybackRestrictionPolicyCommandInput,
|
|
653
|
+
options?: HttpHandlerOptions,
|
|
654
|
+
): Effect.Effect<
|
|
655
|
+
UpdatePlaybackRestrictionPolicyCommandOutput,
|
|
656
|
+
| Cause.TimeoutException
|
|
657
|
+
| SdkError
|
|
658
|
+
| AccessDeniedError
|
|
659
|
+
| ConflictError
|
|
660
|
+
| PendingVerificationError
|
|
661
|
+
| ResourceNotFoundError
|
|
662
|
+
| ValidationError
|
|
663
|
+
>;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* @since 1.0.0
|
|
668
|
+
* @category constructors
|
|
669
|
+
*/
|
|
670
|
+
export const makeIvsService = Effect.gen(function*() {
|
|
671
|
+
const client = yield* Instance.IvsClientInstance;
|
|
672
|
+
|
|
673
|
+
return yield* Service.fromClientAndCommands<IvsService$>(
|
|
674
|
+
client,
|
|
675
|
+
commands,
|
|
676
|
+
{
|
|
677
|
+
errorTags: AllServiceErrors,
|
|
678
|
+
resolveClientConfig: IvsServiceConfig.toIvsClientConfig,
|
|
679
|
+
},
|
|
680
|
+
);
|
|
681
|
+
});
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* @since 1.0.0
|
|
685
|
+
* @category models
|
|
686
|
+
*/
|
|
687
|
+
export class IvsService extends Effect.Tag("@effect-aws/client-ivs/IvsService")<
|
|
688
|
+
IvsService,
|
|
689
|
+
IvsService$
|
|
690
|
+
>() {
|
|
691
|
+
static readonly defaultLayer = Layer.effect(this, makeIvsService).pipe(Layer.provide(Instance.layer));
|
|
692
|
+
static readonly layer = (config: IvsService.Config) =>
|
|
693
|
+
Layer.effect(this, makeIvsService).pipe(
|
|
694
|
+
Layer.provide(Instance.layer),
|
|
695
|
+
Layer.provide(IvsServiceConfig.setIvsServiceConfig(config)),
|
|
696
|
+
);
|
|
697
|
+
static readonly baseLayer = (
|
|
698
|
+
evaluate: (defaultConfig: IvsClientConfig) => IvsClient,
|
|
699
|
+
) =>
|
|
700
|
+
Layer.effect(this, makeIvsService).pipe(
|
|
701
|
+
Layer.provide(
|
|
702
|
+
Layer.effect(
|
|
703
|
+
Instance.IvsClientInstance,
|
|
704
|
+
Effect.map(IvsServiceConfig.toIvsClientConfig, evaluate),
|
|
705
|
+
),
|
|
706
|
+
),
|
|
707
|
+
);
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* @since 1.0.0
|
|
712
|
+
*/
|
|
713
|
+
export declare namespace IvsService {
|
|
714
|
+
/**
|
|
715
|
+
* @since 1.0.0
|
|
716
|
+
*/
|
|
717
|
+
export interface Config extends Omit<IvsClientConfig, "logger"> {
|
|
718
|
+
readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* @since 1.0.0
|
|
723
|
+
*/
|
|
724
|
+
export type Type = IvsService$;
|
|
725
|
+
}
|