@aws-sdk/client-mediapackage 3.1076.0 → 3.1078.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 (77) hide show
  1. package/dist-cjs/index.js +30 -195
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/ConfigureLogsCommand.js +2 -14
  4. package/dist-es/commands/CreateChannelCommand.js +2 -14
  5. package/dist-es/commands/CreateHarvestJobCommand.js +2 -14
  6. package/dist-es/commands/CreateOriginEndpointCommand.js +2 -14
  7. package/dist-es/commands/DeleteChannelCommand.js +2 -14
  8. package/dist-es/commands/DeleteOriginEndpointCommand.js +2 -14
  9. package/dist-es/commands/DescribeChannelCommand.js +2 -14
  10. package/dist-es/commands/DescribeHarvestJobCommand.js +2 -14
  11. package/dist-es/commands/DescribeOriginEndpointCommand.js +2 -14
  12. package/dist-es/commands/ListChannelsCommand.js +2 -14
  13. package/dist-es/commands/ListHarvestJobsCommand.js +2 -14
  14. package/dist-es/commands/ListOriginEndpointsCommand.js +2 -14
  15. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  16. package/dist-es/commands/RotateChannelCredentialsCommand.js +2 -14
  17. package/dist-es/commands/RotateIngestEndpointCredentialsCommand.js +2 -14
  18. package/dist-es/commands/TagResourceCommand.js +2 -14
  19. package/dist-es/commands/UntagResourceCommand.js +2 -14
  20. package/dist-es/commands/UpdateChannelCommand.js +2 -14
  21. package/dist-es/commands/UpdateOriginEndpointCommand.js +2 -14
  22. package/dist-es/index.js +1 -0
  23. package/dist-es/runtimeConfig.browser.js +0 -2
  24. package/dist-es/runtimeConfig.js +1 -2
  25. package/dist-es/runtimeConfig.native.js +0 -2
  26. package/dist-es/runtimeConfig.shared.js +2 -0
  27. package/dist-types/commandBuilder.d.ts +18 -0
  28. package/dist-types/commands/ConfigureLogsCommand.d.ts +3 -8
  29. package/dist-types/commands/CreateChannelCommand.d.ts +3 -8
  30. package/dist-types/commands/CreateHarvestJobCommand.d.ts +3 -8
  31. package/dist-types/commands/CreateOriginEndpointCommand.d.ts +3 -8
  32. package/dist-types/commands/DeleteChannelCommand.d.ts +3 -8
  33. package/dist-types/commands/DeleteOriginEndpointCommand.d.ts +3 -8
  34. package/dist-types/commands/DescribeChannelCommand.d.ts +3 -8
  35. package/dist-types/commands/DescribeHarvestJobCommand.d.ts +3 -8
  36. package/dist-types/commands/DescribeOriginEndpointCommand.d.ts +3 -8
  37. package/dist-types/commands/ListChannelsCommand.d.ts +3 -8
  38. package/dist-types/commands/ListHarvestJobsCommand.d.ts +3 -8
  39. package/dist-types/commands/ListOriginEndpointsCommand.d.ts +3 -8
  40. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  41. package/dist-types/commands/RotateChannelCredentialsCommand.d.ts +3 -8
  42. package/dist-types/commands/RotateIngestEndpointCredentialsCommand.d.ts +3 -8
  43. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  44. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  45. package/dist-types/commands/UpdateChannelCommand.d.ts +3 -8
  46. package/dist-types/commands/UpdateOriginEndpointCommand.d.ts +3 -8
  47. package/dist-types/index.d.ts +1 -0
  48. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  49. package/dist-types/runtimeConfig.d.ts +1 -1
  50. package/dist-types/runtimeConfig.native.d.ts +1 -1
  51. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  52. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  53. package/dist-types/ts3.4/commands/ConfigureLogsCommand.d.ts +7 -16
  54. package/dist-types/ts3.4/commands/CreateChannelCommand.d.ts +7 -16
  55. package/dist-types/ts3.4/commands/CreateHarvestJobCommand.d.ts +7 -16
  56. package/dist-types/ts3.4/commands/CreateOriginEndpointCommand.d.ts +7 -16
  57. package/dist-types/ts3.4/commands/DeleteChannelCommand.d.ts +7 -16
  58. package/dist-types/ts3.4/commands/DeleteOriginEndpointCommand.d.ts +7 -16
  59. package/dist-types/ts3.4/commands/DescribeChannelCommand.d.ts +7 -16
  60. package/dist-types/ts3.4/commands/DescribeHarvestJobCommand.d.ts +7 -16
  61. package/dist-types/ts3.4/commands/DescribeOriginEndpointCommand.d.ts +7 -16
  62. package/dist-types/ts3.4/commands/ListChannelsCommand.d.ts +7 -16
  63. package/dist-types/ts3.4/commands/ListHarvestJobsCommand.d.ts +7 -16
  64. package/dist-types/ts3.4/commands/ListOriginEndpointsCommand.d.ts +7 -16
  65. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  66. package/dist-types/ts3.4/commands/RotateChannelCredentialsCommand.d.ts +7 -16
  67. package/dist-types/ts3.4/commands/RotateIngestEndpointCredentialsCommand.d.ts +7 -16
  68. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  69. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  70. package/dist-types/ts3.4/commands/UpdateChannelCommand.d.ts +7 -16
  71. package/dist-types/ts3.4/commands/UpdateOriginEndpointCommand.d.ts +7 -16
  72. package/dist-types/ts3.4/index.d.ts +1 -0
  73. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  74. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  75. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  76. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  77. package/package.json +8 -10
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
7
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
10
11
  const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
12
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
13
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
- const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
15
  const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
16
  const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultMediaPackageHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
20
  return {
@@ -67,7 +69,7 @@ const commonParams = {
67
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
68
70
  };
69
71
 
70
- var version = "3.1075.0";
72
+ var version = "3.1077.0";
71
73
  var packageInfo = {
72
74
  version: version};
73
75
 
@@ -921,6 +923,7 @@ const getRuntimeConfig$1 = (config) => {
921
923
  serviceTarget: "MediaPackage",
922
924
  },
923
925
  serviceId: config?.serviceId ?? "MediaPackage",
926
+ sha256: config?.sha256 ?? Sha256,
924
927
  urlParser: config?.urlParser ?? parseUrl,
925
928
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
926
929
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -954,7 +957,6 @@ const getRuntimeConfig = (config) => {
954
957
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
955
958
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
956
959
  }, config),
957
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
958
960
  streamCollector: config?.streamCollector ?? streamCollector,
959
961
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
960
962
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1042,232 +1044,65 @@ class MediaPackageClient extends Client {
1042
1044
  }
1043
1045
  }
1044
1046
 
1045
- class ConfigureLogsCommand extends Command
1046
- .classBuilder()
1047
- .ep(commonParams)
1048
- .m(function (Command, cs, config, o) {
1049
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1050
- })
1051
- .s("MediaPackage", "ConfigureLogs", {})
1052
- .n("MediaPackageClient", "ConfigureLogsCommand")
1053
- .sc(ConfigureLogs$)
1054
- .build() {
1047
+ const command = makeBuilder(commonParams, "MediaPackage", "MediaPackageClient", getEndpointPlugin);
1048
+ const _ep0 = {};
1049
+ const _mw0 = (Command, cs, config, o) => [];
1050
+
1051
+ class ConfigureLogsCommand extends command(_ep0, _mw0, "ConfigureLogs", ConfigureLogs$) {
1055
1052
  }
1056
1053
 
1057
- class CreateChannelCommand extends Command
1058
- .classBuilder()
1059
- .ep(commonParams)
1060
- .m(function (Command, cs, config, o) {
1061
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1062
- })
1063
- .s("MediaPackage", "CreateChannel", {})
1064
- .n("MediaPackageClient", "CreateChannelCommand")
1065
- .sc(CreateChannel$)
1066
- .build() {
1054
+ class CreateChannelCommand extends command(_ep0, _mw0, "CreateChannel", CreateChannel$) {
1067
1055
  }
1068
1056
 
1069
- class CreateHarvestJobCommand extends Command
1070
- .classBuilder()
1071
- .ep(commonParams)
1072
- .m(function (Command, cs, config, o) {
1073
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1074
- })
1075
- .s("MediaPackage", "CreateHarvestJob", {})
1076
- .n("MediaPackageClient", "CreateHarvestJobCommand")
1077
- .sc(CreateHarvestJob$)
1078
- .build() {
1057
+ class CreateHarvestJobCommand extends command(_ep0, _mw0, "CreateHarvestJob", CreateHarvestJob$) {
1079
1058
  }
1080
1059
 
1081
- class CreateOriginEndpointCommand extends Command
1082
- .classBuilder()
1083
- .ep(commonParams)
1084
- .m(function (Command, cs, config, o) {
1085
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1086
- })
1087
- .s("MediaPackage", "CreateOriginEndpoint", {})
1088
- .n("MediaPackageClient", "CreateOriginEndpointCommand")
1089
- .sc(CreateOriginEndpoint$)
1090
- .build() {
1060
+ class CreateOriginEndpointCommand extends command(_ep0, _mw0, "CreateOriginEndpoint", CreateOriginEndpoint$) {
1091
1061
  }
1092
1062
 
1093
- class DeleteChannelCommand extends Command
1094
- .classBuilder()
1095
- .ep(commonParams)
1096
- .m(function (Command, cs, config, o) {
1097
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1098
- })
1099
- .s("MediaPackage", "DeleteChannel", {})
1100
- .n("MediaPackageClient", "DeleteChannelCommand")
1101
- .sc(DeleteChannel$)
1102
- .build() {
1063
+ class DeleteChannelCommand extends command(_ep0, _mw0, "DeleteChannel", DeleteChannel$) {
1103
1064
  }
1104
1065
 
1105
- class DeleteOriginEndpointCommand extends Command
1106
- .classBuilder()
1107
- .ep(commonParams)
1108
- .m(function (Command, cs, config, o) {
1109
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1110
- })
1111
- .s("MediaPackage", "DeleteOriginEndpoint", {})
1112
- .n("MediaPackageClient", "DeleteOriginEndpointCommand")
1113
- .sc(DeleteOriginEndpoint$)
1114
- .build() {
1066
+ class DeleteOriginEndpointCommand extends command(_ep0, _mw0, "DeleteOriginEndpoint", DeleteOriginEndpoint$) {
1115
1067
  }
1116
1068
 
1117
- class DescribeChannelCommand extends Command
1118
- .classBuilder()
1119
- .ep(commonParams)
1120
- .m(function (Command, cs, config, o) {
1121
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1122
- })
1123
- .s("MediaPackage", "DescribeChannel", {})
1124
- .n("MediaPackageClient", "DescribeChannelCommand")
1125
- .sc(DescribeChannel$)
1126
- .build() {
1069
+ class DescribeChannelCommand extends command(_ep0, _mw0, "DescribeChannel", DescribeChannel$) {
1127
1070
  }
1128
1071
 
1129
- class DescribeHarvestJobCommand extends Command
1130
- .classBuilder()
1131
- .ep(commonParams)
1132
- .m(function (Command, cs, config, o) {
1133
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1134
- })
1135
- .s("MediaPackage", "DescribeHarvestJob", {})
1136
- .n("MediaPackageClient", "DescribeHarvestJobCommand")
1137
- .sc(DescribeHarvestJob$)
1138
- .build() {
1072
+ class DescribeHarvestJobCommand extends command(_ep0, _mw0, "DescribeHarvestJob", DescribeHarvestJob$) {
1139
1073
  }
1140
1074
 
1141
- class DescribeOriginEndpointCommand extends Command
1142
- .classBuilder()
1143
- .ep(commonParams)
1144
- .m(function (Command, cs, config, o) {
1145
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1146
- })
1147
- .s("MediaPackage", "DescribeOriginEndpoint", {})
1148
- .n("MediaPackageClient", "DescribeOriginEndpointCommand")
1149
- .sc(DescribeOriginEndpoint$)
1150
- .build() {
1075
+ class DescribeOriginEndpointCommand extends command(_ep0, _mw0, "DescribeOriginEndpoint", DescribeOriginEndpoint$) {
1151
1076
  }
1152
1077
 
1153
- class ListChannelsCommand extends Command
1154
- .classBuilder()
1155
- .ep(commonParams)
1156
- .m(function (Command, cs, config, o) {
1157
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1158
- })
1159
- .s("MediaPackage", "ListChannels", {})
1160
- .n("MediaPackageClient", "ListChannelsCommand")
1161
- .sc(ListChannels$)
1162
- .build() {
1078
+ class ListChannelsCommand extends command(_ep0, _mw0, "ListChannels", ListChannels$) {
1163
1079
  }
1164
1080
 
1165
- class ListHarvestJobsCommand extends Command
1166
- .classBuilder()
1167
- .ep(commonParams)
1168
- .m(function (Command, cs, config, o) {
1169
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1170
- })
1171
- .s("MediaPackage", "ListHarvestJobs", {})
1172
- .n("MediaPackageClient", "ListHarvestJobsCommand")
1173
- .sc(ListHarvestJobs$)
1174
- .build() {
1081
+ class ListHarvestJobsCommand extends command(_ep0, _mw0, "ListHarvestJobs", ListHarvestJobs$) {
1175
1082
  }
1176
1083
 
1177
- class ListOriginEndpointsCommand extends Command
1178
- .classBuilder()
1179
- .ep(commonParams)
1180
- .m(function (Command, cs, config, o) {
1181
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1182
- })
1183
- .s("MediaPackage", "ListOriginEndpoints", {})
1184
- .n("MediaPackageClient", "ListOriginEndpointsCommand")
1185
- .sc(ListOriginEndpoints$)
1186
- .build() {
1084
+ class ListOriginEndpointsCommand extends command(_ep0, _mw0, "ListOriginEndpoints", ListOriginEndpoints$) {
1187
1085
  }
1188
1086
 
1189
- class ListTagsForResourceCommand extends Command
1190
- .classBuilder()
1191
- .ep(commonParams)
1192
- .m(function (Command, cs, config, o) {
1193
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1194
- })
1195
- .s("MediaPackage", "ListTagsForResource", {})
1196
- .n("MediaPackageClient", "ListTagsForResourceCommand")
1197
- .sc(ListTagsForResource$)
1198
- .build() {
1087
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
1199
1088
  }
1200
1089
 
1201
- class RotateChannelCredentialsCommand extends Command
1202
- .classBuilder()
1203
- .ep(commonParams)
1204
- .m(function (Command, cs, config, o) {
1205
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1206
- })
1207
- .s("MediaPackage", "RotateChannelCredentials", {})
1208
- .n("MediaPackageClient", "RotateChannelCredentialsCommand")
1209
- .sc(RotateChannelCredentials$)
1210
- .build() {
1090
+ class RotateChannelCredentialsCommand extends command(_ep0, _mw0, "RotateChannelCredentials", RotateChannelCredentials$) {
1211
1091
  }
1212
1092
 
1213
- class RotateIngestEndpointCredentialsCommand extends Command
1214
- .classBuilder()
1215
- .ep(commonParams)
1216
- .m(function (Command, cs, config, o) {
1217
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1218
- })
1219
- .s("MediaPackage", "RotateIngestEndpointCredentials", {})
1220
- .n("MediaPackageClient", "RotateIngestEndpointCredentialsCommand")
1221
- .sc(RotateIngestEndpointCredentials$)
1222
- .build() {
1093
+ class RotateIngestEndpointCredentialsCommand extends command(_ep0, _mw0, "RotateIngestEndpointCredentials", RotateIngestEndpointCredentials$) {
1223
1094
  }
1224
1095
 
1225
- class TagResourceCommand extends Command
1226
- .classBuilder()
1227
- .ep(commonParams)
1228
- .m(function (Command, cs, config, o) {
1229
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1230
- })
1231
- .s("MediaPackage", "TagResource", {})
1232
- .n("MediaPackageClient", "TagResourceCommand")
1233
- .sc(TagResource$)
1234
- .build() {
1096
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
1235
1097
  }
1236
1098
 
1237
- class UntagResourceCommand extends Command
1238
- .classBuilder()
1239
- .ep(commonParams)
1240
- .m(function (Command, cs, config, o) {
1241
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1242
- })
1243
- .s("MediaPackage", "UntagResource", {})
1244
- .n("MediaPackageClient", "UntagResourceCommand")
1245
- .sc(UntagResource$)
1246
- .build() {
1099
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
1247
1100
  }
1248
1101
 
1249
- class UpdateChannelCommand extends Command
1250
- .classBuilder()
1251
- .ep(commonParams)
1252
- .m(function (Command, cs, config, o) {
1253
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1254
- })
1255
- .s("MediaPackage", "UpdateChannel", {})
1256
- .n("MediaPackageClient", "UpdateChannelCommand")
1257
- .sc(UpdateChannel$)
1258
- .build() {
1102
+ class UpdateChannelCommand extends command(_ep0, _mw0, "UpdateChannel", UpdateChannel$) {
1259
1103
  }
1260
1104
 
1261
- class UpdateOriginEndpointCommand extends Command
1262
- .classBuilder()
1263
- .ep(commonParams)
1264
- .m(function (Command, cs, config, o) {
1265
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1266
- })
1267
- .s("MediaPackage", "UpdateOriginEndpoint", {})
1268
- .n("MediaPackageClient", "UpdateOriginEndpointCommand")
1269
- .sc(UpdateOriginEndpoint$)
1270
- .build() {
1105
+ class UpdateOriginEndpointCommand extends command(_ep0, _mw0, "UpdateOriginEndpoint", UpdateOriginEndpoint$) {
1271
1106
  }
1272
1107
 
1273
1108
  const paginateListChannels = createPaginator(MediaPackageClient, ListChannelsCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,6 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "MediaPackage", "MediaPackageClient", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ConfigureLogs$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ConfigureLogsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("MediaPackage", "ConfigureLogs", {})
13
- .n("MediaPackageClient", "ConfigureLogsCommand")
14
- .sc(ConfigureLogs$)
15
- .build() {
3
+ export class ConfigureLogsCommand extends command(_ep0, _mw0, "ConfigureLogs", ConfigureLogs$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateChannel$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateChannelCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("MediaPackage", "CreateChannel", {})
13
- .n("MediaPackageClient", "CreateChannelCommand")
14
- .sc(CreateChannel$)
15
- .build() {
3
+ export class CreateChannelCommand extends command(_ep0, _mw0, "CreateChannel", CreateChannel$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateHarvestJob$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateHarvestJobCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("MediaPackage", "CreateHarvestJob", {})
13
- .n("MediaPackageClient", "CreateHarvestJobCommand")
14
- .sc(CreateHarvestJob$)
15
- .build() {
3
+ export class CreateHarvestJobCommand extends command(_ep0, _mw0, "CreateHarvestJob", CreateHarvestJob$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateOriginEndpoint$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateOriginEndpointCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("MediaPackage", "CreateOriginEndpoint", {})
13
- .n("MediaPackageClient", "CreateOriginEndpointCommand")
14
- .sc(CreateOriginEndpoint$)
15
- .build() {
3
+ export class CreateOriginEndpointCommand extends command(_ep0, _mw0, "CreateOriginEndpoint", CreateOriginEndpoint$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DeleteChannel$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteChannelCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("MediaPackage", "DeleteChannel", {})
13
- .n("MediaPackageClient", "DeleteChannelCommand")
14
- .sc(DeleteChannel$)
15
- .build() {
3
+ export class DeleteChannelCommand extends command(_ep0, _mw0, "DeleteChannel", DeleteChannel$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DeleteOriginEndpoint$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteOriginEndpointCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("MediaPackage", "DeleteOriginEndpoint", {})
13
- .n("MediaPackageClient", "DeleteOriginEndpointCommand")
14
- .sc(DeleteOriginEndpoint$)
15
- .build() {
3
+ export class DeleteOriginEndpointCommand extends command(_ep0, _mw0, "DeleteOriginEndpoint", DeleteOriginEndpoint$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DescribeChannel$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeChannelCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("MediaPackage", "DescribeChannel", {})
13
- .n("MediaPackageClient", "DescribeChannelCommand")
14
- .sc(DescribeChannel$)
15
- .build() {
3
+ export class DescribeChannelCommand extends command(_ep0, _mw0, "DescribeChannel", DescribeChannel$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DescribeHarvestJob$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeHarvestJobCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("MediaPackage", "DescribeHarvestJob", {})
13
- .n("MediaPackageClient", "DescribeHarvestJobCommand")
14
- .sc(DescribeHarvestJob$)
15
- .build() {
3
+ export class DescribeHarvestJobCommand extends command(_ep0, _mw0, "DescribeHarvestJob", DescribeHarvestJob$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DescribeOriginEndpoint$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeOriginEndpointCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("MediaPackage", "DescribeOriginEndpoint", {})
13
- .n("MediaPackageClient", "DescribeOriginEndpointCommand")
14
- .sc(DescribeOriginEndpoint$)
15
- .build() {
3
+ export class DescribeOriginEndpointCommand extends command(_ep0, _mw0, "DescribeOriginEndpoint", DescribeOriginEndpoint$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListChannels$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListChannelsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("MediaPackage", "ListChannels", {})
13
- .n("MediaPackageClient", "ListChannelsCommand")
14
- .sc(ListChannels$)
15
- .build() {
3
+ export class ListChannelsCommand extends command(_ep0, _mw0, "ListChannels", ListChannels$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListHarvestJobs$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListHarvestJobsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("MediaPackage", "ListHarvestJobs", {})
13
- .n("MediaPackageClient", "ListHarvestJobsCommand")
14
- .sc(ListHarvestJobs$)
15
- .build() {
3
+ export class ListHarvestJobsCommand extends command(_ep0, _mw0, "ListHarvestJobs", ListHarvestJobs$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListOriginEndpoints$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListOriginEndpointsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("MediaPackage", "ListOriginEndpoints", {})
13
- .n("MediaPackageClient", "ListOriginEndpointsCommand")
14
- .sc(ListOriginEndpoints$)
15
- .build() {
3
+ export class ListOriginEndpointsCommand extends command(_ep0, _mw0, "ListOriginEndpoints", ListOriginEndpoints$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListTagsForResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListTagsForResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("MediaPackage", "ListTagsForResource", {})
13
- .n("MediaPackageClient", "ListTagsForResourceCommand")
14
- .sc(ListTagsForResource$)
15
- .build() {
3
+ export class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { RotateChannelCredentials$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class RotateChannelCredentialsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("MediaPackage", "RotateChannelCredentials", {})
13
- .n("MediaPackageClient", "RotateChannelCredentialsCommand")
14
- .sc(RotateChannelCredentials$)
15
- .build() {
3
+ export class RotateChannelCredentialsCommand extends command(_ep0, _mw0, "RotateChannelCredentials", RotateChannelCredentials$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { RotateIngestEndpointCredentials$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class RotateIngestEndpointCredentialsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("MediaPackage", "RotateIngestEndpointCredentials", {})
13
- .n("MediaPackageClient", "RotateIngestEndpointCredentialsCommand")
14
- .sc(RotateIngestEndpointCredentials$)
15
- .build() {
3
+ export class RotateIngestEndpointCredentialsCommand extends command(_ep0, _mw0, "RotateIngestEndpointCredentials", RotateIngestEndpointCredentials$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { TagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class TagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("MediaPackage", "TagResource", {})
13
- .n("MediaPackageClient", "TagResourceCommand")
14
- .sc(TagResource$)
15
- .build() {
3
+ export class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UntagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UntagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("MediaPackage", "UntagResource", {})
13
- .n("MediaPackageClient", "UntagResourceCommand")
14
- .sc(UntagResource$)
15
- .build() {
3
+ export class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
16
4
  }