@aws-sdk/client-ivs 3.360.0 → 3.361.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 (29) hide show
  1. package/README.md +29 -1
  2. package/dist-cjs/Ivs.js +4 -0
  3. package/dist-cjs/commands/BatchStartViewerSessionRevocationCommand.js +46 -0
  4. package/dist-cjs/commands/StartViewerSessionRevocationCommand.js +46 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/models/models_0.js +15 -15
  7. package/dist-cjs/protocols/Aws_restJson1.js +119 -2
  8. package/dist-es/Ivs.js +4 -0
  9. package/dist-es/commands/BatchStartViewerSessionRevocationCommand.js +42 -0
  10. package/dist-es/commands/StartViewerSessionRevocationCommand.js +42 -0
  11. package/dist-es/commands/index.js +2 -0
  12. package/dist-es/models/models_0.js +13 -13
  13. package/dist-es/protocols/Aws_restJson1.js +113 -0
  14. package/dist-types/Ivs.d.ts +27 -1
  15. package/dist-types/IvsClient.d.ts +17 -3
  16. package/dist-types/commands/BatchStartViewerSessionRevocationCommand.d.ts +90 -0
  17. package/dist-types/commands/StartViewerSessionRevocationCommand.d.ts +89 -0
  18. package/dist-types/commands/index.d.ts +2 -0
  19. package/dist-types/index.d.ts +13 -1
  20. package/dist-types/models/models_0.d.ts +106 -19
  21. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  22. package/dist-types/ts3.4/Ivs.d.ts +40 -0
  23. package/dist-types/ts3.4/IvsClient.d.ts +12 -0
  24. package/dist-types/ts3.4/commands/BatchStartViewerSessionRevocationCommand.d.ts +42 -0
  25. package/dist-types/ts3.4/commands/StartViewerSessionRevocationCommand.d.ts +42 -0
  26. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  27. package/dist-types/ts3.4/models/models_0.d.ts +31 -8
  28. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  29. package/package.json +1 -1
package/README.md CHANGED
@@ -256,7 +256,7 @@ allowed.</p>
256
256
  </li>
257
257
  </ul>
258
258
  <p>
259
- <b>PlaybackKeyPair Endpoints</b>
259
+ <b>Private Channel Endpoints</b>
260
260
  </p>
261
261
  <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
262
262
  <i>Amazon IVS User Guide</i>.</p>
@@ -287,6 +287,18 @@ key pairs.</p>
287
287
  pair. This invalidates future viewer tokens generated using the key pair’s
288
288
  <code>privateKey</code>.</p>
289
289
  </li>
290
+ <li>
291
+ <p>
292
+ <a>StartViewerSessionRevocation</a> — Starts the process of revoking
293
+ the viewer session associated with a specified channel ARN and viewer ID. Optionally, you
294
+ can provide a version to revoke viewer sessions less than and including that
295
+ version.</p>
296
+ </li>
297
+ <li>
298
+ <p>
299
+ <a>BatchStartViewerSessionRevocation</a> — Performs <a>StartViewerSessionRevocation</a> on multiple channel ARN and viewer ID pairs
300
+ simultaneously.</p>
301
+ </li>
290
302
  </ul>
291
303
  <p>
292
304
  <b>RecordingConfiguration Endpoints</b>
@@ -544,6 +556,14 @@ BatchGetStreamKey
544
556
 
545
557
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs/classes/batchgetstreamkeycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs/interfaces/batchgetstreamkeycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs/interfaces/batchgetstreamkeycommandoutput.html)
546
558
 
559
+ </details>
560
+ <details>
561
+ <summary>
562
+ BatchStartViewerSessionRevocation
563
+ </summary>
564
+
565
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs/classes/batchstartviewersessionrevocationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs/interfaces/batchstartviewersessionrevocationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs/interfaces/batchstartviewersessionrevocationcommandoutput.html)
566
+
547
567
  </details>
548
568
  <details>
549
569
  <summary>
@@ -720,6 +740,14 @@ PutMetadata
720
740
 
721
741
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs/classes/putmetadatacommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs/interfaces/putmetadatacommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs/interfaces/putmetadatacommandoutput.html)
722
742
 
743
+ </details>
744
+ <details>
745
+ <summary>
746
+ StartViewerSessionRevocation
747
+ </summary>
748
+
749
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs/classes/startviewersessionrevocationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs/interfaces/startviewersessionrevocationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs/interfaces/startviewersessionrevocationcommandoutput.html)
750
+
723
751
  </details>
724
752
  <details>
725
753
  <summary>
package/dist-cjs/Ivs.js CHANGED
@@ -4,6 +4,7 @@ exports.Ivs = void 0;
4
4
  const smithy_client_1 = require("@aws-sdk/smithy-client");
5
5
  const BatchGetChannelCommand_1 = require("./commands/BatchGetChannelCommand");
6
6
  const BatchGetStreamKeyCommand_1 = require("./commands/BatchGetStreamKeyCommand");
7
+ const BatchStartViewerSessionRevocationCommand_1 = require("./commands/BatchStartViewerSessionRevocationCommand");
7
8
  const CreateChannelCommand_1 = require("./commands/CreateChannelCommand");
8
9
  const CreateRecordingConfigurationCommand_1 = require("./commands/CreateRecordingConfigurationCommand");
9
10
  const CreateStreamKeyCommand_1 = require("./commands/CreateStreamKeyCommand");
@@ -26,6 +27,7 @@ const ListStreamsCommand_1 = require("./commands/ListStreamsCommand");
26
27
  const ListStreamSessionsCommand_1 = require("./commands/ListStreamSessionsCommand");
27
28
  const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
28
29
  const PutMetadataCommand_1 = require("./commands/PutMetadataCommand");
30
+ const StartViewerSessionRevocationCommand_1 = require("./commands/StartViewerSessionRevocationCommand");
29
31
  const StopStreamCommand_1 = require("./commands/StopStreamCommand");
30
32
  const TagResourceCommand_1 = require("./commands/TagResourceCommand");
31
33
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
@@ -34,6 +36,7 @@ const IvsClient_1 = require("./IvsClient");
34
36
  const commands = {
35
37
  BatchGetChannelCommand: BatchGetChannelCommand_1.BatchGetChannelCommand,
36
38
  BatchGetStreamKeyCommand: BatchGetStreamKeyCommand_1.BatchGetStreamKeyCommand,
39
+ BatchStartViewerSessionRevocationCommand: BatchStartViewerSessionRevocationCommand_1.BatchStartViewerSessionRevocationCommand,
37
40
  CreateChannelCommand: CreateChannelCommand_1.CreateChannelCommand,
38
41
  CreateRecordingConfigurationCommand: CreateRecordingConfigurationCommand_1.CreateRecordingConfigurationCommand,
39
42
  CreateStreamKeyCommand: CreateStreamKeyCommand_1.CreateStreamKeyCommand,
@@ -56,6 +59,7 @@ const commands = {
56
59
  ListStreamSessionsCommand: ListStreamSessionsCommand_1.ListStreamSessionsCommand,
57
60
  ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
58
61
  PutMetadataCommand: PutMetadataCommand_1.PutMetadataCommand,
62
+ StartViewerSessionRevocationCommand: StartViewerSessionRevocationCommand_1.StartViewerSessionRevocationCommand,
59
63
  StopStreamCommand: StopStreamCommand_1.StopStreamCommand,
60
64
  TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
61
65
  UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BatchStartViewerSessionRevocationCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class BatchStartViewerSessionRevocationCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, BatchStartViewerSessionRevocationCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "IvsClient";
28
+ const commandName = "BatchStartViewerSessionRevocationCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.se_BatchStartViewerSessionRevocationCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.de_BatchStartViewerSessionRevocationCommand)(output, context);
44
+ }
45
+ }
46
+ exports.BatchStartViewerSessionRevocationCommand = BatchStartViewerSessionRevocationCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StartViewerSessionRevocationCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class StartViewerSessionRevocationCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StartViewerSessionRevocationCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "IvsClient";
28
+ const commandName = "StartViewerSessionRevocationCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.se_StartViewerSessionRevocationCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.de_StartViewerSessionRevocationCommand)(output, context);
44
+ }
45
+ }
46
+ exports.StartViewerSessionRevocationCommand = StartViewerSessionRevocationCommand;
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./BatchGetChannelCommand"), exports);
5
5
  tslib_1.__exportStar(require("./BatchGetStreamKeyCommand"), exports);
6
+ tslib_1.__exportStar(require("./BatchStartViewerSessionRevocationCommand"), exports);
6
7
  tslib_1.__exportStar(require("./CreateChannelCommand"), exports);
7
8
  tslib_1.__exportStar(require("./CreateRecordingConfigurationCommand"), exports);
8
9
  tslib_1.__exportStar(require("./CreateStreamKeyCommand"), exports);
@@ -25,6 +26,7 @@ tslib_1.__exportStar(require("./ListStreamSessionsCommand"), exports);
25
26
  tslib_1.__exportStar(require("./ListStreamsCommand"), exports);
26
27
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
27
28
  tslib_1.__exportStar(require("./PutMetadataCommand"), exports);
29
+ tslib_1.__exportStar(require("./StartViewerSessionRevocationCommand"), exports);
28
30
  tslib_1.__exportStar(require("./StopStreamCommand"), exports);
29
31
  tslib_1.__exportStar(require("./TagResourceCommand"), exports);
30
32
  tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PutMetadataRequestFilterSensitiveLog = exports.GetStreamKeyResponseFilterSensitiveLog = exports.CreateStreamKeyResponseFilterSensitiveLog = exports.CreateChannelResponseFilterSensitiveLog = exports.BatchGetStreamKeyResponseFilterSensitiveLog = exports.StreamKeyFilterSensitiveLog = exports.StreamUnavailable = exports.ThrottlingException = exports.StreamState = exports.StreamHealth = exports.ChannelNotBroadcasting = exports.InternalServerException = exports.RecordingConfigurationState = exports.RecordingMode = exports.ConflictException = exports.ValidationException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.PendingVerification = exports.ChannelType = exports.TranscodePreset = exports.ChannelLatencyMode = exports.AccessDeniedException = void 0;
3
+ exports.PutMetadataRequestFilterSensitiveLog = exports.GetStreamKeyResponseFilterSensitiveLog = exports.CreateStreamKeyResponseFilterSensitiveLog = exports.CreateChannelResponseFilterSensitiveLog = exports.BatchGetStreamKeyResponseFilterSensitiveLog = exports.StreamKeyFilterSensitiveLog = exports.StreamUnavailable = exports.ThrottlingException = exports.StreamState = exports.StreamHealth = exports.ChannelNotBroadcasting = exports.InternalServerException = exports.RecordingConfigurationState = exports.RecordingMode = exports.ConflictException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.PendingVerification = exports.ValidationException = exports.ChannelType = exports.TranscodePreset = exports.ChannelLatencyMode = exports.AccessDeniedException = void 0;
4
4
  const smithy_client_1 = require("@aws-sdk/smithy-client");
5
5
  const IvsServiceException_1 = require("./IvsServiceException");
6
6
  class AccessDeniedException extends IvsServiceException_1.IvsServiceException {
@@ -31,6 +31,20 @@ exports.ChannelType = {
31
31
  BasicChannelType: "BASIC",
32
32
  StandardChannelType: "STANDARD",
33
33
  };
34
+ class ValidationException extends IvsServiceException_1.IvsServiceException {
35
+ constructor(opts) {
36
+ super({
37
+ name: "ValidationException",
38
+ $fault: "client",
39
+ ...opts,
40
+ });
41
+ this.name = "ValidationException";
42
+ this.$fault = "client";
43
+ Object.setPrototypeOf(this, ValidationException.prototype);
44
+ this.exceptionMessage = opts.exceptionMessage;
45
+ }
46
+ }
47
+ exports.ValidationException = ValidationException;
34
48
  class PendingVerification extends IvsServiceException_1.IvsServiceException {
35
49
  constructor(opts) {
36
50
  super({
@@ -73,20 +87,6 @@ class ServiceQuotaExceededException extends IvsServiceException_1.IvsServiceExce
73
87
  }
74
88
  }
75
89
  exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
76
- class ValidationException extends IvsServiceException_1.IvsServiceException {
77
- constructor(opts) {
78
- super({
79
- name: "ValidationException",
80
- $fault: "client",
81
- ...opts,
82
- });
83
- this.name = "ValidationException";
84
- this.$fault = "client";
85
- Object.setPrototypeOf(this, ValidationException.prototype);
86
- this.exceptionMessage = opts.exceptionMessage;
87
- }
88
- }
89
- exports.ValidationException = ValidationException;
90
90
  class ConflictException extends IvsServiceException_1.IvsServiceException {
91
91
  constructor(opts) {
92
92
  super({
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_ListStreamSessionsCommand = exports.de_ListStreamsCommand = exports.de_ListStreamKeysCommand = exports.de_ListRecordingConfigurationsCommand = exports.de_ListPlaybackKeyPairsCommand = exports.de_ListChannelsCommand = exports.de_ImportPlaybackKeyPairCommand = exports.de_GetStreamSessionCommand = exports.de_GetStreamKeyCommand = exports.de_GetStreamCommand = exports.de_GetRecordingConfigurationCommand = exports.de_GetPlaybackKeyPairCommand = exports.de_GetChannelCommand = exports.de_DeleteStreamKeyCommand = exports.de_DeleteRecordingConfigurationCommand = exports.de_DeletePlaybackKeyPairCommand = exports.de_DeleteChannelCommand = exports.de_CreateStreamKeyCommand = exports.de_CreateRecordingConfigurationCommand = exports.de_CreateChannelCommand = exports.de_BatchGetStreamKeyCommand = exports.de_BatchGetChannelCommand = exports.se_UpdateChannelCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopStreamCommand = exports.se_PutMetadataCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStreamSessionsCommand = exports.se_ListStreamsCommand = exports.se_ListStreamKeysCommand = exports.se_ListRecordingConfigurationsCommand = exports.se_ListPlaybackKeyPairsCommand = exports.se_ListChannelsCommand = exports.se_ImportPlaybackKeyPairCommand = exports.se_GetStreamSessionCommand = exports.se_GetStreamKeyCommand = exports.se_GetStreamCommand = exports.se_GetRecordingConfigurationCommand = exports.se_GetPlaybackKeyPairCommand = exports.se_GetChannelCommand = exports.se_DeleteStreamKeyCommand = exports.se_DeleteRecordingConfigurationCommand = exports.se_DeletePlaybackKeyPairCommand = exports.se_DeleteChannelCommand = exports.se_CreateStreamKeyCommand = exports.se_CreateRecordingConfigurationCommand = exports.se_CreateChannelCommand = exports.se_BatchGetStreamKeyCommand = exports.se_BatchGetChannelCommand = void 0;
4
- exports.de_UpdateChannelCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopStreamCommand = exports.de_PutMetadataCommand = exports.de_ListTagsForResourceCommand = void 0;
3
+ exports.de_ListRecordingConfigurationsCommand = exports.de_ListPlaybackKeyPairsCommand = exports.de_ListChannelsCommand = exports.de_ImportPlaybackKeyPairCommand = exports.de_GetStreamSessionCommand = exports.de_GetStreamKeyCommand = exports.de_GetStreamCommand = exports.de_GetRecordingConfigurationCommand = exports.de_GetPlaybackKeyPairCommand = exports.de_GetChannelCommand = exports.de_DeleteStreamKeyCommand = exports.de_DeleteRecordingConfigurationCommand = exports.de_DeletePlaybackKeyPairCommand = exports.de_DeleteChannelCommand = exports.de_CreateStreamKeyCommand = exports.de_CreateRecordingConfigurationCommand = exports.de_CreateChannelCommand = exports.de_BatchStartViewerSessionRevocationCommand = exports.de_BatchGetStreamKeyCommand = exports.de_BatchGetChannelCommand = exports.se_UpdateChannelCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopStreamCommand = exports.se_StartViewerSessionRevocationCommand = exports.se_PutMetadataCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStreamSessionsCommand = exports.se_ListStreamsCommand = exports.se_ListStreamKeysCommand = exports.se_ListRecordingConfigurationsCommand = exports.se_ListPlaybackKeyPairsCommand = exports.se_ListChannelsCommand = exports.se_ImportPlaybackKeyPairCommand = exports.se_GetStreamSessionCommand = exports.se_GetStreamKeyCommand = exports.se_GetStreamCommand = exports.se_GetRecordingConfigurationCommand = exports.se_GetPlaybackKeyPairCommand = exports.se_GetChannelCommand = exports.se_DeleteStreamKeyCommand = exports.se_DeleteRecordingConfigurationCommand = exports.se_DeletePlaybackKeyPairCommand = exports.se_DeleteChannelCommand = exports.se_CreateStreamKeyCommand = exports.se_CreateRecordingConfigurationCommand = exports.se_CreateChannelCommand = exports.se_BatchStartViewerSessionRevocationCommand = exports.se_BatchGetStreamKeyCommand = exports.se_BatchGetChannelCommand = void 0;
4
+ exports.de_UpdateChannelCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopStreamCommand = exports.de_StartViewerSessionRevocationCommand = exports.de_PutMetadataCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStreamSessionsCommand = exports.de_ListStreamsCommand = exports.de_ListStreamKeysCommand = void 0;
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const protocol_http_1 = require("@smithy/protocol-http");
7
7
  const IvsServiceException_1 = require("../models/IvsServiceException");
@@ -48,6 +48,27 @@ const se_BatchGetStreamKeyCommand = async (input, context) => {
48
48
  });
49
49
  };
50
50
  exports.se_BatchGetStreamKeyCommand = se_BatchGetStreamKeyCommand;
51
+ const se_BatchStartViewerSessionRevocationCommand = async (input, context) => {
52
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
53
+ const headers = {
54
+ "content-type": "application/json",
55
+ };
56
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BatchStartViewerSessionRevocation";
57
+ let body;
58
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
59
+ viewerSessions: (_) => (0, smithy_client_1._json)(_),
60
+ }));
61
+ return new protocol_http_1.HttpRequest({
62
+ protocol,
63
+ hostname,
64
+ port,
65
+ method: "POST",
66
+ headers,
67
+ path: resolvedPath,
68
+ body,
69
+ });
70
+ };
71
+ exports.se_BatchStartViewerSessionRevocationCommand = se_BatchStartViewerSessionRevocationCommand;
51
72
  const se_CreateChannelCommand = async (input, context) => {
52
73
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
53
74
  const headers = {
@@ -533,6 +554,29 @@ const se_PutMetadataCommand = async (input, context) => {
533
554
  });
534
555
  };
535
556
  exports.se_PutMetadataCommand = se_PutMetadataCommand;
557
+ const se_StartViewerSessionRevocationCommand = async (input, context) => {
558
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
559
+ const headers = {
560
+ "content-type": "application/json",
561
+ };
562
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartViewerSessionRevocation";
563
+ let body;
564
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
565
+ channelArn: [],
566
+ viewerId: [],
567
+ viewerSessionVersionsLessThanOrEqualTo: [],
568
+ }));
569
+ return new protocol_http_1.HttpRequest({
570
+ protocol,
571
+ hostname,
572
+ port,
573
+ method: "POST",
574
+ headers,
575
+ path: resolvedPath,
576
+ body,
577
+ });
578
+ };
579
+ exports.se_StartViewerSessionRevocationCommand = se_StartViewerSessionRevocationCommand;
536
580
  const se_StopStreamCommand = async (input, context) => {
537
581
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
538
582
  const headers = {
@@ -686,6 +730,40 @@ const de_BatchGetStreamKeyCommandError = async (output, context) => {
686
730
  errorCode,
687
731
  });
688
732
  };
733
+ const de_BatchStartViewerSessionRevocationCommand = async (output, context) => {
734
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
735
+ return de_BatchStartViewerSessionRevocationCommandError(output, context);
736
+ }
737
+ const contents = (0, smithy_client_1.map)({
738
+ $metadata: deserializeMetadata(output),
739
+ });
740
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
741
+ const doc = (0, smithy_client_1.take)(data, {
742
+ errors: smithy_client_1._json,
743
+ });
744
+ Object.assign(contents, doc);
745
+ return contents;
746
+ };
747
+ exports.de_BatchStartViewerSessionRevocationCommand = de_BatchStartViewerSessionRevocationCommand;
748
+ const de_BatchStartViewerSessionRevocationCommandError = async (output, context) => {
749
+ const parsedOutput = {
750
+ ...output,
751
+ body: await parseErrorBody(output.body, context),
752
+ };
753
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
754
+ switch (errorCode) {
755
+ case "ValidationException":
756
+ case "com.amazonaws.ivs#ValidationException":
757
+ throw await de_ValidationExceptionRes(parsedOutput, context);
758
+ default:
759
+ const parsedBody = parsedOutput.body;
760
+ return throwDefaultError({
761
+ output,
762
+ parsedBody,
763
+ errorCode,
764
+ });
765
+ }
766
+ };
689
767
  const de_CreateChannelCommand = async (output, context) => {
690
768
  if (output.statusCode !== 200 && output.statusCode >= 300) {
691
769
  return de_CreateChannelCommandError(output, context);
@@ -1604,6 +1682,45 @@ const de_PutMetadataCommandError = async (output, context) => {
1604
1682
  });
1605
1683
  }
1606
1684
  };
1685
+ const de_StartViewerSessionRevocationCommand = async (output, context) => {
1686
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1687
+ return de_StartViewerSessionRevocationCommandError(output, context);
1688
+ }
1689
+ const contents = (0, smithy_client_1.map)({
1690
+ $metadata: deserializeMetadata(output),
1691
+ });
1692
+ await (0, smithy_client_1.collectBody)(output.body, context);
1693
+ return contents;
1694
+ };
1695
+ exports.de_StartViewerSessionRevocationCommand = de_StartViewerSessionRevocationCommand;
1696
+ const de_StartViewerSessionRevocationCommandError = async (output, context) => {
1697
+ const parsedOutput = {
1698
+ ...output,
1699
+ body: await parseErrorBody(output.body, context),
1700
+ };
1701
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1702
+ switch (errorCode) {
1703
+ case "AccessDeniedException":
1704
+ case "com.amazonaws.ivs#AccessDeniedException":
1705
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1706
+ case "InternalServerException":
1707
+ case "com.amazonaws.ivs#InternalServerException":
1708
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1709
+ case "ThrottlingException":
1710
+ case "com.amazonaws.ivs#ThrottlingException":
1711
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1712
+ case "ValidationException":
1713
+ case "com.amazonaws.ivs#ValidationException":
1714
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1715
+ default:
1716
+ const parsedBody = parsedOutput.body;
1717
+ return throwDefaultError({
1718
+ output,
1719
+ parsedBody,
1720
+ errorCode,
1721
+ });
1722
+ }
1723
+ };
1607
1724
  const de_StopStreamCommand = async (output, context) => {
1608
1725
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1609
1726
  return de_StopStreamCommandError(output, context);
package/dist-es/Ivs.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { createAggregatedClient } from "@aws-sdk/smithy-client";
2
2
  import { BatchGetChannelCommand, } from "./commands/BatchGetChannelCommand";
3
3
  import { BatchGetStreamKeyCommand, } from "./commands/BatchGetStreamKeyCommand";
4
+ import { BatchStartViewerSessionRevocationCommand, } from "./commands/BatchStartViewerSessionRevocationCommand";
4
5
  import { CreateChannelCommand, } from "./commands/CreateChannelCommand";
5
6
  import { CreateRecordingConfigurationCommand, } from "./commands/CreateRecordingConfigurationCommand";
6
7
  import { CreateStreamKeyCommand, } from "./commands/CreateStreamKeyCommand";
@@ -23,6 +24,7 @@ import { ListStreamsCommand } from "./commands/ListStreamsCommand";
23
24
  import { ListStreamSessionsCommand, } from "./commands/ListStreamSessionsCommand";
24
25
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
25
26
  import { PutMetadataCommand } from "./commands/PutMetadataCommand";
27
+ import { StartViewerSessionRevocationCommand, } from "./commands/StartViewerSessionRevocationCommand";
26
28
  import { StopStreamCommand } from "./commands/StopStreamCommand";
27
29
  import { TagResourceCommand } from "./commands/TagResourceCommand";
28
30
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
@@ -31,6 +33,7 @@ import { IvsClient } from "./IvsClient";
31
33
  const commands = {
32
34
  BatchGetChannelCommand,
33
35
  BatchGetStreamKeyCommand,
36
+ BatchStartViewerSessionRevocationCommand,
34
37
  CreateChannelCommand,
35
38
  CreateRecordingConfigurationCommand,
36
39
  CreateStreamKeyCommand,
@@ -53,6 +56,7 @@ const commands = {
53
56
  ListStreamSessionsCommand,
54
57
  ListTagsForResourceCommand,
55
58
  PutMetadataCommand,
59
+ StartViewerSessionRevocationCommand,
56
60
  StopStreamCommand,
57
61
  TagResourceCommand,
58
62
  UntagResourceCommand,
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_BatchStartViewerSessionRevocationCommand, se_BatchStartViewerSessionRevocationCommand, } from "../protocols/Aws_restJson1";
5
+ export { $Command };
6
+ export class BatchStartViewerSessionRevocationCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, BatchStartViewerSessionRevocationCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "IvsClient";
25
+ const commandName = "BatchStartViewerSessionRevocationCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_BatchStartViewerSessionRevocationCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_BatchStartViewerSessionRevocationCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_StartViewerSessionRevocationCommand, se_StartViewerSessionRevocationCommand, } from "../protocols/Aws_restJson1";
5
+ export { $Command };
6
+ export class StartViewerSessionRevocationCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, StartViewerSessionRevocationCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "IvsClient";
25
+ const commandName = "StartViewerSessionRevocationCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_StartViewerSessionRevocationCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_StartViewerSessionRevocationCommand(output, context);
41
+ }
42
+ }
@@ -1,5 +1,6 @@
1
1
  export * from "./BatchGetChannelCommand";
2
2
  export * from "./BatchGetStreamKeyCommand";
3
+ export * from "./BatchStartViewerSessionRevocationCommand";
3
4
  export * from "./CreateChannelCommand";
4
5
  export * from "./CreateRecordingConfigurationCommand";
5
6
  export * from "./CreateStreamKeyCommand";
@@ -22,6 +23,7 @@ export * from "./ListStreamSessionsCommand";
22
23
  export * from "./ListStreamsCommand";
23
24
  export * from "./ListTagsForResourceCommand";
24
25
  export * from "./PutMetadataCommand";
26
+ export * from "./StartViewerSessionRevocationCommand";
25
27
  export * from "./StopStreamCommand";
26
28
  export * from "./TagResourceCommand";
27
29
  export * from "./UntagResourceCommand";
@@ -27,6 +27,19 @@ export const ChannelType = {
27
27
  BasicChannelType: "BASIC",
28
28
  StandardChannelType: "STANDARD",
29
29
  };
30
+ export class ValidationException extends __BaseException {
31
+ constructor(opts) {
32
+ super({
33
+ name: "ValidationException",
34
+ $fault: "client",
35
+ ...opts,
36
+ });
37
+ this.name = "ValidationException";
38
+ this.$fault = "client";
39
+ Object.setPrototypeOf(this, ValidationException.prototype);
40
+ this.exceptionMessage = opts.exceptionMessage;
41
+ }
42
+ }
30
43
  export class PendingVerification extends __BaseException {
31
44
  constructor(opts) {
32
45
  super({
@@ -66,19 +79,6 @@ export class ServiceQuotaExceededException extends __BaseException {
66
79
  this.exceptionMessage = opts.exceptionMessage;
67
80
  }
68
81
  }
69
- export class ValidationException extends __BaseException {
70
- constructor(opts) {
71
- super({
72
- name: "ValidationException",
73
- $fault: "client",
74
- ...opts,
75
- });
76
- this.name = "ValidationException";
77
- this.$fault = "client";
78
- Object.setPrototypeOf(this, ValidationException.prototype);
79
- this.exceptionMessage = opts.exceptionMessage;
80
- }
81
- }
82
82
  export class ConflictException extends __BaseException {
83
83
  constructor(opts) {
84
84
  super({