@aws-sdk/client-mediapackage 3.52.0 → 3.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-mediapackage
package/dist-cjs/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MediaPackageServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./MediaPackage"), exports);
5
6
  tslib_1.__exportStar(require("./MediaPackageClient"), exports);
6
7
  tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./models"), exports);
8
9
  tslib_1.__exportStar(require("./pagination"), exports);
10
+ var MediaPackageServiceException_1 = require("./models/MediaPackageServiceException");
11
+ Object.defineProperty(exports, "MediaPackageServiceException", { enumerable: true, get: function () { return MediaPackageServiceException_1.MediaPackageServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MediaPackageServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class MediaPackageServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, MediaPackageServiceException.prototype);
9
+ }
10
+ }
11
+ exports.MediaPackageServiceException = MediaPackageServiceException;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeleteOriginEndpointResponse = exports.DeleteOriginEndpointRequest = exports.DeleteChannelResponse = exports.DeleteChannelRequest = exports.CreateOriginEndpointResponse = exports.CreateOriginEndpointRequest = exports.CreateHarvestJobResponse = exports.CreateHarvestJobRequest = exports.CreateChannelResponse = exports.CreateChannelRequest = exports.ConfigureLogsResponse = exports.ConfigureLogsRequest = exports.CmafPackageCreateOrUpdateParameters = exports.OriginEndpoint = exports.Origination = exports.MssPackage = exports.MssEncryption = exports.HlsPackage = exports.HlsEncryption = exports.EncryptionMethod = exports.DashPackage = exports.UtcTiming = exports.SegmentTemplateFormat = exports.Profile = exports.ManifestLayout = exports.DashEncryption = exports.CmafPackage = exports.StreamSelection = exports.StreamOrder = exports.CmafEncryption = exports.SpekeKeyProvider = exports.EncryptionContractConfiguration = exports.PresetSpeke20Video = exports.PresetSpeke20Audio = exports.Authorization = exports.HlsManifestCreateOrUpdateParameters = exports.AdsOnDeliveryRestrictions = exports.HlsManifest = exports.PlaylistType = exports.AdMarkers = exports.HarvestJob = exports.Status = exports.S3Destination = exports.Channel = exports.IngressAccessLogs = exports.HlsIngest = exports.IngestEndpoint = exports.EgressAccessLogs = exports.__PeriodTriggersElement = exports.__AdTriggersElement = void 0;
4
- exports.UpdateOriginEndpointResponse = exports.UpdateOriginEndpointRequest = exports.UpdateChannelResponse = exports.UpdateChannelRequest = exports.UntagResourceRequest = exports.TagResourceRequest = exports.RotateIngestEndpointCredentialsResponse = exports.RotateIngestEndpointCredentialsRequest = exports.RotateChannelCredentialsResponse = exports.RotateChannelCredentialsRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListOriginEndpointsResponse = exports.ListOriginEndpointsRequest = exports.ListHarvestJobsResponse = exports.ListHarvestJobsRequest = exports.ListChannelsResponse = exports.ListChannelsRequest = exports.DescribeOriginEndpointResponse = exports.DescribeOriginEndpointRequest = exports.DescribeHarvestJobResponse = exports.DescribeHarvestJobRequest = exports.DescribeChannelResponse = exports.DescribeChannelRequest = void 0;
3
+ exports.CreateHarvestJobResponse = exports.CreateHarvestJobRequest = exports.CreateChannelResponse = exports.CreateChannelRequest = exports.UnprocessableEntityException = exports.TooManyRequestsException = exports.ServiceUnavailableException = exports.NotFoundException = exports.InternalServerErrorException = exports.ForbiddenException = exports.ConfigureLogsResponse = exports.ConfigureLogsRequest = exports.CmafPackageCreateOrUpdateParameters = exports.OriginEndpoint = exports.Origination = exports.MssPackage = exports.MssEncryption = exports.HlsPackage = exports.HlsEncryption = exports.EncryptionMethod = exports.DashPackage = exports.UtcTiming = exports.SegmentTemplateFormat = exports.Profile = exports.ManifestLayout = exports.DashEncryption = exports.CmafPackage = exports.StreamSelection = exports.StreamOrder = exports.CmafEncryption = exports.SpekeKeyProvider = exports.EncryptionContractConfiguration = exports.PresetSpeke20Video = exports.PresetSpeke20Audio = exports.Authorization = exports.HlsManifestCreateOrUpdateParameters = exports.AdsOnDeliveryRestrictions = exports.HlsManifest = exports.PlaylistType = exports.AdMarkers = exports.HarvestJob = exports.Status = exports.S3Destination = exports.Channel = exports.IngressAccessLogs = exports.HlsIngest = exports.IngestEndpoint = exports.EgressAccessLogs = exports.__PeriodTriggersElement = exports.__AdTriggersElement = void 0;
4
+ exports.UpdateOriginEndpointResponse = exports.UpdateOriginEndpointRequest = exports.UpdateChannelResponse = exports.UpdateChannelRequest = exports.UntagResourceRequest = exports.TagResourceRequest = exports.RotateIngestEndpointCredentialsResponse = exports.RotateIngestEndpointCredentialsRequest = exports.RotateChannelCredentialsResponse = exports.RotateChannelCredentialsRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListOriginEndpointsResponse = exports.ListOriginEndpointsRequest = exports.ListHarvestJobsResponse = exports.ListHarvestJobsRequest = exports.ListChannelsResponse = exports.ListChannelsRequest = exports.DescribeOriginEndpointResponse = exports.DescribeOriginEndpointRequest = exports.DescribeHarvestJobResponse = exports.DescribeHarvestJobRequest = exports.DescribeChannelResponse = exports.DescribeChannelRequest = exports.DeleteOriginEndpointResponse = exports.DeleteOriginEndpointRequest = exports.DeleteChannelResponse = exports.DeleteChannelRequest = exports.CreateOriginEndpointResponse = exports.CreateOriginEndpointRequest = void 0;
5
+ const MediaPackageServiceException_1 = require("./MediaPackageServiceException");
5
6
  var __AdTriggersElement;
6
7
  (function (__AdTriggersElement) {
7
8
  __AdTriggersElement["BREAK"] = "BREAK";
@@ -239,6 +240,90 @@ var ConfigureLogsResponse;
239
240
  ...obj,
240
241
  });
241
242
  })(ConfigureLogsResponse = exports.ConfigureLogsResponse || (exports.ConfigureLogsResponse = {}));
243
+ class ForbiddenException extends MediaPackageServiceException_1.MediaPackageServiceException {
244
+ constructor(opts) {
245
+ super({
246
+ name: "ForbiddenException",
247
+ $fault: "client",
248
+ ...opts,
249
+ });
250
+ this.name = "ForbiddenException";
251
+ this.$fault = "client";
252
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
253
+ this.Message = opts.Message;
254
+ }
255
+ }
256
+ exports.ForbiddenException = ForbiddenException;
257
+ class InternalServerErrorException extends MediaPackageServiceException_1.MediaPackageServiceException {
258
+ constructor(opts) {
259
+ super({
260
+ name: "InternalServerErrorException",
261
+ $fault: "server",
262
+ ...opts,
263
+ });
264
+ this.name = "InternalServerErrorException";
265
+ this.$fault = "server";
266
+ Object.setPrototypeOf(this, InternalServerErrorException.prototype);
267
+ this.Message = opts.Message;
268
+ }
269
+ }
270
+ exports.InternalServerErrorException = InternalServerErrorException;
271
+ class NotFoundException extends MediaPackageServiceException_1.MediaPackageServiceException {
272
+ constructor(opts) {
273
+ super({
274
+ name: "NotFoundException",
275
+ $fault: "client",
276
+ ...opts,
277
+ });
278
+ this.name = "NotFoundException";
279
+ this.$fault = "client";
280
+ Object.setPrototypeOf(this, NotFoundException.prototype);
281
+ this.Message = opts.Message;
282
+ }
283
+ }
284
+ exports.NotFoundException = NotFoundException;
285
+ class ServiceUnavailableException extends MediaPackageServiceException_1.MediaPackageServiceException {
286
+ constructor(opts) {
287
+ super({
288
+ name: "ServiceUnavailableException",
289
+ $fault: "server",
290
+ ...opts,
291
+ });
292
+ this.name = "ServiceUnavailableException";
293
+ this.$fault = "server";
294
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
295
+ this.Message = opts.Message;
296
+ }
297
+ }
298
+ exports.ServiceUnavailableException = ServiceUnavailableException;
299
+ class TooManyRequestsException extends MediaPackageServiceException_1.MediaPackageServiceException {
300
+ constructor(opts) {
301
+ super({
302
+ name: "TooManyRequestsException",
303
+ $fault: "client",
304
+ ...opts,
305
+ });
306
+ this.name = "TooManyRequestsException";
307
+ this.$fault = "client";
308
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
309
+ this.Message = opts.Message;
310
+ }
311
+ }
312
+ exports.TooManyRequestsException = TooManyRequestsException;
313
+ class UnprocessableEntityException extends MediaPackageServiceException_1.MediaPackageServiceException {
314
+ constructor(opts) {
315
+ super({
316
+ name: "UnprocessableEntityException",
317
+ $fault: "client",
318
+ ...opts,
319
+ });
320
+ this.name = "UnprocessableEntityException";
321
+ this.$fault = "client";
322
+ Object.setPrototypeOf(this, UnprocessableEntityException.prototype);
323
+ this.Message = opts.Message;
324
+ }
325
+ }
326
+ exports.UnprocessableEntityException = UnprocessableEntityException;
242
327
  var CreateChannelRequest;
243
328
  (function (CreateChannelRequest) {
244
329
  CreateChannelRequest.filterSensitiveLog = (obj) => ({