@aws-sdk/client-glacier 3.934.0 → 3.935.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.
@@ -0,0 +1,175 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { GlacierServiceException as __BaseException } from "./GlacierServiceException";
3
+ /**
4
+ * <p>Returned if a parameter of the request is incorrectly specified.</p>
5
+ * @public
6
+ */
7
+ export declare class InvalidParameterValueException extends __BaseException {
8
+ readonly name: "InvalidParameterValueException";
9
+ readonly $fault: "client";
10
+ /**
11
+ * <p>Client</p>
12
+ * @public
13
+ */
14
+ type?: string | undefined;
15
+ /**
16
+ * <p>400 Bad Request</p>
17
+ * @public
18
+ */
19
+ code?: string | undefined;
20
+ /**
21
+ * @internal
22
+ */
23
+ constructor(opts: __ExceptionOptionType<InvalidParameterValueException, __BaseException>);
24
+ }
25
+ /**
26
+ * <p>Returned if a required header or parameter is missing from the request.</p>
27
+ * @public
28
+ */
29
+ export declare class MissingParameterValueException extends __BaseException {
30
+ readonly name: "MissingParameterValueException";
31
+ readonly $fault: "client";
32
+ /**
33
+ * <p>Client.</p>
34
+ * @public
35
+ */
36
+ type?: string | undefined;
37
+ /**
38
+ * <p>400 Bad Request</p>
39
+ * @public
40
+ */
41
+ code?: string | undefined;
42
+ /**
43
+ * @internal
44
+ */
45
+ constructor(opts: __ExceptionOptionType<MissingParameterValueException, __BaseException>);
46
+ }
47
+ /**
48
+ * <p>Returned if the specified resource (such as a vault, upload ID, or job ID) doesn't
49
+ * exist.</p>
50
+ * @public
51
+ */
52
+ export declare class ResourceNotFoundException extends __BaseException {
53
+ readonly name: "ResourceNotFoundException";
54
+ readonly $fault: "client";
55
+ /**
56
+ * <p>Client</p>
57
+ * @public
58
+ */
59
+ type?: string | undefined;
60
+ /**
61
+ * <p>404 Not Found</p>
62
+ * @public
63
+ */
64
+ code?: string | undefined;
65
+ /**
66
+ * @internal
67
+ */
68
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
69
+ }
70
+ /**
71
+ * <p>Returned if the service cannot complete the request.</p>
72
+ * @public
73
+ */
74
+ export declare class ServiceUnavailableException extends __BaseException {
75
+ readonly name: "ServiceUnavailableException";
76
+ readonly $fault: "server";
77
+ /**
78
+ * <p>Server</p>
79
+ * @public
80
+ */
81
+ type?: string | undefined;
82
+ /**
83
+ * <p>500 Internal Server Error</p>
84
+ * @public
85
+ */
86
+ code?: string | undefined;
87
+ /**
88
+ * @internal
89
+ */
90
+ constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
91
+ }
92
+ /**
93
+ * <p>Returned if the request results in a vault or account limit being exceeded.</p>
94
+ * @public
95
+ */
96
+ export declare class LimitExceededException extends __BaseException {
97
+ readonly name: "LimitExceededException";
98
+ readonly $fault: "client";
99
+ /**
100
+ * <p>Client</p>
101
+ * @public
102
+ */
103
+ type?: string | undefined;
104
+ /**
105
+ * <p>400 Bad Request</p>
106
+ * @public
107
+ */
108
+ code?: string | undefined;
109
+ /**
110
+ * @internal
111
+ */
112
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
113
+ }
114
+ /**
115
+ * <p>Returned if there is insufficient capacity to process this expedited request. This
116
+ * error only applies to expedited retrievals and not to standard or bulk
117
+ * retrievals.</p>
118
+ * @public
119
+ */
120
+ export declare class InsufficientCapacityException extends __BaseException {
121
+ readonly name: "InsufficientCapacityException";
122
+ readonly $fault: "client";
123
+ type?: string | undefined;
124
+ code?: string | undefined;
125
+ /**
126
+ * @internal
127
+ */
128
+ constructor(opts: __ExceptionOptionType<InsufficientCapacityException, __BaseException>);
129
+ }
130
+ /**
131
+ * <p>Returned if a retrieval job would exceed the current data policy's retrieval rate
132
+ * limit. For more information about data retrieval policies,</p>
133
+ * @public
134
+ */
135
+ export declare class PolicyEnforcedException extends __BaseException {
136
+ readonly name: "PolicyEnforcedException";
137
+ readonly $fault: "client";
138
+ /**
139
+ * <p>Client</p>
140
+ * @public
141
+ */
142
+ type?: string | undefined;
143
+ /**
144
+ * <p>PolicyEnforcedException</p>
145
+ * @public
146
+ */
147
+ code?: string | undefined;
148
+ /**
149
+ * @internal
150
+ */
151
+ constructor(opts: __ExceptionOptionType<PolicyEnforcedException, __BaseException>);
152
+ }
153
+ /**
154
+ * <p>Returned if, when uploading an archive, Amazon S3 Glacier times out while receiving the
155
+ * upload.</p>
156
+ * @public
157
+ */
158
+ export declare class RequestTimeoutException extends __BaseException {
159
+ readonly name: "RequestTimeoutException";
160
+ readonly $fault: "client";
161
+ /**
162
+ * <p>Client</p>
163
+ * @public
164
+ */
165
+ type?: string | undefined;
166
+ /**
167
+ * <p>408 Request Timeout</p>
168
+ * @public
169
+ */
170
+ code?: string | undefined;
171
+ /**
172
+ * @internal
173
+ */
174
+ constructor(opts: __ExceptionOptionType<RequestTimeoutException, __BaseException>);
175
+ }
@@ -1,6 +1,5 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
1
  import { StreamingBlobTypes } from "@smithy/types";
3
- import { GlacierServiceException as __BaseException } from "./GlacierServiceException";
2
+ import { ActionCode, CannedACL, EncryptionType, ExpressionType, FileHeaderInfo, Permission, QuoteFields, StatusCode, StorageClass, Type } from "./enums";
4
3
  /**
5
4
  * <p>Provides options to abort a multipart upload identified by the upload ID.</p>
6
5
  *
@@ -30,95 +29,6 @@ export interface AbortMultipartUploadInput {
30
29
  */
31
30
  uploadId: string | undefined;
32
31
  }
33
- /**
34
- * <p>Returned if a parameter of the request is incorrectly specified.</p>
35
- * @public
36
- */
37
- export declare class InvalidParameterValueException extends __BaseException {
38
- readonly name: "InvalidParameterValueException";
39
- readonly $fault: "client";
40
- /**
41
- * <p>Client</p>
42
- * @public
43
- */
44
- type?: string | undefined;
45
- /**
46
- * <p>400 Bad Request</p>
47
- * @public
48
- */
49
- code?: string | undefined;
50
- /**
51
- * @internal
52
- */
53
- constructor(opts: __ExceptionOptionType<InvalidParameterValueException, __BaseException>);
54
- }
55
- /**
56
- * <p>Returned if a required header or parameter is missing from the request.</p>
57
- * @public
58
- */
59
- export declare class MissingParameterValueException extends __BaseException {
60
- readonly name: "MissingParameterValueException";
61
- readonly $fault: "client";
62
- /**
63
- * <p>Client.</p>
64
- * @public
65
- */
66
- type?: string | undefined;
67
- /**
68
- * <p>400 Bad Request</p>
69
- * @public
70
- */
71
- code?: string | undefined;
72
- /**
73
- * @internal
74
- */
75
- constructor(opts: __ExceptionOptionType<MissingParameterValueException, __BaseException>);
76
- }
77
- /**
78
- * <p>Returned if the specified resource (such as a vault, upload ID, or job ID) doesn't
79
- * exist.</p>
80
- * @public
81
- */
82
- export declare class ResourceNotFoundException extends __BaseException {
83
- readonly name: "ResourceNotFoundException";
84
- readonly $fault: "client";
85
- /**
86
- * <p>Client</p>
87
- * @public
88
- */
89
- type?: string | undefined;
90
- /**
91
- * <p>404 Not Found</p>
92
- * @public
93
- */
94
- code?: string | undefined;
95
- /**
96
- * @internal
97
- */
98
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
99
- }
100
- /**
101
- * <p>Returned if the service cannot complete the request.</p>
102
- * @public
103
- */
104
- export declare class ServiceUnavailableException extends __BaseException {
105
- readonly name: "ServiceUnavailableException";
106
- readonly $fault: "server";
107
- /**
108
- * <p>Server</p>
109
- * @public
110
- */
111
- type?: string | undefined;
112
- /**
113
- * <p>500 Internal Server Error</p>
114
- * @public
115
- */
116
- code?: string | undefined;
117
- /**
118
- * @internal
119
- */
120
- constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
121
- }
122
32
  /**
123
33
  * <p>The input values for <code>AbortVaultLock</code>.</p>
124
34
  * @public
@@ -139,19 +49,6 @@ export interface AbortVaultLockInput {
139
49
  */
140
50
  vaultName: string | undefined;
141
51
  }
142
- /**
143
- * @public
144
- * @enum
145
- */
146
- export declare const Type: {
147
- readonly AmazonCustomerByEmail: "AmazonCustomerByEmail";
148
- readonly CanonicalUser: "CanonicalUser";
149
- readonly Group: "Group";
150
- };
151
- /**
152
- * @public
153
- */
154
- export type Type = (typeof Type)[keyof typeof Type];
155
52
  /**
156
53
  * <p>Contains information about the grantee.</p>
157
54
  * @public
@@ -183,21 +80,6 @@ export interface Grantee {
183
80
  */
184
81
  EmailAddress?: string | undefined;
185
82
  }
186
- /**
187
- * @public
188
- * @enum
189
- */
190
- export declare const Permission: {
191
- readonly FULL_CONTROL: "FULL_CONTROL";
192
- readonly READ: "READ";
193
- readonly READ_ACP: "READ_ACP";
194
- readonly WRITE: "WRITE";
195
- readonly WRITE_ACP: "WRITE_ACP";
196
- };
197
- /**
198
- * @public
199
- */
200
- export type Permission = (typeof Permission)[keyof typeof Permission];
201
83
  /**
202
84
  * <p>Contains information about a grant.</p>
203
85
  * @public
@@ -214,19 +96,6 @@ export interface Grant {
214
96
  */
215
97
  Permission?: Permission | undefined;
216
98
  }
217
- /**
218
- * @public
219
- * @enum
220
- */
221
- export declare const ActionCode: {
222
- readonly ArchiveRetrieval: "ArchiveRetrieval";
223
- readonly InventoryRetrieval: "InventoryRetrieval";
224
- readonly Select: "Select";
225
- };
226
- /**
227
- * @public
228
- */
229
- export type ActionCode = (typeof ActionCode)[keyof typeof ActionCode];
230
99
  /**
231
100
  * <p>The input values for <code>AddTagsToVault</code>.</p>
232
101
  * @public
@@ -253,28 +122,6 @@ export interface AddTagsToVaultInput {
253
122
  */
254
123
  Tags?: Record<string, string> | undefined;
255
124
  }
256
- /**
257
- * <p>Returned if the request results in a vault or account limit being exceeded.</p>
258
- * @public
259
- */
260
- export declare class LimitExceededException extends __BaseException {
261
- readonly name: "LimitExceededException";
262
- readonly $fault: "client";
263
- /**
264
- * <p>Client</p>
265
- * @public
266
- */
267
- type?: string | undefined;
268
- /**
269
- * <p>400 Bad Request</p>
270
- * @public
271
- */
272
- code?: string | undefined;
273
- /**
274
- * @internal
275
- */
276
- constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
277
- }
278
125
  /**
279
126
  * <p>Contains the Amazon S3 Glacier response to your request.</p>
280
127
  * <p>For information about the underlying REST API, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-archive-post.html">Upload Archive</a>. For
@@ -299,23 +146,6 @@ export interface ArchiveCreationOutput {
299
146
  */
300
147
  archiveId?: string | undefined;
301
148
  }
302
- /**
303
- * @public
304
- * @enum
305
- */
306
- export declare const CannedACL: {
307
- readonly AuthenticatedRead: "authenticated-read";
308
- readonly AwsExecRead: "aws-exec-read";
309
- readonly BucketOwnerFullControl: "bucket-owner-full-control";
310
- readonly BucketOwnerRead: "bucket-owner-read";
311
- readonly Private: "private";
312
- readonly PublicRead: "public-read";
313
- readonly PublicReadWrite: "public-read-write";
314
- };
315
- /**
316
- * @public
317
- */
318
- export type CannedACL = (typeof CannedACL)[keyof typeof CannedACL];
319
149
  /**
320
150
  * <p>Provides options to complete a multipart upload operation. This informs Amazon
321
151
  * Glacier that all the archive parts have been uploaded and Amazon S3 Glacier (Glacier) can now assemble
@@ -414,19 +244,6 @@ export interface CreateVaultOutput {
414
244
  */
415
245
  location?: string | undefined;
416
246
  }
417
- /**
418
- * @public
419
- * @enum
420
- */
421
- export declare const FileHeaderInfo: {
422
- readonly Ignore: "IGNORE";
423
- readonly None: "NONE";
424
- readonly Use: "USE";
425
- };
426
- /**
427
- * @public
428
- */
429
- export type FileHeaderInfo = (typeof FileHeaderInfo)[keyof typeof FileHeaderInfo];
430
247
  /**
431
248
  * <p>Contains information about the comma-separated value (CSV) file to select from.</p>
432
249
  * @public
@@ -467,18 +284,6 @@ export interface CSVInput {
467
284
  */
468
285
  QuoteCharacter?: string | undefined;
469
286
  }
470
- /**
471
- * @public
472
- * @enum
473
- */
474
- export declare const QuoteFields: {
475
- readonly Always: "ALWAYS";
476
- readonly AsNeeded: "ASNEEDED";
477
- };
478
- /**
479
- * @public
480
- */
481
- export type QuoteFields = (typeof QuoteFields)[keyof typeof QuoteFields];
482
287
  /**
483
288
  * <p>Contains information about the comma-separated value (CSV) file that the job results
484
289
  * are stored in.</p>
@@ -698,18 +503,6 @@ export interface InventoryRetrievalJobDescription {
698
503
  */
699
504
  Marker?: string | undefined;
700
505
  }
701
- /**
702
- * @public
703
- * @enum
704
- */
705
- export declare const EncryptionType: {
706
- readonly KMS: "aws:kms";
707
- readonly S3: "AES256";
708
- };
709
- /**
710
- * @public
711
- */
712
- export type EncryptionType = (typeof EncryptionType)[keyof typeof EncryptionType];
713
506
  /**
714
507
  * <p>Contains information about the encryption used to store the job results in Amazon S3. </p>
715
508
  * @public
@@ -735,19 +528,6 @@ export interface Encryption {
735
528
  */
736
529
  KMSContext?: string | undefined;
737
530
  }
738
- /**
739
- * @public
740
- * @enum
741
- */
742
- export declare const StorageClass: {
743
- readonly ReducedRedundancy: "REDUCED_REDUNDANCY";
744
- readonly Standard: "STANDARD";
745
- readonly StandardInfrequentAccess: "STANDARD_IA";
746
- };
747
- /**
748
- * @public
749
- */
750
- export type StorageClass = (typeof StorageClass)[keyof typeof StorageClass];
751
531
  /**
752
532
  * <p>Contains information about the location in Amazon S3 where the select job results are stored.</p>
753
533
  * @public
@@ -805,17 +585,6 @@ export interface OutputLocation {
805
585
  */
806
586
  S3?: S3Location | undefined;
807
587
  }
808
- /**
809
- * @public
810
- * @enum
811
- */
812
- export declare const ExpressionType: {
813
- readonly SQL: "SQL";
814
- };
815
- /**
816
- * @public
817
- */
818
- export type ExpressionType = (typeof ExpressionType)[keyof typeof ExpressionType];
819
588
  /**
820
589
  * <p>Describes how the archive is serialized.</p>
821
590
  * @public
@@ -864,19 +633,6 @@ export interface SelectParameters {
864
633
  */
865
634
  OutputSerialization?: OutputSerialization | undefined;
866
635
  }
867
- /**
868
- * @public
869
- * @enum
870
- */
871
- export declare const StatusCode: {
872
- readonly Failed: "Failed";
873
- readonly InProgress: "InProgress";
874
- readonly Succeeded: "Succeeded";
875
- };
876
- /**
877
- * @public
878
- */
879
- export type StatusCode = (typeof StatusCode)[keyof typeof StatusCode];
880
636
  /**
881
637
  * <p>Contains the description of an Amazon S3 Glacier job.</p>
882
638
  * @public
@@ -1559,45 +1315,6 @@ export interface InitiateJobOutput {
1559
1315
  */
1560
1316
  jobOutputPath?: string | undefined;
1561
1317
  }
1562
- /**
1563
- * <p>Returned if there is insufficient capacity to process this expedited request. This
1564
- * error only applies to expedited retrievals and not to standard or bulk
1565
- * retrievals.</p>
1566
- * @public
1567
- */
1568
- export declare class InsufficientCapacityException extends __BaseException {
1569
- readonly name: "InsufficientCapacityException";
1570
- readonly $fault: "client";
1571
- type?: string | undefined;
1572
- code?: string | undefined;
1573
- /**
1574
- * @internal
1575
- */
1576
- constructor(opts: __ExceptionOptionType<InsufficientCapacityException, __BaseException>);
1577
- }
1578
- /**
1579
- * <p>Returned if a retrieval job would exceed the current data policy's retrieval rate
1580
- * limit. For more information about data retrieval policies,</p>
1581
- * @public
1582
- */
1583
- export declare class PolicyEnforcedException extends __BaseException {
1584
- readonly name: "PolicyEnforcedException";
1585
- readonly $fault: "client";
1586
- /**
1587
- * <p>Client</p>
1588
- * @public
1589
- */
1590
- type?: string | undefined;
1591
- /**
1592
- * <p>PolicyEnforcedException</p>
1593
- * @public
1594
- */
1595
- code?: string | undefined;
1596
- /**
1597
- * @internal
1598
- */
1599
- constructor(opts: __ExceptionOptionType<PolicyEnforcedException, __BaseException>);
1600
- }
1601
1318
  /**
1602
1319
  * <p>Provides options for initiating a multipart upload to an Amazon S3 Glacier
1603
1320
  * vault.</p>
@@ -2199,29 +1916,6 @@ export interface SetVaultNotificationsInput {
2199
1916
  */
2200
1917
  vaultNotificationConfig?: VaultNotificationConfig | undefined;
2201
1918
  }
2202
- /**
2203
- * <p>Returned if, when uploading an archive, Amazon S3 Glacier times out while receiving the
2204
- * upload.</p>
2205
- * @public
2206
- */
2207
- export declare class RequestTimeoutException extends __BaseException {
2208
- readonly name: "RequestTimeoutException";
2209
- readonly $fault: "client";
2210
- /**
2211
- * <p>Client</p>
2212
- * @public
2213
- */
2214
- type?: string | undefined;
2215
- /**
2216
- * <p>408 Request Timeout</p>
2217
- * @public
2218
- */
2219
- code?: string | undefined;
2220
- /**
2221
- * @internal
2222
- */
2223
- constructor(opts: __ExceptionOptionType<RequestTimeoutException, __BaseException>);
2224
- }
2225
1919
  /**
2226
1920
  * <p>Provides options to add an archive to a vault.</p>
2227
1921
  * @public
@@ -6,5 +6,7 @@ export { GlacierExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./pagination";
8
8
  export * from "./waiters";
9
- export * from "./models";
9
+ export * from "./models/enums";
10
+ export * from "./models/errors";
11
+ export * from "./models/models_0";
10
12
  export { GlacierServiceException } from "./models/GlacierServiceException";
@@ -0,0 +1,65 @@
1
+ export declare const Type: {
2
+ readonly AmazonCustomerByEmail: "AmazonCustomerByEmail";
3
+ readonly CanonicalUser: "CanonicalUser";
4
+ readonly Group: "Group";
5
+ };
6
+ export type Type = (typeof Type)[keyof typeof Type];
7
+ export declare const Permission: {
8
+ readonly FULL_CONTROL: "FULL_CONTROL";
9
+ readonly READ: "READ";
10
+ readonly READ_ACP: "READ_ACP";
11
+ readonly WRITE: "WRITE";
12
+ readonly WRITE_ACP: "WRITE_ACP";
13
+ };
14
+ export type Permission = (typeof Permission)[keyof typeof Permission];
15
+ export declare const ActionCode: {
16
+ readonly ArchiveRetrieval: "ArchiveRetrieval";
17
+ readonly InventoryRetrieval: "InventoryRetrieval";
18
+ readonly Select: "Select";
19
+ };
20
+ export type ActionCode = (typeof ActionCode)[keyof typeof ActionCode];
21
+ export declare const CannedACL: {
22
+ readonly AuthenticatedRead: "authenticated-read";
23
+ readonly AwsExecRead: "aws-exec-read";
24
+ readonly BucketOwnerFullControl: "bucket-owner-full-control";
25
+ readonly BucketOwnerRead: "bucket-owner-read";
26
+ readonly Private: "private";
27
+ readonly PublicRead: "public-read";
28
+ readonly PublicReadWrite: "public-read-write";
29
+ };
30
+ export type CannedACL = (typeof CannedACL)[keyof typeof CannedACL];
31
+ export declare const FileHeaderInfo: {
32
+ readonly Ignore: "IGNORE";
33
+ readonly None: "NONE";
34
+ readonly Use: "USE";
35
+ };
36
+ export type FileHeaderInfo =
37
+ (typeof FileHeaderInfo)[keyof typeof FileHeaderInfo];
38
+ export declare const QuoteFields: {
39
+ readonly Always: "ALWAYS";
40
+ readonly AsNeeded: "ASNEEDED";
41
+ };
42
+ export type QuoteFields = (typeof QuoteFields)[keyof typeof QuoteFields];
43
+ export declare const EncryptionType: {
44
+ readonly KMS: "aws:kms";
45
+ readonly S3: "AES256";
46
+ };
47
+ export type EncryptionType =
48
+ (typeof EncryptionType)[keyof typeof EncryptionType];
49
+ export declare const StorageClass: {
50
+ readonly ReducedRedundancy: "REDUCED_REDUNDANCY";
51
+ readonly Standard: "STANDARD";
52
+ readonly StandardInfrequentAccess: "STANDARD_IA";
53
+ };
54
+ export type StorageClass = (typeof StorageClass)[keyof typeof StorageClass];
55
+ export declare const ExpressionType: {
56
+ readonly SQL: "SQL";
57
+ };
58
+ export type ExpressionType =
59
+ (typeof ExpressionType)[keyof typeof ExpressionType];
60
+ export declare const StatusCode: {
61
+ readonly Failed: "Failed";
62
+ readonly InProgress: "InProgress";
63
+ readonly Succeeded: "Succeeded";
64
+ };
65
+ export type StatusCode = (typeof StatusCode)[keyof typeof StatusCode];