@aws-sdk/client-ivs 3.36.0 → 3.36.1

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.
Files changed (75) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/Ivs.js +0 -362
  3. package/dist-cjs/IvsClient.js +0 -367
  4. package/dist-cjs/commands/BatchGetChannelCommand.js +0 -24
  5. package/dist-cjs/commands/BatchGetStreamKeyCommand.js +0 -24
  6. package/dist-cjs/commands/CreateChannelCommand.js +0 -24
  7. package/dist-cjs/commands/CreateRecordingConfigurationCommand.js +0 -35
  8. package/dist-cjs/commands/CreateStreamKeyCommand.js +0 -27
  9. package/dist-cjs/commands/DeleteChannelCommand.js +0 -28
  10. package/dist-cjs/commands/DeletePlaybackKeyPairCommand.js +0 -26
  11. package/dist-cjs/commands/DeleteRecordingConfigurationCommand.js +0 -29
  12. package/dist-cjs/commands/DeleteStreamKeyCommand.js +0 -25
  13. package/dist-cjs/commands/GetChannelCommand.js +0 -24
  14. package/dist-cjs/commands/GetPlaybackKeyPairCommand.js +0 -28
  15. package/dist-cjs/commands/GetRecordingConfigurationCommand.js +0 -24
  16. package/dist-cjs/commands/GetStreamCommand.js +0 -24
  17. package/dist-cjs/commands/GetStreamKeyCommand.js +0 -24
  18. package/dist-cjs/commands/ImportPlaybackKeyPairCommand.js +0 -28
  19. package/dist-cjs/commands/ListChannelsCommand.js +0 -27
  20. package/dist-cjs/commands/ListPlaybackKeyPairsCommand.js +0 -25
  21. package/dist-cjs/commands/ListRecordingConfigurationsCommand.js +0 -25
  22. package/dist-cjs/commands/ListStreamKeysCommand.js +0 -24
  23. package/dist-cjs/commands/ListStreamsCommand.js +0 -25
  24. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -24
  25. package/dist-cjs/commands/PutMetadataCommand.js +0 -30
  26. package/dist-cjs/commands/StopStreamCommand.js +0 -31
  27. package/dist-cjs/commands/TagResourceCommand.js +0 -24
  28. package/dist-cjs/commands/UntagResourceCommand.js +0 -24
  29. package/dist-cjs/commands/UpdateChannelCommand.js +0 -25
  30. package/dist-cjs/models/models_0.js +0 -213
  31. package/dist-cjs/pagination/ListChannelsPaginator.js +0 -10
  32. package/dist-cjs/pagination/ListPlaybackKeyPairsPaginator.js +0 -10
  33. package/dist-cjs/pagination/ListRecordingConfigurationsPaginator.js +0 -10
  34. package/dist-cjs/pagination/ListStreamKeysPaginator.js +0 -10
  35. package/dist-cjs/pagination/ListStreamsPaginator.js +0 -10
  36. package/dist-cjs/pagination/ListTagsForResourcePaginator.js +0 -10
  37. package/dist-cjs/protocols/Aws_restJson1.js +0 -5
  38. package/dist-cjs/runtimeConfig.browser.js +1 -5
  39. package/dist-cjs/runtimeConfig.js +1 -5
  40. package/dist-cjs/runtimeConfig.native.js +0 -3
  41. package/dist-cjs/runtimeConfig.shared.js +0 -3
  42. package/dist-types/ts3.4/Ivs.d.ts +27 -494
  43. package/dist-types/ts3.4/IvsClient.d.ts +24 -448
  44. package/dist-types/ts3.4/commands/BatchGetChannelCommand.d.ts +2 -20
  45. package/dist-types/ts3.4/commands/BatchGetStreamKeyCommand.d.ts +2 -20
  46. package/dist-types/ts3.4/commands/CreateChannelCommand.d.ts +2 -20
  47. package/dist-types/ts3.4/commands/CreateRecordingConfigurationCommand.d.ts +2 -31
  48. package/dist-types/ts3.4/commands/CreateStreamKeyCommand.d.ts +2 -23
  49. package/dist-types/ts3.4/commands/DeleteChannelCommand.d.ts +2 -24
  50. package/dist-types/ts3.4/commands/DeletePlaybackKeyPairCommand.d.ts +2 -22
  51. package/dist-types/ts3.4/commands/DeleteRecordingConfigurationCommand.d.ts +2 -25
  52. package/dist-types/ts3.4/commands/DeleteStreamKeyCommand.d.ts +2 -21
  53. package/dist-types/ts3.4/commands/GetChannelCommand.d.ts +2 -20
  54. package/dist-types/ts3.4/commands/GetPlaybackKeyPairCommand.d.ts +2 -24
  55. package/dist-types/ts3.4/commands/GetRecordingConfigurationCommand.d.ts +2 -20
  56. package/dist-types/ts3.4/commands/GetStreamCommand.d.ts +2 -20
  57. package/dist-types/ts3.4/commands/GetStreamKeyCommand.d.ts +2 -20
  58. package/dist-types/ts3.4/commands/ImportPlaybackKeyPairCommand.d.ts +2 -24
  59. package/dist-types/ts3.4/commands/ListChannelsCommand.d.ts +2 -23
  60. package/dist-types/ts3.4/commands/ListPlaybackKeyPairsCommand.d.ts +2 -21
  61. package/dist-types/ts3.4/commands/ListRecordingConfigurationsCommand.d.ts +2 -21
  62. package/dist-types/ts3.4/commands/ListStreamKeysCommand.d.ts +2 -20
  63. package/dist-types/ts3.4/commands/ListStreamsCommand.d.ts +2 -21
  64. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
  65. package/dist-types/ts3.4/commands/PutMetadataCommand.d.ts +2 -26
  66. package/dist-types/ts3.4/commands/StopStreamCommand.d.ts +2 -27
  67. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -20
  68. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
  69. package/dist-types/ts3.4/commands/UpdateChannelCommand.d.ts +2 -21
  70. package/dist-types/ts3.4/models/models_0.d.ts +226 -768
  71. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  72. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  73. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  74. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  75. package/package.json +3 -3
@@ -10,368 +10,6 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
10
10
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
11
11
  const smithy_client_1 = require("@aws-sdk/smithy-client");
12
12
  const runtimeConfig_1 = require("./runtimeConfig");
13
- /**
14
- * <p>
15
- * <b>Introduction</b>
16
- * </p>
17
- *
18
- * <p>The Amazon Interactive Video Service (IVS) API is REST compatible, using a standard HTTP
19
- * API and an AWS EventBridge event stream for responses. JSON is used for both requests and
20
- * responses, including errors.</p>
21
- *
22
- * <p>The API is an AWS regional service, currently in these regions: us-west-2, us-east-1, and
23
- * eu-west-1.</p>
24
- * <p>
25
- * <i>
26
- * <b>All API request parameters and URLs are case sensitive.
27
- * </b>
28
- * </i>
29
- * </p>
30
- *
31
- * <p>For a summary of notable documentation changes in each release, see <a href="https://docs.aws.amazon.com/ivs/latest/userguide/doc-history.html"> Document
32
- * History</a>.</p>
33
- *
34
- * <p>
35
- * <b>Service Endpoints</b>
36
- * </p>
37
- * <p>The following are the Amazon IVS service endpoints (all HTTPS): </p>
38
- * <p>Region name: US West (Oregon)</p>
39
- * <ul>
40
- * <li>
41
- * <p>Region: <code>us-west-2</code>
42
- * </p>
43
- * </li>
44
- * <li>
45
- * <p>Endpoint: <code>ivs.us-west-2.amazonaws.com</code>
46
- * </p>
47
- * </li>
48
- * </ul>
49
- * <p>Region name: US East (Virginia)</p>
50
- * <ul>
51
- * <li>
52
- * <p>Region: <code>us-east-1</code>
53
- * </p>
54
- * </li>
55
- * <li>
56
- * <p>Endpoint: <code>ivs.us-east-1.amazonaws.com</code>
57
- * </p>
58
- * </li>
59
- * </ul>
60
- * <p>Region name: EU West (Dublin)</p>
61
- * <ul>
62
- * <li>
63
- * <p>Region: <code>eu-west-1</code>
64
- * </p>
65
- * </li>
66
- * <li>
67
- * <p>Endpoint: <code>ivs.eu-west-1.amazonaws.com</code>
68
- * </p>
69
- * </li>
70
- * </ul>
71
- *
72
- * <p>
73
- * <b>Allowed Header Values</b>
74
- * </p>
75
- *
76
- * <ul>
77
- * <li>
78
- * <p>
79
- * <code>
80
- * <b>Accept:</b>
81
- * </code> application/json</p>
82
- * </li>
83
- * <li>
84
- * <p>
85
- * <code>
86
- * <b>Accept-Encoding:</b>
87
- * </code> gzip, deflate</p>
88
- * </li>
89
- * <li>
90
- * <p>
91
- * <code>
92
- * <b>Content-Type:</b>
93
- * </code>application/json</p>
94
- * </li>
95
- * </ul>
96
- *
97
- * <p>
98
- * <b>Resources</b>
99
- * </p>
100
- * <p>The following resources contain information about your IVS live stream (see <a href="https://docs.aws.amazon.com/ivs/latest/userguide/getting-started.html"> Getting Started with Amazon
101
- * IVS</a>):</p>
102
- *
103
- * <ul>
104
- * <li>
105
- * <p>Channel — Stores configuration data related to your live stream. You first create a
106
- * channel and then use the channel’s stream key to start your live stream. See the Channel
107
- * endpoints for more information. </p>
108
- * </li>
109
- * <li>
110
- * <p>Stream key — An identifier assigned by Amazon IVS when you create a channel, which is
111
- * then used to authorize streaming. See the StreamKey endpoints for more information.
112
- * <i>
113
- * <b>Treat the stream key like a secret, since it allows
114
- * anyone to stream to the channel.</b>
115
- * </i>
116
- * </p>
117
- * </li>
118
- * <li>
119
- * <p>Playback key pair — Video playback may be restricted using playback-authorization
120
- * tokens, which use public-key encryption. A playback key pair is the public-private pair of
121
- * keys used to sign and validate the playback-authorization token. See the PlaybackKeyPair
122
- * endpoints for more information.</p>
123
- * </li>
124
- * <li>
125
- * <p>Recording configuration — Stores configuration related to recording a live stream and
126
- * where to store the recorded content. Multiple channels can reference the same recording
127
- * configuration. See the Recording Configuration endpoints for more information.</p>
128
- * </li>
129
- * </ul>
130
- *
131
- *
132
- *
133
- * <p>
134
- * <b>Tagging</b>
135
- * </p>
136
- *
137
- * <p>A <i>tag</i> is a metadata label that you assign to an AWS resource. A tag
138
- * comprises a <i>key</i> and a <i>value</i>, both set by you. For
139
- * example, you might set a tag as <code>topic:nature</code> to label a particular video
140
- * category. See <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging AWS
141
- * Resources</a> for more information, including restrictions that apply to tags.</p>
142
- *
143
- * <p>Tags can help you identify and organize your AWS resources. For example, you can use the
144
- * same tag for different resources to indicate that they are related. You can also use tags to
145
- * manage access (see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html">
146
- * Access Tags</a>). </p>
147
- *
148
- * <p>The Amazon IVS API has these tag-related endpoints: <a>TagResource</a>, <a>UntagResource</a>, and <a>ListTagsForResource</a>. The following
149
- * resources support tagging: Channels, Stream Keys, Playback Key Pairs, and Recording
150
- * Configurations.</p>
151
- *
152
- * <p>
153
- * <b>Authentication versus Authorization</b>
154
- * </p>
155
- * <p>Note the differences between these concepts:</p>
156
- * <ul>
157
- * <li>
158
- * <p>
159
- * <i>Authentication</i> is about verifying identity. You need to be authenticated to sign Amazon IVS
160
- * API requests.</p>
161
- * </li>
162
- * <li>
163
- * <p>
164
- * <i>Authorization</i> is about granting permissions. You need to be authorized to
165
- * view <a href="https://docs.aws.amazon.com/ivs/latest/userguide/private-channels.html">Amazon IVS private channels</a>. (Private channels are channels that are enabled for
166
- * "playback authorization.")</p>
167
- * </li>
168
- * </ul>
169
- *
170
- * <p>
171
- * <b>Authentication</b>
172
- * </p>
173
- * <p>All Amazon IVS API requests must be authenticated with a signature. The AWS Command-Line
174
- * Interface (CLI) and Amazon IVS Player SDKs take care of signing the underlying API calls for
175
- * you. However, if your application calls the Amazon IVS API directly, it’s your responsibility
176
- * to sign the requests.</p>
177
- * <p>You generate a signature using valid AWS credentials that have permission to perform the
178
- * requested action. For example, you must sign PutMetadata requests with a signature generated
179
- * from an IAM user account that has the <code>ivs:PutMetadata</code> permission.</p>
180
- * <p>For more information:</p>
181
- * <ul>
182
- * <li>
183
- * <p>Authentication and generating signatures — See <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating Requests (AWS Signature Version
184
- * 4)</a> in the <i>AWS General Reference</i>.</p>
185
- * </li>
186
- * <li>
187
- * <p>Managing Amazon IVS permissions — See <a href="https://docs.aws.amazon.com/ivs/latest/userguide/security-iam.html">Identity and Access Management</a> on the Security page of
188
- * the <i>Amazon IVS User Guide</i>.</p>
189
- * </li>
190
- * </ul>
191
- *
192
- *
193
- * <p>
194
- * <b>Channel Endpoints</b>
195
- * </p>
196
- * <ul>
197
- * <li>
198
- * <p>
199
- * <a>CreateChannel</a> — Creates a new channel and an associated stream
200
- * key to start streaming.</p>
201
- * </li>
202
- * <li>
203
- * <p>
204
- * <a>GetChannel</a> — Gets the channel configuration for the specified
205
- * channel ARN (Amazon Resource Name).</p>
206
- * </li>
207
- * <li>
208
- * <p>
209
- * <a>BatchGetChannel</a> — Performs <a>GetChannel</a> on
210
- * multiple ARNs simultaneously.</p>
211
- * </li>
212
- * <li>
213
- * <p>
214
- * <a>ListChannels</a> — Gets summary information about all channels in
215
- * your account, in the AWS region where the API request is processed. This list can be
216
- * filtered to match a specified name or recording-configuration ARN. Filters are mutually
217
- * exclusive and cannot be used together. If you try to use both filters, you will get an
218
- * error (409 Conflict Exception).</p>
219
- * </li>
220
- * <li>
221
- * <p>
222
- * <a>UpdateChannel</a> — Updates a channel's configuration. This does
223
- * not affect an ongoing stream of this channel. You must stop and restart the stream for the
224
- * changes to take effect.</p>
225
- * </li>
226
- * <li>
227
- * <p>
228
- * <a>DeleteChannel</a> — Deletes the specified channel.</p>
229
- * </li>
230
- * </ul>
231
- *
232
- * <p>
233
- * <b>StreamKey Endpoints</b>
234
- * </p>
235
- * <ul>
236
- * <li>
237
- * <p>
238
- * <a>CreateStreamKey</a> — Creates a stream key, used to initiate a
239
- * stream, for the specified channel ARN.</p>
240
- * </li>
241
- * <li>
242
- * <p>
243
- * <a>GetStreamKey</a> — Gets stream key information for the specified
244
- * ARN.</p>
245
- * </li>
246
- * <li>
247
- * <p>
248
- * <a>BatchGetStreamKey</a> — Performs <a>GetStreamKey</a> on
249
- * multiple ARNs simultaneously.</p>
250
- * </li>
251
- * <li>
252
- * <p>
253
- * <a>ListStreamKeys</a> — Gets summary information about stream keys
254
- * for the specified channel.</p>
255
- * </li>
256
- * <li>
257
- * <p>
258
- * <a>DeleteStreamKey</a> — Deletes the stream key for the specified
259
- * ARN, so it can no longer be used to stream.</p>
260
- * </li>
261
- * </ul>
262
- *
263
- *
264
- * <p>
265
- * <b>Stream Endpoints</b>
266
- * </p>
267
- * <ul>
268
- * <li>
269
- * <p>
270
- * <a>GetStream</a> — Gets information about the active (live) stream on
271
- * a specified channel.</p>
272
- * </li>
273
- * <li>
274
- * <p>
275
- * <a>ListStreams</a> — Gets summary information about live streams in
276
- * your account, in the AWS region where the API request is processed.</p>
277
- * </li>
278
- * <li>
279
- * <p>
280
- * <a>StopStream</a> — Disconnects the incoming RTMPS stream for the
281
- * specified channel. Can be used in conjunction with <a>DeleteStreamKey</a> to
282
- * prevent further streaming to a channel.</p>
283
- * </li>
284
- * <li>
285
- * <p>
286
- * <a>PutMetadata</a> — Inserts metadata into the active stream of the
287
- * specified channel. A maximum of 5 requests per second per channel is allowed, each with a
288
- * maximum 1 KB payload. (If 5 TPS is not sufficient for your needs, we recommend batching
289
- * your data into a single PutMetadata call.)</p>
290
- * </li>
291
- * </ul>
292
- *
293
- * <p>
294
- * <b>PlaybackKeyPair Endpoints</b>
295
- * </p>
296
- * <p>For more information, see <a href="https://docs.aws.amazon.com/ivs/latest/userguide/private-channels.html">Setting Up Private Channels</a> in the
297
- * <i>Amazon IVS User Guide</i>.</p>
298
- * <ul>
299
- * <li>
300
- * <p>
301
- * <a>ImportPlaybackKeyPair</a> — Imports the public portion of a new
302
- * key pair and returns its <code>arn</code> and <code>fingerprint</code>. The
303
- * <code>privateKey</code> can then be used to generate viewer authorization tokens, to
304
- * grant viewers access to private channels (channels enabled for playback
305
- * authorization).</p>
306
- * </li>
307
- * <li>
308
- * <p>
309
- * <a>GetPlaybackKeyPair</a> — Gets a specified playback authorization
310
- * key pair and returns the <code>arn</code> and <code>fingerprint</code>. The
311
- * <code>privateKey</code> held by the caller can be used to generate viewer authorization
312
- * tokens, to grant viewers access to private channels.</p>
313
- * </li>
314
- * <li>
315
- * <p>
316
- * <a>ListPlaybackKeyPairs</a> — Gets summary information about playback
317
- * key pairs.</p>
318
- * </li>
319
- * <li>
320
- * <p>
321
- * <a>DeletePlaybackKeyPair</a> — Deletes a specified authorization key
322
- * pair. This invalidates future viewer tokens generated using the key pair’s
323
- * <code>privateKey</code>.</p>
324
- * </li>
325
- * </ul>
326
- *
327
- * <p>
328
- * <b>RecordingConfiguration Endpoints</b>
329
- * </p>
330
- * <ul>
331
- * <li>
332
- * <p>
333
- * <a>CreateRecordingConfiguration</a> — Creates a new recording configuration,
334
- * used to enable recording to Amazon S3.</p>
335
- * </li>
336
- * <li>
337
- * <p>
338
- * <a>GetRecordingConfiguration</a> — Gets the recording-configuration metadata
339
- * for the specified ARN.</p>
340
- * </li>
341
- * <li>
342
- * <p>
343
- * <a>ListRecordingConfigurations</a> — Gets summary information about all
344
- * recording configurations in your account, in the AWS region where the API request is
345
- * processed.</p>
346
- * </li>
347
- * <li>
348
- * <p>
349
- * <a>DeleteRecordingConfiguration</a> — Deletes the recording
350
- * configuration for the specified ARN.</p>
351
- * </li>
352
- * </ul>
353
- *
354
- * <p>
355
- * <b>AWS Tags Endpoints</b>
356
- * </p>
357
- * <ul>
358
- * <li>
359
- * <p>
360
- * <a>TagResource</a> — Adds or updates tags for the AWS resource with
361
- * the specified ARN.</p>
362
- * </li>
363
- * <li>
364
- * <p>
365
- * <a>UntagResource</a> — Removes tags from the resource with the
366
- * specified ARN.</p>
367
- * </li>
368
- * <li>
369
- * <p>
370
- * <a>ListTagsForResource</a> — Gets information about AWS tags for the
371
- * specified ARN.</p>
372
- * </li>
373
- * </ul>
374
- */
375
13
  class IvsClient extends smithy_client_1.Client {
376
14
  constructor(configuration) {
377
15
  const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
@@ -390,11 +28,6 @@ class IvsClient extends smithy_client_1.Client {
390
28
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
391
29
  this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
392
30
  }
393
- /**
394
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
395
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
396
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
397
- */
398
31
  destroy() {
399
32
  super.destroy();
400
33
  }
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Performs <a>GetChannel</a> on multiple ARNs simultaneously.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { IvsClient, BatchGetChannelCommand } from "@aws-sdk/client-ivs"; // ES Modules import
14
- * // const { IvsClient, BatchGetChannelCommand } = require("@aws-sdk/client-ivs"); // CommonJS import
15
- * const client = new IvsClient(config);
16
- * const command = new BatchGetChannelCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link BatchGetChannelCommandInput} for command's `input` shape.
21
- * @see {@link BatchGetChannelCommandOutput} for command's `response` shape.
22
- * @see {@link IvsClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class BatchGetChannelCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Performs <a>GetStreamKey</a> on multiple ARNs simultaneously.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { IvsClient, BatchGetStreamKeyCommand } from "@aws-sdk/client-ivs"; // ES Modules import
14
- * // const { IvsClient, BatchGetStreamKeyCommand } = require("@aws-sdk/client-ivs"); // CommonJS import
15
- * const client = new IvsClient(config);
16
- * const command = new BatchGetStreamKeyCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link BatchGetStreamKeyCommandInput} for command's `input` shape.
21
- * @see {@link BatchGetStreamKeyCommandOutput} for command's `response` shape.
22
- * @see {@link IvsClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class BatchGetStreamKeyCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Creates a new channel and an associated stream key to start streaming.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { IvsClient, CreateChannelCommand } from "@aws-sdk/client-ivs"; // ES Modules import
14
- * // const { IvsClient, CreateChannelCommand } = require("@aws-sdk/client-ivs"); // CommonJS import
15
- * const client = new IvsClient(config);
16
- * const command = new CreateChannelCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link CreateChannelCommandInput} for command's `input` shape.
21
- * @see {@link CreateChannelCommandOutput} for command's `response` shape.
22
- * @see {@link IvsClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class CreateChannelCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,46 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Creates a new recording configuration, used to enable recording to Amazon S3.</p>
10
- * <p>
11
- * <b>Known issue:</b> In the us-east-1 region, if you use the AWS
12
- * CLI to create a recording configuration, it returns success even if the S3 bucket is in a
13
- * different region. In this case, the <code>state</code> of the recording configuration is
14
- * <code>CREATE_FAILED</code> (instead of <code>ACTIVE</code>). (In other regions, the CLI
15
- * correctly returns failure if the bucket is in a different region.)</p>
16
- * <p>
17
- * <b>Workaround:</b> Ensure that your S3 bucket is in the same region as the recording
18
- * configuration. If you create a recording configuration in a different region as your S3
19
- * bucket, delete that recording configuration and create a new one with an S3 bucket from the
20
- * correct region.</p>
21
- * @example
22
- * Use a bare-bones client and the command you need to make an API call.
23
- * ```javascript
24
- * import { IvsClient, CreateRecordingConfigurationCommand } from "@aws-sdk/client-ivs"; // ES Modules import
25
- * // const { IvsClient, CreateRecordingConfigurationCommand } = require("@aws-sdk/client-ivs"); // CommonJS import
26
- * const client = new IvsClient(config);
27
- * const command = new CreateRecordingConfigurationCommand(input);
28
- * const response = await client.send(command);
29
- * ```
30
- *
31
- * @see {@link CreateRecordingConfigurationCommandInput} for command's `input` shape.
32
- * @see {@link CreateRecordingConfigurationCommandOutput} for command's `response` shape.
33
- * @see {@link IvsClientResolvedConfig | config} for command's `input` shape.
34
- *
35
- */
36
8
  class CreateRecordingConfigurationCommand extends smithy_client_1.Command {
37
- // Start section: command_properties
38
- // End section: command_properties
39
9
  constructor(input) {
40
- // Start section: command_constructor
41
10
  super();
42
11
  this.input = input;
43
- // End section: command_constructor
44
12
  }
45
- /**
46
- * @internal
47
- */
48
13
  resolveMiddleware(clientStack, configuration, options) {
49
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
50
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,38 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Creates a stream key, used to initiate a stream, for the specified channel ARN.</p>
10
- * <p>Note that <a>CreateChannel</a> creates a stream key. If you subsequently use
11
- * CreateStreamKey on the same channel, it will fail because a stream key already exists and
12
- * there is a limit of 1 stream key per channel. To reset the stream key on a channel, use <a>DeleteStreamKey</a> and then CreateStreamKey.</p>
13
- * @example
14
- * Use a bare-bones client and the command you need to make an API call.
15
- * ```javascript
16
- * import { IvsClient, CreateStreamKeyCommand } from "@aws-sdk/client-ivs"; // ES Modules import
17
- * // const { IvsClient, CreateStreamKeyCommand } = require("@aws-sdk/client-ivs"); // CommonJS import
18
- * const client = new IvsClient(config);
19
- * const command = new CreateStreamKeyCommand(input);
20
- * const response = await client.send(command);
21
- * ```
22
- *
23
- * @see {@link CreateStreamKeyCommandInput} for command's `input` shape.
24
- * @see {@link CreateStreamKeyCommandOutput} for command's `response` shape.
25
- * @see {@link IvsClientResolvedConfig | config} for command's `input` shape.
26
- *
27
- */
28
8
  class CreateStreamKeyCommand extends smithy_client_1.Command {
29
- // Start section: command_properties
30
- // End section: command_properties
31
9
  constructor(input) {
32
- // Start section: command_constructor
33
10
  super();
34
11
  this.input = input;
35
- // End section: command_constructor
36
12
  }
37
- /**
38
- * @internal
39
- */
40
13
  resolveMiddleware(clientStack, configuration, options) {
41
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
42
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,39 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Deletes the specified channel and its associated stream keys.</p>
10
- * <p>If you try to delete a live channel, you will get an error (409 ConflictException). To
11
- * delete a channel that is live, call <a>StopStream</a>, wait for the Amazon
12
- * EventBridge "Stream End" event (to verify that the stream's state was changed from Live to
13
- * Offline), then call DeleteChannel. (See <a href="https://docs.aws.amazon.com/ivs/latest/userguide/eventbridge.html"> Using EventBridge with Amazon IVS</a>.) </p>
14
- * @example
15
- * Use a bare-bones client and the command you need to make an API call.
16
- * ```javascript
17
- * import { IvsClient, DeleteChannelCommand } from "@aws-sdk/client-ivs"; // ES Modules import
18
- * // const { IvsClient, DeleteChannelCommand } = require("@aws-sdk/client-ivs"); // CommonJS import
19
- * const client = new IvsClient(config);
20
- * const command = new DeleteChannelCommand(input);
21
- * const response = await client.send(command);
22
- * ```
23
- *
24
- * @see {@link DeleteChannelCommandInput} for command's `input` shape.
25
- * @see {@link DeleteChannelCommandOutput} for command's `response` shape.
26
- * @see {@link IvsClientResolvedConfig | config} for command's `input` shape.
27
- *
28
- */
29
8
  class DeleteChannelCommand extends smithy_client_1.Command {
30
- // Start section: command_properties
31
- // End section: command_properties
32
9
  constructor(input) {
33
- // Start section: command_constructor
34
10
  super();
35
11
  this.input = input;
36
- // End section: command_constructor
37
12
  }
38
- /**
39
- * @internal
40
- */
41
13
  resolveMiddleware(clientStack, configuration, options) {
42
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
43
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,37 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Deletes a specified authorization key pair. This invalidates future viewer tokens
10
- * generated using the key pair’s <code>privateKey</code>. For more information, see <a href="https://docs.aws.amazon.com/ivs/latest/userguide/private-channels.html">Setting Up Private
11
- * Channels</a> in the <i>Amazon IVS User Guide</i>.</p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { IvsClient, DeletePlaybackKeyPairCommand } from "@aws-sdk/client-ivs"; // ES Modules import
16
- * // const { IvsClient, DeletePlaybackKeyPairCommand } = require("@aws-sdk/client-ivs"); // CommonJS import
17
- * const client = new IvsClient(config);
18
- * const command = new DeletePlaybackKeyPairCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link DeletePlaybackKeyPairCommandInput} for command's `input` shape.
23
- * @see {@link DeletePlaybackKeyPairCommandOutput} for command's `response` shape.
24
- * @see {@link IvsClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
8
  class DeletePlaybackKeyPairCommand extends smithy_client_1.Command {
28
- // Start section: command_properties
29
- // End section: command_properties
30
9
  constructor(input) {
31
- // Start section: command_constructor
32
10
  super();
33
11
  this.input = input;
34
- // End section: command_constructor
35
12
  }
36
- /**
37
- * @internal
38
- */
39
13
  resolveMiddleware(clientStack, configuration, options) {
40
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
41
15
  const stack = clientStack.concat(this.middlewareStack);