@aws-sdk/client-glacier 3.933.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.
package/dist-cjs/index.js CHANGED
@@ -184,23 +184,6 @@ let ServiceUnavailableException$1 = class ServiceUnavailableException extends Gl
184
184
  this.code = opts.code;
185
185
  }
186
186
  };
187
- const Type = {
188
- AmazonCustomerByEmail: "AmazonCustomerByEmail",
189
- CanonicalUser: "CanonicalUser",
190
- Group: "Group",
191
- };
192
- const Permission = {
193
- FULL_CONTROL: "FULL_CONTROL",
194
- READ: "READ",
195
- READ_ACP: "READ_ACP",
196
- WRITE: "WRITE",
197
- WRITE_ACP: "WRITE_ACP",
198
- };
199
- const ActionCode = {
200
- ArchiveRetrieval: "ArchiveRetrieval",
201
- InventoryRetrieval: "InventoryRetrieval",
202
- Select: "Select",
203
- };
204
187
  let LimitExceededException$1 = class LimitExceededException extends GlacierServiceException$1 {
205
188
  name = "LimitExceededException";
206
189
  $fault = "client";
@@ -217,41 +200,6 @@ let LimitExceededException$1 = class LimitExceededException extends GlacierServi
217
200
  this.code = opts.code;
218
201
  }
219
202
  };
220
- const CannedACL = {
221
- AuthenticatedRead: "authenticated-read",
222
- AwsExecRead: "aws-exec-read",
223
- BucketOwnerFullControl: "bucket-owner-full-control",
224
- BucketOwnerRead: "bucket-owner-read",
225
- Private: "private",
226
- PublicRead: "public-read",
227
- PublicReadWrite: "public-read-write",
228
- };
229
- const FileHeaderInfo = {
230
- Ignore: "IGNORE",
231
- None: "NONE",
232
- Use: "USE",
233
- };
234
- const QuoteFields = {
235
- Always: "ALWAYS",
236
- AsNeeded: "ASNEEDED",
237
- };
238
- const EncryptionType = {
239
- KMS: "aws:kms",
240
- S3: "AES256",
241
- };
242
- const StorageClass = {
243
- ReducedRedundancy: "REDUCED_REDUNDANCY",
244
- Standard: "STANDARD",
245
- StandardInfrequentAccess: "STANDARD_IA",
246
- };
247
- const ExpressionType = {
248
- SQL: "SQL",
249
- };
250
- const StatusCode = {
251
- Failed: "Failed",
252
- InProgress: "InProgress",
253
- Succeeded: "Succeeded",
254
- };
255
203
  let InsufficientCapacityException$1 = class InsufficientCapacityException extends GlacierServiceException$1 {
256
204
  name = "InsufficientCapacityException";
257
205
  $fault = "client";
@@ -2255,6 +2203,59 @@ const waitUntilVaultNotExists = async (params, input) => {
2255
2203
  return utilWaiter.checkExceptions(result);
2256
2204
  };
2257
2205
 
2206
+ const Type = {
2207
+ AmazonCustomerByEmail: "AmazonCustomerByEmail",
2208
+ CanonicalUser: "CanonicalUser",
2209
+ Group: "Group",
2210
+ };
2211
+ const Permission = {
2212
+ FULL_CONTROL: "FULL_CONTROL",
2213
+ READ: "READ",
2214
+ READ_ACP: "READ_ACP",
2215
+ WRITE: "WRITE",
2216
+ WRITE_ACP: "WRITE_ACP",
2217
+ };
2218
+ const ActionCode = {
2219
+ ArchiveRetrieval: "ArchiveRetrieval",
2220
+ InventoryRetrieval: "InventoryRetrieval",
2221
+ Select: "Select",
2222
+ };
2223
+ const CannedACL = {
2224
+ AuthenticatedRead: "authenticated-read",
2225
+ AwsExecRead: "aws-exec-read",
2226
+ BucketOwnerFullControl: "bucket-owner-full-control",
2227
+ BucketOwnerRead: "bucket-owner-read",
2228
+ Private: "private",
2229
+ PublicRead: "public-read",
2230
+ PublicReadWrite: "public-read-write",
2231
+ };
2232
+ const FileHeaderInfo = {
2233
+ Ignore: "IGNORE",
2234
+ None: "NONE",
2235
+ Use: "USE",
2236
+ };
2237
+ const QuoteFields = {
2238
+ Always: "ALWAYS",
2239
+ AsNeeded: "ASNEEDED",
2240
+ };
2241
+ const EncryptionType = {
2242
+ KMS: "aws:kms",
2243
+ S3: "AES256",
2244
+ };
2245
+ const StorageClass = {
2246
+ ReducedRedundancy: "REDUCED_REDUNDANCY",
2247
+ Standard: "STANDARD",
2248
+ StandardInfrequentAccess: "STANDARD_IA",
2249
+ };
2250
+ const ExpressionType = {
2251
+ SQL: "SQL",
2252
+ };
2253
+ const StatusCode = {
2254
+ Failed: "Failed",
2255
+ InProgress: "InProgress",
2256
+ Succeeded: "Succeeded",
2257
+ };
2258
+
2258
2259
  Object.defineProperty(exports, "$Command", {
2259
2260
  enumerable: true,
2260
2261
  get: function () { return smithyClient.Command; }
package/dist-es/index.js CHANGED
@@ -3,5 +3,6 @@ export * from "./Glacier";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
5
  export * from "./waiters";
6
- export * from "./models";
6
+ export * from "./models/enums";
7
+ export * from "./models/errors";
7
8
  export { GlacierServiceException } from "./models/GlacierServiceException";
@@ -0,0 +1,52 @@
1
+ export const Type = {
2
+ AmazonCustomerByEmail: "AmazonCustomerByEmail",
3
+ CanonicalUser: "CanonicalUser",
4
+ Group: "Group",
5
+ };
6
+ export const Permission = {
7
+ FULL_CONTROL: "FULL_CONTROL",
8
+ READ: "READ",
9
+ READ_ACP: "READ_ACP",
10
+ WRITE: "WRITE",
11
+ WRITE_ACP: "WRITE_ACP",
12
+ };
13
+ export const ActionCode = {
14
+ ArchiveRetrieval: "ArchiveRetrieval",
15
+ InventoryRetrieval: "InventoryRetrieval",
16
+ Select: "Select",
17
+ };
18
+ export const CannedACL = {
19
+ AuthenticatedRead: "authenticated-read",
20
+ AwsExecRead: "aws-exec-read",
21
+ BucketOwnerFullControl: "bucket-owner-full-control",
22
+ BucketOwnerRead: "bucket-owner-read",
23
+ Private: "private",
24
+ PublicRead: "public-read",
25
+ PublicReadWrite: "public-read-write",
26
+ };
27
+ export const FileHeaderInfo = {
28
+ Ignore: "IGNORE",
29
+ None: "NONE",
30
+ Use: "USE",
31
+ };
32
+ export const QuoteFields = {
33
+ Always: "ALWAYS",
34
+ AsNeeded: "ASNEEDED",
35
+ };
36
+ export const EncryptionType = {
37
+ KMS: "aws:kms",
38
+ S3: "AES256",
39
+ };
40
+ export const StorageClass = {
41
+ ReducedRedundancy: "REDUCED_REDUNDANCY",
42
+ Standard: "STANDARD",
43
+ StandardInfrequentAccess: "STANDARD_IA",
44
+ };
45
+ export const ExpressionType = {
46
+ SQL: "SQL",
47
+ };
48
+ export const StatusCode = {
49
+ Failed: "Failed",
50
+ InProgress: "InProgress",
51
+ Succeeded: "Succeeded",
52
+ };
@@ -0,0 +1,129 @@
1
+ import { GlacierServiceException as __BaseException } from "./GlacierServiceException";
2
+ export class InvalidParameterValueException extends __BaseException {
3
+ name = "InvalidParameterValueException";
4
+ $fault = "client";
5
+ type;
6
+ code;
7
+ constructor(opts) {
8
+ super({
9
+ name: "InvalidParameterValueException",
10
+ $fault: "client",
11
+ ...opts,
12
+ });
13
+ Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
14
+ this.type = opts.type;
15
+ this.code = opts.code;
16
+ }
17
+ }
18
+ export class MissingParameterValueException extends __BaseException {
19
+ name = "MissingParameterValueException";
20
+ $fault = "client";
21
+ type;
22
+ code;
23
+ constructor(opts) {
24
+ super({
25
+ name: "MissingParameterValueException",
26
+ $fault: "client",
27
+ ...opts,
28
+ });
29
+ Object.setPrototypeOf(this, MissingParameterValueException.prototype);
30
+ this.type = opts.type;
31
+ this.code = opts.code;
32
+ }
33
+ }
34
+ export class ResourceNotFoundException extends __BaseException {
35
+ name = "ResourceNotFoundException";
36
+ $fault = "client";
37
+ type;
38
+ code;
39
+ constructor(opts) {
40
+ super({
41
+ name: "ResourceNotFoundException",
42
+ $fault: "client",
43
+ ...opts,
44
+ });
45
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
46
+ this.type = opts.type;
47
+ this.code = opts.code;
48
+ }
49
+ }
50
+ export class ServiceUnavailableException extends __BaseException {
51
+ name = "ServiceUnavailableException";
52
+ $fault = "server";
53
+ type;
54
+ code;
55
+ constructor(opts) {
56
+ super({
57
+ name: "ServiceUnavailableException",
58
+ $fault: "server",
59
+ ...opts,
60
+ });
61
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
62
+ this.type = opts.type;
63
+ this.code = opts.code;
64
+ }
65
+ }
66
+ export class LimitExceededException extends __BaseException {
67
+ name = "LimitExceededException";
68
+ $fault = "client";
69
+ type;
70
+ code;
71
+ constructor(opts) {
72
+ super({
73
+ name: "LimitExceededException",
74
+ $fault: "client",
75
+ ...opts,
76
+ });
77
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
78
+ this.type = opts.type;
79
+ this.code = opts.code;
80
+ }
81
+ }
82
+ export class InsufficientCapacityException extends __BaseException {
83
+ name = "InsufficientCapacityException";
84
+ $fault = "client";
85
+ type;
86
+ code;
87
+ constructor(opts) {
88
+ super({
89
+ name: "InsufficientCapacityException",
90
+ $fault: "client",
91
+ ...opts,
92
+ });
93
+ Object.setPrototypeOf(this, InsufficientCapacityException.prototype);
94
+ this.type = opts.type;
95
+ this.code = opts.code;
96
+ }
97
+ }
98
+ export class PolicyEnforcedException extends __BaseException {
99
+ name = "PolicyEnforcedException";
100
+ $fault = "client";
101
+ type;
102
+ code;
103
+ constructor(opts) {
104
+ super({
105
+ name: "PolicyEnforcedException",
106
+ $fault: "client",
107
+ ...opts,
108
+ });
109
+ Object.setPrototypeOf(this, PolicyEnforcedException.prototype);
110
+ this.type = opts.type;
111
+ this.code = opts.code;
112
+ }
113
+ }
114
+ export class RequestTimeoutException extends __BaseException {
115
+ name = "RequestTimeoutException";
116
+ $fault = "client";
117
+ type;
118
+ code;
119
+ constructor(opts) {
120
+ super({
121
+ name: "RequestTimeoutException",
122
+ $fault: "client",
123
+ ...opts,
124
+ });
125
+ Object.setPrototypeOf(this, RequestTimeoutException.prototype);
126
+ this.type = opts.type;
127
+ this.code = opts.code;
128
+ }
129
+ }
@@ -1,181 +1 @@
1
- import { GlacierServiceException as __BaseException } from "./GlacierServiceException";
2
- export class InvalidParameterValueException extends __BaseException {
3
- name = "InvalidParameterValueException";
4
- $fault = "client";
5
- type;
6
- code;
7
- constructor(opts) {
8
- super({
9
- name: "InvalidParameterValueException",
10
- $fault: "client",
11
- ...opts,
12
- });
13
- Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
14
- this.type = opts.type;
15
- this.code = opts.code;
16
- }
17
- }
18
- export class MissingParameterValueException extends __BaseException {
19
- name = "MissingParameterValueException";
20
- $fault = "client";
21
- type;
22
- code;
23
- constructor(opts) {
24
- super({
25
- name: "MissingParameterValueException",
26
- $fault: "client",
27
- ...opts,
28
- });
29
- Object.setPrototypeOf(this, MissingParameterValueException.prototype);
30
- this.type = opts.type;
31
- this.code = opts.code;
32
- }
33
- }
34
- export class ResourceNotFoundException extends __BaseException {
35
- name = "ResourceNotFoundException";
36
- $fault = "client";
37
- type;
38
- code;
39
- constructor(opts) {
40
- super({
41
- name: "ResourceNotFoundException",
42
- $fault: "client",
43
- ...opts,
44
- });
45
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
46
- this.type = opts.type;
47
- this.code = opts.code;
48
- }
49
- }
50
- export class ServiceUnavailableException extends __BaseException {
51
- name = "ServiceUnavailableException";
52
- $fault = "server";
53
- type;
54
- code;
55
- constructor(opts) {
56
- super({
57
- name: "ServiceUnavailableException",
58
- $fault: "server",
59
- ...opts,
60
- });
61
- Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
62
- this.type = opts.type;
63
- this.code = opts.code;
64
- }
65
- }
66
- export const Type = {
67
- AmazonCustomerByEmail: "AmazonCustomerByEmail",
68
- CanonicalUser: "CanonicalUser",
69
- Group: "Group",
70
- };
71
- export const Permission = {
72
- FULL_CONTROL: "FULL_CONTROL",
73
- READ: "READ",
74
- READ_ACP: "READ_ACP",
75
- WRITE: "WRITE",
76
- WRITE_ACP: "WRITE_ACP",
77
- };
78
- export const ActionCode = {
79
- ArchiveRetrieval: "ArchiveRetrieval",
80
- InventoryRetrieval: "InventoryRetrieval",
81
- Select: "Select",
82
- };
83
- export class LimitExceededException extends __BaseException {
84
- name = "LimitExceededException";
85
- $fault = "client";
86
- type;
87
- code;
88
- constructor(opts) {
89
- super({
90
- name: "LimitExceededException",
91
- $fault: "client",
92
- ...opts,
93
- });
94
- Object.setPrototypeOf(this, LimitExceededException.prototype);
95
- this.type = opts.type;
96
- this.code = opts.code;
97
- }
98
- }
99
- export const CannedACL = {
100
- AuthenticatedRead: "authenticated-read",
101
- AwsExecRead: "aws-exec-read",
102
- BucketOwnerFullControl: "bucket-owner-full-control",
103
- BucketOwnerRead: "bucket-owner-read",
104
- Private: "private",
105
- PublicRead: "public-read",
106
- PublicReadWrite: "public-read-write",
107
- };
108
- export const FileHeaderInfo = {
109
- Ignore: "IGNORE",
110
- None: "NONE",
111
- Use: "USE",
112
- };
113
- export const QuoteFields = {
114
- Always: "ALWAYS",
115
- AsNeeded: "ASNEEDED",
116
- };
117
- export const EncryptionType = {
118
- KMS: "aws:kms",
119
- S3: "AES256",
120
- };
121
- export const StorageClass = {
122
- ReducedRedundancy: "REDUCED_REDUNDANCY",
123
- Standard: "STANDARD",
124
- StandardInfrequentAccess: "STANDARD_IA",
125
- };
126
- export const ExpressionType = {
127
- SQL: "SQL",
128
- };
129
- export const StatusCode = {
130
- Failed: "Failed",
131
- InProgress: "InProgress",
132
- Succeeded: "Succeeded",
133
- };
134
- export class InsufficientCapacityException extends __BaseException {
135
- name = "InsufficientCapacityException";
136
- $fault = "client";
137
- type;
138
- code;
139
- constructor(opts) {
140
- super({
141
- name: "InsufficientCapacityException",
142
- $fault: "client",
143
- ...opts,
144
- });
145
- Object.setPrototypeOf(this, InsufficientCapacityException.prototype);
146
- this.type = opts.type;
147
- this.code = opts.code;
148
- }
149
- }
150
- export class PolicyEnforcedException extends __BaseException {
151
- name = "PolicyEnforcedException";
152
- $fault = "client";
153
- type;
154
- code;
155
- constructor(opts) {
156
- super({
157
- name: "PolicyEnforcedException",
158
- $fault: "client",
159
- ...opts,
160
- });
161
- Object.setPrototypeOf(this, PolicyEnforcedException.prototype);
162
- this.type = opts.type;
163
- this.code = opts.code;
164
- }
165
- }
166
- export class RequestTimeoutException extends __BaseException {
167
- name = "RequestTimeoutException";
168
- $fault = "client";
169
- type;
170
- code;
171
- constructor(opts) {
172
- super({
173
- name: "RequestTimeoutException",
174
- $fault: "client",
175
- ...opts,
176
- });
177
- Object.setPrototypeOf(this, RequestTimeoutException.prototype);
178
- this.type = opts.type;
179
- this.code = opts.code;
180
- }
181
- }
1
+ export {};
@@ -247,8 +247,8 @@ const _xaps = "x-amz-part-size";
247
247
  const _xasth = "x-amz-sha256-tree-hash";
248
248
  const n0 = "com.amazonaws.glacier";
249
249
  import { TypeRegistry } from "@smithy/core/schema";
250
+ import { InsufficientCapacityException as __InsufficientCapacityException, InvalidParameterValueException as __InvalidParameterValueException, LimitExceededException as __LimitExceededException, MissingParameterValueException as __MissingParameterValueException, PolicyEnforcedException as __PolicyEnforcedException, RequestTimeoutException as __RequestTimeoutException, ResourceNotFoundException as __ResourceNotFoundException, ServiceUnavailableException as __ServiceUnavailableException, } from "../models/errors";
250
251
  import { GlacierServiceException as __GlacierServiceException } from "../models/GlacierServiceException";
251
- import { InsufficientCapacityException as __InsufficientCapacityException, InvalidParameterValueException as __InvalidParameterValueException, LimitExceededException as __LimitExceededException, MissingParameterValueException as __MissingParameterValueException, PolicyEnforcedException as __PolicyEnforcedException, RequestTimeoutException as __RequestTimeoutException, ResourceNotFoundException as __ResourceNotFoundException, ServiceUnavailableException as __ServiceUnavailableException, } from "../models/index";
252
252
  export var _Stream = [
253
253
  0,
254
254
  n0,
@@ -48,5 +48,7 @@ export type { GlacierExtensionConfiguration } from "./extensionConfiguration";
48
48
  export * from "./commands";
49
49
  export * from "./pagination";
50
50
  export * from "./waiters";
51
- export * from "./models";
51
+ export * from "./models/enums";
52
+ export * from "./models/errors";
53
+ export type * from "./models/models_0";
52
54
  export { GlacierServiceException } from "./models/GlacierServiceException";
@@ -0,0 +1,132 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const Type: {
6
+ readonly AmazonCustomerByEmail: "AmazonCustomerByEmail";
7
+ readonly CanonicalUser: "CanonicalUser";
8
+ readonly Group: "Group";
9
+ };
10
+ /**
11
+ * @public
12
+ */
13
+ export type Type = (typeof Type)[keyof typeof Type];
14
+ /**
15
+ * @public
16
+ * @enum
17
+ */
18
+ export declare const Permission: {
19
+ readonly FULL_CONTROL: "FULL_CONTROL";
20
+ readonly READ: "READ";
21
+ readonly READ_ACP: "READ_ACP";
22
+ readonly WRITE: "WRITE";
23
+ readonly WRITE_ACP: "WRITE_ACP";
24
+ };
25
+ /**
26
+ * @public
27
+ */
28
+ export type Permission = (typeof Permission)[keyof typeof Permission];
29
+ /**
30
+ * @public
31
+ * @enum
32
+ */
33
+ export declare const ActionCode: {
34
+ readonly ArchiveRetrieval: "ArchiveRetrieval";
35
+ readonly InventoryRetrieval: "InventoryRetrieval";
36
+ readonly Select: "Select";
37
+ };
38
+ /**
39
+ * @public
40
+ */
41
+ export type ActionCode = (typeof ActionCode)[keyof typeof ActionCode];
42
+ /**
43
+ * @public
44
+ * @enum
45
+ */
46
+ export declare const CannedACL: {
47
+ readonly AuthenticatedRead: "authenticated-read";
48
+ readonly AwsExecRead: "aws-exec-read";
49
+ readonly BucketOwnerFullControl: "bucket-owner-full-control";
50
+ readonly BucketOwnerRead: "bucket-owner-read";
51
+ readonly Private: "private";
52
+ readonly PublicRead: "public-read";
53
+ readonly PublicReadWrite: "public-read-write";
54
+ };
55
+ /**
56
+ * @public
57
+ */
58
+ export type CannedACL = (typeof CannedACL)[keyof typeof CannedACL];
59
+ /**
60
+ * @public
61
+ * @enum
62
+ */
63
+ export declare const FileHeaderInfo: {
64
+ readonly Ignore: "IGNORE";
65
+ readonly None: "NONE";
66
+ readonly Use: "USE";
67
+ };
68
+ /**
69
+ * @public
70
+ */
71
+ export type FileHeaderInfo = (typeof FileHeaderInfo)[keyof typeof FileHeaderInfo];
72
+ /**
73
+ * @public
74
+ * @enum
75
+ */
76
+ export declare const QuoteFields: {
77
+ readonly Always: "ALWAYS";
78
+ readonly AsNeeded: "ASNEEDED";
79
+ };
80
+ /**
81
+ * @public
82
+ */
83
+ export type QuoteFields = (typeof QuoteFields)[keyof typeof QuoteFields];
84
+ /**
85
+ * @public
86
+ * @enum
87
+ */
88
+ export declare const EncryptionType: {
89
+ readonly KMS: "aws:kms";
90
+ readonly S3: "AES256";
91
+ };
92
+ /**
93
+ * @public
94
+ */
95
+ export type EncryptionType = (typeof EncryptionType)[keyof typeof EncryptionType];
96
+ /**
97
+ * @public
98
+ * @enum
99
+ */
100
+ export declare const StorageClass: {
101
+ readonly ReducedRedundancy: "REDUCED_REDUNDANCY";
102
+ readonly Standard: "STANDARD";
103
+ readonly StandardInfrequentAccess: "STANDARD_IA";
104
+ };
105
+ /**
106
+ * @public
107
+ */
108
+ export type StorageClass = (typeof StorageClass)[keyof typeof StorageClass];
109
+ /**
110
+ * @public
111
+ * @enum
112
+ */
113
+ export declare const ExpressionType: {
114
+ readonly SQL: "SQL";
115
+ };
116
+ /**
117
+ * @public
118
+ */
119
+ export type ExpressionType = (typeof ExpressionType)[keyof typeof ExpressionType];
120
+ /**
121
+ * @public
122
+ * @enum
123
+ */
124
+ export declare const StatusCode: {
125
+ readonly Failed: "Failed";
126
+ readonly InProgress: "InProgress";
127
+ readonly Succeeded: "Succeeded";
128
+ };
129
+ /**
130
+ * @public
131
+ */
132
+ export type StatusCode = (typeof StatusCode)[keyof typeof StatusCode];