@aws-sdk/client-medialive 3.131.0 → 3.136.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.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/MediaLive.js +30 -0
- package/dist-cjs/commands/RebootInputDeviceCommand.js +36 -0
- package/dist-cjs/commands/StartInputDeviceMaintenanceWindowCommand.js +36 -0
- package/dist-cjs/commands/UpdateInputCommand.js +2 -1
- package/dist-cjs/commands/UpdateInputDeviceCommand.js +3 -3
- package/dist-cjs/commands/UpdateInputSecurityGroupCommand.js +3 -3
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_1.js +30 -31
- package/dist-cjs/models/models_2.js +31 -1
- package/dist-cjs/protocols/Aws_restJson1.js +171 -3
- package/dist-es/MediaLive.js +30 -0
- package/dist-es/commands/RebootInputDeviceCommand.js +39 -0
- package/dist-es/commands/StartInputDeviceMaintenanceWindowCommand.js +39 -0
- package/dist-es/commands/UpdateInputCommand.js +2 -1
- package/dist-es/commands/UpdateInputDeviceCommand.js +1 -1
- package/dist-es/commands/UpdateInputSecurityGroupCommand.js +1 -1
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_1.js +21 -20
- package/dist-es/models/models_2.js +20 -0
- package/dist-es/protocols/Aws_restJson1.js +224 -0
- package/dist-types/MediaLive.d.ts +14 -0
- package/dist-types/MediaLiveClient.d.ts +4 -2
- package/dist-types/commands/RebootInputDeviceCommand.d.ts +35 -0
- package/dist-types/commands/StartInputDeviceMaintenanceWindowCommand.d.ts +35 -0
- package/dist-types/commands/UpdateInputCommand.d.ts +2 -1
- package/dist-types/commands/UpdateInputDeviceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateInputSecurityGroupCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_1.d.ts +60 -139
- package/dist-types/models/models_2.d.ts +141 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
- package/dist-types/ts3.4/MediaLive.d.ts +10 -0
- package/dist-types/ts3.4/MediaLiveClient.d.ts +4 -2
- package/dist-types/ts3.4/commands/RebootInputDeviceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartInputDeviceMaintenanceWindowCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateInputCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/UpdateInputDeviceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateInputSecurityGroupCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_1.d.ts +38 -77
- package/dist-types/ts3.4/models/models_2.d.ts +79 -1
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.136.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.135.0...v3.136.0) (2022-07-22)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-medialive:** Link devices now support remote rebooting. Link devices now support maintenance windows. Maintenance windows allow a Link device to install software updates without stopping the MediaLive channel. The channel will experience a brief loss of input from the device while updates are installed. ([3cef41f](https://github.com/aws/aws-sdk-js-v3/commit/3cef41f821a5c7f34ca7a7d0ba3f63fffdf25b56))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.131.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.130.0...v3.131.0) (2022-07-15)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-medialive
|
package/dist-cjs/MediaLive.js
CHANGED
|
@@ -44,8 +44,10 @@ const ListOfferingsCommand_1 = require("./commands/ListOfferingsCommand");
|
|
|
44
44
|
const ListReservationsCommand_1 = require("./commands/ListReservationsCommand");
|
|
45
45
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
46
46
|
const PurchaseOfferingCommand_1 = require("./commands/PurchaseOfferingCommand");
|
|
47
|
+
const RebootInputDeviceCommand_1 = require("./commands/RebootInputDeviceCommand");
|
|
47
48
|
const RejectInputDeviceTransferCommand_1 = require("./commands/RejectInputDeviceTransferCommand");
|
|
48
49
|
const StartChannelCommand_1 = require("./commands/StartChannelCommand");
|
|
50
|
+
const StartInputDeviceMaintenanceWindowCommand_1 = require("./commands/StartInputDeviceMaintenanceWindowCommand");
|
|
49
51
|
const StartMultiplexCommand_1 = require("./commands/StartMultiplexCommand");
|
|
50
52
|
const StopChannelCommand_1 = require("./commands/StopChannelCommand");
|
|
51
53
|
const StopMultiplexCommand_1 = require("./commands/StopMultiplexCommand");
|
|
@@ -662,6 +664,20 @@ class MediaLive extends MediaLiveClient_1.MediaLiveClient {
|
|
|
662
664
|
return this.send(command, optionsOrCb);
|
|
663
665
|
}
|
|
664
666
|
}
|
|
667
|
+
rebootInputDevice(args, optionsOrCb, cb) {
|
|
668
|
+
const command = new RebootInputDeviceCommand_1.RebootInputDeviceCommand(args);
|
|
669
|
+
if (typeof optionsOrCb === "function") {
|
|
670
|
+
this.send(command, optionsOrCb);
|
|
671
|
+
}
|
|
672
|
+
else if (typeof cb === "function") {
|
|
673
|
+
if (typeof optionsOrCb !== "object")
|
|
674
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
675
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
676
|
+
}
|
|
677
|
+
else {
|
|
678
|
+
return this.send(command, optionsOrCb);
|
|
679
|
+
}
|
|
680
|
+
}
|
|
665
681
|
rejectInputDeviceTransfer(args, optionsOrCb, cb) {
|
|
666
682
|
const command = new RejectInputDeviceTransferCommand_1.RejectInputDeviceTransferCommand(args);
|
|
667
683
|
if (typeof optionsOrCb === "function") {
|
|
@@ -690,6 +706,20 @@ class MediaLive extends MediaLiveClient_1.MediaLiveClient {
|
|
|
690
706
|
return this.send(command, optionsOrCb);
|
|
691
707
|
}
|
|
692
708
|
}
|
|
709
|
+
startInputDeviceMaintenanceWindow(args, optionsOrCb, cb) {
|
|
710
|
+
const command = new StartInputDeviceMaintenanceWindowCommand_1.StartInputDeviceMaintenanceWindowCommand(args);
|
|
711
|
+
if (typeof optionsOrCb === "function") {
|
|
712
|
+
this.send(command, optionsOrCb);
|
|
713
|
+
}
|
|
714
|
+
else if (typeof cb === "function") {
|
|
715
|
+
if (typeof optionsOrCb !== "object")
|
|
716
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
717
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
718
|
+
}
|
|
719
|
+
else {
|
|
720
|
+
return this.send(command, optionsOrCb);
|
|
721
|
+
}
|
|
722
|
+
}
|
|
693
723
|
startMultiplex(args, optionsOrCb, cb) {
|
|
694
724
|
const command = new StartMultiplexCommand_1.StartMultiplexCommand(args);
|
|
695
725
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RebootInputDeviceCommand = 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_1_1 = require("../models/models_1");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class RebootInputDeviceCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "MediaLiveClient";
|
|
18
|
+
const commandName = "RebootInputDeviceCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_1_1.RebootInputDeviceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_1_1.RebootInputDeviceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1RebootInputDeviceCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1RebootInputDeviceCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.RebootInputDeviceCommand = RebootInputDeviceCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StartInputDeviceMaintenanceWindowCommand = 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_1_1 = require("../models/models_1");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class StartInputDeviceMaintenanceWindowCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "MediaLiveClient";
|
|
18
|
+
const commandName = "StartInputDeviceMaintenanceWindowCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_1_1.StartInputDeviceMaintenanceWindowRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_1_1.StartInputDeviceMaintenanceWindowResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1StartInputDeviceMaintenanceWindowCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1StartInputDeviceMaintenanceWindowCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.StartInputDeviceMaintenanceWindowCommand = StartInputDeviceMaintenanceWindowCommand;
|
|
@@ -4,6 +4,7 @@ exports.UpdateInputCommand = void 0;
|
|
|
4
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_1_1 = require("../models/models_1");
|
|
7
|
+
const models_2_1 = require("../models/models_2");
|
|
7
8
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
9
|
class UpdateInputCommand extends smithy_client_1.Command {
|
|
9
10
|
constructor(input) {
|
|
@@ -21,7 +22,7 @@ class UpdateInputCommand extends smithy_client_1.Command {
|
|
|
21
22
|
clientName,
|
|
22
23
|
commandName,
|
|
23
24
|
inputFilterSensitiveLog: models_1_1.UpdateInputRequest.filterSensitiveLog,
|
|
24
|
-
outputFilterSensitiveLog:
|
|
25
|
+
outputFilterSensitiveLog: models_2_1.UpdateInputResponse.filterSensitiveLog,
|
|
25
26
|
};
|
|
26
27
|
const { requestHandler } = configuration;
|
|
27
28
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UpdateInputDeviceCommand = void 0;
|
|
4
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
-
const
|
|
6
|
+
const models_2_1 = require("../models/models_2");
|
|
7
7
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
8
|
class UpdateInputDeviceCommand extends smithy_client_1.Command {
|
|
9
9
|
constructor(input) {
|
|
@@ -20,8 +20,8 @@ class UpdateInputDeviceCommand extends smithy_client_1.Command {
|
|
|
20
20
|
logger,
|
|
21
21
|
clientName,
|
|
22
22
|
commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: models_2_1.UpdateInputDeviceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_2_1.UpdateInputDeviceResponse.filterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
const { requestHandler } = configuration;
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UpdateInputSecurityGroupCommand = void 0;
|
|
4
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
-
const
|
|
6
|
+
const models_2_1 = require("../models/models_2");
|
|
7
7
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
8
|
class UpdateInputSecurityGroupCommand extends smithy_client_1.Command {
|
|
9
9
|
constructor(input) {
|
|
@@ -20,8 +20,8 @@ class UpdateInputSecurityGroupCommand extends smithy_client_1.Command {
|
|
|
20
20
|
logger,
|
|
21
21
|
clientName,
|
|
22
22
|
commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: models_2_1.UpdateInputSecurityGroupRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_2_1.UpdateInputSecurityGroupResponse.filterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
const { requestHandler } = configuration;
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -44,8 +44,10 @@ tslib_1.__exportStar(require("./ListOfferingsCommand"), exports);
|
|
|
44
44
|
tslib_1.__exportStar(require("./ListReservationsCommand"), exports);
|
|
45
45
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
46
46
|
tslib_1.__exportStar(require("./PurchaseOfferingCommand"), exports);
|
|
47
|
+
tslib_1.__exportStar(require("./RebootInputDeviceCommand"), exports);
|
|
47
48
|
tslib_1.__exportStar(require("./RejectInputDeviceTransferCommand"), exports);
|
|
48
49
|
tslib_1.__exportStar(require("./StartChannelCommand"), exports);
|
|
50
|
+
tslib_1.__exportStar(require("./StartInputDeviceMaintenanceWindowCommand"), exports);
|
|
49
51
|
tslib_1.__exportStar(require("./StartMultiplexCommand"), exports);
|
|
50
52
|
tslib_1.__exportStar(require("./StopChannelCommand"), exports);
|
|
51
53
|
tslib_1.__exportStar(require("./StopMultiplexCommand"), exports);
|
|
@@ -5,7 +5,7 @@ exports.H264Syntax = exports.H264SubGopLength = exports.H264SpatialAq = exports.
|
|
|
5
5
|
exports.Scte35SpliceInsert = exports.Scte35SpliceInsertWebDeliveryAllowedBehavior = exports.Scte35SpliceInsertNoRegionalBlackoutBehavior = exports.AvailBlanking = exports.AvailBlankingState = exports.UnprocessableEntityException = exports.TooManyRequestsException = exports.NotFoundException = exports.InternalServerErrorException = exports.GatewayTimeoutException = exports.ForbiddenException = exports.ConflictException = exports.BadRequestException = exports.BadGatewayException = exports.AcceptInputDeviceTransferResponse = exports.AcceptInputDeviceTransferRequest = exports.AcceptHeader = exports.VideoDescription = exports.VideoDescriptionScalingBehavior = exports.VideoDescriptionRespondToAfd = exports.VideoCodecSettings = exports.Mpeg2Settings = exports.Mpeg2TimecodeInsertionBehavior = exports.Mpeg2SubGopLength = exports.Mpeg2ScanType = exports.Mpeg2GopSizeUnits = exports.Mpeg2FilterSettings = exports.Mpeg2DisplayRatio = exports.Mpeg2ColorSpace = exports.Mpeg2ColorMetadata = exports.Mpeg2AdaptiveQuantization = exports.H265Settings = exports.H265TimecodeInsertionBehavior = exports.H265Tier = exports.H265SceneChangeDetect = exports.H265ScanType = exports.H265RateControlMode = exports.H265Profile = exports.H265LookAheadRateControl = exports.H265Level = exports.H265GopSizeUnits = exports.H265FlickerAq = exports.H265FilterSettings = exports.H265ColorSpaceSettings = exports.H265ColorMetadata = exports.H265AlternativeTransferFunction = exports.H265AdaptiveQuantization = exports.H264Settings = exports.H264TimecodeInsertionBehavior = exports.H264TemporalAq = void 0;
|
|
6
6
|
exports.CreateInputRequest = exports.InputVpcRequest = exports.CreateChannelResponse = exports.CreateChannelRequest = exports.VpcOutputSettings = exports.MaintenanceCreateSettings = exports.ContentType = exports.ClaimDeviceResponse = exports.ClaimDeviceRequest = exports.Channel = exports.EncoderSettings = exports.TimecodeConfig = exports.TimecodeConfigSource = exports.NielsenConfiguration = exports.NielsenPcmToId3TaggingState = exports.MotionGraphicsConfiguration = exports.MotionGraphicsSettings = exports.HtmlMotionGraphicsSettings = exports.MotionGraphicsInsertion = exports.GlobalConfiguration = exports.GlobalConfigurationLowFramerateInputs = exports.GlobalConfigurationOutputTimingSource = exports.GlobalConfigurationOutputLockingMode = exports.InputLossBehavior = exports.InputLossImageType = exports.GlobalConfigurationInputEndAction = exports.FeatureActivations = exports.FeatureActivationsInputPrepareScheduleActions = exports.CancelInputDeviceTransferResponse = exports.CancelInputDeviceTransferRequest = exports.BlackoutSlate = exports.BlackoutSlateState = exports.BlackoutSlateNetworkEndBlackout = exports.BatchUpdateScheduleResponse = exports.BatchUpdateScheduleRequest = exports.BatchStopResponse = exports.BatchStopRequest = exports.BatchStartResponse = exports.BatchStartRequest = exports.BatchScheduleActionDeleteResult = exports.BatchScheduleActionDeleteRequest = exports.BatchScheduleActionCreateResult = exports.BatchScheduleActionCreateRequest = exports.BatchDeleteResponse = exports.BatchDeleteRequest = exports.AvailConfiguration = exports.AvailSettings = exports.Scte35TimeSignalApos = exports.Scte35AposWebDeliveryAllowedBehavior = exports.Scte35AposNoRegionalBlackoutBehavior = void 0;
|
|
7
7
|
exports.DescribeOfferingResponse = exports.DescribeOfferingRequest = exports.DescribeMultiplexProgramResponse = exports.DescribeMultiplexProgramRequest = exports.DescribeMultiplexResponse = exports.DescribeMultiplexRequest = exports.DescribeInputSecurityGroupResponse = exports.DescribeInputSecurityGroupRequest = exports.DescribeInputDeviceThumbnailResponse = exports.DescribeInputDeviceThumbnailRequest = exports.DescribeInputDeviceResponse = exports.DescribeInputDeviceRequest = exports.DescribeInputResponse = exports.DescribeInputRequest = exports.DescribeChannelResponse = exports.DescribeChannelRequest = exports.DeleteTagsRequest = exports.DeleteScheduleResponse = exports.DeleteScheduleRequest = exports.DeleteReservationResponse = exports.DeleteReservationRequest = exports.DeleteMultiplexProgramResponse = exports.DeleteMultiplexProgramRequest = exports.DeleteMultiplexResponse = exports.DeleteMultiplexRequest = exports.DeleteInputSecurityGroupResponse = exports.DeleteInputSecurityGroupRequest = exports.DeleteInputResponse = exports.DeleteInputRequest = exports.DeleteChannelResponse = exports.DeleteChannelRequest = exports.CreateTagsRequest = exports.CreatePartnerInputResponse = exports.CreatePartnerInputRequest = exports.CreateMultiplexProgramResponse = exports.MultiplexProgram = exports.MultiplexProgramPacketIdentifiersMap = exports.CreateMultiplexProgramRequest = exports.MultiplexProgramSettings = exports.MultiplexVideoSettings = exports.MultiplexStatmuxVideoSettings = exports.MultiplexProgramServiceDescriptor = exports.PreferredChannelPipeline = exports.CreateMultiplexResponse = exports.Multiplex = exports.CreateMultiplexRequest = exports.MultiplexSettings = exports.CreateInputSecurityGroupResponse = exports.CreateInputSecurityGroupRequest = exports.CreateInputResponse = void 0;
|
|
8
|
-
exports.
|
|
8
|
+
exports.UpdateInputRequest = exports.UpdateChannelClassResponse = exports.UpdateChannelClassRequest = exports.UpdateChannelResponse = exports.UpdateChannelRequest = exports.TransferInputDeviceResponse = exports.TransferInputDeviceRequest = exports.StopMultiplexResponse = exports.StopMultiplexRequest = exports.StopChannelResponse = exports.StopChannelRequest = exports.StartMultiplexResponse = exports.StartMultiplexRequest = exports.StartInputDeviceMaintenanceWindowResponse = exports.StartInputDeviceMaintenanceWindowRequest = exports.StartChannelResponse = exports.StartChannelRequest = exports.RejectInputDeviceTransferResponse = exports.RejectInputDeviceTransferRequest = exports.RebootInputDeviceResponse = exports.RebootInputDeviceRequest = exports.RebootInputDeviceForce = exports.PurchaseOfferingResponse = exports.PurchaseOfferingRequest = exports.MaintenanceUpdateSettings = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListReservationsResponse = exports.ListReservationsRequest = exports.ListOfferingsResponse = exports.ListOfferingsRequest = exports.ListMultiplexProgramsResponse = exports.ListMultiplexProgramsRequest = exports.ListMultiplexesResponse = exports.ListMultiplexesRequest = exports.ListInputSecurityGroupsResponse = exports.ListInputSecurityGroupsRequest = exports.ListInputsResponse = exports.ListInputsRequest = exports.ListInputDeviceTransfersResponse = exports.ListInputDeviceTransfersRequest = exports.ListInputDevicesResponse = exports.ListInputDevicesRequest = exports.ListChannelsResponse = exports.ListChannelsRequest = exports.InputDeviceConfigurableSettings = exports.DescribeScheduleResponse = exports.DescribeScheduleRequest = exports.DescribeReservationResponse = exports.DescribeReservationRequest = void 0;
|
|
9
9
|
const MediaLiveServiceException_1 = require("./MediaLiveServiceException");
|
|
10
10
|
var HlsTimedMetadataId3Frame;
|
|
11
11
|
(function (HlsTimedMetadataId3Frame) {
|
|
@@ -1736,6 +1736,23 @@ var PurchaseOfferingResponse;
|
|
|
1736
1736
|
...obj,
|
|
1737
1737
|
});
|
|
1738
1738
|
})(PurchaseOfferingResponse = exports.PurchaseOfferingResponse || (exports.PurchaseOfferingResponse = {}));
|
|
1739
|
+
var RebootInputDeviceForce;
|
|
1740
|
+
(function (RebootInputDeviceForce) {
|
|
1741
|
+
RebootInputDeviceForce["NO"] = "NO";
|
|
1742
|
+
RebootInputDeviceForce["YES"] = "YES";
|
|
1743
|
+
})(RebootInputDeviceForce = exports.RebootInputDeviceForce || (exports.RebootInputDeviceForce = {}));
|
|
1744
|
+
var RebootInputDeviceRequest;
|
|
1745
|
+
(function (RebootInputDeviceRequest) {
|
|
1746
|
+
RebootInputDeviceRequest.filterSensitiveLog = (obj) => ({
|
|
1747
|
+
...obj,
|
|
1748
|
+
});
|
|
1749
|
+
})(RebootInputDeviceRequest = exports.RebootInputDeviceRequest || (exports.RebootInputDeviceRequest = {}));
|
|
1750
|
+
var RebootInputDeviceResponse;
|
|
1751
|
+
(function (RebootInputDeviceResponse) {
|
|
1752
|
+
RebootInputDeviceResponse.filterSensitiveLog = (obj) => ({
|
|
1753
|
+
...obj,
|
|
1754
|
+
});
|
|
1755
|
+
})(RebootInputDeviceResponse = exports.RebootInputDeviceResponse || (exports.RebootInputDeviceResponse = {}));
|
|
1739
1756
|
var RejectInputDeviceTransferRequest;
|
|
1740
1757
|
(function (RejectInputDeviceTransferRequest) {
|
|
1741
1758
|
RejectInputDeviceTransferRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1760,6 +1777,18 @@ var StartChannelResponse;
|
|
|
1760
1777
|
...obj,
|
|
1761
1778
|
});
|
|
1762
1779
|
})(StartChannelResponse = exports.StartChannelResponse || (exports.StartChannelResponse = {}));
|
|
1780
|
+
var StartInputDeviceMaintenanceWindowRequest;
|
|
1781
|
+
(function (StartInputDeviceMaintenanceWindowRequest) {
|
|
1782
|
+
StartInputDeviceMaintenanceWindowRequest.filterSensitiveLog = (obj) => ({
|
|
1783
|
+
...obj,
|
|
1784
|
+
});
|
|
1785
|
+
})(StartInputDeviceMaintenanceWindowRequest = exports.StartInputDeviceMaintenanceWindowRequest || (exports.StartInputDeviceMaintenanceWindowRequest = {}));
|
|
1786
|
+
var StartInputDeviceMaintenanceWindowResponse;
|
|
1787
|
+
(function (StartInputDeviceMaintenanceWindowResponse) {
|
|
1788
|
+
StartInputDeviceMaintenanceWindowResponse.filterSensitiveLog = (obj) => ({
|
|
1789
|
+
...obj,
|
|
1790
|
+
});
|
|
1791
|
+
})(StartInputDeviceMaintenanceWindowResponse = exports.StartInputDeviceMaintenanceWindowResponse || (exports.StartInputDeviceMaintenanceWindowResponse = {}));
|
|
1763
1792
|
var StartMultiplexRequest;
|
|
1764
1793
|
(function (StartMultiplexRequest) {
|
|
1765
1794
|
StartMultiplexRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1838,33 +1867,3 @@ var UpdateInputRequest;
|
|
|
1838
1867
|
...obj,
|
|
1839
1868
|
});
|
|
1840
1869
|
})(UpdateInputRequest = exports.UpdateInputRequest || (exports.UpdateInputRequest = {}));
|
|
1841
|
-
var UpdateInputResponse;
|
|
1842
|
-
(function (UpdateInputResponse) {
|
|
1843
|
-
UpdateInputResponse.filterSensitiveLog = (obj) => ({
|
|
1844
|
-
...obj,
|
|
1845
|
-
});
|
|
1846
|
-
})(UpdateInputResponse = exports.UpdateInputResponse || (exports.UpdateInputResponse = {}));
|
|
1847
|
-
var UpdateInputDeviceRequest;
|
|
1848
|
-
(function (UpdateInputDeviceRequest) {
|
|
1849
|
-
UpdateInputDeviceRequest.filterSensitiveLog = (obj) => ({
|
|
1850
|
-
...obj,
|
|
1851
|
-
});
|
|
1852
|
-
})(UpdateInputDeviceRequest = exports.UpdateInputDeviceRequest || (exports.UpdateInputDeviceRequest = {}));
|
|
1853
|
-
var UpdateInputDeviceResponse;
|
|
1854
|
-
(function (UpdateInputDeviceResponse) {
|
|
1855
|
-
UpdateInputDeviceResponse.filterSensitiveLog = (obj) => ({
|
|
1856
|
-
...obj,
|
|
1857
|
-
});
|
|
1858
|
-
})(UpdateInputDeviceResponse = exports.UpdateInputDeviceResponse || (exports.UpdateInputDeviceResponse = {}));
|
|
1859
|
-
var UpdateInputSecurityGroupRequest;
|
|
1860
|
-
(function (UpdateInputSecurityGroupRequest) {
|
|
1861
|
-
UpdateInputSecurityGroupRequest.filterSensitiveLog = (obj) => ({
|
|
1862
|
-
...obj,
|
|
1863
|
-
});
|
|
1864
|
-
})(UpdateInputSecurityGroupRequest = exports.UpdateInputSecurityGroupRequest || (exports.UpdateInputSecurityGroupRequest = {}));
|
|
1865
|
-
var UpdateInputSecurityGroupResponse;
|
|
1866
|
-
(function (UpdateInputSecurityGroupResponse) {
|
|
1867
|
-
UpdateInputSecurityGroupResponse.filterSensitiveLog = (obj) => ({
|
|
1868
|
-
...obj,
|
|
1869
|
-
});
|
|
1870
|
-
})(UpdateInputSecurityGroupResponse = exports.UpdateInputSecurityGroupResponse || (exports.UpdateInputSecurityGroupResponse = {}));
|
|
@@ -1,6 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateReservationResponse = exports.UpdateReservationRequest = exports.UpdateMultiplexProgramResponse = exports.UpdateMultiplexProgramRequest = exports.UpdateMultiplexResponse = exports.UpdateMultiplexRequest = void 0;
|
|
3
|
+
exports.UpdateReservationResponse = exports.UpdateReservationRequest = exports.UpdateMultiplexProgramResponse = exports.UpdateMultiplexProgramRequest = exports.UpdateMultiplexResponse = exports.UpdateMultiplexRequest = exports.UpdateInputSecurityGroupResponse = exports.UpdateInputSecurityGroupRequest = exports.UpdateInputDeviceResponse = exports.UpdateInputDeviceRequest = exports.UpdateInputResponse = void 0;
|
|
4
|
+
var UpdateInputResponse;
|
|
5
|
+
(function (UpdateInputResponse) {
|
|
6
|
+
UpdateInputResponse.filterSensitiveLog = (obj) => ({
|
|
7
|
+
...obj,
|
|
8
|
+
});
|
|
9
|
+
})(UpdateInputResponse = exports.UpdateInputResponse || (exports.UpdateInputResponse = {}));
|
|
10
|
+
var UpdateInputDeviceRequest;
|
|
11
|
+
(function (UpdateInputDeviceRequest) {
|
|
12
|
+
UpdateInputDeviceRequest.filterSensitiveLog = (obj) => ({
|
|
13
|
+
...obj,
|
|
14
|
+
});
|
|
15
|
+
})(UpdateInputDeviceRequest = exports.UpdateInputDeviceRequest || (exports.UpdateInputDeviceRequest = {}));
|
|
16
|
+
var UpdateInputDeviceResponse;
|
|
17
|
+
(function (UpdateInputDeviceResponse) {
|
|
18
|
+
UpdateInputDeviceResponse.filterSensitiveLog = (obj) => ({
|
|
19
|
+
...obj,
|
|
20
|
+
});
|
|
21
|
+
})(UpdateInputDeviceResponse = exports.UpdateInputDeviceResponse || (exports.UpdateInputDeviceResponse = {}));
|
|
22
|
+
var UpdateInputSecurityGroupRequest;
|
|
23
|
+
(function (UpdateInputSecurityGroupRequest) {
|
|
24
|
+
UpdateInputSecurityGroupRequest.filterSensitiveLog = (obj) => ({
|
|
25
|
+
...obj,
|
|
26
|
+
});
|
|
27
|
+
})(UpdateInputSecurityGroupRequest = exports.UpdateInputSecurityGroupRequest || (exports.UpdateInputSecurityGroupRequest = {}));
|
|
28
|
+
var UpdateInputSecurityGroupResponse;
|
|
29
|
+
(function (UpdateInputSecurityGroupResponse) {
|
|
30
|
+
UpdateInputSecurityGroupResponse.filterSensitiveLog = (obj) => ({
|
|
31
|
+
...obj,
|
|
32
|
+
});
|
|
33
|
+
})(UpdateInputSecurityGroupResponse = exports.UpdateInputSecurityGroupResponse || (exports.UpdateInputSecurityGroupResponse = {}));
|
|
4
34
|
var UpdateMultiplexRequest;
|
|
5
35
|
(function (UpdateMultiplexRequest) {
|
|
6
36
|
UpdateMultiplexRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.deserializeAws_restJson1UpdateReservationCommand = exports.deserializeAws_restJson1UpdateMultiplexProgramCommand = exports.deserializeAws_restJson1UpdateMultiplexCommand = exports.deserializeAws_restJson1UpdateInputSecurityGroupCommand = exports.deserializeAws_restJson1UpdateInputDeviceCommand = exports.deserializeAws_restJson1UpdateInputCommand = exports.deserializeAws_restJson1UpdateChannelClassCommand = exports.deserializeAws_restJson1UpdateChannelCommand = exports.deserializeAws_restJson1TransferInputDeviceCommand = exports.deserializeAws_restJson1StopMultiplexCommand = exports.deserializeAws_restJson1StopChannelCommand = exports.deserializeAws_restJson1StartMultiplexCommand = exports.deserializeAws_restJson1StartChannelCommand = exports.deserializeAws_restJson1RejectInputDeviceTransferCommand = void 0;
|
|
3
|
+
exports.serializeAws_restJson1StopMultiplexCommand = exports.serializeAws_restJson1StopChannelCommand = exports.serializeAws_restJson1StartMultiplexCommand = exports.serializeAws_restJson1StartInputDeviceMaintenanceWindowCommand = exports.serializeAws_restJson1StartChannelCommand = exports.serializeAws_restJson1RejectInputDeviceTransferCommand = exports.serializeAws_restJson1RebootInputDeviceCommand = exports.serializeAws_restJson1PurchaseOfferingCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListReservationsCommand = exports.serializeAws_restJson1ListOfferingsCommand = exports.serializeAws_restJson1ListMultiplexProgramsCommand = exports.serializeAws_restJson1ListMultiplexesCommand = exports.serializeAws_restJson1ListInputSecurityGroupsCommand = exports.serializeAws_restJson1ListInputsCommand = exports.serializeAws_restJson1ListInputDeviceTransfersCommand = exports.serializeAws_restJson1ListInputDevicesCommand = exports.serializeAws_restJson1ListChannelsCommand = exports.serializeAws_restJson1DescribeScheduleCommand = exports.serializeAws_restJson1DescribeReservationCommand = exports.serializeAws_restJson1DescribeOfferingCommand = exports.serializeAws_restJson1DescribeMultiplexProgramCommand = exports.serializeAws_restJson1DescribeMultiplexCommand = exports.serializeAws_restJson1DescribeInputSecurityGroupCommand = exports.serializeAws_restJson1DescribeInputDeviceThumbnailCommand = exports.serializeAws_restJson1DescribeInputDeviceCommand = exports.serializeAws_restJson1DescribeInputCommand = exports.serializeAws_restJson1DescribeChannelCommand = exports.serializeAws_restJson1DeleteTagsCommand = exports.serializeAws_restJson1DeleteScheduleCommand = exports.serializeAws_restJson1DeleteReservationCommand = exports.serializeAws_restJson1DeleteMultiplexProgramCommand = exports.serializeAws_restJson1DeleteMultiplexCommand = exports.serializeAws_restJson1DeleteInputSecurityGroupCommand = exports.serializeAws_restJson1DeleteInputCommand = exports.serializeAws_restJson1DeleteChannelCommand = exports.serializeAws_restJson1CreateTagsCommand = exports.serializeAws_restJson1CreatePartnerInputCommand = exports.serializeAws_restJson1CreateMultiplexProgramCommand = exports.serializeAws_restJson1CreateMultiplexCommand = exports.serializeAws_restJson1CreateInputSecurityGroupCommand = exports.serializeAws_restJson1CreateInputCommand = exports.serializeAws_restJson1CreateChannelCommand = exports.serializeAws_restJson1ClaimDeviceCommand = exports.serializeAws_restJson1CancelInputDeviceTransferCommand = exports.serializeAws_restJson1BatchUpdateScheduleCommand = exports.serializeAws_restJson1BatchStopCommand = exports.serializeAws_restJson1BatchStartCommand = exports.serializeAws_restJson1BatchDeleteCommand = exports.serializeAws_restJson1AcceptInputDeviceTransferCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1ListReservationsCommand = exports.deserializeAws_restJson1ListOfferingsCommand = exports.deserializeAws_restJson1ListMultiplexProgramsCommand = exports.deserializeAws_restJson1ListMultiplexesCommand = exports.deserializeAws_restJson1ListInputSecurityGroupsCommand = exports.deserializeAws_restJson1ListInputsCommand = exports.deserializeAws_restJson1ListInputDeviceTransfersCommand = exports.deserializeAws_restJson1ListInputDevicesCommand = exports.deserializeAws_restJson1ListChannelsCommand = exports.deserializeAws_restJson1DescribeScheduleCommand = exports.deserializeAws_restJson1DescribeReservationCommand = exports.deserializeAws_restJson1DescribeOfferingCommand = exports.deserializeAws_restJson1DescribeMultiplexProgramCommand = exports.deserializeAws_restJson1DescribeMultiplexCommand = exports.deserializeAws_restJson1DescribeInputSecurityGroupCommand = exports.deserializeAws_restJson1DescribeInputDeviceThumbnailCommand = exports.deserializeAws_restJson1DescribeInputDeviceCommand = exports.deserializeAws_restJson1DescribeInputCommand = exports.deserializeAws_restJson1DescribeChannelCommand = exports.deserializeAws_restJson1DeleteTagsCommand = exports.deserializeAws_restJson1DeleteScheduleCommand = exports.deserializeAws_restJson1DeleteReservationCommand = exports.deserializeAws_restJson1DeleteMultiplexProgramCommand = exports.deserializeAws_restJson1DeleteMultiplexCommand = exports.deserializeAws_restJson1DeleteInputSecurityGroupCommand = exports.deserializeAws_restJson1DeleteInputCommand = exports.deserializeAws_restJson1DeleteChannelCommand = exports.deserializeAws_restJson1CreateTagsCommand = exports.deserializeAws_restJson1CreatePartnerInputCommand = exports.deserializeAws_restJson1CreateMultiplexProgramCommand = exports.deserializeAws_restJson1CreateMultiplexCommand = exports.deserializeAws_restJson1CreateInputSecurityGroupCommand = exports.deserializeAws_restJson1CreateInputCommand = exports.deserializeAws_restJson1CreateChannelCommand = exports.deserializeAws_restJson1ClaimDeviceCommand = exports.deserializeAws_restJson1CancelInputDeviceTransferCommand = exports.deserializeAws_restJson1BatchUpdateScheduleCommand = exports.deserializeAws_restJson1BatchStopCommand = exports.deserializeAws_restJson1BatchStartCommand = exports.deserializeAws_restJson1BatchDeleteCommand = exports.deserializeAws_restJson1AcceptInputDeviceTransferCommand = exports.serializeAws_restJson1UpdateReservationCommand = exports.serializeAws_restJson1UpdateMultiplexProgramCommand = exports.serializeAws_restJson1UpdateMultiplexCommand = exports.serializeAws_restJson1UpdateInputSecurityGroupCommand = exports.serializeAws_restJson1UpdateInputDeviceCommand = exports.serializeAws_restJson1UpdateInputCommand = exports.serializeAws_restJson1UpdateChannelClassCommand = exports.serializeAws_restJson1UpdateChannelCommand = exports.serializeAws_restJson1TransferInputDeviceCommand = void 0;
|
|
5
|
+
exports.deserializeAws_restJson1UpdateReservationCommand = exports.deserializeAws_restJson1UpdateMultiplexProgramCommand = exports.deserializeAws_restJson1UpdateMultiplexCommand = exports.deserializeAws_restJson1UpdateInputSecurityGroupCommand = exports.deserializeAws_restJson1UpdateInputDeviceCommand = exports.deserializeAws_restJson1UpdateInputCommand = exports.deserializeAws_restJson1UpdateChannelClassCommand = exports.deserializeAws_restJson1UpdateChannelCommand = exports.deserializeAws_restJson1TransferInputDeviceCommand = exports.deserializeAws_restJson1StopMultiplexCommand = exports.deserializeAws_restJson1StopChannelCommand = exports.deserializeAws_restJson1StartMultiplexCommand = exports.deserializeAws_restJson1StartInputDeviceMaintenanceWindowCommand = exports.deserializeAws_restJson1StartChannelCommand = exports.deserializeAws_restJson1RejectInputDeviceTransferCommand = exports.deserializeAws_restJson1RebootInputDeviceCommand = exports.deserializeAws_restJson1PurchaseOfferingCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
@@ -1221,6 +1221,37 @@ const serializeAws_restJson1PurchaseOfferingCommand = async (input, context) =>
|
|
|
1221
1221
|
});
|
|
1222
1222
|
};
|
|
1223
1223
|
exports.serializeAws_restJson1PurchaseOfferingCommand = serializeAws_restJson1PurchaseOfferingCommand;
|
|
1224
|
+
const serializeAws_restJson1RebootInputDeviceCommand = async (input, context) => {
|
|
1225
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1226
|
+
const headers = {
|
|
1227
|
+
"content-type": "application/json",
|
|
1228
|
+
};
|
|
1229
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}/reboot";
|
|
1230
|
+
if (input.InputDeviceId !== undefined) {
|
|
1231
|
+
const labelValue = input.InputDeviceId;
|
|
1232
|
+
if (labelValue.length <= 0) {
|
|
1233
|
+
throw new Error("Empty value provided for input HTTP label: InputDeviceId.");
|
|
1234
|
+
}
|
|
1235
|
+
resolvedPath = resolvedPath.replace("{InputDeviceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1236
|
+
}
|
|
1237
|
+
else {
|
|
1238
|
+
throw new Error("No value provided for input HTTP label: InputDeviceId.");
|
|
1239
|
+
}
|
|
1240
|
+
let body;
|
|
1241
|
+
body = JSON.stringify({
|
|
1242
|
+
...(input.Force != null && { force: input.Force }),
|
|
1243
|
+
});
|
|
1244
|
+
return new protocol_http_1.HttpRequest({
|
|
1245
|
+
protocol,
|
|
1246
|
+
hostname,
|
|
1247
|
+
port,
|
|
1248
|
+
method: "POST",
|
|
1249
|
+
headers,
|
|
1250
|
+
path: resolvedPath,
|
|
1251
|
+
body,
|
|
1252
|
+
});
|
|
1253
|
+
};
|
|
1254
|
+
exports.serializeAws_restJson1RebootInputDeviceCommand = serializeAws_restJson1RebootInputDeviceCommand;
|
|
1224
1255
|
const serializeAws_restJson1RejectInputDeviceTransferCommand = async (input, context) => {
|
|
1225
1256
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1226
1257
|
const headers = {};
|
|
@@ -1273,6 +1304,33 @@ const serializeAws_restJson1StartChannelCommand = async (input, context) => {
|
|
|
1273
1304
|
});
|
|
1274
1305
|
};
|
|
1275
1306
|
exports.serializeAws_restJson1StartChannelCommand = serializeAws_restJson1StartChannelCommand;
|
|
1307
|
+
const serializeAws_restJson1StartInputDeviceMaintenanceWindowCommand = async (input, context) => {
|
|
1308
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1309
|
+
const headers = {};
|
|
1310
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1311
|
+
"/prod/inputDevices/{InputDeviceId}/startInputDeviceMaintenanceWindow";
|
|
1312
|
+
if (input.InputDeviceId !== undefined) {
|
|
1313
|
+
const labelValue = input.InputDeviceId;
|
|
1314
|
+
if (labelValue.length <= 0) {
|
|
1315
|
+
throw new Error("Empty value provided for input HTTP label: InputDeviceId.");
|
|
1316
|
+
}
|
|
1317
|
+
resolvedPath = resolvedPath.replace("{InputDeviceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1318
|
+
}
|
|
1319
|
+
else {
|
|
1320
|
+
throw new Error("No value provided for input HTTP label: InputDeviceId.");
|
|
1321
|
+
}
|
|
1322
|
+
let body;
|
|
1323
|
+
return new protocol_http_1.HttpRequest({
|
|
1324
|
+
protocol,
|
|
1325
|
+
hostname,
|
|
1326
|
+
port,
|
|
1327
|
+
method: "POST",
|
|
1328
|
+
headers,
|
|
1329
|
+
path: resolvedPath,
|
|
1330
|
+
body,
|
|
1331
|
+
});
|
|
1332
|
+
};
|
|
1333
|
+
exports.serializeAws_restJson1StartInputDeviceMaintenanceWindowCommand = serializeAws_restJson1StartInputDeviceMaintenanceWindowCommand;
|
|
1276
1334
|
const serializeAws_restJson1StartMultiplexCommand = async (input, context) => {
|
|
1277
1335
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1278
1336
|
const headers = {};
|
|
@@ -4690,6 +4748,61 @@ const deserializeAws_restJson1PurchaseOfferingCommandError = async (output, cont
|
|
|
4690
4748
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4691
4749
|
}
|
|
4692
4750
|
};
|
|
4751
|
+
const deserializeAws_restJson1RebootInputDeviceCommand = async (output, context) => {
|
|
4752
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4753
|
+
return deserializeAws_restJson1RebootInputDeviceCommandError(output, context);
|
|
4754
|
+
}
|
|
4755
|
+
const contents = {
|
|
4756
|
+
$metadata: deserializeMetadata(output),
|
|
4757
|
+
};
|
|
4758
|
+
await collectBody(output.body, context);
|
|
4759
|
+
return Promise.resolve(contents);
|
|
4760
|
+
};
|
|
4761
|
+
exports.deserializeAws_restJson1RebootInputDeviceCommand = deserializeAws_restJson1RebootInputDeviceCommand;
|
|
4762
|
+
const deserializeAws_restJson1RebootInputDeviceCommandError = async (output, context) => {
|
|
4763
|
+
const parsedOutput = {
|
|
4764
|
+
...output,
|
|
4765
|
+
body: await parseBody(output.body, context),
|
|
4766
|
+
};
|
|
4767
|
+
let response;
|
|
4768
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4769
|
+
switch (errorCode) {
|
|
4770
|
+
case "BadGatewayException":
|
|
4771
|
+
case "com.amazonaws.medialive#BadGatewayException":
|
|
4772
|
+
throw await deserializeAws_restJson1BadGatewayExceptionResponse(parsedOutput, context);
|
|
4773
|
+
case "BadRequestException":
|
|
4774
|
+
case "com.amazonaws.medialive#BadRequestException":
|
|
4775
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
4776
|
+
case "ForbiddenException":
|
|
4777
|
+
case "com.amazonaws.medialive#ForbiddenException":
|
|
4778
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
4779
|
+
case "GatewayTimeoutException":
|
|
4780
|
+
case "com.amazonaws.medialive#GatewayTimeoutException":
|
|
4781
|
+
throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
|
|
4782
|
+
case "InternalServerErrorException":
|
|
4783
|
+
case "com.amazonaws.medialive#InternalServerErrorException":
|
|
4784
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4785
|
+
case "NotFoundException":
|
|
4786
|
+
case "com.amazonaws.medialive#NotFoundException":
|
|
4787
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
4788
|
+
case "TooManyRequestsException":
|
|
4789
|
+
case "com.amazonaws.medialive#TooManyRequestsException":
|
|
4790
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4791
|
+
case "UnprocessableEntityException":
|
|
4792
|
+
case "com.amazonaws.medialive#UnprocessableEntityException":
|
|
4793
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
4794
|
+
default:
|
|
4795
|
+
const parsedBody = parsedOutput.body;
|
|
4796
|
+
const $metadata = deserializeMetadata(output);
|
|
4797
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4798
|
+
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4799
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4800
|
+
$fault: "client",
|
|
4801
|
+
$metadata,
|
|
4802
|
+
});
|
|
4803
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4804
|
+
}
|
|
4805
|
+
};
|
|
4693
4806
|
const deserializeAws_restJson1RejectInputDeviceTransferCommand = async (output, context) => {
|
|
4694
4807
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4695
4808
|
return deserializeAws_restJson1RejectInputDeviceTransferCommandError(output, context);
|
|
@@ -4875,6 +4988,61 @@ const deserializeAws_restJson1StartChannelCommandError = async (output, context)
|
|
|
4875
4988
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4876
4989
|
}
|
|
4877
4990
|
};
|
|
4991
|
+
const deserializeAws_restJson1StartInputDeviceMaintenanceWindowCommand = async (output, context) => {
|
|
4992
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4993
|
+
return deserializeAws_restJson1StartInputDeviceMaintenanceWindowCommandError(output, context);
|
|
4994
|
+
}
|
|
4995
|
+
const contents = {
|
|
4996
|
+
$metadata: deserializeMetadata(output),
|
|
4997
|
+
};
|
|
4998
|
+
await collectBody(output.body, context);
|
|
4999
|
+
return Promise.resolve(contents);
|
|
5000
|
+
};
|
|
5001
|
+
exports.deserializeAws_restJson1StartInputDeviceMaintenanceWindowCommand = deserializeAws_restJson1StartInputDeviceMaintenanceWindowCommand;
|
|
5002
|
+
const deserializeAws_restJson1StartInputDeviceMaintenanceWindowCommandError = async (output, context) => {
|
|
5003
|
+
const parsedOutput = {
|
|
5004
|
+
...output,
|
|
5005
|
+
body: await parseBody(output.body, context),
|
|
5006
|
+
};
|
|
5007
|
+
let response;
|
|
5008
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5009
|
+
switch (errorCode) {
|
|
5010
|
+
case "BadGatewayException":
|
|
5011
|
+
case "com.amazonaws.medialive#BadGatewayException":
|
|
5012
|
+
throw await deserializeAws_restJson1BadGatewayExceptionResponse(parsedOutput, context);
|
|
5013
|
+
case "BadRequestException":
|
|
5014
|
+
case "com.amazonaws.medialive#BadRequestException":
|
|
5015
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5016
|
+
case "ForbiddenException":
|
|
5017
|
+
case "com.amazonaws.medialive#ForbiddenException":
|
|
5018
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
5019
|
+
case "GatewayTimeoutException":
|
|
5020
|
+
case "com.amazonaws.medialive#GatewayTimeoutException":
|
|
5021
|
+
throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
|
|
5022
|
+
case "InternalServerErrorException":
|
|
5023
|
+
case "com.amazonaws.medialive#InternalServerErrorException":
|
|
5024
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
5025
|
+
case "NotFoundException":
|
|
5026
|
+
case "com.amazonaws.medialive#NotFoundException":
|
|
5027
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5028
|
+
case "TooManyRequestsException":
|
|
5029
|
+
case "com.amazonaws.medialive#TooManyRequestsException":
|
|
5030
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5031
|
+
case "UnprocessableEntityException":
|
|
5032
|
+
case "com.amazonaws.medialive#UnprocessableEntityException":
|
|
5033
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
5034
|
+
default:
|
|
5035
|
+
const parsedBody = parsedOutput.body;
|
|
5036
|
+
const $metadata = deserializeMetadata(output);
|
|
5037
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5038
|
+
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
5039
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5040
|
+
$fault: "client",
|
|
5041
|
+
$metadata,
|
|
5042
|
+
});
|
|
5043
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5044
|
+
}
|
|
5045
|
+
};
|
|
4878
5046
|
const deserializeAws_restJson1StartMultiplexCommand = async (output, context) => {
|
|
4879
5047
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
4880
5048
|
return deserializeAws_restJson1StartMultiplexCommandError(output, context);
|
package/dist-es/MediaLive.js
CHANGED
|
@@ -42,8 +42,10 @@ import { ListOfferingsCommand, } from "./commands/ListOfferingsCommand";
|
|
|
42
42
|
import { ListReservationsCommand, } from "./commands/ListReservationsCommand";
|
|
43
43
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
44
44
|
import { PurchaseOfferingCommand, } from "./commands/PurchaseOfferingCommand";
|
|
45
|
+
import { RebootInputDeviceCommand, } from "./commands/RebootInputDeviceCommand";
|
|
45
46
|
import { RejectInputDeviceTransferCommand, } from "./commands/RejectInputDeviceTransferCommand";
|
|
46
47
|
import { StartChannelCommand, } from "./commands/StartChannelCommand";
|
|
48
|
+
import { StartInputDeviceMaintenanceWindowCommand, } from "./commands/StartInputDeviceMaintenanceWindowCommand";
|
|
47
49
|
import { StartMultiplexCommand, } from "./commands/StartMultiplexCommand";
|
|
48
50
|
import { StopChannelCommand } from "./commands/StopChannelCommand";
|
|
49
51
|
import { StopMultiplexCommand, } from "./commands/StopMultiplexCommand";
|
|
@@ -664,6 +666,20 @@ var MediaLive = (function (_super) {
|
|
|
664
666
|
return this.send(command, optionsOrCb);
|
|
665
667
|
}
|
|
666
668
|
};
|
|
669
|
+
MediaLive.prototype.rebootInputDevice = function (args, optionsOrCb, cb) {
|
|
670
|
+
var command = new RebootInputDeviceCommand(args);
|
|
671
|
+
if (typeof optionsOrCb === "function") {
|
|
672
|
+
this.send(command, optionsOrCb);
|
|
673
|
+
}
|
|
674
|
+
else if (typeof cb === "function") {
|
|
675
|
+
if (typeof optionsOrCb !== "object")
|
|
676
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
677
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
678
|
+
}
|
|
679
|
+
else {
|
|
680
|
+
return this.send(command, optionsOrCb);
|
|
681
|
+
}
|
|
682
|
+
};
|
|
667
683
|
MediaLive.prototype.rejectInputDeviceTransfer = function (args, optionsOrCb, cb) {
|
|
668
684
|
var command = new RejectInputDeviceTransferCommand(args);
|
|
669
685
|
if (typeof optionsOrCb === "function") {
|
|
@@ -692,6 +708,20 @@ var MediaLive = (function (_super) {
|
|
|
692
708
|
return this.send(command, optionsOrCb);
|
|
693
709
|
}
|
|
694
710
|
};
|
|
711
|
+
MediaLive.prototype.startInputDeviceMaintenanceWindow = function (args, optionsOrCb, cb) {
|
|
712
|
+
var command = new StartInputDeviceMaintenanceWindowCommand(args);
|
|
713
|
+
if (typeof optionsOrCb === "function") {
|
|
714
|
+
this.send(command, optionsOrCb);
|
|
715
|
+
}
|
|
716
|
+
else if (typeof cb === "function") {
|
|
717
|
+
if (typeof optionsOrCb !== "object")
|
|
718
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
719
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
720
|
+
}
|
|
721
|
+
else {
|
|
722
|
+
return this.send(command, optionsOrCb);
|
|
723
|
+
}
|
|
724
|
+
};
|
|
695
725
|
MediaLive.prototype.startMultiplex = function (args, optionsOrCb, cb) {
|
|
696
726
|
var command = new StartMultiplexCommand(args);
|
|
697
727
|
if (typeof optionsOrCb === "function") {
|