@aws-sdk/client-ivs 3.42.0 → 3.47.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.
Files changed (55) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.md +10 -1
  3. package/dist-cjs/Ivs.js +30 -0
  4. package/dist-cjs/commands/GetStreamSessionCommand.js +36 -0
  5. package/dist-cjs/commands/ListStreamSessionsCommand.js +36 -0
  6. package/dist-cjs/commands/index.js +2 -0
  7. package/dist-cjs/endpoints.js +1 -0
  8. package/dist-cjs/models/models_0.js +68 -62
  9. package/dist-cjs/pagination/ListStreamSessionsPaginator.js +35 -0
  10. package/dist-cjs/pagination/index.js +1 -0
  11. package/dist-cjs/protocols/Aws_restJson1.js +282 -2
  12. package/dist-cjs/runtimeConfig.browser.js +7 -2
  13. package/dist-cjs/runtimeConfig.js +9 -3
  14. package/dist-es/Ivs.js +30 -0
  15. package/dist-es/commands/GetStreamSessionCommand.js +39 -0
  16. package/dist-es/commands/ListStreamSessionsCommand.js +39 -0
  17. package/dist-es/commands/index.js +2 -0
  18. package/dist-es/endpoints.js +1 -0
  19. package/dist-es/models/models_0.js +44 -40
  20. package/dist-es/pagination/ListStreamSessionsPaginator.js +74 -0
  21. package/dist-es/pagination/index.js +1 -0
  22. package/dist-es/protocols/Aws_restJson1.js +309 -1
  23. package/dist-es/runtimeConfig.browser.js +12 -3
  24. package/dist-es/runtimeConfig.js +13 -6
  25. package/dist-types/Ivs.d.ts +44 -19
  26. package/dist-types/IvsClient.d.ts +19 -4
  27. package/dist-types/commands/CreateRecordingConfigurationCommand.d.ts +9 -9
  28. package/dist-types/commands/DeleteChannelCommand.d.ts +2 -1
  29. package/dist-types/commands/GetStreamSessionCommand.d.ts +35 -0
  30. package/dist-types/commands/ListChannelsCommand.d.ts +3 -3
  31. package/dist-types/commands/ListRecordingConfigurationsCommand.d.ts +2 -2
  32. package/dist-types/commands/ListStreamSessionsCommand.d.ts +36 -0
  33. package/dist-types/commands/ListStreamsCommand.d.ts +2 -2
  34. package/dist-types/commands/PutMetadataCommand.d.ts +1 -1
  35. package/dist-types/commands/index.d.ts +2 -0
  36. package/dist-types/models/models_0.d.ts +289 -66
  37. package/dist-types/pagination/ListStreamSessionsPaginator.d.ts +4 -0
  38. package/dist-types/pagination/index.d.ts +1 -0
  39. package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
  40. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  41. package/dist-types/runtimeConfig.d.ts +4 -3
  42. package/dist-types/runtimeConfig.native.d.ts +1 -0
  43. package/dist-types/ts3.4/Ivs.d.ts +10 -0
  44. package/dist-types/ts3.4/IvsClient.d.ts +7 -3
  45. package/dist-types/ts3.4/commands/GetStreamSessionCommand.d.ts +17 -0
  46. package/dist-types/ts3.4/commands/ListStreamSessionsCommand.d.ts +17 -0
  47. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  48. package/dist-types/ts3.4/models/models_0.d.ts +153 -40
  49. package/dist-types/ts3.4/pagination/ListStreamSessionsPaginator.d.ts +4 -0
  50. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  51. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -0
  52. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  53. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  54. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  55. package/package.json +38 -45
@@ -1,21 +1,28 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
8
8
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
- import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
10
10
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
11
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
15
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
16
17
  export var getRuntimeConfig = function (config) {
17
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
- emitWarningIfUnsupportedVersion(process.version);
19
+ var defaultsMode = resolveDefaultsModeConfig(config);
20
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
19
21
  var clientSharedValues = getSharedRuntimeConfig(config);
20
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
22
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
23
+ switch (_a.label) {
24
+ case 0: return [4, defaultConfigProvider()];
25
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
26
+ }
27
+ }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
21
28
  };
@@ -13,12 +13,14 @@ import { GetPlaybackKeyPairCommandInput, GetPlaybackKeyPairCommandOutput } from
13
13
  import { GetRecordingConfigurationCommandInput, GetRecordingConfigurationCommandOutput } from "./commands/GetRecordingConfigurationCommand";
14
14
  import { GetStreamCommandInput, GetStreamCommandOutput } from "./commands/GetStreamCommand";
15
15
  import { GetStreamKeyCommandInput, GetStreamKeyCommandOutput } from "./commands/GetStreamKeyCommand";
16
+ import { GetStreamSessionCommandInput, GetStreamSessionCommandOutput } from "./commands/GetStreamSessionCommand";
16
17
  import { ImportPlaybackKeyPairCommandInput, ImportPlaybackKeyPairCommandOutput } from "./commands/ImportPlaybackKeyPairCommand";
17
18
  import { ListChannelsCommandInput, ListChannelsCommandOutput } from "./commands/ListChannelsCommand";
18
19
  import { ListPlaybackKeyPairsCommandInput, ListPlaybackKeyPairsCommandOutput } from "./commands/ListPlaybackKeyPairsCommand";
19
20
  import { ListRecordingConfigurationsCommandInput, ListRecordingConfigurationsCommandOutput } from "./commands/ListRecordingConfigurationsCommand";
20
21
  import { ListStreamKeysCommandInput, ListStreamKeysCommandOutput } from "./commands/ListStreamKeysCommand";
21
22
  import { ListStreamsCommandInput, ListStreamsCommandOutput } from "./commands/ListStreamsCommand";
23
+ import { ListStreamSessionsCommandInput, ListStreamSessionsCommandOutput } from "./commands/ListStreamSessionsCommand";
22
24
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
23
25
  import { PutMetadataCommandInput, PutMetadataCommandOutput } from "./commands/PutMetadataCommand";
24
26
  import { StopStreamCommandInput, StopStreamCommandOutput } from "./commands/StopStreamCommand";
@@ -44,7 +46,6 @@ import { IvsClient } from "./IvsClient";
44
46
  * </p>
45
47
  * <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
46
48
  * History</a>.</p>
47
- *
48
49
  * <p>
49
50
  * <b>Allowed Header Values</b>
50
51
  * </p>
@@ -234,11 +235,21 @@ import { IvsClient } from "./IvsClient";
234
235
  * </li>
235
236
  * <li>
236
237
  * <p>
238
+ * <a>GetStreamSession</a> — Gets metadata on a specified stream.</p>
239
+ * </li>
240
+ * <li>
241
+ * <p>
237
242
  * <a>ListStreams</a> — Gets summary information about live streams in
238
243
  * your account, in the Amazon Web Services region where the API request is processed.</p>
239
244
  * </li>
240
245
  * <li>
241
246
  * <p>
247
+ * <a>ListStreamSessions</a> — Gets a summary of current and previous
248
+ * streams for a specified channel in your account, in the AWS region where the API request
249
+ * is processed.</p>
250
+ * </li>
251
+ * <li>
252
+ * <p>
242
253
  * <a>StopStream</a> — Disconnects the incoming RTMPS stream for the
243
254
  * specified channel. Can be used in conjunction with <a>DeleteStreamKey</a> to
244
255
  * prevent further streaming to a channel.</p>
@@ -353,16 +364,16 @@ export declare class Ivs extends IvsClient {
353
364
  /**
354
365
  * <p>Creates a new recording configuration, used to enable recording to Amazon S3.</p>
355
366
  * <p>
356
- * <b>Known issue:</b> In the us-east-1 region, if you use the Amazon Web Services
357
- * CLI to create a recording configuration, it returns success even if the S3 bucket is in a
358
- * different region. In this case, the <code>state</code> of the recording configuration is
359
- * <code>CREATE_FAILED</code> (instead of <code>ACTIVE</code>). (In other regions, the CLI
360
- * correctly returns failure if the bucket is in a different region.)</p>
367
+ * <b>Known issue:</b> In the us-east-1 region, if you use the
368
+ * Amazon Web Services CLI to create a recording configuration, it returns success even if the
369
+ * S3 bucket is in a different region. In this case, the <code>state</code> of the recording
370
+ * configuration is <code>CREATE_FAILED</code> (instead of <code>ACTIVE</code>). (In other
371
+ * regions, the CLI correctly returns failure if the bucket is in a different region.)</p>
361
372
  * <p>
362
- * <b>Workaround:</b> Ensure that your S3 bucket is in the same region as the recording
363
- * configuration. If you create a recording configuration in a different region as your S3
364
- * bucket, delete that recording configuration and create a new one with an S3 bucket from the
365
- * correct region.</p>
373
+ * <b>Workaround:</b> Ensure that your S3 bucket is in the same
374
+ * region as the recording configuration. If you create a recording configuration in a different
375
+ * region as your S3 bucket, delete that recording configuration and create a new one with an S3
376
+ * bucket from the correct region.</p>
366
377
  */
367
378
  createRecordingConfiguration(args: CreateRecordingConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<CreateRecordingConfigurationCommandOutput>;
368
379
  createRecordingConfiguration(args: CreateRecordingConfigurationCommandInput, cb: (err: any, data?: CreateRecordingConfigurationCommandOutput) => void): void;
@@ -381,7 +392,8 @@ export declare class Ivs extends IvsClient {
381
392
  * <p>If you try to delete a live channel, you will get an error (409 ConflictException). To
382
393
  * delete a channel that is live, call <a>StopStream</a>, wait for the Amazon
383
394
  * EventBridge "Stream End" event (to verify that the stream's state was changed from Live to
384
- * Offline), then call DeleteChannel. (See <a href="https://docs.aws.amazon.com/ivs/latest/userguide/eventbridge.html"> Using EventBridge with Amazon IVS</a>.) </p>
395
+ * Offline), then call DeleteChannel. (See <a href="https://docs.aws.amazon.com/ivs/latest/userguide/eventbridge.html"> Using EventBridge with Amazon IVS</a>.)
396
+ * </p>
385
397
  */
386
398
  deleteChannel(args: DeleteChannelCommandInput, options?: __HttpHandlerOptions): Promise<DeleteChannelCommandOutput>;
387
399
  deleteChannel(args: DeleteChannelCommandInput, cb: (err: any, data?: DeleteChannelCommandOutput) => void): void;
@@ -446,6 +458,12 @@ export declare class Ivs extends IvsClient {
446
458
  getStreamKey(args: GetStreamKeyCommandInput, options?: __HttpHandlerOptions): Promise<GetStreamKeyCommandOutput>;
447
459
  getStreamKey(args: GetStreamKeyCommandInput, cb: (err: any, data?: GetStreamKeyCommandOutput) => void): void;
448
460
  getStreamKey(args: GetStreamKeyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetStreamKeyCommandOutput) => void): void;
461
+ /**
462
+ * <p>Gets metadata on a specified stream.</p>
463
+ */
464
+ getStreamSession(args: GetStreamSessionCommandInput, options?: __HttpHandlerOptions): Promise<GetStreamSessionCommandOutput>;
465
+ getStreamSession(args: GetStreamSessionCommandInput, cb: (err: any, data?: GetStreamSessionCommandOutput) => void): void;
466
+ getStreamSession(args: GetStreamSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetStreamSessionCommandOutput) => void): void;
449
467
  /**
450
468
  * <p>Imports the public portion of a new key pair and returns its <code>arn</code> and
451
469
  * <code>fingerprint</code>. The <code>privateKey</code> can then be used to generate viewer
@@ -457,9 +475,9 @@ export declare class Ivs extends IvsClient {
457
475
  importPlaybackKeyPair(args: ImportPlaybackKeyPairCommandInput, cb: (err: any, data?: ImportPlaybackKeyPairCommandOutput) => void): void;
458
476
  importPlaybackKeyPair(args: ImportPlaybackKeyPairCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ImportPlaybackKeyPairCommandOutput) => void): void;
459
477
  /**
460
- * <p>Gets summary information about all channels in your account, in the Amazon Web Services region where the
461
- * API request is processed. This list can be filtered to match a specified name or
462
- * recording-configuration ARN. Filters are mutually exclusive and cannot be used together. If
478
+ * <p>Gets summary information about all channels in your account, in the Amazon Web Services
479
+ * region where the API request is processed. This list can be filtered to match a specified name
480
+ * or recording-configuration ARN. Filters are mutually exclusive and cannot be used together. If
463
481
  * you try to use both filters, you will get an error (409 ConflictException).</p>
464
482
  */
465
483
  listChannels(args: ListChannelsCommandInput, options?: __HttpHandlerOptions): Promise<ListChannelsCommandOutput>;
@@ -473,8 +491,8 @@ export declare class Ivs extends IvsClient {
473
491
  listPlaybackKeyPairs(args: ListPlaybackKeyPairsCommandInput, cb: (err: any, data?: ListPlaybackKeyPairsCommandOutput) => void): void;
474
492
  listPlaybackKeyPairs(args: ListPlaybackKeyPairsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPlaybackKeyPairsCommandOutput) => void): void;
475
493
  /**
476
- * <p>Gets summary information about all recording configurations in your account, in the Amazon Web Services
477
- * region where the API request is processed.</p>
494
+ * <p>Gets summary information about all recording configurations in your account, in the
495
+ * Amazon Web Services region where the API request is processed.</p>
478
496
  */
479
497
  listRecordingConfigurations(args: ListRecordingConfigurationsCommandInput, options?: __HttpHandlerOptions): Promise<ListRecordingConfigurationsCommandOutput>;
480
498
  listRecordingConfigurations(args: ListRecordingConfigurationsCommandInput, cb: (err: any, data?: ListRecordingConfigurationsCommandOutput) => void): void;
@@ -486,12 +504,19 @@ export declare class Ivs extends IvsClient {
486
504
  listStreamKeys(args: ListStreamKeysCommandInput, cb: (err: any, data?: ListStreamKeysCommandOutput) => void): void;
487
505
  listStreamKeys(args: ListStreamKeysCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListStreamKeysCommandOutput) => void): void;
488
506
  /**
489
- * <p>Gets summary information about live streams in your account, in the Amazon Web Services region where the
490
- * API request is processed.</p>
507
+ * <p>Gets summary information about live streams in your account, in the Amazon Web Services
508
+ * region where the API request is processed.</p>
491
509
  */
492
510
  listStreams(args: ListStreamsCommandInput, options?: __HttpHandlerOptions): Promise<ListStreamsCommandOutput>;
493
511
  listStreams(args: ListStreamsCommandInput, cb: (err: any, data?: ListStreamsCommandOutput) => void): void;
494
512
  listStreams(args: ListStreamsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListStreamsCommandOutput) => void): void;
513
+ /**
514
+ * <p>Gets a summary of current and previous streams for a specified channel in your account, in
515
+ * the AWS region where the API request is processed.</p>
516
+ */
517
+ listStreamSessions(args: ListStreamSessionsCommandInput, options?: __HttpHandlerOptions): Promise<ListStreamSessionsCommandOutput>;
518
+ listStreamSessions(args: ListStreamSessionsCommandInput, cb: (err: any, data?: ListStreamSessionsCommandOutput) => void): void;
519
+ listStreamSessions(args: ListStreamSessionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListStreamSessionsCommandOutput) => void): void;
495
520
  /**
496
521
  * <p>Gets information about Amazon Web Services tags for the specified ARN.</p>
497
522
  */
@@ -499,7 +524,7 @@ export declare class Ivs extends IvsClient {
499
524
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
500
525
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
501
526
  /**
502
- * <p>Inserts metadata into the active stream of the specified channel. At most 5 requests per
527
+ * <p>Inserts metadata into the active stream of the specified channel. At most 5 requests per
503
528
  * second per channel are allowed, each with a maximum 1 KB payload. (If 5 TPS is not sufficient
504
529
  * for your needs, we recommend batching your data into a single PutMetadata call.) At most 155
505
530
  * requests per second per account are allowed. Also see <a href="https://docs.aws.amazon.com/ivs/latest/userguide/metadata.html">Embedding Metadata within a Video Stream</a> in
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { BatchGetChannelCommandInput, BatchGetChannelCommandOutput } from "./commands/BatchGetChannelCommand";
10
10
  import { BatchGetStreamKeyCommandInput, BatchGetStreamKeyCommandOutput } from "./commands/BatchGetStreamKeyCommand";
@@ -20,20 +20,22 @@ import { GetPlaybackKeyPairCommandInput, GetPlaybackKeyPairCommandOutput } from
20
20
  import { GetRecordingConfigurationCommandInput, GetRecordingConfigurationCommandOutput } from "./commands/GetRecordingConfigurationCommand";
21
21
  import { GetStreamCommandInput, GetStreamCommandOutput } from "./commands/GetStreamCommand";
22
22
  import { GetStreamKeyCommandInput, GetStreamKeyCommandOutput } from "./commands/GetStreamKeyCommand";
23
+ import { GetStreamSessionCommandInput, GetStreamSessionCommandOutput } from "./commands/GetStreamSessionCommand";
23
24
  import { ImportPlaybackKeyPairCommandInput, ImportPlaybackKeyPairCommandOutput } from "./commands/ImportPlaybackKeyPairCommand";
24
25
  import { ListChannelsCommandInput, ListChannelsCommandOutput } from "./commands/ListChannelsCommand";
25
26
  import { ListPlaybackKeyPairsCommandInput, ListPlaybackKeyPairsCommandOutput } from "./commands/ListPlaybackKeyPairsCommand";
26
27
  import { ListRecordingConfigurationsCommandInput, ListRecordingConfigurationsCommandOutput } from "./commands/ListRecordingConfigurationsCommand";
27
28
  import { ListStreamKeysCommandInput, ListStreamKeysCommandOutput } from "./commands/ListStreamKeysCommand";
28
29
  import { ListStreamsCommandInput, ListStreamsCommandOutput } from "./commands/ListStreamsCommand";
30
+ import { ListStreamSessionsCommandInput, ListStreamSessionsCommandOutput } from "./commands/ListStreamSessionsCommand";
29
31
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
30
32
  import { PutMetadataCommandInput, PutMetadataCommandOutput } from "./commands/PutMetadataCommand";
31
33
  import { StopStreamCommandInput, StopStreamCommandOutput } from "./commands/StopStreamCommand";
32
34
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
33
35
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
34
36
  import { UpdateChannelCommandInput, UpdateChannelCommandOutput } from "./commands/UpdateChannelCommand";
35
- export declare type ServiceInputTypes = BatchGetChannelCommandInput | BatchGetStreamKeyCommandInput | CreateChannelCommandInput | CreateRecordingConfigurationCommandInput | CreateStreamKeyCommandInput | DeleteChannelCommandInput | DeletePlaybackKeyPairCommandInput | DeleteRecordingConfigurationCommandInput | DeleteStreamKeyCommandInput | GetChannelCommandInput | GetPlaybackKeyPairCommandInput | GetRecordingConfigurationCommandInput | GetStreamCommandInput | GetStreamKeyCommandInput | ImportPlaybackKeyPairCommandInput | ListChannelsCommandInput | ListPlaybackKeyPairsCommandInput | ListRecordingConfigurationsCommandInput | ListStreamKeysCommandInput | ListStreamsCommandInput | ListTagsForResourceCommandInput | PutMetadataCommandInput | StopStreamCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateChannelCommandInput;
36
- export declare type ServiceOutputTypes = BatchGetChannelCommandOutput | BatchGetStreamKeyCommandOutput | CreateChannelCommandOutput | CreateRecordingConfigurationCommandOutput | CreateStreamKeyCommandOutput | DeleteChannelCommandOutput | DeletePlaybackKeyPairCommandOutput | DeleteRecordingConfigurationCommandOutput | DeleteStreamKeyCommandOutput | GetChannelCommandOutput | GetPlaybackKeyPairCommandOutput | GetRecordingConfigurationCommandOutput | GetStreamCommandOutput | GetStreamKeyCommandOutput | ImportPlaybackKeyPairCommandOutput | ListChannelsCommandOutput | ListPlaybackKeyPairsCommandOutput | ListRecordingConfigurationsCommandOutput | ListStreamKeysCommandOutput | ListStreamsCommandOutput | ListTagsForResourceCommandOutput | PutMetadataCommandOutput | StopStreamCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateChannelCommandOutput;
37
+ export declare type ServiceInputTypes = BatchGetChannelCommandInput | BatchGetStreamKeyCommandInput | CreateChannelCommandInput | CreateRecordingConfigurationCommandInput | CreateStreamKeyCommandInput | DeleteChannelCommandInput | DeletePlaybackKeyPairCommandInput | DeleteRecordingConfigurationCommandInput | DeleteStreamKeyCommandInput | GetChannelCommandInput | GetPlaybackKeyPairCommandInput | GetRecordingConfigurationCommandInput | GetStreamCommandInput | GetStreamKeyCommandInput | GetStreamSessionCommandInput | ImportPlaybackKeyPairCommandInput | ListChannelsCommandInput | ListPlaybackKeyPairsCommandInput | ListRecordingConfigurationsCommandInput | ListStreamKeysCommandInput | ListStreamSessionsCommandInput | ListStreamsCommandInput | ListTagsForResourceCommandInput | PutMetadataCommandInput | StopStreamCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateChannelCommandInput;
38
+ export declare type ServiceOutputTypes = BatchGetChannelCommandOutput | BatchGetStreamKeyCommandOutput | CreateChannelCommandOutput | CreateRecordingConfigurationCommandOutput | CreateStreamKeyCommandOutput | DeleteChannelCommandOutput | DeletePlaybackKeyPairCommandOutput | DeleteRecordingConfigurationCommandOutput | DeleteStreamKeyCommandOutput | GetChannelCommandOutput | GetPlaybackKeyPairCommandOutput | GetRecordingConfigurationCommandOutput | GetStreamCommandOutput | GetStreamKeyCommandOutput | GetStreamSessionCommandOutput | ImportPlaybackKeyPairCommandOutput | ListChannelsCommandOutput | ListPlaybackKeyPairsCommandOutput | ListRecordingConfigurationsCommandOutput | ListStreamKeysCommandOutput | ListStreamSessionsCommandOutput | ListStreamsCommandOutput | ListTagsForResourceCommandOutput | PutMetadataCommandOutput | StopStreamCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateChannelCommandOutput;
37
39
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
38
40
  /**
39
41
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -134,6 +136,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
134
136
  * @internal
135
137
  */
136
138
  defaultUserAgentProvider?: Provider<__UserAgent>;
139
+ /**
140
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
141
+ */
142
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
137
143
  }
138
144
  declare type IvsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
139
145
  /**
@@ -165,7 +171,6 @@ export interface IvsClientResolvedConfig extends IvsClientResolvedConfigType {
165
171
  * </p>
166
172
  * <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
167
173
  * History</a>.</p>
168
- *
169
174
  * <p>
170
175
  * <b>Allowed Header Values</b>
171
176
  * </p>
@@ -355,11 +360,21 @@ export interface IvsClientResolvedConfig extends IvsClientResolvedConfigType {
355
360
  * </li>
356
361
  * <li>
357
362
  * <p>
363
+ * <a>GetStreamSession</a> — Gets metadata on a specified stream.</p>
364
+ * </li>
365
+ * <li>
366
+ * <p>
358
367
  * <a>ListStreams</a> — Gets summary information about live streams in
359
368
  * your account, in the Amazon Web Services region where the API request is processed.</p>
360
369
  * </li>
361
370
  * <li>
362
371
  * <p>
372
+ * <a>ListStreamSessions</a> — Gets a summary of current and previous
373
+ * streams for a specified channel in your account, in the AWS region where the API request
374
+ * is processed.</p>
375
+ * </li>
376
+ * <li>
377
+ * <p>
363
378
  * <a>StopStream</a> — Disconnects the incoming RTMPS stream for the
364
379
  * specified channel. Can be used in conjunction with <a>DeleteStreamKey</a> to
365
380
  * prevent further streaming to a channel.</p>
@@ -9,16 +9,16 @@ export interface CreateRecordingConfigurationCommandOutput extends CreateRecordi
9
9
  /**
10
10
  * <p>Creates a new recording configuration, used to enable recording to Amazon S3.</p>
11
11
  * <p>
12
- * <b>Known issue:</b> In the us-east-1 region, if you use the Amazon Web Services
13
- * CLI to create a recording configuration, it returns success even if the S3 bucket is in a
14
- * different region. In this case, the <code>state</code> of the recording configuration is
15
- * <code>CREATE_FAILED</code> (instead of <code>ACTIVE</code>). (In other regions, the CLI
16
- * correctly returns failure if the bucket is in a different region.)</p>
12
+ * <b>Known issue:</b> In the us-east-1 region, if you use the
13
+ * Amazon Web Services CLI to create a recording configuration, it returns success even if the
14
+ * S3 bucket is in a different region. In this case, the <code>state</code> of the recording
15
+ * configuration is <code>CREATE_FAILED</code> (instead of <code>ACTIVE</code>). (In other
16
+ * regions, the CLI correctly returns failure if the bucket is in a different region.)</p>
17
17
  * <p>
18
- * <b>Workaround:</b> Ensure that your S3 bucket is in the same region as the recording
19
- * configuration. If you create a recording configuration in a different region as your S3
20
- * bucket, delete that recording configuration and create a new one with an S3 bucket from the
21
- * correct region.</p>
18
+ * <b>Workaround:</b> Ensure that your S3 bucket is in the same
19
+ * region as the recording configuration. If you create a recording configuration in a different
20
+ * region as your S3 bucket, delete that recording configuration and create a new one with an S3
21
+ * bucket from the correct region.</p>
22
22
  * @example
23
23
  * Use a bare-bones client and the command you need to make an API call.
24
24
  * ```javascript
@@ -11,7 +11,8 @@ export interface DeleteChannelCommandOutput extends __MetadataBearer {
11
11
  * <p>If you try to delete a live channel, you will get an error (409 ConflictException). To
12
12
  * delete a channel that is live, call <a>StopStream</a>, wait for the Amazon
13
13
  * EventBridge "Stream End" event (to verify that the stream's state was changed from Live to
14
- * 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
+ * Offline), then call DeleteChannel. (See <a href="https://docs.aws.amazon.com/ivs/latest/userguide/eventbridge.html"> Using EventBridge with Amazon IVS</a>.)
15
+ * </p>
15
16
  * @example
16
17
  * Use a bare-bones client and the command you need to make an API call.
17
18
  * ```javascript
@@ -0,0 +1,35 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { IvsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IvsClient";
4
+ import { GetStreamSessionRequest, GetStreamSessionResponse } from "../models/models_0";
5
+ export interface GetStreamSessionCommandInput extends GetStreamSessionRequest {
6
+ }
7
+ export interface GetStreamSessionCommandOutput extends GetStreamSessionResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Gets metadata on a specified stream.</p>
11
+ * @example
12
+ * Use a bare-bones client and the command you need to make an API call.
13
+ * ```javascript
14
+ * import { IvsClient, GetStreamSessionCommand } from "@aws-sdk/client-ivs"; // ES Modules import
15
+ * // const { IvsClient, GetStreamSessionCommand } = require("@aws-sdk/client-ivs"); // CommonJS import
16
+ * const client = new IvsClient(config);
17
+ * const command = new GetStreamSessionCommand(input);
18
+ * const response = await client.send(command);
19
+ * ```
20
+ *
21
+ * @see {@link GetStreamSessionCommandInput} for command's `input` shape.
22
+ * @see {@link GetStreamSessionCommandOutput} for command's `response` shape.
23
+ * @see {@link IvsClientResolvedConfig | config} for IvsClient's `config` shape.
24
+ *
25
+ */
26
+ export declare class GetStreamSessionCommand extends $Command<GetStreamSessionCommandInput, GetStreamSessionCommandOutput, IvsClientResolvedConfig> {
27
+ readonly input: GetStreamSessionCommandInput;
28
+ constructor(input: GetStreamSessionCommandInput);
29
+ /**
30
+ * @internal
31
+ */
32
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: IvsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetStreamSessionCommandInput, GetStreamSessionCommandOutput>;
33
+ private serialize;
34
+ private deserialize;
35
+ }
@@ -7,9 +7,9 @@ export interface ListChannelsCommandInput extends ListChannelsRequest {
7
7
  export interface ListChannelsCommandOutput extends ListChannelsResponse, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Gets summary information about all channels in your account, in the Amazon Web Services region where the
11
- * API request is processed. This list can be filtered to match a specified name or
12
- * recording-configuration ARN. Filters are mutually exclusive and cannot be used together. If
10
+ * <p>Gets summary information about all channels in your account, in the Amazon Web Services
11
+ * region where the API request is processed. This list can be filtered to match a specified name
12
+ * or recording-configuration ARN. Filters are mutually exclusive and cannot be used together. If
13
13
  * you try to use both filters, you will get an error (409 ConflictException).</p>
14
14
  * @example
15
15
  * Use a bare-bones client and the command you need to make an API call.
@@ -7,8 +7,8 @@ export interface ListRecordingConfigurationsCommandInput extends ListRecordingCo
7
7
  export interface ListRecordingConfigurationsCommandOutput extends ListRecordingConfigurationsResponse, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Gets summary information about all recording configurations in your account, in the Amazon Web Services
11
- * region where the API request is processed.</p>
10
+ * <p>Gets summary information about all recording configurations in your account, in the
11
+ * Amazon Web Services region where the API request is processed.</p>
12
12
  * @example
13
13
  * Use a bare-bones client and the command you need to make an API call.
14
14
  * ```javascript
@@ -0,0 +1,36 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { IvsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IvsClient";
4
+ import { ListStreamSessionsRequest, ListStreamSessionsResponse } from "../models/models_0";
5
+ export interface ListStreamSessionsCommandInput extends ListStreamSessionsRequest {
6
+ }
7
+ export interface ListStreamSessionsCommandOutput extends ListStreamSessionsResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Gets a summary of current and previous streams for a specified channel in your account, in
11
+ * the AWS region where the API request is processed.</p>
12
+ * @example
13
+ * Use a bare-bones client and the command you need to make an API call.
14
+ * ```javascript
15
+ * import { IvsClient, ListStreamSessionsCommand } from "@aws-sdk/client-ivs"; // ES Modules import
16
+ * // const { IvsClient, ListStreamSessionsCommand } = require("@aws-sdk/client-ivs"); // CommonJS import
17
+ * const client = new IvsClient(config);
18
+ * const command = new ListStreamSessionsCommand(input);
19
+ * const response = await client.send(command);
20
+ * ```
21
+ *
22
+ * @see {@link ListStreamSessionsCommandInput} for command's `input` shape.
23
+ * @see {@link ListStreamSessionsCommandOutput} for command's `response` shape.
24
+ * @see {@link IvsClientResolvedConfig | config} for IvsClient's `config` shape.
25
+ *
26
+ */
27
+ export declare class ListStreamSessionsCommand extends $Command<ListStreamSessionsCommandInput, ListStreamSessionsCommandOutput, IvsClientResolvedConfig> {
28
+ readonly input: ListStreamSessionsCommandInput;
29
+ constructor(input: ListStreamSessionsCommandInput);
30
+ /**
31
+ * @internal
32
+ */
33
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: IvsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListStreamSessionsCommandInput, ListStreamSessionsCommandOutput>;
34
+ private serialize;
35
+ private deserialize;
36
+ }
@@ -7,8 +7,8 @@ export interface ListStreamsCommandInput extends ListStreamsRequest {
7
7
  export interface ListStreamsCommandOutput extends ListStreamsResponse, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Gets summary information about live streams in your account, in the Amazon Web Services region where the
11
- * API request is processed.</p>
10
+ * <p>Gets summary information about live streams in your account, in the Amazon Web Services
11
+ * region where the API request is processed.</p>
12
12
  * @example
13
13
  * Use a bare-bones client and the command you need to make an API call.
14
14
  * ```javascript
@@ -7,7 +7,7 @@ export interface PutMetadataCommandInput extends PutMetadataRequest {
7
7
  export interface PutMetadataCommandOutput extends __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Inserts metadata into the active stream of the specified channel. At most 5 requests per
10
+ * <p>Inserts metadata into the active stream of the specified channel. At most 5 requests per
11
11
  * second per channel are allowed, each with a maximum 1 KB payload. (If 5 TPS is not sufficient
12
12
  * for your needs, we recommend batching your data into a single PutMetadata call.) At most 155
13
13
  * requests per second per account are allowed. Also see <a href="https://docs.aws.amazon.com/ivs/latest/userguide/metadata.html">Embedding Metadata within a Video Stream</a> in
@@ -12,11 +12,13 @@ export * from "./GetPlaybackKeyPairCommand";
12
12
  export * from "./GetRecordingConfigurationCommand";
13
13
  export * from "./GetStreamCommand";
14
14
  export * from "./GetStreamKeyCommand";
15
+ export * from "./GetStreamSessionCommand";
15
16
  export * from "./ImportPlaybackKeyPairCommand";
16
17
  export * from "./ListChannelsCommand";
17
18
  export * from "./ListPlaybackKeyPairsCommand";
18
19
  export * from "./ListRecordingConfigurationsCommand";
19
20
  export * from "./ListStreamKeysCommand";
21
+ export * from "./ListStreamSessionsCommand";
20
22
  export * from "./ListStreamsCommand";
21
23
  export * from "./ListTagsForResourceCommand";
22
24
  export * from "./PutMetadataCommand";