@aws-sdk/client-medialive 3.36.1 → 3.37.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.
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.serializeAws_restJson1UpdateChannelClassCommand = exports.serializeAws_restJson1UpdateChannelCommand = exports.serializeAws_restJson1TransferInputDeviceCommand = exports.serializeAws_restJson1StopMultiplexCommand = exports.serializeAws_restJson1StopChannelCommand = exports.serializeAws_restJson1StartMultiplexCommand = exports.serializeAws_restJson1StartChannelCommand = exports.serializeAws_restJson1RejectInputDeviceTransferCommand = 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_restJson1CancelInputDeviceTransferCommand = exports.serializeAws_restJson1BatchUpdateScheduleCommand = exports.serializeAws_restJson1BatchStopCommand = exports.serializeAws_restJson1BatchStartCommand = exports.serializeAws_restJson1BatchDeleteCommand = exports.serializeAws_restJson1AcceptInputDeviceTransferCommand = void 0;
4
- exports.deserializeAws_restJson1StartChannelCommand = exports.deserializeAws_restJson1RejectInputDeviceTransferCommand = exports.deserializeAws_restJson1PurchaseOfferingCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = 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_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 = 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 = void 0;
3
+ exports.serializeAws_restJson1UpdateChannelCommand = exports.serializeAws_restJson1TransferInputDeviceCommand = exports.serializeAws_restJson1StopMultiplexCommand = exports.serializeAws_restJson1StopChannelCommand = exports.serializeAws_restJson1StartMultiplexCommand = exports.serializeAws_restJson1StartChannelCommand = exports.serializeAws_restJson1RejectInputDeviceTransferCommand = 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_restJson1PurchaseOfferingCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = 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 = 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_restJson1StartChannelCommand = exports.deserializeAws_restJson1RejectInputDeviceTransferCommand = 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");
@@ -180,6 +180,27 @@ const serializeAws_restJson1CancelInputDeviceTransferCommand = async (input, con
180
180
  });
181
181
  };
182
182
  exports.serializeAws_restJson1CancelInputDeviceTransferCommand = serializeAws_restJson1CancelInputDeviceTransferCommand;
183
+ const serializeAws_restJson1ClaimDeviceCommand = async (input, context) => {
184
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
185
+ const headers = {
186
+ "content-type": "application/json",
187
+ };
188
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/claimDevice";
189
+ let body;
190
+ body = JSON.stringify({
191
+ ...(input.Id !== undefined && input.Id !== null && { id: input.Id }),
192
+ });
193
+ return new protocol_http_1.HttpRequest({
194
+ protocol,
195
+ hostname,
196
+ port,
197
+ method: "POST",
198
+ headers,
199
+ path: resolvedPath,
200
+ body,
201
+ });
202
+ };
203
+ exports.serializeAws_restJson1ClaimDeviceCommand = serializeAws_restJson1ClaimDeviceCommand;
183
204
  const serializeAws_restJson1CreateChannelCommand = async (input, context) => {
184
205
  var _a;
185
206
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -2356,6 +2377,106 @@ const deserializeAws_restJson1CancelInputDeviceTransferCommandError = async (out
2356
2377
  delete response.Message;
2357
2378
  return Promise.reject(Object.assign(new Error(message), response));
2358
2379
  };
2380
+ const deserializeAws_restJson1ClaimDeviceCommand = async (output, context) => {
2381
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2382
+ return deserializeAws_restJson1ClaimDeviceCommandError(output, context);
2383
+ }
2384
+ const contents = {
2385
+ $metadata: deserializeMetadata(output),
2386
+ };
2387
+ await collectBody(output.body, context);
2388
+ return Promise.resolve(contents);
2389
+ };
2390
+ exports.deserializeAws_restJson1ClaimDeviceCommand = deserializeAws_restJson1ClaimDeviceCommand;
2391
+ const deserializeAws_restJson1ClaimDeviceCommandError = async (output, context) => {
2392
+ const parsedOutput = {
2393
+ ...output,
2394
+ body: await parseBody(output.body, context),
2395
+ };
2396
+ let response;
2397
+ let errorCode = "UnknownError";
2398
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2399
+ switch (errorCode) {
2400
+ case "BadGatewayException":
2401
+ case "com.amazonaws.medialive#BadGatewayException":
2402
+ response = {
2403
+ ...(await deserializeAws_restJson1BadGatewayExceptionResponse(parsedOutput, context)),
2404
+ name: errorCode,
2405
+ $metadata: deserializeMetadata(output),
2406
+ };
2407
+ break;
2408
+ case "BadRequestException":
2409
+ case "com.amazonaws.medialive#BadRequestException":
2410
+ response = {
2411
+ ...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
2412
+ name: errorCode,
2413
+ $metadata: deserializeMetadata(output),
2414
+ };
2415
+ break;
2416
+ case "ForbiddenException":
2417
+ case "com.amazonaws.medialive#ForbiddenException":
2418
+ response = {
2419
+ ...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
2420
+ name: errorCode,
2421
+ $metadata: deserializeMetadata(output),
2422
+ };
2423
+ break;
2424
+ case "GatewayTimeoutException":
2425
+ case "com.amazonaws.medialive#GatewayTimeoutException":
2426
+ response = {
2427
+ ...(await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)),
2428
+ name: errorCode,
2429
+ $metadata: deserializeMetadata(output),
2430
+ };
2431
+ break;
2432
+ case "InternalServerErrorException":
2433
+ case "com.amazonaws.medialive#InternalServerErrorException":
2434
+ response = {
2435
+ ...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
2436
+ name: errorCode,
2437
+ $metadata: deserializeMetadata(output),
2438
+ };
2439
+ break;
2440
+ case "NotFoundException":
2441
+ case "com.amazonaws.medialive#NotFoundException":
2442
+ response = {
2443
+ ...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
2444
+ name: errorCode,
2445
+ $metadata: deserializeMetadata(output),
2446
+ };
2447
+ break;
2448
+ case "TooManyRequestsException":
2449
+ case "com.amazonaws.medialive#TooManyRequestsException":
2450
+ response = {
2451
+ ...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
2452
+ name: errorCode,
2453
+ $metadata: deserializeMetadata(output),
2454
+ };
2455
+ break;
2456
+ case "UnprocessableEntityException":
2457
+ case "com.amazonaws.medialive#UnprocessableEntityException":
2458
+ response = {
2459
+ ...(await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)),
2460
+ name: errorCode,
2461
+ $metadata: deserializeMetadata(output),
2462
+ };
2463
+ break;
2464
+ default:
2465
+ const parsedBody = parsedOutput.body;
2466
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2467
+ response = {
2468
+ ...parsedBody,
2469
+ name: `${errorCode}`,
2470
+ message: parsedBody.message || parsedBody.Message || errorCode,
2471
+ $fault: "client",
2472
+ $metadata: deserializeMetadata(output),
2473
+ };
2474
+ }
2475
+ const message = response.message || response.Message || errorCode;
2476
+ response.message = message;
2477
+ delete response.Message;
2478
+ return Promise.reject(Object.assign(new Error(message), response));
2479
+ };
2359
2480
  const deserializeAws_restJson1CreateChannelCommand = async (output, context) => {
2360
2481
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2361
2482
  return deserializeAws_restJson1CreateChannelCommandError(output, context);
@@ -8515,6 +8636,10 @@ const serializeAws_restJson1AudioDescription = (input, context) => {
8515
8636
  ...(input.AudioType !== undefined && input.AudioType !== null && { audioType: input.AudioType }),
8516
8637
  ...(input.AudioTypeControl !== undefined &&
8517
8638
  input.AudioTypeControl !== null && { audioTypeControl: input.AudioTypeControl }),
8639
+ ...(input.AudioWatermarkingSettings !== undefined &&
8640
+ input.AudioWatermarkingSettings !== null && {
8641
+ audioWatermarkingSettings: serializeAws_restJson1AudioWatermarkSettings(input.AudioWatermarkingSettings, context),
8642
+ }),
8518
8643
  ...(input.CodecSettings !== undefined &&
8519
8644
  input.CodecSettings !== null && {
8520
8645
  codecSettings: serializeAws_restJson1AudioCodecSettings(input.CodecSettings, context),
@@ -8617,6 +8742,14 @@ const serializeAws_restJson1AudioTrackSelection = (input, context) => {
8617
8742
  input.Tracks !== null && { tracks: serializeAws_restJson1__listOfAudioTrack(input.Tracks, context) }),
8618
8743
  };
8619
8744
  };
8745
+ const serializeAws_restJson1AudioWatermarkSettings = (input, context) => {
8746
+ return {
8747
+ ...(input.NielsenWatermarksSettings !== undefined &&
8748
+ input.NielsenWatermarksSettings !== null && {
8749
+ nielsenWatermarksSettings: serializeAws_restJson1NielsenWatermarksSettings(input.NielsenWatermarksSettings, context),
8750
+ }),
8751
+ };
8752
+ };
8620
8753
  const serializeAws_restJson1AutomaticInputFailoverSettings = (input, context) => {
8621
8754
  return {
8622
8755
  ...(input.ErrorClearTimeMsec !== undefined &&
@@ -10040,6 +10173,14 @@ const serializeAws_restJson1NetworkInputSettings = (input, context) => {
10040
10173
  input.ServerValidation !== null && { serverValidation: input.ServerValidation }),
10041
10174
  };
10042
10175
  };
10176
+ const serializeAws_restJson1NielsenCBET = (input, context) => {
10177
+ return {
10178
+ ...(input.CbetCheckDigitString !== undefined &&
10179
+ input.CbetCheckDigitString !== null && { cbetCheckDigitString: input.CbetCheckDigitString }),
10180
+ ...(input.CbetStepaside !== undefined && input.CbetStepaside !== null && { cbetStepaside: input.CbetStepaside }),
10181
+ ...(input.Csid !== undefined && input.Csid !== null && { csid: input.Csid }),
10182
+ };
10183
+ };
10043
10184
  const serializeAws_restJson1NielsenConfiguration = (input, context) => {
10044
10185
  return {
10045
10186
  ...(input.DistributorId !== undefined && input.DistributorId !== null && { distributorId: input.DistributorId }),
@@ -10047,6 +10188,27 @@ const serializeAws_restJson1NielsenConfiguration = (input, context) => {
10047
10188
  input.NielsenPcmToId3Tagging !== null && { nielsenPcmToId3Tagging: input.NielsenPcmToId3Tagging }),
10048
10189
  };
10049
10190
  };
10191
+ const serializeAws_restJson1NielsenNaesIiNw = (input, context) => {
10192
+ return {
10193
+ ...(input.CheckDigitString !== undefined &&
10194
+ input.CheckDigitString !== null && { checkDigitString: input.CheckDigitString }),
10195
+ ...(input.Sid !== undefined && input.Sid !== null && { sid: smithy_client_1.serializeFloat(input.Sid) }),
10196
+ };
10197
+ };
10198
+ const serializeAws_restJson1NielsenWatermarksSettings = (input, context) => {
10199
+ return {
10200
+ ...(input.NielsenCbetSettings !== undefined &&
10201
+ input.NielsenCbetSettings !== null && {
10202
+ nielsenCbetSettings: serializeAws_restJson1NielsenCBET(input.NielsenCbetSettings, context),
10203
+ }),
10204
+ ...(input.NielsenDistributionType !== undefined &&
10205
+ input.NielsenDistributionType !== null && { nielsenDistributionType: input.NielsenDistributionType }),
10206
+ ...(input.NielsenNaesIiNwSettings !== undefined &&
10207
+ input.NielsenNaesIiNwSettings !== null && {
10208
+ nielsenNaesIiNwSettings: serializeAws_restJson1NielsenNaesIiNw(input.NielsenNaesIiNwSettings, context),
10209
+ }),
10210
+ };
10211
+ };
10050
10212
  const serializeAws_restJson1Output = (input, context) => {
10051
10213
  return {
10052
10214
  ...(input.AudioDescriptionNames !== undefined &&
@@ -11232,6 +11394,9 @@ const deserializeAws_restJson1AudioDescription = (output, context) => {
11232
11394
  AudioSelectorName: smithy_client_1.expectString(output.audioSelectorName),
11233
11395
  AudioType: smithy_client_1.expectString(output.audioType),
11234
11396
  AudioTypeControl: smithy_client_1.expectString(output.audioTypeControl),
11397
+ AudioWatermarkingSettings: output.audioWatermarkingSettings !== undefined && output.audioWatermarkingSettings !== null
11398
+ ? deserializeAws_restJson1AudioWatermarkSettings(output.audioWatermarkingSettings, context)
11399
+ : undefined,
11235
11400
  CodecSettings: output.codecSettings !== undefined && output.codecSettings !== null
11236
11401
  ? deserializeAws_restJson1AudioCodecSettings(output.codecSettings, context)
11237
11402
  : undefined,
@@ -11320,6 +11485,13 @@ const deserializeAws_restJson1AudioTrackSelection = (output, context) => {
11320
11485
  : undefined,
11321
11486
  };
11322
11487
  };
11488
+ const deserializeAws_restJson1AudioWatermarkSettings = (output, context) => {
11489
+ return {
11490
+ NielsenWatermarksSettings: output.nielsenWatermarksSettings !== undefined && output.nielsenWatermarksSettings !== null
11491
+ ? deserializeAws_restJson1NielsenWatermarksSettings(output.nielsenWatermarksSettings, context)
11492
+ : undefined,
11493
+ };
11494
+ };
11323
11495
  const deserializeAws_restJson1AutomaticInputFailoverSettings = (output, context) => {
11324
11496
  return {
11325
11497
  ErrorClearTimeMsec: smithy_client_1.expectInt32(output.errorClearTimeMsec),
@@ -12764,12 +12936,36 @@ const deserializeAws_restJson1NetworkInputSettings = (output, context) => {
12764
12936
  ServerValidation: smithy_client_1.expectString(output.serverValidation),
12765
12937
  };
12766
12938
  };
12939
+ const deserializeAws_restJson1NielsenCBET = (output, context) => {
12940
+ return {
12941
+ CbetCheckDigitString: smithy_client_1.expectString(output.cbetCheckDigitString),
12942
+ CbetStepaside: smithy_client_1.expectString(output.cbetStepaside),
12943
+ Csid: smithy_client_1.expectString(output.csid),
12944
+ };
12945
+ };
12767
12946
  const deserializeAws_restJson1NielsenConfiguration = (output, context) => {
12768
12947
  return {
12769
12948
  DistributorId: smithy_client_1.expectString(output.distributorId),
12770
12949
  NielsenPcmToId3Tagging: smithy_client_1.expectString(output.nielsenPcmToId3Tagging),
12771
12950
  };
12772
12951
  };
12952
+ const deserializeAws_restJson1NielsenNaesIiNw = (output, context) => {
12953
+ return {
12954
+ CheckDigitString: smithy_client_1.expectString(output.checkDigitString),
12955
+ Sid: smithy_client_1.limitedParseDouble(output.sid),
12956
+ };
12957
+ };
12958
+ const deserializeAws_restJson1NielsenWatermarksSettings = (output, context) => {
12959
+ return {
12960
+ NielsenCbetSettings: output.nielsenCbetSettings !== undefined && output.nielsenCbetSettings !== null
12961
+ ? deserializeAws_restJson1NielsenCBET(output.nielsenCbetSettings, context)
12962
+ : undefined,
12963
+ NielsenDistributionType: smithy_client_1.expectString(output.nielsenDistributionType),
12964
+ NielsenNaesIiNwSettings: output.nielsenNaesIiNwSettings !== undefined && output.nielsenNaesIiNwSettings !== null
12965
+ ? deserializeAws_restJson1NielsenNaesIiNw(output.nielsenNaesIiNwSettings, context)
12966
+ : undefined,
12967
+ };
12968
+ };
12773
12969
  const deserializeAws_restJson1Offering = (output, context) => {
12774
12970
  return {
12775
12971
  Arn: smithy_client_1.expectString(output.arn),
@@ -5,6 +5,7 @@ import { BatchStartCommand } from "./commands/BatchStartCommand";
5
5
  import { BatchStopCommand } from "./commands/BatchStopCommand";
6
6
  import { BatchUpdateScheduleCommand, } from "./commands/BatchUpdateScheduleCommand";
7
7
  import { CancelInputDeviceTransferCommand, } from "./commands/CancelInputDeviceTransferCommand";
8
+ import { ClaimDeviceCommand } from "./commands/ClaimDeviceCommand";
8
9
  import { CreateChannelCommand, } from "./commands/CreateChannelCommand";
9
10
  import { CreateInputCommand } from "./commands/CreateInputCommand";
10
11
  import { CreateInputSecurityGroupCommand, } from "./commands/CreateInputSecurityGroupCommand";
@@ -145,6 +146,20 @@ var MediaLive = (function (_super) {
145
146
  return this.send(command, optionsOrCb);
146
147
  }
147
148
  };
149
+ MediaLive.prototype.claimDevice = function (args, optionsOrCb, cb) {
150
+ var command = new ClaimDeviceCommand(args);
151
+ if (typeof optionsOrCb === "function") {
152
+ this.send(command, optionsOrCb);
153
+ }
154
+ else if (typeof cb === "function") {
155
+ if (typeof optionsOrCb !== "object")
156
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
157
+ this.send(command, optionsOrCb || {}, cb);
158
+ }
159
+ else {
160
+ return this.send(command, optionsOrCb);
161
+ }
162
+ };
148
163
  MediaLive.prototype.createChannel = function (args, optionsOrCb, cb) {
149
164
  var command = new CreateChannelCommand(args);
150
165
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ClaimDeviceRequest, ClaimDeviceResponse } from "../models/models_1";
5
+ import { deserializeAws_restJson1ClaimDeviceCommand, serializeAws_restJson1ClaimDeviceCommand, } from "../protocols/Aws_restJson1";
6
+ var ClaimDeviceCommand = (function (_super) {
7
+ __extends(ClaimDeviceCommand, _super);
8
+ function ClaimDeviceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ClaimDeviceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "MediaLiveClient";
18
+ var commandName = "ClaimDeviceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ClaimDeviceRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ClaimDeviceResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ClaimDeviceCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1ClaimDeviceCommand(input, context);
33
+ };
34
+ ClaimDeviceCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1ClaimDeviceCommand(output, context);
36
+ };
37
+ return ClaimDeviceCommand;
38
+ }($Command));
39
+ export { ClaimDeviceCommand };
@@ -49,7 +49,7 @@ var partitionHash = {
49
49
  hostname: "medialive.{region}.amazonaws.com.cn",
50
50
  },
51
51
  "aws-iso": {
52
- regions: ["us-iso-east-1"],
52
+ regions: ["us-iso-east-1", "us-iso-west-1"],
53
53
  hostname: "medialive.{region}.c2s.ic.gov",
54
54
  },
55
55
  "aws-iso-b": {
package/dist-es/index.js CHANGED
@@ -6,6 +6,7 @@ export * from "./commands/BatchStartCommand";
6
6
  export * from "./commands/BatchStopCommand";
7
7
  export * from "./commands/BatchUpdateScheduleCommand";
8
8
  export * from "./commands/CancelInputDeviceTransferCommand";
9
+ export * from "./commands/ClaimDeviceCommand";
9
10
  export * from "./commands/CreateChannelCommand";
10
11
  export * from "./commands/CreateInputCommand";
11
12
  export * from "./commands/CreateInputSecurityGroupCommand";
@@ -32,6 +32,32 @@ export var AudioDescriptionAudioTypeControl;
32
32
  AudioDescriptionAudioTypeControl["FOLLOW_INPUT"] = "FOLLOW_INPUT";
33
33
  AudioDescriptionAudioTypeControl["USE_CONFIGURED"] = "USE_CONFIGURED";
34
34
  })(AudioDescriptionAudioTypeControl || (AudioDescriptionAudioTypeControl = {}));
35
+ export var NielsenWatermarksCbetStepaside;
36
+ (function (NielsenWatermarksCbetStepaside) {
37
+ NielsenWatermarksCbetStepaside["DISABLED"] = "DISABLED";
38
+ NielsenWatermarksCbetStepaside["ENABLED"] = "ENABLED";
39
+ })(NielsenWatermarksCbetStepaside || (NielsenWatermarksCbetStepaside = {}));
40
+ export var NielsenCBET;
41
+ (function (NielsenCBET) {
42
+ NielsenCBET.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
43
+ })(NielsenCBET || (NielsenCBET = {}));
44
+ export var NielsenWatermarksDistributionTypes;
45
+ (function (NielsenWatermarksDistributionTypes) {
46
+ NielsenWatermarksDistributionTypes["FINAL_DISTRIBUTOR"] = "FINAL_DISTRIBUTOR";
47
+ NielsenWatermarksDistributionTypes["PROGRAM_CONTENT"] = "PROGRAM_CONTENT";
48
+ })(NielsenWatermarksDistributionTypes || (NielsenWatermarksDistributionTypes = {}));
49
+ export var NielsenNaesIiNw;
50
+ (function (NielsenNaesIiNw) {
51
+ NielsenNaesIiNw.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
52
+ })(NielsenNaesIiNw || (NielsenNaesIiNw = {}));
53
+ export var NielsenWatermarksSettings;
54
+ (function (NielsenWatermarksSettings) {
55
+ NielsenWatermarksSettings.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
56
+ })(NielsenWatermarksSettings || (NielsenWatermarksSettings = {}));
57
+ export var AudioWatermarkSettings;
58
+ (function (AudioWatermarkSettings) {
59
+ AudioWatermarkSettings.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
60
+ })(AudioWatermarkSettings || (AudioWatermarkSettings = {}));
35
61
  export var AacCodingMode;
36
62
  (function (AacCodingMode) {
37
63
  AacCodingMode["AD_RECEIVER_MIX"] = "AD_RECEIVER_MIX";
@@ -788,6 +814,7 @@ export var InputType;
788
814
  InputType["RTMP_PULL"] = "RTMP_PULL";
789
815
  InputType["RTMP_PUSH"] = "RTMP_PUSH";
790
816
  InputType["RTP_PUSH"] = "RTP_PUSH";
817
+ InputType["TS_FILE"] = "TS_FILE";
791
818
  InputType["UDP_PUSH"] = "UDP_PUSH";
792
819
  InputType["URL_PULL"] = "URL_PULL";
793
820
  })(InputType || (InputType = {}));
@@ -1455,34 +1482,3 @@ export var MediaPackageGroupSettings;
1455
1482
  (function (MediaPackageGroupSettings) {
1456
1483
  MediaPackageGroupSettings.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1457
1484
  })(MediaPackageGroupSettings || (MediaPackageGroupSettings = {}));
1458
- export var SmoothGroupAudioOnlyTimecodeControl;
1459
- (function (SmoothGroupAudioOnlyTimecodeControl) {
1460
- SmoothGroupAudioOnlyTimecodeControl["PASSTHROUGH"] = "PASSTHROUGH";
1461
- SmoothGroupAudioOnlyTimecodeControl["USE_CONFIGURED_CLOCK"] = "USE_CONFIGURED_CLOCK";
1462
- })(SmoothGroupAudioOnlyTimecodeControl || (SmoothGroupAudioOnlyTimecodeControl = {}));
1463
- export var SmoothGroupCertificateMode;
1464
- (function (SmoothGroupCertificateMode) {
1465
- SmoothGroupCertificateMode["SELF_SIGNED"] = "SELF_SIGNED";
1466
- SmoothGroupCertificateMode["VERIFY_AUTHENTICITY"] = "VERIFY_AUTHENTICITY";
1467
- })(SmoothGroupCertificateMode || (SmoothGroupCertificateMode = {}));
1468
- export var SmoothGroupEventIdMode;
1469
- (function (SmoothGroupEventIdMode) {
1470
- SmoothGroupEventIdMode["NO_EVENT_ID"] = "NO_EVENT_ID";
1471
- SmoothGroupEventIdMode["USE_CONFIGURED"] = "USE_CONFIGURED";
1472
- SmoothGroupEventIdMode["USE_TIMESTAMP"] = "USE_TIMESTAMP";
1473
- })(SmoothGroupEventIdMode || (SmoothGroupEventIdMode = {}));
1474
- export var SmoothGroupEventStopBehavior;
1475
- (function (SmoothGroupEventStopBehavior) {
1476
- SmoothGroupEventStopBehavior["NONE"] = "NONE";
1477
- SmoothGroupEventStopBehavior["SEND_EOS"] = "SEND_EOS";
1478
- })(SmoothGroupEventStopBehavior || (SmoothGroupEventStopBehavior = {}));
1479
- export var InputLossActionForMsSmoothOut;
1480
- (function (InputLossActionForMsSmoothOut) {
1481
- InputLossActionForMsSmoothOut["EMIT_OUTPUT"] = "EMIT_OUTPUT";
1482
- InputLossActionForMsSmoothOut["PAUSE_OUTPUT"] = "PAUSE_OUTPUT";
1483
- })(InputLossActionForMsSmoothOut || (InputLossActionForMsSmoothOut = {}));
1484
- export var SmoothGroupSegmentationMode;
1485
- (function (SmoothGroupSegmentationMode) {
1486
- SmoothGroupSegmentationMode["USE_INPUT_SEGMENTATION"] = "USE_INPUT_SEGMENTATION";
1487
- SmoothGroupSegmentationMode["USE_SEGMENT_DURATION"] = "USE_SEGMENT_DURATION";
1488
- })(SmoothGroupSegmentationMode || (SmoothGroupSegmentationMode = {}));
@@ -1,4 +1,35 @@
1
1
  import { __assign } from "tslib";
2
+ export var SmoothGroupAudioOnlyTimecodeControl;
3
+ (function (SmoothGroupAudioOnlyTimecodeControl) {
4
+ SmoothGroupAudioOnlyTimecodeControl["PASSTHROUGH"] = "PASSTHROUGH";
5
+ SmoothGroupAudioOnlyTimecodeControl["USE_CONFIGURED_CLOCK"] = "USE_CONFIGURED_CLOCK";
6
+ })(SmoothGroupAudioOnlyTimecodeControl || (SmoothGroupAudioOnlyTimecodeControl = {}));
7
+ export var SmoothGroupCertificateMode;
8
+ (function (SmoothGroupCertificateMode) {
9
+ SmoothGroupCertificateMode["SELF_SIGNED"] = "SELF_SIGNED";
10
+ SmoothGroupCertificateMode["VERIFY_AUTHENTICITY"] = "VERIFY_AUTHENTICITY";
11
+ })(SmoothGroupCertificateMode || (SmoothGroupCertificateMode = {}));
12
+ export var SmoothGroupEventIdMode;
13
+ (function (SmoothGroupEventIdMode) {
14
+ SmoothGroupEventIdMode["NO_EVENT_ID"] = "NO_EVENT_ID";
15
+ SmoothGroupEventIdMode["USE_CONFIGURED"] = "USE_CONFIGURED";
16
+ SmoothGroupEventIdMode["USE_TIMESTAMP"] = "USE_TIMESTAMP";
17
+ })(SmoothGroupEventIdMode || (SmoothGroupEventIdMode = {}));
18
+ export var SmoothGroupEventStopBehavior;
19
+ (function (SmoothGroupEventStopBehavior) {
20
+ SmoothGroupEventStopBehavior["NONE"] = "NONE";
21
+ SmoothGroupEventStopBehavior["SEND_EOS"] = "SEND_EOS";
22
+ })(SmoothGroupEventStopBehavior || (SmoothGroupEventStopBehavior = {}));
23
+ export var InputLossActionForMsSmoothOut;
24
+ (function (InputLossActionForMsSmoothOut) {
25
+ InputLossActionForMsSmoothOut["EMIT_OUTPUT"] = "EMIT_OUTPUT";
26
+ InputLossActionForMsSmoothOut["PAUSE_OUTPUT"] = "PAUSE_OUTPUT";
27
+ })(InputLossActionForMsSmoothOut || (InputLossActionForMsSmoothOut = {}));
28
+ export var SmoothGroupSegmentationMode;
29
+ (function (SmoothGroupSegmentationMode) {
30
+ SmoothGroupSegmentationMode["USE_INPUT_SEGMENTATION"] = "USE_INPUT_SEGMENTATION";
31
+ SmoothGroupSegmentationMode["USE_SEGMENT_DURATION"] = "USE_SEGMENT_DURATION";
32
+ })(SmoothGroupSegmentationMode || (SmoothGroupSegmentationMode = {}));
2
33
  export var SmoothGroupSparseTrackType;
3
34
  (function (SmoothGroupSparseTrackType) {
4
35
  SmoothGroupSparseTrackType["NONE"] = "NONE";
@@ -885,6 +916,14 @@ export var Channel;
885
916
  (function (Channel) {
886
917
  Channel.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
887
918
  })(Channel || (Channel = {}));
919
+ export var ClaimDeviceRequest;
920
+ (function (ClaimDeviceRequest) {
921
+ ClaimDeviceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
922
+ })(ClaimDeviceRequest || (ClaimDeviceRequest = {}));
923
+ export var ClaimDeviceResponse;
924
+ (function (ClaimDeviceResponse) {
925
+ ClaimDeviceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
926
+ })(ClaimDeviceResponse || (ClaimDeviceResponse = {}));
888
927
  export var ContentType;
889
928
  (function (ContentType) {
890
929
  ContentType["image_jpeg"] = "image/jpeg";