@aws-sdk/client-glacier 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.
@@ -4,3 +4,4 @@ export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
6
  export * from "./waiters";
7
+ export { GlacierServiceException } from "./models/GlacierServiceException";
@@ -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 Glacier service.
4
+ */
5
+ export declare class GlacierServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,6 +1,7 @@
1
1
  /// <reference types="node" />
2
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
3
3
  import { Readable } from "stream";
4
+ import { GlacierServiceException as __BaseException } from "./GlacierServiceException";
4
5
  /**
5
6
  * <p>Provides options to abort a multipart upload identified by the upload ID.</p>
6
7
  *
@@ -35,9 +36,9 @@ export declare namespace AbortMultipartUploadInput {
35
36
  /**
36
37
  * <p>Returned if a parameter of the request is incorrectly specified.</p>
37
38
  */
38
- export interface InvalidParameterValueException extends __SmithyException, $MetadataBearer {
39
- name: "InvalidParameterValueException";
40
- $fault: "client";
39
+ export declare class InvalidParameterValueException extends __BaseException {
40
+ readonly name: "InvalidParameterValueException";
41
+ readonly $fault: "client";
41
42
  /**
42
43
  * <p>Client</p>
43
44
  */
@@ -47,16 +48,16 @@ export interface InvalidParameterValueException extends __SmithyException, $Meta
47
48
  */
48
49
  code?: string;
49
50
  /**
50
- * <p>Returned if a parameter of the request is incorrectly specified.</p>
51
+ * @internal
51
52
  */
52
- message?: string;
53
+ constructor(opts: __ExceptionOptionType<InvalidParameterValueException, __BaseException>);
53
54
  }
54
55
  /**
55
56
  * <p>Returned if a required header or parameter is missing from the request.</p>
56
57
  */
57
- export interface MissingParameterValueException extends __SmithyException, $MetadataBearer {
58
- name: "MissingParameterValueException";
59
- $fault: "client";
58
+ export declare class MissingParameterValueException extends __BaseException {
59
+ readonly name: "MissingParameterValueException";
60
+ readonly $fault: "client";
60
61
  /**
61
62
  * <p>Client.</p>
62
63
  */
@@ -66,17 +67,17 @@ export interface MissingParameterValueException extends __SmithyException, $Meta
66
67
  */
67
68
  code?: string;
68
69
  /**
69
- * <p>Returned if no authentication data is found for the request.</p>
70
+ * @internal
70
71
  */
71
- message?: string;
72
+ constructor(opts: __ExceptionOptionType<MissingParameterValueException, __BaseException>);
72
73
  }
73
74
  /**
74
75
  * <p>Returned if the specified resource (such as a vault, upload ID, or job ID) doesn't
75
76
  * exist.</p>
76
77
  */
77
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
78
- name: "ResourceNotFoundException";
79
- $fault: "client";
78
+ export declare class ResourceNotFoundException extends __BaseException {
79
+ readonly name: "ResourceNotFoundException";
80
+ readonly $fault: "client";
80
81
  /**
81
82
  * <p>Client</p>
82
83
  */
@@ -86,17 +87,16 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
86
87
  */
87
88
  code?: string;
88
89
  /**
89
- * <p>Returned if the specified resource (such as a vault, upload ID, or job ID) doesn't
90
- * exist.</p>
90
+ * @internal
91
91
  */
92
- message?: string;
92
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
93
93
  }
94
94
  /**
95
95
  * <p>Returned if the service cannot complete the request.</p>
96
96
  */
97
- export interface ServiceUnavailableException extends __SmithyException, $MetadataBearer {
98
- name: "ServiceUnavailableException";
99
- $fault: "server";
97
+ export declare class ServiceUnavailableException extends __BaseException {
98
+ readonly name: "ServiceUnavailableException";
99
+ readonly $fault: "server";
100
100
  /**
101
101
  * <p>Server</p>
102
102
  */
@@ -106,9 +106,9 @@ export interface ServiceUnavailableException extends __SmithyException, $Metadat
106
106
  */
107
107
  code?: string;
108
108
  /**
109
- * <p>Returned if the service cannot complete the request.</p>
109
+ * @internal
110
110
  */
111
- message?: string;
111
+ constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
112
112
  }
113
113
  /**
114
114
  * <p>The input values for <code>AbortVaultLock</code>.</p>
@@ -233,9 +233,9 @@ export declare namespace AddTagsToVaultInput {
233
233
  /**
234
234
  * <p>Returned if the request results in a vault or account limit being exceeded.</p>
235
235
  */
236
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
237
- name: "LimitExceededException";
238
- $fault: "client";
236
+ export declare class LimitExceededException extends __BaseException {
237
+ readonly name: "LimitExceededException";
238
+ readonly $fault: "client";
239
239
  /**
240
240
  * <p>Client</p>
241
241
  */
@@ -245,9 +245,9 @@ export interface LimitExceededException extends __SmithyException, $MetadataBear
245
245
  */
246
246
  code?: string;
247
247
  /**
248
- * <p>Returned if the request results in a vault limit or tags limit being exceeded.</p>
248
+ * @internal
249
249
  */
250
- message?: string;
250
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
251
251
  }
252
252
  /**
253
253
  * <p>Contains the Amazon S3 Glacier response to your request.</p>
@@ -1546,20 +1546,23 @@ export declare namespace InitiateJobOutput {
1546
1546
  * error only applies to expedited retrievals and not to standard or bulk
1547
1547
  * retrievals.</p>
1548
1548
  */
1549
- export interface InsufficientCapacityException extends __SmithyException, $MetadataBearer {
1550
- name: "InsufficientCapacityException";
1551
- $fault: "client";
1549
+ export declare class InsufficientCapacityException extends __BaseException {
1550
+ readonly name: "InsufficientCapacityException";
1551
+ readonly $fault: "client";
1552
1552
  type?: string;
1553
1553
  code?: string;
1554
- message?: string;
1554
+ /**
1555
+ * @internal
1556
+ */
1557
+ constructor(opts: __ExceptionOptionType<InsufficientCapacityException, __BaseException>);
1555
1558
  }
1556
1559
  /**
1557
1560
  * <p>Returned if a retrieval job would exceed the current data policy's retrieval rate
1558
1561
  * limit. For more information about data retrieval policies,</p>
1559
1562
  */
1560
- export interface PolicyEnforcedException extends __SmithyException, $MetadataBearer {
1561
- name: "PolicyEnforcedException";
1562
- $fault: "client";
1563
+ export declare class PolicyEnforcedException extends __BaseException {
1564
+ readonly name: "PolicyEnforcedException";
1565
+ readonly $fault: "client";
1563
1566
  /**
1564
1567
  * <p>Client</p>
1565
1568
  */
@@ -1569,9 +1572,9 @@ export interface PolicyEnforcedException extends __SmithyException, $MetadataBea
1569
1572
  */
1570
1573
  code?: string;
1571
1574
  /**
1572
- * <p>InitiateJob request denied by current data retrieval policy.</p>
1575
+ * @internal
1573
1576
  */
1574
- message?: string;
1577
+ constructor(opts: __ExceptionOptionType<PolicyEnforcedException, __BaseException>);
1575
1578
  }
1576
1579
  /**
1577
1580
  * <p>Provides options for initiating a multipart upload to an Amazon S3 Glacier
@@ -2232,9 +2235,9 @@ export declare namespace SetVaultNotificationsInput {
2232
2235
  * <p>Returned if, when uploading an archive, Amazon S3 Glacier times out while receiving the
2233
2236
  * upload.</p>
2234
2237
  */
2235
- export interface RequestTimeoutException extends __SmithyException, $MetadataBearer {
2236
- name: "RequestTimeoutException";
2237
- $fault: "client";
2238
+ export declare class RequestTimeoutException extends __BaseException {
2239
+ readonly name: "RequestTimeoutException";
2240
+ readonly $fault: "client";
2238
2241
  /**
2239
2242
  * <p>Client</p>
2240
2243
  */
@@ -2244,10 +2247,9 @@ export interface RequestTimeoutException extends __SmithyException, $MetadataBea
2244
2247
  */
2245
2248
  code?: string;
2246
2249
  /**
2247
- * <p>Returned if, when uploading an archive, Amazon S3 Glacier times out while receiving the
2248
- * upload.</p>
2250
+ * @internal
2249
2251
  */
2250
- message?: string;
2252
+ constructor(opts: __ExceptionOptionType<RequestTimeoutException, __BaseException>);
2251
2253
  }
2252
2254
  /**
2253
2255
  * <p>Provides options to add an archive to a vault.</p>
@@ -4,3 +4,4 @@ export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
6
  export * from "./waiters";
7
+ export { GlacierServiceException } from "./models/GlacierServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class GlacierServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,6 +1,7 @@
1
1
 
2
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
3
3
  import { Readable } from "stream";
4
+ import { GlacierServiceException as __BaseException } from "./GlacierServiceException";
4
5
 
5
6
  export interface AbortMultipartUploadInput {
6
7
 
@@ -15,48 +16,48 @@ export declare namespace AbortMultipartUploadInput {
15
16
  const filterSensitiveLog: (obj: AbortMultipartUploadInput) => any;
16
17
  }
17
18
 
18
- export interface InvalidParameterValueException extends __SmithyException, $MetadataBearer {
19
- name: "InvalidParameterValueException";
20
- $fault: "client";
19
+ export declare class InvalidParameterValueException extends __BaseException {
20
+ readonly name: "InvalidParameterValueException";
21
+ readonly $fault: "client";
21
22
 
22
23
  type?: string;
23
24
 
24
25
  code?: string;
25
26
 
26
- message?: string;
27
+ constructor(opts: __ExceptionOptionType<InvalidParameterValueException, __BaseException>);
27
28
  }
28
29
 
29
- export interface MissingParameterValueException extends __SmithyException, $MetadataBearer {
30
- name: "MissingParameterValueException";
31
- $fault: "client";
30
+ export declare class MissingParameterValueException extends __BaseException {
31
+ readonly name: "MissingParameterValueException";
32
+ readonly $fault: "client";
32
33
 
33
34
  type?: string;
34
35
 
35
36
  code?: string;
36
37
 
37
- message?: string;
38
+ constructor(opts: __ExceptionOptionType<MissingParameterValueException, __BaseException>);
38
39
  }
39
40
 
40
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
41
- name: "ResourceNotFoundException";
42
- $fault: "client";
41
+ export declare class ResourceNotFoundException extends __BaseException {
42
+ readonly name: "ResourceNotFoundException";
43
+ readonly $fault: "client";
43
44
 
44
45
  type?: string;
45
46
 
46
47
  code?: string;
47
48
 
48
- message?: string;
49
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
49
50
  }
50
51
 
51
- export interface ServiceUnavailableException extends __SmithyException, $MetadataBearer {
52
- name: "ServiceUnavailableException";
53
- $fault: "server";
52
+ export declare class ServiceUnavailableException extends __BaseException {
53
+ readonly name: "ServiceUnavailableException";
54
+ readonly $fault: "server";
54
55
 
55
56
  type?: string;
56
57
 
57
58
  code?: string;
58
59
 
59
- message?: string;
60
+ constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
60
61
  }
61
62
 
62
63
  export interface AbortVaultLockInput {
@@ -130,15 +131,15 @@ export declare namespace AddTagsToVaultInput {
130
131
  const filterSensitiveLog: (obj: AddTagsToVaultInput) => any;
131
132
  }
132
133
 
133
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
134
- name: "LimitExceededException";
135
- $fault: "client";
134
+ export declare class LimitExceededException extends __BaseException {
135
+ readonly name: "LimitExceededException";
136
+ readonly $fault: "client";
136
137
 
137
138
  type?: string;
138
139
 
139
140
  code?: string;
140
141
 
141
- message?: string;
142
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
142
143
  }
143
144
 
144
145
  export interface ArchiveCreationOutput {
@@ -740,23 +741,24 @@ export declare namespace InitiateJobOutput {
740
741
  const filterSensitiveLog: (obj: InitiateJobOutput) => any;
741
742
  }
742
743
 
743
- export interface InsufficientCapacityException extends __SmithyException, $MetadataBearer {
744
- name: "InsufficientCapacityException";
745
- $fault: "client";
744
+ export declare class InsufficientCapacityException extends __BaseException {
745
+ readonly name: "InsufficientCapacityException";
746
+ readonly $fault: "client";
746
747
  type?: string;
747
748
  code?: string;
748
- message?: string;
749
+
750
+ constructor(opts: __ExceptionOptionType<InsufficientCapacityException, __BaseException>);
749
751
  }
750
752
 
751
- export interface PolicyEnforcedException extends __SmithyException, $MetadataBearer {
752
- name: "PolicyEnforcedException";
753
- $fault: "client";
753
+ export declare class PolicyEnforcedException extends __BaseException {
754
+ readonly name: "PolicyEnforcedException";
755
+ readonly $fault: "client";
754
756
 
755
757
  type?: string;
756
758
 
757
759
  code?: string;
758
760
 
759
- message?: string;
761
+ constructor(opts: __ExceptionOptionType<PolicyEnforcedException, __BaseException>);
760
762
  }
761
763
 
762
764
  export interface InitiateMultipartUploadInput {
@@ -1079,15 +1081,15 @@ export declare namespace SetVaultNotificationsInput {
1079
1081
  const filterSensitiveLog: (obj: SetVaultNotificationsInput) => any;
1080
1082
  }
1081
1083
 
1082
- export interface RequestTimeoutException extends __SmithyException, $MetadataBearer {
1083
- name: "RequestTimeoutException";
1084
- $fault: "client";
1084
+ export declare class RequestTimeoutException extends __BaseException {
1085
+ readonly name: "RequestTimeoutException";
1086
+ readonly $fault: "client";
1085
1087
 
1086
1088
  type?: string;
1087
1089
 
1088
1090
  code?: string;
1089
1091
 
1090
- message?: string;
1092
+ constructor(opts: __ExceptionOptionType<RequestTimeoutException, __BaseException>);
1091
1093
  }
1092
1094
 
1093
1095
  export interface UploadArchiveInput {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-glacier",
3
3
  "description": "AWS SDK for JavaScript Glacier 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,40 +18,40 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/body-checksum-browser": "3.52.0",
22
- "@aws-sdk/body-checksum-node": "3.52.0",
23
- "@aws-sdk/client-sts": "3.52.0",
24
- "@aws-sdk/config-resolver": "3.52.0",
25
- "@aws-sdk/credential-provider-node": "3.52.0",
26
- "@aws-sdk/fetch-http-handler": "3.52.0",
27
- "@aws-sdk/hash-node": "3.52.0",
28
- "@aws-sdk/invalid-dependency": "3.52.0",
29
- "@aws-sdk/middleware-content-length": "3.52.0",
30
- "@aws-sdk/middleware-host-header": "3.52.0",
31
- "@aws-sdk/middleware-logger": "3.52.0",
32
- "@aws-sdk/middleware-retry": "3.52.0",
33
- "@aws-sdk/middleware-sdk-glacier": "3.52.0",
34
- "@aws-sdk/middleware-serde": "3.52.0",
35
- "@aws-sdk/middleware-signing": "3.52.0",
36
- "@aws-sdk/middleware-stack": "3.52.0",
37
- "@aws-sdk/middleware-user-agent": "3.52.0",
38
- "@aws-sdk/node-config-provider": "3.52.0",
39
- "@aws-sdk/node-http-handler": "3.52.0",
40
- "@aws-sdk/protocol-http": "3.52.0",
41
- "@aws-sdk/smithy-client": "3.52.0",
42
- "@aws-sdk/types": "3.52.0",
43
- "@aws-sdk/url-parser": "3.52.0",
21
+ "@aws-sdk/body-checksum-browser": "3.53.0",
22
+ "@aws-sdk/body-checksum-node": "3.53.0",
23
+ "@aws-sdk/client-sts": "3.53.0",
24
+ "@aws-sdk/config-resolver": "3.53.0",
25
+ "@aws-sdk/credential-provider-node": "3.53.0",
26
+ "@aws-sdk/fetch-http-handler": "3.53.0",
27
+ "@aws-sdk/hash-node": "3.53.0",
28
+ "@aws-sdk/invalid-dependency": "3.53.0",
29
+ "@aws-sdk/middleware-content-length": "3.53.0",
30
+ "@aws-sdk/middleware-host-header": "3.53.0",
31
+ "@aws-sdk/middleware-logger": "3.53.0",
32
+ "@aws-sdk/middleware-retry": "3.53.0",
33
+ "@aws-sdk/middleware-sdk-glacier": "3.53.0",
34
+ "@aws-sdk/middleware-serde": "3.53.0",
35
+ "@aws-sdk/middleware-signing": "3.53.0",
36
+ "@aws-sdk/middleware-stack": "3.53.0",
37
+ "@aws-sdk/middleware-user-agent": "3.53.0",
38
+ "@aws-sdk/node-config-provider": "3.53.0",
39
+ "@aws-sdk/node-http-handler": "3.53.0",
40
+ "@aws-sdk/protocol-http": "3.53.0",
41
+ "@aws-sdk/smithy-client": "3.53.0",
42
+ "@aws-sdk/types": "3.53.0",
43
+ "@aws-sdk/url-parser": "3.53.0",
44
44
  "@aws-sdk/util-base64-browser": "3.52.0",
45
45
  "@aws-sdk/util-base64-node": "3.52.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.52.0",
47
47
  "@aws-sdk/util-body-length-node": "3.52.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.52.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.52.0",
50
- "@aws-sdk/util-user-agent-browser": "3.52.0",
51
- "@aws-sdk/util-user-agent-node": "3.52.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.53.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.53.0",
50
+ "@aws-sdk/util-user-agent-browser": "3.53.0",
51
+ "@aws-sdk/util-user-agent-node": "3.53.0",
52
52
  "@aws-sdk/util-utf8-browser": "3.52.0",
53
53
  "@aws-sdk/util-utf8-node": "3.52.0",
54
- "@aws-sdk/util-waiter": "3.52.0",
54
+ "@aws-sdk/util-waiter": "3.53.0",
55
55
  "tslib": "^2.3.0"
56
56
  },
57
57
  "devDependencies": {