@aws-sdk/client-medialive 3.409.0 → 3.413.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/MediaLive.js +4 -0
  3. package/dist-cjs/commands/StartInputDeviceCommand.js +46 -0
  4. package/dist-cjs/commands/StopInputDeviceCommand.js +46 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/models/models_0.js +12 -7
  7. package/dist-cjs/models/models_1.js +7 -3
  8. package/dist-cjs/protocols/Aws_restJson1.js +165 -3
  9. package/dist-cjs/runtimeExtensions.js +3 -0
  10. package/dist-es/MediaLive.js +4 -0
  11. package/dist-es/commands/StartInputDeviceCommand.js +42 -0
  12. package/dist-es/commands/StopInputDeviceCommand.js +42 -0
  13. package/dist-es/commands/index.js +2 -0
  14. package/dist-es/models/models_0.js +9 -4
  15. package/dist-es/models/models_1.js +4 -0
  16. package/dist-es/protocols/Aws_restJson1.js +158 -0
  17. package/dist-es/runtimeExtensions.js +3 -0
  18. package/dist-types/MediaLive.d.ts +14 -0
  19. package/dist-types/MediaLiveClient.d.ts +4 -2
  20. package/dist-types/commands/DescribeInputDeviceCommand.d.ts +11 -0
  21. package/dist-types/commands/ListInputDevicesCommand.d.ts +11 -0
  22. package/dist-types/commands/ListMultiplexProgramsCommand.d.ts +1 -1
  23. package/dist-types/commands/ListMultiplexesCommand.d.ts +2 -1
  24. package/dist-types/commands/ListOfferingsCommand.d.ts +1 -2
  25. package/dist-types/commands/StartInputDeviceCommand.d.ts +95 -0
  26. package/dist-types/commands/StopInputDeviceCommand.d.ts +95 -0
  27. package/dist-types/commands/UpdateInputDeviceCommand.d.ts +25 -0
  28. package/dist-types/commands/index.d.ts +2 -0
  29. package/dist-types/extensionConfiguration.d.ts +2 -1
  30. package/dist-types/models/models_0.d.ts +71 -39
  31. package/dist-types/models/models_1.d.ts +86 -120
  32. package/dist-types/models/models_2.d.ts +164 -1
  33. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  34. package/dist-types/runtimeConfig.browser.d.ts +4 -1
  35. package/dist-types/runtimeConfig.d.ts +4 -1
  36. package/dist-types/runtimeConfig.native.d.ts +4 -1
  37. package/dist-types/runtimeExtensions.d.ts +1 -1
  38. package/dist-types/ts3.4/MediaLive.d.ts +34 -0
  39. package/dist-types/ts3.4/MediaLiveClient.d.ts +12 -0
  40. package/dist-types/ts3.4/commands/ListMultiplexProgramsCommand.d.ts +1 -1
  41. package/dist-types/ts3.4/commands/ListMultiplexesCommand.d.ts +2 -4
  42. package/dist-types/ts3.4/commands/ListOfferingsCommand.d.ts +4 -2
  43. package/dist-types/ts3.4/commands/StartInputDeviceCommand.d.ts +38 -0
  44. package/dist-types/ts3.4/commands/StopInputDeviceCommand.d.ts +38 -0
  45. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  46. package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
  47. package/dist-types/ts3.4/models/models_0.d.ts +23 -12
  48. package/dist-types/ts3.4/models/models_1.d.ts +24 -31
  49. package/dist-types/ts3.4/models/models_2.d.ts +40 -0
  50. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  51. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +8 -1
  52. package/dist-types/ts3.4/runtimeConfig.d.ts +8 -1
  53. package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -1
  54. package/dist-types/ts3.4/runtimeExtensions.d.ts +1 -1
  55. package/package.json +30 -30
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { de_StopInputDeviceCommand, se_StopInputDeviceCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
6
+ export class StopInputDeviceCommand 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, StopInputDeviceCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "MediaLiveClient";
25
+ const commandName = "StopInputDeviceCommand";
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_StopInputDeviceCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_StopInputDeviceCommand(output, context);
41
+ }
42
+ }
@@ -46,9 +46,11 @@ export * from "./PurchaseOfferingCommand";
46
46
  export * from "./RebootInputDeviceCommand";
47
47
  export * from "./RejectInputDeviceTransferCommand";
48
48
  export * from "./StartChannelCommand";
49
+ export * from "./StartInputDeviceCommand";
49
50
  export * from "./StartInputDeviceMaintenanceWindowCommand";
50
51
  export * from "./StartMultiplexCommand";
51
52
  export * from "./StopChannelCommand";
53
+ export * from "./StopInputDeviceCommand";
52
54
  export * from "./StopMultiplexCommand";
53
55
  export * from "./TransferInputDeviceCommand";
54
56
  export * from "./UpdateAccountConfigurationCommand";
@@ -505,10 +505,19 @@ export const InputDeviceIpScheme = {
505
505
  DHCP: "DHCP",
506
506
  STATIC: "STATIC",
507
507
  };
508
+ export const InputDeviceOutputType = {
509
+ MEDIACONNECT_FLOW: "MEDIACONNECT_FLOW",
510
+ MEDIALIVE_INPUT: "MEDIALIVE_INPUT",
511
+ NONE: "NONE",
512
+ };
508
513
  export const InputDeviceType = {
509
514
  HD: "HD",
510
515
  UHD: "UHD",
511
516
  };
517
+ export const InputDeviceCodec = {
518
+ AVC: "AVC",
519
+ HEVC: "HEVC",
520
+ };
512
521
  export const InputSecurityGroupState = {
513
522
  DELETED: "DELETED",
514
523
  IDLE: "IDLE",
@@ -773,7 +782,3 @@ export const HlsIvInManifest = {
773
782
  EXCLUDE: "EXCLUDE",
774
783
  INCLUDE: "INCLUDE",
775
784
  };
776
- export const HlsIvSource = {
777
- EXPLICIT: "EXPLICIT",
778
- FOLLOWS_SEGMENT_NUMBER: "FOLLOWS_SEGMENT_NUMBER",
779
- };
@@ -1,4 +1,8 @@
1
1
  import { MediaLiveServiceException as __BaseException } from "./MediaLiveServiceException";
2
+ export const HlsIvSource = {
3
+ EXPLICIT: "EXPLICIT",
4
+ FOLLOWS_SEGMENT_NUMBER: "FOLLOWS_SEGMENT_NUMBER",
5
+ };
2
6
  export const HlsManifestCompression = {
3
7
  GZIP: "GZIP",
4
8
  NONE: "NONE",
@@ -959,6 +959,22 @@ export const se_StartChannelCommand = async (input, context) => {
959
959
  body,
960
960
  });
961
961
  };
962
+ export const se_StartInputDeviceCommand = async (input, context) => {
963
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
964
+ const headers = {};
965
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}/start";
966
+ resolvedPath = __resolvedPath(resolvedPath, input, "InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
967
+ let body;
968
+ return new __HttpRequest({
969
+ protocol,
970
+ hostname,
971
+ port,
972
+ method: "POST",
973
+ headers,
974
+ path: resolvedPath,
975
+ body,
976
+ });
977
+ };
962
978
  export const se_StartInputDeviceMaintenanceWindowCommand = async (input, context) => {
963
979
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
964
980
  const headers = {};
@@ -1008,6 +1024,22 @@ export const se_StopChannelCommand = async (input, context) => {
1008
1024
  body,
1009
1025
  });
1010
1026
  };
1027
+ export const se_StopInputDeviceCommand = async (input, context) => {
1028
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1029
+ const headers = {};
1030
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}/stop";
1031
+ resolvedPath = __resolvedPath(resolvedPath, input, "InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
1032
+ let body;
1033
+ return new __HttpRequest({
1034
+ protocol,
1035
+ hostname,
1036
+ port,
1037
+ method: "POST",
1038
+ headers,
1039
+ path: resolvedPath,
1040
+ body,
1041
+ });
1042
+ };
1011
1043
  export const se_StopMultiplexCommand = async (input, context) => {
1012
1044
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1013
1045
  const headers = {};
@@ -2625,8 +2657,10 @@ export const de_DescribeInputDeviceCommand = async (output, context) => {
2625
2657
  HdDeviceSettings: [, (_) => de_InputDeviceHdSettings(_, context), `hdDeviceSettings`],
2626
2658
  Id: [, __expectString, `id`],
2627
2659
  MacAddress: [, __expectString, `macAddress`],
2660
+ MedialiveInputArns: [, _json, `medialiveInputArns`],
2628
2661
  Name: [, __expectString, `name`],
2629
2662
  NetworkSettings: [, (_) => de_InputDeviceNetworkSettings(_, context), `networkSettings`],
2663
+ OutputType: [, __expectString, `outputType`],
2630
2664
  SerialNumber: [, __expectString, `serialNumber`],
2631
2665
  Tags: [, _json, `tags`],
2632
2666
  Type: [, __expectString, `type`],
@@ -3855,6 +3889,56 @@ const de_StartChannelCommandError = async (output, context) => {
3855
3889
  });
3856
3890
  }
3857
3891
  };
3892
+ export const de_StartInputDeviceCommand = async (output, context) => {
3893
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3894
+ return de_StartInputDeviceCommandError(output, context);
3895
+ }
3896
+ const contents = map({
3897
+ $metadata: deserializeMetadata(output),
3898
+ });
3899
+ await collectBody(output.body, context);
3900
+ return contents;
3901
+ };
3902
+ const de_StartInputDeviceCommandError = async (output, context) => {
3903
+ const parsedOutput = {
3904
+ ...output,
3905
+ body: await parseErrorBody(output.body, context),
3906
+ };
3907
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3908
+ switch (errorCode) {
3909
+ case "BadGatewayException":
3910
+ case "com.amazonaws.medialive#BadGatewayException":
3911
+ throw await de_BadGatewayExceptionRes(parsedOutput, context);
3912
+ case "BadRequestException":
3913
+ case "com.amazonaws.medialive#BadRequestException":
3914
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
3915
+ case "ForbiddenException":
3916
+ case "com.amazonaws.medialive#ForbiddenException":
3917
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
3918
+ case "GatewayTimeoutException":
3919
+ case "com.amazonaws.medialive#GatewayTimeoutException":
3920
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
3921
+ case "InternalServerErrorException":
3922
+ case "com.amazonaws.medialive#InternalServerErrorException":
3923
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3924
+ case "NotFoundException":
3925
+ case "com.amazonaws.medialive#NotFoundException":
3926
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
3927
+ case "TooManyRequestsException":
3928
+ case "com.amazonaws.medialive#TooManyRequestsException":
3929
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3930
+ case "UnprocessableEntityException":
3931
+ case "com.amazonaws.medialive#UnprocessableEntityException":
3932
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
3933
+ default:
3934
+ const parsedBody = parsedOutput.body;
3935
+ return throwDefaultError({
3936
+ output,
3937
+ parsedBody,
3938
+ errorCode,
3939
+ });
3940
+ }
3941
+ };
3858
3942
  export const de_StartInputDeviceMaintenanceWindowCommand = async (output, context) => {
3859
3943
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3860
3944
  return de_StartInputDeviceMaintenanceWindowCommandError(output, context);
@@ -4039,6 +4123,56 @@ const de_StopChannelCommandError = async (output, context) => {
4039
4123
  });
4040
4124
  }
4041
4125
  };
4126
+ export const de_StopInputDeviceCommand = async (output, context) => {
4127
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4128
+ return de_StopInputDeviceCommandError(output, context);
4129
+ }
4130
+ const contents = map({
4131
+ $metadata: deserializeMetadata(output),
4132
+ });
4133
+ await collectBody(output.body, context);
4134
+ return contents;
4135
+ };
4136
+ const de_StopInputDeviceCommandError = async (output, context) => {
4137
+ const parsedOutput = {
4138
+ ...output,
4139
+ body: await parseErrorBody(output.body, context),
4140
+ };
4141
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4142
+ switch (errorCode) {
4143
+ case "BadGatewayException":
4144
+ case "com.amazonaws.medialive#BadGatewayException":
4145
+ throw await de_BadGatewayExceptionRes(parsedOutput, context);
4146
+ case "BadRequestException":
4147
+ case "com.amazonaws.medialive#BadRequestException":
4148
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
4149
+ case "ForbiddenException":
4150
+ case "com.amazonaws.medialive#ForbiddenException":
4151
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
4152
+ case "GatewayTimeoutException":
4153
+ case "com.amazonaws.medialive#GatewayTimeoutException":
4154
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
4155
+ case "InternalServerErrorException":
4156
+ case "com.amazonaws.medialive#InternalServerErrorException":
4157
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
4158
+ case "NotFoundException":
4159
+ case "com.amazonaws.medialive#NotFoundException":
4160
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
4161
+ case "TooManyRequestsException":
4162
+ case "com.amazonaws.medialive#TooManyRequestsException":
4163
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
4164
+ case "UnprocessableEntityException":
4165
+ case "com.amazonaws.medialive#UnprocessableEntityException":
4166
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
4167
+ default:
4168
+ const parsedBody = parsedOutput.body;
4169
+ return throwDefaultError({
4170
+ output,
4171
+ parsedBody,
4172
+ errorCode,
4173
+ });
4174
+ }
4175
+ };
4042
4176
  export const de_StopMultiplexCommand = async (output, context) => {
4043
4177
  if (output.statusCode !== 202 && output.statusCode >= 300) {
4044
4178
  return de_StopMultiplexCommandError(output, context);
@@ -4382,8 +4516,10 @@ export const de_UpdateInputDeviceCommand = async (output, context) => {
4382
4516
  HdDeviceSettings: [, (_) => de_InputDeviceHdSettings(_, context), `hdDeviceSettings`],
4383
4517
  Id: [, __expectString, `id`],
4384
4518
  MacAddress: [, __expectString, `macAddress`],
4519
+ MedialiveInputArns: [, _json, `medialiveInputArns`],
4385
4520
  Name: [, __expectString, `name`],
4386
4521
  NetworkSettings: [, (_) => de_InputDeviceNetworkSettings(_, context), `networkSettings`],
4522
+ OutputType: [, __expectString, `outputType`],
4387
4523
  SerialNumber: [, __expectString, `serialNumber`],
4388
4524
  Tags: [, _json, `tags`],
4389
4525
  Type: [, __expectString, `type`],
@@ -5730,9 +5866,19 @@ const se_InputDestinationRequest = (input, context) => {
5730
5866
  };
5731
5867
  const se_InputDeviceConfigurableSettings = (input, context) => {
5732
5868
  return take(input, {
5869
+ codec: [, , `Codec`],
5733
5870
  configuredInput: [, , `ConfiguredInput`],
5734
5871
  latencyMs: [, , `LatencyMs`],
5735
5872
  maxBitrate: [, , `MaxBitrate`],
5873
+ mediaconnectSettings: [, (_) => se_InputDeviceMediaConnectConfigurableSettings(_, context), `MediaconnectSettings`],
5874
+ });
5875
+ };
5876
+ const se_InputDeviceMediaConnectConfigurableSettings = (input, context) => {
5877
+ return take(input, {
5878
+ flowArn: [, , `FlowArn`],
5879
+ roleArn: [, , `RoleArn`],
5880
+ secretArn: [, , `SecretArn`],
5881
+ sourceName: [, , `SourceName`],
5736
5882
  });
5737
5883
  };
5738
5884
  const se_InputDeviceRequest = (input, context) => {
@@ -7762,6 +7908,14 @@ const de_InputDeviceHdSettings = (output, context) => {
7762
7908
  Width: [, __expectInt32, `width`],
7763
7909
  });
7764
7910
  };
7911
+ const de_InputDeviceMediaConnectSettings = (output, context) => {
7912
+ return take(output, {
7913
+ FlowArn: [, __expectString, `flowArn`],
7914
+ RoleArn: [, __expectString, `roleArn`],
7915
+ SecretArn: [, __expectString, `secretArn`],
7916
+ SourceName: [, __expectString, `sourceName`],
7917
+ });
7918
+ };
7765
7919
  const de_InputDeviceNetworkSettings = (output, context) => {
7766
7920
  return take(output, {
7767
7921
  DnsAddresses: [, _json, `dnsAddresses`],
@@ -7786,8 +7940,10 @@ const de_InputDeviceSummary = (output, context) => {
7786
7940
  HdDeviceSettings: [, (_) => de_InputDeviceHdSettings(_, context), `hdDeviceSettings`],
7787
7941
  Id: [, __expectString, `id`],
7788
7942
  MacAddress: [, __expectString, `macAddress`],
7943
+ MedialiveInputArns: [, _json, `medialiveInputArns`],
7789
7944
  Name: [, __expectString, `name`],
7790
7945
  NetworkSettings: [, (_) => de_InputDeviceNetworkSettings(_, context), `networkSettings`],
7946
+ OutputType: [, __expectString, `outputType`],
7791
7947
  SerialNumber: [, __expectString, `serialNumber`],
7792
7948
  Tags: [, _json, `tags`],
7793
7949
  Type: [, __expectString, `type`],
@@ -7797,12 +7953,14 @@ const de_InputDeviceSummary = (output, context) => {
7797
7953
  const de_InputDeviceUhdSettings = (output, context) => {
7798
7954
  return take(output, {
7799
7955
  ActiveInput: [, __expectString, `activeInput`],
7956
+ Codec: [, __expectString, `codec`],
7800
7957
  ConfiguredInput: [, __expectString, `configuredInput`],
7801
7958
  DeviceState: [, __expectString, `deviceState`],
7802
7959
  Framerate: [, __limitedParseDouble, `framerate`],
7803
7960
  Height: [, __expectInt32, `height`],
7804
7961
  LatencyMs: [, __expectInt32, `latencyMs`],
7805
7962
  MaxBitrate: [, __expectInt32, `maxBitrate`],
7963
+ MediaconnectSettings: [, (_) => de_InputDeviceMediaConnectSettings(_, context), `mediaconnectSettings`],
7806
7964
  ScanType: [, __expectString, `scanType`],
7807
7965
  Width: [, __expectInt32, `width`],
7808
7966
  });
@@ -1,12 +1,15 @@
1
+ import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
1
2
  import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
2
3
  const asPartial = (t) => t;
3
4
  export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
4
5
  const extensionConfiguration = {
5
6
  ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
7
+ ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
6
8
  };
7
9
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
8
10
  return {
9
11
  ...runtimeConfig,
10
12
  ...resolveDefaultRuntimeConfig(extensionConfiguration),
13
+ ...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
11
14
  };
12
15
  };
@@ -47,9 +47,11 @@ import { PurchaseOfferingCommandInput, PurchaseOfferingCommandOutput } from "./c
47
47
  import { RebootInputDeviceCommandInput, RebootInputDeviceCommandOutput } from "./commands/RebootInputDeviceCommand";
48
48
  import { RejectInputDeviceTransferCommandInput, RejectInputDeviceTransferCommandOutput } from "./commands/RejectInputDeviceTransferCommand";
49
49
  import { StartChannelCommandInput, StartChannelCommandOutput } from "./commands/StartChannelCommand";
50
+ import { StartInputDeviceCommandInput, StartInputDeviceCommandOutput } from "./commands/StartInputDeviceCommand";
50
51
  import { StartInputDeviceMaintenanceWindowCommandInput, StartInputDeviceMaintenanceWindowCommandOutput } from "./commands/StartInputDeviceMaintenanceWindowCommand";
51
52
  import { StartMultiplexCommandInput, StartMultiplexCommandOutput } from "./commands/StartMultiplexCommand";
52
53
  import { StopChannelCommandInput, StopChannelCommandOutput } from "./commands/StopChannelCommand";
54
+ import { StopInputDeviceCommandInput, StopInputDeviceCommandOutput } from "./commands/StopInputDeviceCommand";
53
55
  import { StopMultiplexCommandInput, StopMultiplexCommandOutput } from "./commands/StopMultiplexCommand";
54
56
  import { TransferInputDeviceCommandInput, TransferInputDeviceCommandOutput } from "./commands/TransferInputDeviceCommand";
55
57
  import { UpdateAccountConfigurationCommandInput, UpdateAccountConfigurationCommandOutput } from "./commands/UpdateAccountConfigurationCommand";
@@ -351,6 +353,12 @@ export interface MediaLive {
351
353
  startChannel(args: StartChannelCommandInput, options?: __HttpHandlerOptions): Promise<StartChannelCommandOutput>;
352
354
  startChannel(args: StartChannelCommandInput, cb: (err: any, data?: StartChannelCommandOutput) => void): void;
353
355
  startChannel(args: StartChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartChannelCommandOutput) => void): void;
356
+ /**
357
+ * @see {@link StartInputDeviceCommand}
358
+ */
359
+ startInputDevice(args: StartInputDeviceCommandInput, options?: __HttpHandlerOptions): Promise<StartInputDeviceCommandOutput>;
360
+ startInputDevice(args: StartInputDeviceCommandInput, cb: (err: any, data?: StartInputDeviceCommandOutput) => void): void;
361
+ startInputDevice(args: StartInputDeviceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartInputDeviceCommandOutput) => void): void;
354
362
  /**
355
363
  * @see {@link StartInputDeviceMaintenanceWindowCommand}
356
364
  */
@@ -369,6 +377,12 @@ export interface MediaLive {
369
377
  stopChannel(args: StopChannelCommandInput, options?: __HttpHandlerOptions): Promise<StopChannelCommandOutput>;
370
378
  stopChannel(args: StopChannelCommandInput, cb: (err: any, data?: StopChannelCommandOutput) => void): void;
371
379
  stopChannel(args: StopChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopChannelCommandOutput) => void): void;
380
+ /**
381
+ * @see {@link StopInputDeviceCommand}
382
+ */
383
+ stopInputDevice(args: StopInputDeviceCommandInput, options?: __HttpHandlerOptions): Promise<StopInputDeviceCommandOutput>;
384
+ stopInputDevice(args: StopInputDeviceCommandInput, cb: (err: any, data?: StopInputDeviceCommandOutput) => void): void;
385
+ stopInputDevice(args: StopInputDeviceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopInputDeviceCommandOutput) => void): void;
372
386
  /**
373
387
  * @see {@link StopMultiplexCommand}
374
388
  */
@@ -56,9 +56,11 @@ import { PurchaseOfferingCommandInput, PurchaseOfferingCommandOutput } from "./c
56
56
  import { RebootInputDeviceCommandInput, RebootInputDeviceCommandOutput } from "./commands/RebootInputDeviceCommand";
57
57
  import { RejectInputDeviceTransferCommandInput, RejectInputDeviceTransferCommandOutput } from "./commands/RejectInputDeviceTransferCommand";
58
58
  import { StartChannelCommandInput, StartChannelCommandOutput } from "./commands/StartChannelCommand";
59
+ import { StartInputDeviceCommandInput, StartInputDeviceCommandOutput } from "./commands/StartInputDeviceCommand";
59
60
  import { StartInputDeviceMaintenanceWindowCommandInput, StartInputDeviceMaintenanceWindowCommandOutput } from "./commands/StartInputDeviceMaintenanceWindowCommand";
60
61
  import { StartMultiplexCommandInput, StartMultiplexCommandOutput } from "./commands/StartMultiplexCommand";
61
62
  import { StopChannelCommandInput, StopChannelCommandOutput } from "./commands/StopChannelCommand";
63
+ import { StopInputDeviceCommandInput, StopInputDeviceCommandOutput } from "./commands/StopInputDeviceCommand";
62
64
  import { StopMultiplexCommandInput, StopMultiplexCommandOutput } from "./commands/StopMultiplexCommand";
63
65
  import { TransferInputDeviceCommandInput, TransferInputDeviceCommandOutput } from "./commands/TransferInputDeviceCommand";
64
66
  import { UpdateAccountConfigurationCommandInput, UpdateAccountConfigurationCommandOutput } from "./commands/UpdateAccountConfigurationCommand";
@@ -76,11 +78,11 @@ export { __Client };
76
78
  /**
77
79
  * @public
78
80
  */
79
- export type ServiceInputTypes = AcceptInputDeviceTransferCommandInput | BatchDeleteCommandInput | BatchStartCommandInput | BatchStopCommandInput | BatchUpdateScheduleCommandInput | CancelInputDeviceTransferCommandInput | ClaimDeviceCommandInput | CreateChannelCommandInput | CreateInputCommandInput | CreateInputSecurityGroupCommandInput | CreateMultiplexCommandInput | CreateMultiplexProgramCommandInput | CreatePartnerInputCommandInput | CreateTagsCommandInput | DeleteChannelCommandInput | DeleteInputCommandInput | DeleteInputSecurityGroupCommandInput | DeleteMultiplexCommandInput | DeleteMultiplexProgramCommandInput | DeleteReservationCommandInput | DeleteScheduleCommandInput | DeleteTagsCommandInput | DescribeAccountConfigurationCommandInput | DescribeChannelCommandInput | DescribeInputCommandInput | DescribeInputDeviceCommandInput | DescribeInputDeviceThumbnailCommandInput | DescribeInputSecurityGroupCommandInput | DescribeMultiplexCommandInput | DescribeMultiplexProgramCommandInput | DescribeOfferingCommandInput | DescribeReservationCommandInput | DescribeScheduleCommandInput | DescribeThumbnailsCommandInput | ListChannelsCommandInput | ListInputDeviceTransfersCommandInput | ListInputDevicesCommandInput | ListInputSecurityGroupsCommandInput | ListInputsCommandInput | ListMultiplexProgramsCommandInput | ListMultiplexesCommandInput | ListOfferingsCommandInput | ListReservationsCommandInput | ListTagsForResourceCommandInput | PurchaseOfferingCommandInput | RebootInputDeviceCommandInput | RejectInputDeviceTransferCommandInput | StartChannelCommandInput | StartInputDeviceMaintenanceWindowCommandInput | StartMultiplexCommandInput | StopChannelCommandInput | StopMultiplexCommandInput | TransferInputDeviceCommandInput | UpdateAccountConfigurationCommandInput | UpdateChannelClassCommandInput | UpdateChannelCommandInput | UpdateInputCommandInput | UpdateInputDeviceCommandInput | UpdateInputSecurityGroupCommandInput | UpdateMultiplexCommandInput | UpdateMultiplexProgramCommandInput | UpdateReservationCommandInput;
81
+ export type ServiceInputTypes = AcceptInputDeviceTransferCommandInput | BatchDeleteCommandInput | BatchStartCommandInput | BatchStopCommandInput | BatchUpdateScheduleCommandInput | CancelInputDeviceTransferCommandInput | ClaimDeviceCommandInput | CreateChannelCommandInput | CreateInputCommandInput | CreateInputSecurityGroupCommandInput | CreateMultiplexCommandInput | CreateMultiplexProgramCommandInput | CreatePartnerInputCommandInput | CreateTagsCommandInput | DeleteChannelCommandInput | DeleteInputCommandInput | DeleteInputSecurityGroupCommandInput | DeleteMultiplexCommandInput | DeleteMultiplexProgramCommandInput | DeleteReservationCommandInput | DeleteScheduleCommandInput | DeleteTagsCommandInput | DescribeAccountConfigurationCommandInput | DescribeChannelCommandInput | DescribeInputCommandInput | DescribeInputDeviceCommandInput | DescribeInputDeviceThumbnailCommandInput | DescribeInputSecurityGroupCommandInput | DescribeMultiplexCommandInput | DescribeMultiplexProgramCommandInput | DescribeOfferingCommandInput | DescribeReservationCommandInput | DescribeScheduleCommandInput | DescribeThumbnailsCommandInput | ListChannelsCommandInput | ListInputDeviceTransfersCommandInput | ListInputDevicesCommandInput | ListInputSecurityGroupsCommandInput | ListInputsCommandInput | ListMultiplexProgramsCommandInput | ListMultiplexesCommandInput | ListOfferingsCommandInput | ListReservationsCommandInput | ListTagsForResourceCommandInput | PurchaseOfferingCommandInput | RebootInputDeviceCommandInput | RejectInputDeviceTransferCommandInput | StartChannelCommandInput | StartInputDeviceCommandInput | StartInputDeviceMaintenanceWindowCommandInput | StartMultiplexCommandInput | StopChannelCommandInput | StopInputDeviceCommandInput | StopMultiplexCommandInput | TransferInputDeviceCommandInput | UpdateAccountConfigurationCommandInput | UpdateChannelClassCommandInput | UpdateChannelCommandInput | UpdateInputCommandInput | UpdateInputDeviceCommandInput | UpdateInputSecurityGroupCommandInput | UpdateMultiplexCommandInput | UpdateMultiplexProgramCommandInput | UpdateReservationCommandInput;
80
82
  /**
81
83
  * @public
82
84
  */
83
- export type ServiceOutputTypes = AcceptInputDeviceTransferCommandOutput | BatchDeleteCommandOutput | BatchStartCommandOutput | BatchStopCommandOutput | BatchUpdateScheduleCommandOutput | CancelInputDeviceTransferCommandOutput | ClaimDeviceCommandOutput | CreateChannelCommandOutput | CreateInputCommandOutput | CreateInputSecurityGroupCommandOutput | CreateMultiplexCommandOutput | CreateMultiplexProgramCommandOutput | CreatePartnerInputCommandOutput | CreateTagsCommandOutput | DeleteChannelCommandOutput | DeleteInputCommandOutput | DeleteInputSecurityGroupCommandOutput | DeleteMultiplexCommandOutput | DeleteMultiplexProgramCommandOutput | DeleteReservationCommandOutput | DeleteScheduleCommandOutput | DeleteTagsCommandOutput | DescribeAccountConfigurationCommandOutput | DescribeChannelCommandOutput | DescribeInputCommandOutput | DescribeInputDeviceCommandOutput | DescribeInputDeviceThumbnailCommandOutput | DescribeInputSecurityGroupCommandOutput | DescribeMultiplexCommandOutput | DescribeMultiplexProgramCommandOutput | DescribeOfferingCommandOutput | DescribeReservationCommandOutput | DescribeScheduleCommandOutput | DescribeThumbnailsCommandOutput | ListChannelsCommandOutput | ListInputDeviceTransfersCommandOutput | ListInputDevicesCommandOutput | ListInputSecurityGroupsCommandOutput | ListInputsCommandOutput | ListMultiplexProgramsCommandOutput | ListMultiplexesCommandOutput | ListOfferingsCommandOutput | ListReservationsCommandOutput | ListTagsForResourceCommandOutput | PurchaseOfferingCommandOutput | RebootInputDeviceCommandOutput | RejectInputDeviceTransferCommandOutput | StartChannelCommandOutput | StartInputDeviceMaintenanceWindowCommandOutput | StartMultiplexCommandOutput | StopChannelCommandOutput | StopMultiplexCommandOutput | TransferInputDeviceCommandOutput | UpdateAccountConfigurationCommandOutput | UpdateChannelClassCommandOutput | UpdateChannelCommandOutput | UpdateInputCommandOutput | UpdateInputDeviceCommandOutput | UpdateInputSecurityGroupCommandOutput | UpdateMultiplexCommandOutput | UpdateMultiplexProgramCommandOutput | UpdateReservationCommandOutput;
85
+ export type ServiceOutputTypes = AcceptInputDeviceTransferCommandOutput | BatchDeleteCommandOutput | BatchStartCommandOutput | BatchStopCommandOutput | BatchUpdateScheduleCommandOutput | CancelInputDeviceTransferCommandOutput | ClaimDeviceCommandOutput | CreateChannelCommandOutput | CreateInputCommandOutput | CreateInputSecurityGroupCommandOutput | CreateMultiplexCommandOutput | CreateMultiplexProgramCommandOutput | CreatePartnerInputCommandOutput | CreateTagsCommandOutput | DeleteChannelCommandOutput | DeleteInputCommandOutput | DeleteInputSecurityGroupCommandOutput | DeleteMultiplexCommandOutput | DeleteMultiplexProgramCommandOutput | DeleteReservationCommandOutput | DeleteScheduleCommandOutput | DeleteTagsCommandOutput | DescribeAccountConfigurationCommandOutput | DescribeChannelCommandOutput | DescribeInputCommandOutput | DescribeInputDeviceCommandOutput | DescribeInputDeviceThumbnailCommandOutput | DescribeInputSecurityGroupCommandOutput | DescribeMultiplexCommandOutput | DescribeMultiplexProgramCommandOutput | DescribeOfferingCommandOutput | DescribeReservationCommandOutput | DescribeScheduleCommandOutput | DescribeThumbnailsCommandOutput | ListChannelsCommandOutput | ListInputDeviceTransfersCommandOutput | ListInputDevicesCommandOutput | ListInputSecurityGroupsCommandOutput | ListInputsCommandOutput | ListMultiplexProgramsCommandOutput | ListMultiplexesCommandOutput | ListOfferingsCommandOutput | ListReservationsCommandOutput | ListTagsForResourceCommandOutput | PurchaseOfferingCommandOutput | RebootInputDeviceCommandOutput | RejectInputDeviceTransferCommandOutput | StartChannelCommandOutput | StartInputDeviceCommandOutput | StartInputDeviceMaintenanceWindowCommandOutput | StartMultiplexCommandOutput | StopChannelCommandOutput | StopInputDeviceCommandOutput | StopMultiplexCommandOutput | TransferInputDeviceCommandOutput | UpdateAccountConfigurationCommandOutput | UpdateChannelClassCommandOutput | UpdateChannelCommandOutput | UpdateInputCommandOutput | UpdateInputDeviceCommandOutput | UpdateInputSecurityGroupCommandOutput | UpdateMultiplexCommandOutput | UpdateMultiplexProgramCommandOutput | UpdateReservationCommandOutput;
84
86
  /**
85
87
  * @public
86
88
  */
@@ -75,11 +75,22 @@ export interface DescribeInputDeviceCommandOutput extends DescribeInputDeviceRes
75
75
  * // ScanType: "INTERLACED" || "PROGRESSIVE",
76
76
  * // Width: Number("int"),
77
77
  * // LatencyMs: Number("int"),
78
+ * // Codec: "HEVC" || "AVC",
79
+ * // MediaconnectSettings: { // InputDeviceMediaConnectSettings
80
+ * // FlowArn: "STRING_VALUE",
81
+ * // RoleArn: "STRING_VALUE",
82
+ * // SecretArn: "STRING_VALUE",
83
+ * // SourceName: "STRING_VALUE",
84
+ * // },
78
85
  * // },
79
86
  * // Tags: { // Tags
80
87
  * // "<keys>": "STRING_VALUE",
81
88
  * // },
82
89
  * // AvailabilityZone: "STRING_VALUE",
90
+ * // MedialiveInputArns: [
91
+ * // "STRING_VALUE",
92
+ * // ],
93
+ * // OutputType: "NONE" || "MEDIALIVE_INPUT" || "MEDIACONNECT_FLOW",
83
94
  * // };
84
95
  *
85
96
  * ```
@@ -78,11 +78,22 @@ export interface ListInputDevicesCommandOutput extends ListInputDevicesResponse,
78
78
  * // ScanType: "INTERLACED" || "PROGRESSIVE",
79
79
  * // Width: Number("int"),
80
80
  * // LatencyMs: Number("int"),
81
+ * // Codec: "HEVC" || "AVC",
82
+ * // MediaconnectSettings: { // InputDeviceMediaConnectSettings
83
+ * // FlowArn: "STRING_VALUE",
84
+ * // RoleArn: "STRING_VALUE",
85
+ * // SecretArn: "STRING_VALUE",
86
+ * // SourceName: "STRING_VALUE",
87
+ * // },
81
88
  * // },
82
89
  * // Tags: { // Tags
83
90
  * // "<keys>": "STRING_VALUE",
84
91
  * // },
85
92
  * // AvailabilityZone: "STRING_VALUE",
93
+ * // MedialiveInputArns: [
94
+ * // "STRING_VALUE",
95
+ * // ],
96
+ * // OutputType: "NONE" || "MEDIALIVE_INPUT" || "MEDIACONNECT_FLOW",
86
97
  * // },
87
98
  * // ],
88
99
  * // NextToken: "STRING_VALUE",
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
4
  import { MediaLiveClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaLiveClient";
5
- import { ListMultiplexProgramsRequest, ListMultiplexProgramsResponse } from "../models/models_1";
5
+ import { ListMultiplexProgramsRequest, ListMultiplexProgramsResponse } from "../models/models_2";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -2,7 +2,8 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
4
  import { MediaLiveClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaLiveClient";
5
- import { ListMultiplexesRequest, ListMultiplexesResponse } from "../models/models_1";
5
+ import { ListMultiplexesRequest } from "../models/models_1";
6
+ import { ListMultiplexesResponse } from "../models/models_2";
6
7
  /**
7
8
  * @public
8
9
  */
@@ -2,8 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
4
  import { MediaLiveClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaLiveClient";
5
- import { ListOfferingsRequest } from "../models/models_1";
6
- import { ListOfferingsResponse } from "../models/models_2";
5
+ import { ListOfferingsRequest, ListOfferingsResponse } from "../models/models_2";
7
6
  /**
8
7
  * @public
9
8
  */
@@ -0,0 +1,95 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { MediaLiveClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaLiveClient";
5
+ import { StartInputDeviceRequest, StartInputDeviceResponse } from "../models/models_2";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link StartInputDeviceCommand}.
14
+ */
15
+ export interface StartInputDeviceCommandInput extends StartInputDeviceRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link StartInputDeviceCommand}.
21
+ */
22
+ export interface StartInputDeviceCommandOutput extends StartInputDeviceResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * Start an input device that is attached to a MediaConnect flow. (There is no need to start a device that is attached to a MediaLive input; MediaLive starts the device when the channel starts.)
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { MediaLiveClient, StartInputDeviceCommand } from "@aws-sdk/client-medialive"; // ES Modules import
31
+ * // const { MediaLiveClient, StartInputDeviceCommand } = require("@aws-sdk/client-medialive"); // CommonJS import
32
+ * const client = new MediaLiveClient(config);
33
+ * const input = { // StartInputDeviceRequest
34
+ * InputDeviceId: "STRING_VALUE", // required
35
+ * };
36
+ * const command = new StartInputDeviceCommand(input);
37
+ * const response = await client.send(command);
38
+ * // {};
39
+ *
40
+ * ```
41
+ *
42
+ * @param StartInputDeviceCommandInput - {@link StartInputDeviceCommandInput}
43
+ * @returns {@link StartInputDeviceCommandOutput}
44
+ * @see {@link StartInputDeviceCommandInput} for command's `input` shape.
45
+ * @see {@link StartInputDeviceCommandOutput} for command's `response` shape.
46
+ * @see {@link MediaLiveClientResolvedConfig | config} for MediaLiveClient's `config` shape.
47
+ *
48
+ * @throws {@link BadGatewayException} (server fault)
49
+ * Placeholder documentation for BadGatewayException
50
+ *
51
+ * @throws {@link BadRequestException} (client fault)
52
+ * Placeholder documentation for BadRequestException
53
+ *
54
+ * @throws {@link ForbiddenException} (client fault)
55
+ * Placeholder documentation for ForbiddenException
56
+ *
57
+ * @throws {@link GatewayTimeoutException} (server fault)
58
+ * Placeholder documentation for GatewayTimeoutException
59
+ *
60
+ * @throws {@link InternalServerErrorException} (server fault)
61
+ * Placeholder documentation for InternalServerErrorException
62
+ *
63
+ * @throws {@link NotFoundException} (client fault)
64
+ * Placeholder documentation for NotFoundException
65
+ *
66
+ * @throws {@link TooManyRequestsException} (client fault)
67
+ * Placeholder documentation for TooManyRequestsException
68
+ *
69
+ * @throws {@link UnprocessableEntityException} (client fault)
70
+ * Placeholder documentation for UnprocessableEntityException
71
+ *
72
+ * @throws {@link MediaLiveServiceException}
73
+ * <p>Base exception class for all service exceptions from MediaLive service.</p>
74
+ *
75
+ */
76
+ export declare class StartInputDeviceCommand extends $Command<StartInputDeviceCommandInput, StartInputDeviceCommandOutput, MediaLiveClientResolvedConfig> {
77
+ readonly input: StartInputDeviceCommandInput;
78
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
79
+ /**
80
+ * @public
81
+ */
82
+ constructor(input: StartInputDeviceCommandInput);
83
+ /**
84
+ * @internal
85
+ */
86
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartInputDeviceCommandInput, StartInputDeviceCommandOutput>;
87
+ /**
88
+ * @internal
89
+ */
90
+ private serialize;
91
+ /**
92
+ * @internal
93
+ */
94
+ private deserialize;
95
+ }