@aws-sdk/client-glacier 3.1036.0 → 3.1038.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 +2 -2
- package/dist-es/waiters/waitForVaultExists.js +2 -2
- package/dist-es/waiters/waitForVaultNotExists.js +2 -2
- package/dist-types/Glacier.d.ts +3 -2
- package/dist-types/ts3.4/Glacier.d.ts +3 -2
- package/dist-types/ts3.4/waiters/waitForVaultExists.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForVaultNotExists.d.ts +10 -3
- package/dist-types/waiters/waitForVaultExists.d.ts +4 -3
- package/dist-types/waiters/waitForVaultNotExists.d.ts +5 -3
- package/package.json +8 -8
package/dist-cjs/index.js
CHANGED
|
@@ -529,7 +529,7 @@ const checkState$1 = async (client, input) => {
|
|
|
529
529
|
}
|
|
530
530
|
catch (exception) {
|
|
531
531
|
reason = exception;
|
|
532
|
-
if (exception.name
|
|
532
|
+
if (exception.name === "ResourceNotFoundException") {
|
|
533
533
|
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
534
534
|
}
|
|
535
535
|
}
|
|
@@ -554,7 +554,7 @@ const checkState = async (client, input) => {
|
|
|
554
554
|
}
|
|
555
555
|
catch (exception) {
|
|
556
556
|
reason = exception;
|
|
557
|
-
if (exception.name
|
|
557
|
+
if (exception.name === "ResourceNotFoundException") {
|
|
558
558
|
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
559
559
|
}
|
|
560
560
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
|
|
2
|
-
import { DescribeVaultCommand } from "../commands/DescribeVaultCommand";
|
|
2
|
+
import { DescribeVaultCommand, } from "../commands/DescribeVaultCommand";
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
@@ -9,7 +9,7 @@ const checkState = async (client, input) => {
|
|
|
9
9
|
}
|
|
10
10
|
catch (exception) {
|
|
11
11
|
reason = exception;
|
|
12
|
-
if (exception.name
|
|
12
|
+
if (exception.name === "ResourceNotFoundException") {
|
|
13
13
|
return { state: WaiterState.RETRY, reason };
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
|
|
2
|
-
import { DescribeVaultCommand } from "../commands/DescribeVaultCommand";
|
|
2
|
+
import { DescribeVaultCommand, } from "../commands/DescribeVaultCommand";
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
@@ -9,7 +9,7 @@ const checkState = async (client, input) => {
|
|
|
9
9
|
}
|
|
10
10
|
catch (exception) {
|
|
11
11
|
reason = exception;
|
|
12
|
-
if (exception.name
|
|
12
|
+
if (exception.name === "ResourceNotFoundException") {
|
|
13
13
|
return { state: WaiterState.SUCCESS, reason };
|
|
14
14
|
}
|
|
15
15
|
}
|
package/dist-types/Glacier.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ import { type SetVaultNotificationsCommandInput, type SetVaultNotificationsComma
|
|
|
34
34
|
import { type UploadArchiveCommandInput, type UploadArchiveCommandOutput } from "./commands/UploadArchiveCommand";
|
|
35
35
|
import { type UploadMultipartPartCommandInput, type UploadMultipartPartCommandOutput } from "./commands/UploadMultipartPartCommand";
|
|
36
36
|
import { GlacierClient } from "./GlacierClient";
|
|
37
|
+
import type { ResourceNotFoundException } from "./models/errors";
|
|
37
38
|
export interface Glacier {
|
|
38
39
|
/**
|
|
39
40
|
* @see {@link AbortMultipartUploadCommand}
|
|
@@ -266,13 +267,13 @@ export interface Glacier {
|
|
|
266
267
|
* @param args - command input.
|
|
267
268
|
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
|
|
268
269
|
*/
|
|
269
|
-
waitUntilVaultExists(args: DescribeVaultCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Glacier>, "client">): Promise<WaiterResult
|
|
270
|
+
waitUntilVaultExists(args: DescribeVaultCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Glacier>, "client">): Promise<WaiterResult<DescribeVaultCommandOutput>>;
|
|
270
271
|
/**
|
|
271
272
|
* @see {@link DescribeVaultCommand}
|
|
272
273
|
* @param args - command input.
|
|
273
274
|
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
|
|
274
275
|
*/
|
|
275
|
-
waitUntilVaultNotExists(args: DescribeVaultCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Glacier>, "client">): Promise<WaiterResult
|
|
276
|
+
waitUntilVaultNotExists(args: DescribeVaultCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Glacier>, "client">): Promise<WaiterResult<ResourceNotFoundException>>;
|
|
276
277
|
}
|
|
277
278
|
/**
|
|
278
279
|
* <p> Amazon Glacier (Glacier) is a storage solution for "cold data."</p>
|
|
@@ -138,6 +138,7 @@ import {
|
|
|
138
138
|
UploadMultipartPartCommandOutput,
|
|
139
139
|
} from "./commands/UploadMultipartPartCommand";
|
|
140
140
|
import { GlacierClient } from "./GlacierClient";
|
|
141
|
+
import { ResourceNotFoundException } from "./models/errors";
|
|
141
142
|
export interface Glacier {
|
|
142
143
|
abortMultipartUpload(
|
|
143
144
|
args: AbortMultipartUploadCommandInput,
|
|
@@ -604,7 +605,7 @@ export interface Glacier {
|
|
|
604
605
|
WaiterConfiguration<Glacier>,
|
|
605
606
|
Exclude<keyof WaiterConfiguration<Glacier>, "client">
|
|
606
607
|
>
|
|
607
|
-
): Promise<WaiterResult
|
|
608
|
+
): Promise<WaiterResult<DescribeVaultCommandOutput>>;
|
|
608
609
|
waitUntilVaultNotExists(
|
|
609
610
|
args: DescribeVaultCommandInput,
|
|
610
611
|
waiterConfig:
|
|
@@ -613,6 +614,6 @@ export interface Glacier {
|
|
|
613
614
|
WaiterConfiguration<Glacier>,
|
|
614
615
|
Exclude<keyof WaiterConfiguration<Glacier>, "client">
|
|
615
616
|
>
|
|
616
|
-
): Promise<WaiterResult
|
|
617
|
+
): Promise<WaiterResult<ResourceNotFoundException>>;
|
|
617
618
|
}
|
|
618
619
|
export declare class Glacier extends GlacierClient implements Glacier {}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
DescribeVaultCommandInput,
|
|
4
|
+
DescribeVaultCommandOutput,
|
|
5
|
+
} from "../commands/DescribeVaultCommand";
|
|
3
6
|
import { GlacierClient } from "../GlacierClient";
|
|
7
|
+
import { GlacierServiceException } from "../models/GlacierServiceException";
|
|
4
8
|
export declare const waitForVaultExists: (
|
|
5
9
|
params: WaiterConfiguration<GlacierClient>,
|
|
6
10
|
input: DescribeVaultCommandInput
|
|
7
|
-
) => Promise<
|
|
11
|
+
) => Promise<
|
|
12
|
+
WaiterResult<DescribeVaultCommandOutput | GlacierServiceException>
|
|
13
|
+
>;
|
|
8
14
|
export declare const waitUntilVaultExists: (
|
|
9
15
|
params: WaiterConfiguration<GlacierClient>,
|
|
10
16
|
input: DescribeVaultCommandInput
|
|
11
|
-
) => Promise<WaiterResult
|
|
17
|
+
) => Promise<WaiterResult<DescribeVaultCommandOutput>>;
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
DescribeVaultCommandInput,
|
|
4
|
+
DescribeVaultCommandOutput,
|
|
5
|
+
} from "../commands/DescribeVaultCommand";
|
|
3
6
|
import { GlacierClient } from "../GlacierClient";
|
|
7
|
+
import { ResourceNotFoundException } from "../models/errors";
|
|
8
|
+
import { GlacierServiceException } from "../models/GlacierServiceException";
|
|
4
9
|
export declare const waitForVaultNotExists: (
|
|
5
10
|
params: WaiterConfiguration<GlacierClient>,
|
|
6
11
|
input: DescribeVaultCommandInput
|
|
7
|
-
) => Promise<
|
|
12
|
+
) => Promise<
|
|
13
|
+
WaiterResult<DescribeVaultCommandOutput | GlacierServiceException>
|
|
14
|
+
>;
|
|
8
15
|
export declare const waitUntilVaultNotExists: (
|
|
9
16
|
params: WaiterConfiguration<GlacierClient>,
|
|
10
17
|
input: DescribeVaultCommandInput
|
|
11
|
-
) => Promise<WaiterResult
|
|
18
|
+
) => Promise<WaiterResult<ResourceNotFoundException>>;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
|
|
2
|
-
import { type DescribeVaultCommandInput } from "../commands/DescribeVaultCommand";
|
|
2
|
+
import { type DescribeVaultCommandInput, type DescribeVaultCommandOutput } from "../commands/DescribeVaultCommand";
|
|
3
3
|
import type { GlacierClient } from "../GlacierClient";
|
|
4
|
+
import type { GlacierServiceException } from "../models/GlacierServiceException";
|
|
4
5
|
/**
|
|
5
6
|
*
|
|
6
7
|
* @deprecated Use waitUntilVaultExists instead. waitForVaultExists does not throw error in non-success cases.
|
|
7
8
|
*/
|
|
8
|
-
export declare const waitForVaultExists: (params: WaiterConfiguration<GlacierClient>, input: DescribeVaultCommandInput) => Promise<WaiterResult
|
|
9
|
+
export declare const waitForVaultExists: (params: WaiterConfiguration<GlacierClient>, input: DescribeVaultCommandInput) => Promise<WaiterResult<DescribeVaultCommandOutput | GlacierServiceException>>;
|
|
9
10
|
/**
|
|
10
11
|
*
|
|
11
12
|
* @param params - Waiter configuration options.
|
|
12
13
|
* @param input - The input to DescribeVaultCommand for polling.
|
|
13
14
|
*/
|
|
14
|
-
export declare const waitUntilVaultExists: (params: WaiterConfiguration<GlacierClient>, input: DescribeVaultCommandInput) => Promise<WaiterResult
|
|
15
|
+
export declare const waitUntilVaultExists: (params: WaiterConfiguration<GlacierClient>, input: DescribeVaultCommandInput) => Promise<WaiterResult<DescribeVaultCommandOutput>>;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
|
|
2
|
-
import { type DescribeVaultCommandInput } from "../commands/DescribeVaultCommand";
|
|
2
|
+
import { type DescribeVaultCommandInput, type DescribeVaultCommandOutput } from "../commands/DescribeVaultCommand";
|
|
3
3
|
import type { GlacierClient } from "../GlacierClient";
|
|
4
|
+
import type { ResourceNotFoundException } from "../models/errors";
|
|
5
|
+
import type { GlacierServiceException } from "../models/GlacierServiceException";
|
|
4
6
|
/**
|
|
5
7
|
*
|
|
6
8
|
* @deprecated Use waitUntilVaultNotExists instead. waitForVaultNotExists does not throw error in non-success cases.
|
|
7
9
|
*/
|
|
8
|
-
export declare const waitForVaultNotExists: (params: WaiterConfiguration<GlacierClient>, input: DescribeVaultCommandInput) => Promise<WaiterResult
|
|
10
|
+
export declare const waitForVaultNotExists: (params: WaiterConfiguration<GlacierClient>, input: DescribeVaultCommandInput) => Promise<WaiterResult<DescribeVaultCommandOutput | GlacierServiceException>>;
|
|
9
11
|
/**
|
|
10
12
|
*
|
|
11
13
|
* @param params - Waiter configuration options.
|
|
12
14
|
* @param input - The input to DescribeVaultCommand for polling.
|
|
13
15
|
*/
|
|
14
|
-
export declare const waitUntilVaultNotExists: (params: WaiterConfiguration<GlacierClient>, input: DescribeVaultCommandInput) => Promise<WaiterResult
|
|
16
|
+
export declare const waitUntilVaultNotExists: (params: WaiterConfiguration<GlacierClient>, input: DescribeVaultCommandInput) => Promise<WaiterResult<ResourceNotFoundException>>;
|
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.
|
|
4
|
+
"version": "3.1038.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-glacier",
|
|
@@ -23,18 +23,18 @@
|
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
24
|
"@aws-sdk/body-checksum-browser": "^3.972.11",
|
|
25
25
|
"@aws-sdk/body-checksum-node": "^3.972.11",
|
|
26
|
-
"@aws-sdk/core": "^3.974.
|
|
27
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
+
"@aws-sdk/core": "^3.974.6",
|
|
27
|
+
"@aws-sdk/credential-provider-node": "^3.972.37",
|
|
28
28
|
"@aws-sdk/middleware-host-header": "^3.972.10",
|
|
29
29
|
"@aws-sdk/middleware-logger": "^3.972.10",
|
|
30
30
|
"@aws-sdk/middleware-recursion-detection": "^3.972.11",
|
|
31
31
|
"@aws-sdk/middleware-sdk-glacier": "^3.972.10",
|
|
32
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
32
|
+
"@aws-sdk/middleware-user-agent": "^3.972.36",
|
|
33
33
|
"@aws-sdk/region-config-resolver": "^3.972.13",
|
|
34
34
|
"@aws-sdk/types": "^3.973.8",
|
|
35
35
|
"@aws-sdk/util-endpoints": "^3.996.8",
|
|
36
36
|
"@aws-sdk/util-user-agent-browser": "^3.972.10",
|
|
37
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
37
|
+
"@aws-sdk/util-user-agent-node": "^3.973.22",
|
|
38
38
|
"@smithy/config-resolver": "^4.4.17",
|
|
39
39
|
"@smithy/core": "^3.23.17",
|
|
40
40
|
"@smithy/fetch-http-handler": "^5.3.17",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@smithy/invalid-dependency": "^4.2.14",
|
|
43
43
|
"@smithy/middleware-content-length": "^4.2.14",
|
|
44
44
|
"@smithy/middleware-endpoint": "^4.4.32",
|
|
45
|
-
"@smithy/middleware-retry": "^4.5.
|
|
45
|
+
"@smithy/middleware-retry": "^4.5.6",
|
|
46
46
|
"@smithy/middleware-serde": "^4.2.20",
|
|
47
47
|
"@smithy/middleware-stack": "^4.2.14",
|
|
48
48
|
"@smithy/node-config-provider": "^4.3.14",
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
"@smithy/util-defaults-mode-node": "^4.2.54",
|
|
59
59
|
"@smithy/util-endpoints": "^3.4.2",
|
|
60
60
|
"@smithy/util-middleware": "^4.2.14",
|
|
61
|
-
"@smithy/util-retry": "^4.3.
|
|
61
|
+
"@smithy/util-retry": "^4.3.5",
|
|
62
62
|
"@smithy/util-stream": "^4.5.25",
|
|
63
63
|
"@smithy/util-utf8": "^4.2.2",
|
|
64
|
-
"@smithy/util-waiter": "^4.
|
|
64
|
+
"@smithy/util-waiter": "^4.3.0",
|
|
65
65
|
"tslib": "^2.6.2"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|