@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
package/CHANGELOG.md CHANGED
@@ -3,6 +3,56 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
28
+ * end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
29
+
30
+
31
+
32
+
33
+
34
+ # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
35
+
36
+
37
+ ### Features
38
+
39
+ * **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
40
+
41
+
42
+
43
+
44
+
45
+ # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
46
+
47
+
48
+ ### Features
49
+
50
+ * **clients:** update clients as of 11/28/2021 ([#3072](https://github.com/aws/aws-sdk-js-v3/issues/3072)) ([2ad1622](https://github.com/aws/aws-sdk-js-v3/commit/2ad1622ba8586b926fe508055211803bb29e3976))
51
+
52
+
53
+
54
+
55
+
6
56
  # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
7
57
 
8
58
  **Note:** Version bump only for package @aws-sdk/client-ivs
package/README.md CHANGED
@@ -24,7 +24,6 @@ Amazon IVS HTTPS service endpoints, see the <a href="https://docs.aws.amazon.com
24
24
  </p>
25
25
  <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
26
26
  History</a>.</p>
27
-
28
27
  <p>
29
28
  <b>Allowed Header Values</b>
30
29
  </p>
@@ -214,11 +213,21 @@ a specified channel.</p>
214
213
  </li>
215
214
  <li>
216
215
  <p>
216
+ <a>GetStreamSession</a> — Gets metadata on a specified stream.</p>
217
+ </li>
218
+ <li>
219
+ <p>
217
220
  <a>ListStreams</a> — Gets summary information about live streams in
218
221
  your account, in the Amazon Web Services region where the API request is processed.</p>
219
222
  </li>
220
223
  <li>
221
224
  <p>
225
+ <a>ListStreamSessions</a> — Gets a summary of current and previous
226
+ streams for a specified channel in your account, in the AWS region where the API request
227
+ is processed.</p>
228
+ </li>
229
+ <li>
230
+ <p>
222
231
  <a>StopStream</a> — Disconnects the incoming RTMPS stream for the
223
232
  specified channel. Can be used in conjunction with <a>DeleteStreamKey</a> to
224
233
  prevent further streaming to a channel.</p>
package/dist-cjs/Ivs.js CHANGED
@@ -15,12 +15,14 @@ const GetPlaybackKeyPairCommand_1 = require("./commands/GetPlaybackKeyPairComman
15
15
  const GetRecordingConfigurationCommand_1 = require("./commands/GetRecordingConfigurationCommand");
16
16
  const GetStreamCommand_1 = require("./commands/GetStreamCommand");
17
17
  const GetStreamKeyCommand_1 = require("./commands/GetStreamKeyCommand");
18
+ const GetStreamSessionCommand_1 = require("./commands/GetStreamSessionCommand");
18
19
  const ImportPlaybackKeyPairCommand_1 = require("./commands/ImportPlaybackKeyPairCommand");
19
20
  const ListChannelsCommand_1 = require("./commands/ListChannelsCommand");
20
21
  const ListPlaybackKeyPairsCommand_1 = require("./commands/ListPlaybackKeyPairsCommand");
21
22
  const ListRecordingConfigurationsCommand_1 = require("./commands/ListRecordingConfigurationsCommand");
22
23
  const ListStreamKeysCommand_1 = require("./commands/ListStreamKeysCommand");
23
24
  const ListStreamsCommand_1 = require("./commands/ListStreamsCommand");
25
+ const ListStreamSessionsCommand_1 = require("./commands/ListStreamSessionsCommand");
24
26
  const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
25
27
  const PutMetadataCommand_1 = require("./commands/PutMetadataCommand");
26
28
  const StopStreamCommand_1 = require("./commands/StopStreamCommand");
@@ -225,6 +227,20 @@ class Ivs extends IvsClient_1.IvsClient {
225
227
  return this.send(command, optionsOrCb);
226
228
  }
227
229
  }
230
+ getStreamSession(args, optionsOrCb, cb) {
231
+ const command = new GetStreamSessionCommand_1.GetStreamSessionCommand(args);
232
+ if (typeof optionsOrCb === "function") {
233
+ this.send(command, optionsOrCb);
234
+ }
235
+ else if (typeof cb === "function") {
236
+ if (typeof optionsOrCb !== "object")
237
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
238
+ this.send(command, optionsOrCb || {}, cb);
239
+ }
240
+ else {
241
+ return this.send(command, optionsOrCb);
242
+ }
243
+ }
228
244
  importPlaybackKeyPair(args, optionsOrCb, cb) {
229
245
  const command = new ImportPlaybackKeyPairCommand_1.ImportPlaybackKeyPairCommand(args);
230
246
  if (typeof optionsOrCb === "function") {
@@ -309,6 +325,20 @@ class Ivs extends IvsClient_1.IvsClient {
309
325
  return this.send(command, optionsOrCb);
310
326
  }
311
327
  }
328
+ listStreamSessions(args, optionsOrCb, cb) {
329
+ const command = new ListStreamSessionsCommand_1.ListStreamSessionsCommand(args);
330
+ if (typeof optionsOrCb === "function") {
331
+ this.send(command, optionsOrCb);
332
+ }
333
+ else if (typeof cb === "function") {
334
+ if (typeof optionsOrCb !== "object")
335
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
336
+ this.send(command, optionsOrCb || {}, cb);
337
+ }
338
+ else {
339
+ return this.send(command, optionsOrCb);
340
+ }
341
+ }
312
342
  listTagsForResource(args, optionsOrCb, cb) {
313
343
  const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
314
344
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetStreamSessionCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class GetStreamSessionCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "IvsClient";
18
+ const commandName = "GetStreamSessionCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.GetStreamSessionRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.GetStreamSessionResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1GetStreamSessionCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1GetStreamSessionCommand(output, context);
34
+ }
35
+ }
36
+ exports.GetStreamSessionCommand = GetStreamSessionCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListStreamSessionsCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class ListStreamSessionsCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "IvsClient";
18
+ const commandName = "ListStreamSessionsCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.ListStreamSessionsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.ListStreamSessionsResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1ListStreamSessionsCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1ListStreamSessionsCommand(output, context);
34
+ }
35
+ }
36
+ exports.ListStreamSessionsCommand = ListStreamSessionsCommand;
@@ -15,11 +15,13 @@ tslib_1.__exportStar(require("./GetPlaybackKeyPairCommand"), exports);
15
15
  tslib_1.__exportStar(require("./GetRecordingConfigurationCommand"), exports);
16
16
  tslib_1.__exportStar(require("./GetStreamCommand"), exports);
17
17
  tslib_1.__exportStar(require("./GetStreamKeyCommand"), exports);
18
+ tslib_1.__exportStar(require("./GetStreamSessionCommand"), exports);
18
19
  tslib_1.__exportStar(require("./ImportPlaybackKeyPairCommand"), exports);
19
20
  tslib_1.__exportStar(require("./ListChannelsCommand"), exports);
20
21
  tslib_1.__exportStar(require("./ListPlaybackKeyPairsCommand"), exports);
21
22
  tslib_1.__exportStar(require("./ListRecordingConfigurationsCommand"), exports);
22
23
  tslib_1.__exportStar(require("./ListStreamKeysCommand"), exports);
24
+ tslib_1.__exportStar(require("./ListStreamSessionsCommand"), exports);
23
25
  tslib_1.__exportStar(require("./ListStreamsCommand"), exports);
24
26
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
25
27
  tslib_1.__exportStar(require("./PutMetadataCommand"), exports);
@@ -14,6 +14,7 @@ const partitionHash = {
14
14
  "ap-south-1",
15
15
  "ap-southeast-1",
16
16
  "ap-southeast-2",
17
+ "ap-southeast-3",
17
18
  "ca-central-1",
18
19
  "eu-central-1",
19
20
  "eu-north-1",
@@ -1,14 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChannelSummary = exports.ListChannelsRequest = exports.ImportPlaybackKeyPairResponse = exports.ImportPlaybackKeyPairRequest = exports.GetStreamKeyResponse = exports.GetStreamKeyRequest = exports.GetStreamResponse = exports._Stream = exports.StreamState = exports.StreamHealth = exports.GetStreamRequest = exports.ChannelNotBroadcasting = exports.GetRecordingConfigurationResponse = exports.GetRecordingConfigurationRequest = exports.GetPlaybackKeyPairResponse = exports.PlaybackKeyPair = exports.GetPlaybackKeyPairRequest = exports.GetChannelResponse = exports.GetChannelRequest = exports.DeleteStreamKeyRequest = exports.DeleteRecordingConfigurationRequest = exports.DeletePlaybackKeyPairResponse = exports.DeletePlaybackKeyPairRequest = exports.DeleteChannelRequest = exports.CreateStreamKeyResponse = exports.CreateStreamKeyRequest = exports.InternalServerException = exports.CreateRecordingConfigurationResponse = exports.RecordingConfiguration = exports.RecordingConfigurationState = exports.CreateRecordingConfigurationRequest = exports.DestinationConfiguration = exports.S3DestinationConfiguration = exports.ConflictException = exports.ValidationException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.PendingVerification = exports.CreateChannelResponse = exports.CreateChannelRequest = exports.BatchGetStreamKeyResponse = exports.StreamKey = exports.BatchGetStreamKeyRequest = exports.BatchGetChannelResponse = exports.BatchError = exports.Channel = exports.ChannelType = exports.ChannelLatencyMode = exports.BatchGetChannelRequest = exports.AccessDeniedException = void 0;
4
- exports.UpdateChannelResponse = exports.UpdateChannelRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StreamUnavailable = exports.StopStreamResponse = exports.StopStreamRequest = exports.ThrottlingException = exports.PutMetadataRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListStreamsResponse = exports.StreamSummary = exports.ListStreamsRequest = exports.ListStreamKeysResponse = exports.StreamKeySummary = exports.ListStreamKeysRequest = exports.ListRecordingConfigurationsResponse = exports.RecordingConfigurationSummary = exports.ListRecordingConfigurationsRequest = exports.ListPlaybackKeyPairsResponse = exports.PlaybackKeyPairSummary = exports.ListPlaybackKeyPairsRequest = exports.ListChannelsResponse = void 0;
3
+ exports.ListChannelsResponse = exports.ChannelSummary = exports.ListChannelsRequest = exports.ImportPlaybackKeyPairResponse = exports.ImportPlaybackKeyPairRequest = exports.GetStreamSessionResponse = exports.StreamSession = exports.StreamEvent = exports.IngestConfiguration = exports.VideoConfiguration = exports.AudioConfiguration = exports.GetStreamSessionRequest = exports.GetStreamKeyResponse = exports.GetStreamKeyRequest = exports.GetStreamResponse = exports._Stream = exports.StreamState = exports.StreamHealth = exports.GetStreamRequest = exports.GetRecordingConfigurationResponse = exports.GetRecordingConfigurationRequest = exports.GetPlaybackKeyPairResponse = exports.PlaybackKeyPair = exports.GetPlaybackKeyPairRequest = exports.GetChannelResponse = exports.GetChannelRequest = exports.DeleteStreamKeyRequest = exports.DeleteRecordingConfigurationRequest = exports.DeletePlaybackKeyPairResponse = exports.DeletePlaybackKeyPairRequest = exports.DeleteChannelRequest = exports.CreateStreamKeyResponse = exports.CreateStreamKeyRequest = exports.CreateRecordingConfigurationResponse = exports.RecordingConfiguration = exports.RecordingConfigurationState = exports.CreateRecordingConfigurationRequest = exports.DestinationConfiguration = exports.S3DestinationConfiguration = exports.CreateChannelResponse = exports.CreateChannelRequest = exports.BatchGetStreamKeyResponse = exports.StreamKey = exports.BatchGetStreamKeyRequest = exports.BatchGetChannelResponse = exports.BatchError = exports.Channel = exports.ChannelType = exports.ChannelLatencyMode = exports.BatchGetChannelRequest = void 0;
4
+ exports.UpdateChannelResponse = exports.UpdateChannelRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StopStreamResponse = exports.StopStreamRequest = exports.PutMetadataRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListStreamSessionsResponse = exports.StreamSessionSummary = exports.ListStreamSessionsRequest = exports.ListStreamsResponse = exports.StreamSummary = exports.ListStreamsRequest = exports.StreamFilters = exports.ListStreamKeysResponse = exports.StreamKeySummary = exports.ListStreamKeysRequest = exports.ListRecordingConfigurationsResponse = exports.RecordingConfigurationSummary = exports.ListRecordingConfigurationsRequest = exports.ListPlaybackKeyPairsResponse = exports.PlaybackKeyPairSummary = exports.ListPlaybackKeyPairsRequest = void 0;
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- var AccessDeniedException;
7
- (function (AccessDeniedException) {
8
- AccessDeniedException.filterSensitiveLog = (obj) => ({
9
- ...obj,
10
- });
11
- })(AccessDeniedException = exports.AccessDeniedException || (exports.AccessDeniedException = {}));
12
6
  var BatchGetChannelRequest;
13
7
  (function (BatchGetChannelRequest) {
14
8
  BatchGetChannelRequest.filterSensitiveLog = (obj) => ({
@@ -76,36 +70,6 @@ var CreateChannelResponse;
76
70
  ...(obj.streamKey && { streamKey: StreamKey.filterSensitiveLog(obj.streamKey) }),
77
71
  });
78
72
  })(CreateChannelResponse = exports.CreateChannelResponse || (exports.CreateChannelResponse = {}));
79
- var PendingVerification;
80
- (function (PendingVerification) {
81
- PendingVerification.filterSensitiveLog = (obj) => ({
82
- ...obj,
83
- });
84
- })(PendingVerification = exports.PendingVerification || (exports.PendingVerification = {}));
85
- var ResourceNotFoundException;
86
- (function (ResourceNotFoundException) {
87
- ResourceNotFoundException.filterSensitiveLog = (obj) => ({
88
- ...obj,
89
- });
90
- })(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
91
- var ServiceQuotaExceededException;
92
- (function (ServiceQuotaExceededException) {
93
- ServiceQuotaExceededException.filterSensitiveLog = (obj) => ({
94
- ...obj,
95
- });
96
- })(ServiceQuotaExceededException = exports.ServiceQuotaExceededException || (exports.ServiceQuotaExceededException = {}));
97
- var ValidationException;
98
- (function (ValidationException) {
99
- ValidationException.filterSensitiveLog = (obj) => ({
100
- ...obj,
101
- });
102
- })(ValidationException = exports.ValidationException || (exports.ValidationException = {}));
103
- var ConflictException;
104
- (function (ConflictException) {
105
- ConflictException.filterSensitiveLog = (obj) => ({
106
- ...obj,
107
- });
108
- })(ConflictException = exports.ConflictException || (exports.ConflictException = {}));
109
73
  var S3DestinationConfiguration;
110
74
  (function (S3DestinationConfiguration) {
111
75
  S3DestinationConfiguration.filterSensitiveLog = (obj) => ({
@@ -142,12 +106,6 @@ var CreateRecordingConfigurationResponse;
142
106
  ...obj,
143
107
  });
144
108
  })(CreateRecordingConfigurationResponse = exports.CreateRecordingConfigurationResponse || (exports.CreateRecordingConfigurationResponse = {}));
145
- var InternalServerException;
146
- (function (InternalServerException) {
147
- InternalServerException.filterSensitiveLog = (obj) => ({
148
- ...obj,
149
- });
150
- })(InternalServerException = exports.InternalServerException || (exports.InternalServerException = {}));
151
109
  var CreateStreamKeyRequest;
152
110
  (function (CreateStreamKeyRequest) {
153
111
  CreateStreamKeyRequest.filterSensitiveLog = (obj) => ({
@@ -233,12 +191,6 @@ var GetRecordingConfigurationResponse;
233
191
  ...obj,
234
192
  });
235
193
  })(GetRecordingConfigurationResponse = exports.GetRecordingConfigurationResponse || (exports.GetRecordingConfigurationResponse = {}));
236
- var ChannelNotBroadcasting;
237
- (function (ChannelNotBroadcasting) {
238
- ChannelNotBroadcasting.filterSensitiveLog = (obj) => ({
239
- ...obj,
240
- });
241
- })(ChannelNotBroadcasting = exports.ChannelNotBroadcasting || (exports.ChannelNotBroadcasting = {}));
242
194
  var GetStreamRequest;
243
195
  (function (GetStreamRequest) {
244
196
  GetStreamRequest.filterSensitiveLog = (obj) => ({
@@ -281,6 +233,48 @@ var GetStreamKeyResponse;
281
233
  ...(obj.streamKey && { streamKey: StreamKey.filterSensitiveLog(obj.streamKey) }),
282
234
  });
283
235
  })(GetStreamKeyResponse = exports.GetStreamKeyResponse || (exports.GetStreamKeyResponse = {}));
236
+ var GetStreamSessionRequest;
237
+ (function (GetStreamSessionRequest) {
238
+ GetStreamSessionRequest.filterSensitiveLog = (obj) => ({
239
+ ...obj,
240
+ });
241
+ })(GetStreamSessionRequest = exports.GetStreamSessionRequest || (exports.GetStreamSessionRequest = {}));
242
+ var AudioConfiguration;
243
+ (function (AudioConfiguration) {
244
+ AudioConfiguration.filterSensitiveLog = (obj) => ({
245
+ ...obj,
246
+ });
247
+ })(AudioConfiguration = exports.AudioConfiguration || (exports.AudioConfiguration = {}));
248
+ var VideoConfiguration;
249
+ (function (VideoConfiguration) {
250
+ VideoConfiguration.filterSensitiveLog = (obj) => ({
251
+ ...obj,
252
+ });
253
+ })(VideoConfiguration = exports.VideoConfiguration || (exports.VideoConfiguration = {}));
254
+ var IngestConfiguration;
255
+ (function (IngestConfiguration) {
256
+ IngestConfiguration.filterSensitiveLog = (obj) => ({
257
+ ...obj,
258
+ });
259
+ })(IngestConfiguration = exports.IngestConfiguration || (exports.IngestConfiguration = {}));
260
+ var StreamEvent;
261
+ (function (StreamEvent) {
262
+ StreamEvent.filterSensitiveLog = (obj) => ({
263
+ ...obj,
264
+ });
265
+ })(StreamEvent = exports.StreamEvent || (exports.StreamEvent = {}));
266
+ var StreamSession;
267
+ (function (StreamSession) {
268
+ StreamSession.filterSensitiveLog = (obj) => ({
269
+ ...obj,
270
+ });
271
+ })(StreamSession = exports.StreamSession || (exports.StreamSession = {}));
272
+ var GetStreamSessionResponse;
273
+ (function (GetStreamSessionResponse) {
274
+ GetStreamSessionResponse.filterSensitiveLog = (obj) => ({
275
+ ...obj,
276
+ });
277
+ })(GetStreamSessionResponse = exports.GetStreamSessionResponse || (exports.GetStreamSessionResponse = {}));
284
278
  var ImportPlaybackKeyPairRequest;
285
279
  (function (ImportPlaybackKeyPairRequest) {
286
280
  ImportPlaybackKeyPairRequest.filterSensitiveLog = (obj) => ({
@@ -365,6 +359,12 @@ var ListStreamKeysResponse;
365
359
  ...obj,
366
360
  });
367
361
  })(ListStreamKeysResponse = exports.ListStreamKeysResponse || (exports.ListStreamKeysResponse = {}));
362
+ var StreamFilters;
363
+ (function (StreamFilters) {
364
+ StreamFilters.filterSensitiveLog = (obj) => ({
365
+ ...obj,
366
+ });
367
+ })(StreamFilters = exports.StreamFilters || (exports.StreamFilters = {}));
368
368
  var ListStreamsRequest;
369
369
  (function (ListStreamsRequest) {
370
370
  ListStreamsRequest.filterSensitiveLog = (obj) => ({
@@ -383,6 +383,24 @@ var ListStreamsResponse;
383
383
  ...obj,
384
384
  });
385
385
  })(ListStreamsResponse = exports.ListStreamsResponse || (exports.ListStreamsResponse = {}));
386
+ var ListStreamSessionsRequest;
387
+ (function (ListStreamSessionsRequest) {
388
+ ListStreamSessionsRequest.filterSensitiveLog = (obj) => ({
389
+ ...obj,
390
+ });
391
+ })(ListStreamSessionsRequest = exports.ListStreamSessionsRequest || (exports.ListStreamSessionsRequest = {}));
392
+ var StreamSessionSummary;
393
+ (function (StreamSessionSummary) {
394
+ StreamSessionSummary.filterSensitiveLog = (obj) => ({
395
+ ...obj,
396
+ });
397
+ })(StreamSessionSummary = exports.StreamSessionSummary || (exports.StreamSessionSummary = {}));
398
+ var ListStreamSessionsResponse;
399
+ (function (ListStreamSessionsResponse) {
400
+ ListStreamSessionsResponse.filterSensitiveLog = (obj) => ({
401
+ ...obj,
402
+ });
403
+ })(ListStreamSessionsResponse = exports.ListStreamSessionsResponse || (exports.ListStreamSessionsResponse = {}));
386
404
  var ListTagsForResourceRequest;
387
405
  (function (ListTagsForResourceRequest) {
388
406
  ListTagsForResourceRequest.filterSensitiveLog = (obj) => ({
@@ -402,12 +420,6 @@ var PutMetadataRequest;
402
420
  ...(obj.metadata && { metadata: smithy_client_1.SENSITIVE_STRING }),
403
421
  });
404
422
  })(PutMetadataRequest = exports.PutMetadataRequest || (exports.PutMetadataRequest = {}));
405
- var ThrottlingException;
406
- (function (ThrottlingException) {
407
- ThrottlingException.filterSensitiveLog = (obj) => ({
408
- ...obj,
409
- });
410
- })(ThrottlingException = exports.ThrottlingException || (exports.ThrottlingException = {}));
411
423
  var StopStreamRequest;
412
424
  (function (StopStreamRequest) {
413
425
  StopStreamRequest.filterSensitiveLog = (obj) => ({
@@ -420,12 +432,6 @@ var StopStreamResponse;
420
432
  ...obj,
421
433
  });
422
434
  })(StopStreamResponse = exports.StopStreamResponse || (exports.StopStreamResponse = {}));
423
- var StreamUnavailable;
424
- (function (StreamUnavailable) {
425
- StreamUnavailable.filterSensitiveLog = (obj) => ({
426
- ...obj,
427
- });
428
- })(StreamUnavailable = exports.StreamUnavailable || (exports.StreamUnavailable = {}));
429
435
  var TagResourceRequest;
430
436
  (function (TagResourceRequest) {
431
437
  TagResourceRequest.filterSensitiveLog = (obj) => ({
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListStreamSessions = void 0;
4
+ const ListStreamSessionsCommand_1 = require("../commands/ListStreamSessionsCommand");
5
+ const Ivs_1 = require("../Ivs");
6
+ const IvsClient_1 = require("../IvsClient");
7
+ const makePagedClientRequest = async (client, input, ...args) => {
8
+ return await client.send(new ListStreamSessionsCommand_1.ListStreamSessionsCommand(input), ...args);
9
+ };
10
+ const makePagedRequest = async (client, input, ...args) => {
11
+ return await client.listStreamSessions(input, ...args);
12
+ };
13
+ async function* paginateListStreamSessions(config, input, ...additionalArguments) {
14
+ let token = config.startingToken || undefined;
15
+ let hasNext = true;
16
+ let page;
17
+ while (hasNext) {
18
+ input.nextToken = token;
19
+ input["maxResults"] = config.pageSize;
20
+ if (config.client instanceof Ivs_1.Ivs) {
21
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else if (config.client instanceof IvsClient_1.IvsClient) {
24
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
+ }
26
+ else {
27
+ throw new Error("Invalid client, expected Ivs | IvsClient");
28
+ }
29
+ yield page;
30
+ token = page.nextToken;
31
+ hasNext = !!token;
32
+ }
33
+ return undefined;
34
+ }
35
+ exports.paginateListStreamSessions = paginateListStreamSessions;
@@ -6,4 +6,5 @@ tslib_1.__exportStar(require("./ListChannelsPaginator"), exports);
6
6
  tslib_1.__exportStar(require("./ListPlaybackKeyPairsPaginator"), exports);
7
7
  tslib_1.__exportStar(require("./ListRecordingConfigurationsPaginator"), exports);
8
8
  tslib_1.__exportStar(require("./ListStreamKeysPaginator"), exports);
9
+ tslib_1.__exportStar(require("./ListStreamSessionsPaginator"), exports);
9
10
  tslib_1.__exportStar(require("./ListStreamsPaginator"), exports);