@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.
@@ -3,3 +3,4 @@ export * from "./MediaPackageClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { MediaPackageServiceException } from "./models/MediaPackageServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from MediaPackage service.
4
+ */
5
+ export declare class MediaPackageServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { MediaPackageServiceException as __BaseException } from "./MediaPackageServiceException";
2
3
  export declare enum __AdTriggersElement {
3
4
  BREAK = "BREAK",
4
5
  DISTRIBUTOR_ADVERTISEMENT = "DISTRIBUTOR_ADVERTISEMENT",
@@ -998,50 +999,74 @@ export declare namespace ConfigureLogsResponse {
998
999
  /**
999
1000
  * The client is not authorized to access the requested resource.
1000
1001
  */
1001
- export interface ForbiddenException extends __SmithyException, $MetadataBearer {
1002
- name: "ForbiddenException";
1003
- $fault: "client";
1002
+ export declare class ForbiddenException extends __BaseException {
1003
+ readonly name: "ForbiddenException";
1004
+ readonly $fault: "client";
1004
1005
  Message?: string;
1006
+ /**
1007
+ * @internal
1008
+ */
1009
+ constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
1005
1010
  }
1006
1011
  /**
1007
1012
  * An unexpected error occurred.
1008
1013
  */
1009
- export interface InternalServerErrorException extends __SmithyException, $MetadataBearer {
1010
- name: "InternalServerErrorException";
1011
- $fault: "server";
1014
+ export declare class InternalServerErrorException extends __BaseException {
1015
+ readonly name: "InternalServerErrorException";
1016
+ readonly $fault: "server";
1012
1017
  Message?: string;
1018
+ /**
1019
+ * @internal
1020
+ */
1021
+ constructor(opts: __ExceptionOptionType<InternalServerErrorException, __BaseException>);
1013
1022
  }
1014
1023
  /**
1015
1024
  * The requested resource does not exist.
1016
1025
  */
1017
- export interface NotFoundException extends __SmithyException, $MetadataBearer {
1018
- name: "NotFoundException";
1019
- $fault: "client";
1026
+ export declare class NotFoundException extends __BaseException {
1027
+ readonly name: "NotFoundException";
1028
+ readonly $fault: "client";
1020
1029
  Message?: string;
1030
+ /**
1031
+ * @internal
1032
+ */
1033
+ constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
1021
1034
  }
1022
1035
  /**
1023
1036
  * An unexpected error occurred.
1024
1037
  */
1025
- export interface ServiceUnavailableException extends __SmithyException, $MetadataBearer {
1026
- name: "ServiceUnavailableException";
1027
- $fault: "server";
1038
+ export declare class ServiceUnavailableException extends __BaseException {
1039
+ readonly name: "ServiceUnavailableException";
1040
+ readonly $fault: "server";
1028
1041
  Message?: string;
1042
+ /**
1043
+ * @internal
1044
+ */
1045
+ constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
1029
1046
  }
1030
1047
  /**
1031
1048
  * The client has exceeded their resource or throttling limits.
1032
1049
  */
1033
- export interface TooManyRequestsException extends __SmithyException, $MetadataBearer {
1034
- name: "TooManyRequestsException";
1035
- $fault: "client";
1050
+ export declare class TooManyRequestsException extends __BaseException {
1051
+ readonly name: "TooManyRequestsException";
1052
+ readonly $fault: "client";
1036
1053
  Message?: string;
1054
+ /**
1055
+ * @internal
1056
+ */
1057
+ constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
1037
1058
  }
1038
1059
  /**
1039
1060
  * The parameters sent in the request are not valid.
1040
1061
  */
1041
- export interface UnprocessableEntityException extends __SmithyException, $MetadataBearer {
1042
- name: "UnprocessableEntityException";
1043
- $fault: "client";
1062
+ export declare class UnprocessableEntityException extends __BaseException {
1063
+ readonly name: "UnprocessableEntityException";
1064
+ readonly $fault: "client";
1044
1065
  Message?: string;
1066
+ /**
1067
+ * @internal
1068
+ */
1069
+ constructor(opts: __ExceptionOptionType<UnprocessableEntityException, __BaseException>);
1045
1070
  }
1046
1071
  /**
1047
1072
  * A new Channel configuration.
@@ -3,3 +3,4 @@ export * from "./MediaPackageClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { MediaPackageServiceException } from "./models/MediaPackageServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class MediaPackageServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { MediaPackageServiceException as __BaseException } from "./MediaPackageServiceException";
2
3
  export declare enum __AdTriggersElement {
3
4
  BREAK = "BREAK",
4
5
  DISTRIBUTOR_ADVERTISEMENT = "DISTRIBUTOR_ADVERTISEMENT",
@@ -520,40 +521,52 @@ export declare namespace ConfigureLogsResponse {
520
521
  const filterSensitiveLog: (obj: ConfigureLogsResponse) => any;
521
522
  }
522
523
 
523
- export interface ForbiddenException extends __SmithyException, $MetadataBearer {
524
- name: "ForbiddenException";
525
- $fault: "client";
524
+ export declare class ForbiddenException extends __BaseException {
525
+ readonly name: "ForbiddenException";
526
+ readonly $fault: "client";
526
527
  Message?: string;
528
+
529
+ constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
527
530
  }
528
531
 
529
- export interface InternalServerErrorException extends __SmithyException, $MetadataBearer {
530
- name: "InternalServerErrorException";
531
- $fault: "server";
532
+ export declare class InternalServerErrorException extends __BaseException {
533
+ readonly name: "InternalServerErrorException";
534
+ readonly $fault: "server";
532
535
  Message?: string;
536
+
537
+ constructor(opts: __ExceptionOptionType<InternalServerErrorException, __BaseException>);
533
538
  }
534
539
 
535
- export interface NotFoundException extends __SmithyException, $MetadataBearer {
536
- name: "NotFoundException";
537
- $fault: "client";
540
+ export declare class NotFoundException extends __BaseException {
541
+ readonly name: "NotFoundException";
542
+ readonly $fault: "client";
538
543
  Message?: string;
544
+
545
+ constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
539
546
  }
540
547
 
541
- export interface ServiceUnavailableException extends __SmithyException, $MetadataBearer {
542
- name: "ServiceUnavailableException";
543
- $fault: "server";
548
+ export declare class ServiceUnavailableException extends __BaseException {
549
+ readonly name: "ServiceUnavailableException";
550
+ readonly $fault: "server";
544
551
  Message?: string;
552
+
553
+ constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
545
554
  }
546
555
 
547
- export interface TooManyRequestsException extends __SmithyException, $MetadataBearer {
548
- name: "TooManyRequestsException";
549
- $fault: "client";
556
+ export declare class TooManyRequestsException extends __BaseException {
557
+ readonly name: "TooManyRequestsException";
558
+ readonly $fault: "client";
550
559
  Message?: string;
560
+
561
+ constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
551
562
  }
552
563
 
553
- export interface UnprocessableEntityException extends __SmithyException, $MetadataBearer {
554
- name: "UnprocessableEntityException";
555
- $fault: "client";
564
+ export declare class UnprocessableEntityException extends __BaseException {
565
+ readonly name: "UnprocessableEntityException";
566
+ readonly $fault: "client";
556
567
  Message?: string;
568
+
569
+ constructor(opts: __ExceptionOptionType<UnprocessableEntityException, __BaseException>);
557
570
  }
558
571
 
559
572
  export interface CreateChannelRequest {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-mediapackage",
3
3
  "description": "AWS SDK for JavaScript Mediapackage Client for Node.js, Browser and React Native",
4
- "version": "3.52.0",
4
+ "version": "3.53.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,34 +18,34 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.52.0",
22
- "@aws-sdk/config-resolver": "3.52.0",
23
- "@aws-sdk/credential-provider-node": "3.52.0",
24
- "@aws-sdk/fetch-http-handler": "3.52.0",
25
- "@aws-sdk/hash-node": "3.52.0",
26
- "@aws-sdk/invalid-dependency": "3.52.0",
27
- "@aws-sdk/middleware-content-length": "3.52.0",
28
- "@aws-sdk/middleware-host-header": "3.52.0",
29
- "@aws-sdk/middleware-logger": "3.52.0",
30
- "@aws-sdk/middleware-retry": "3.52.0",
31
- "@aws-sdk/middleware-serde": "3.52.0",
32
- "@aws-sdk/middleware-signing": "3.52.0",
33
- "@aws-sdk/middleware-stack": "3.52.0",
34
- "@aws-sdk/middleware-user-agent": "3.52.0",
35
- "@aws-sdk/node-config-provider": "3.52.0",
36
- "@aws-sdk/node-http-handler": "3.52.0",
37
- "@aws-sdk/protocol-http": "3.52.0",
38
- "@aws-sdk/smithy-client": "3.52.0",
39
- "@aws-sdk/types": "3.52.0",
40
- "@aws-sdk/url-parser": "3.52.0",
21
+ "@aws-sdk/client-sts": "3.53.0",
22
+ "@aws-sdk/config-resolver": "3.53.0",
23
+ "@aws-sdk/credential-provider-node": "3.53.0",
24
+ "@aws-sdk/fetch-http-handler": "3.53.0",
25
+ "@aws-sdk/hash-node": "3.53.0",
26
+ "@aws-sdk/invalid-dependency": "3.53.0",
27
+ "@aws-sdk/middleware-content-length": "3.53.0",
28
+ "@aws-sdk/middleware-host-header": "3.53.0",
29
+ "@aws-sdk/middleware-logger": "3.53.0",
30
+ "@aws-sdk/middleware-retry": "3.53.0",
31
+ "@aws-sdk/middleware-serde": "3.53.0",
32
+ "@aws-sdk/middleware-signing": "3.53.0",
33
+ "@aws-sdk/middleware-stack": "3.53.0",
34
+ "@aws-sdk/middleware-user-agent": "3.53.0",
35
+ "@aws-sdk/node-config-provider": "3.53.0",
36
+ "@aws-sdk/node-http-handler": "3.53.0",
37
+ "@aws-sdk/protocol-http": "3.53.0",
38
+ "@aws-sdk/smithy-client": "3.53.0",
39
+ "@aws-sdk/types": "3.53.0",
40
+ "@aws-sdk/url-parser": "3.53.0",
41
41
  "@aws-sdk/util-base64-browser": "3.52.0",
42
42
  "@aws-sdk/util-base64-node": "3.52.0",
43
43
  "@aws-sdk/util-body-length-browser": "3.52.0",
44
44
  "@aws-sdk/util-body-length-node": "3.52.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.52.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.52.0",
47
- "@aws-sdk/util-user-agent-browser": "3.52.0",
48
- "@aws-sdk/util-user-agent-node": "3.52.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.53.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.53.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.53.0",
48
+ "@aws-sdk/util-user-agent-node": "3.53.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.52.0",
50
50
  "@aws-sdk/util-utf8-node": "3.52.0",
51
51
  "tslib": "^2.3.0"