@aws-sdk/client-glacier 3.975.0 → 3.978.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 +49 -39
- package/dist-es/Glacier.js +17 -1
- package/dist-types/Glacier.d.ts +42 -1
- package/dist-types/ts3.4/Glacier.d.ts +53 -1
- package/package.json +20 -20
package/dist-cjs/index.js
CHANGED
|
@@ -1459,45 +1459,6 @@ class UploadMultipartPartCommand extends smithyClient.Command
|
|
|
1459
1459
|
.build() {
|
|
1460
1460
|
}
|
|
1461
1461
|
|
|
1462
|
-
const commands = {
|
|
1463
|
-
AbortMultipartUploadCommand,
|
|
1464
|
-
AbortVaultLockCommand,
|
|
1465
|
-
AddTagsToVaultCommand,
|
|
1466
|
-
CompleteMultipartUploadCommand,
|
|
1467
|
-
CompleteVaultLockCommand,
|
|
1468
|
-
CreateVaultCommand,
|
|
1469
|
-
DeleteArchiveCommand,
|
|
1470
|
-
DeleteVaultCommand,
|
|
1471
|
-
DeleteVaultAccessPolicyCommand,
|
|
1472
|
-
DeleteVaultNotificationsCommand,
|
|
1473
|
-
DescribeJobCommand,
|
|
1474
|
-
DescribeVaultCommand,
|
|
1475
|
-
GetDataRetrievalPolicyCommand,
|
|
1476
|
-
GetJobOutputCommand,
|
|
1477
|
-
GetVaultAccessPolicyCommand,
|
|
1478
|
-
GetVaultLockCommand,
|
|
1479
|
-
GetVaultNotificationsCommand,
|
|
1480
|
-
InitiateJobCommand,
|
|
1481
|
-
InitiateMultipartUploadCommand,
|
|
1482
|
-
InitiateVaultLockCommand,
|
|
1483
|
-
ListJobsCommand,
|
|
1484
|
-
ListMultipartUploadsCommand,
|
|
1485
|
-
ListPartsCommand,
|
|
1486
|
-
ListProvisionedCapacityCommand,
|
|
1487
|
-
ListTagsForVaultCommand,
|
|
1488
|
-
ListVaultsCommand,
|
|
1489
|
-
PurchaseProvisionedCapacityCommand,
|
|
1490
|
-
RemoveTagsFromVaultCommand,
|
|
1491
|
-
SetDataRetrievalPolicyCommand,
|
|
1492
|
-
SetVaultAccessPolicyCommand,
|
|
1493
|
-
SetVaultNotificationsCommand,
|
|
1494
|
-
UploadArchiveCommand,
|
|
1495
|
-
UploadMultipartPartCommand,
|
|
1496
|
-
};
|
|
1497
|
-
class Glacier extends GlacierClient {
|
|
1498
|
-
}
|
|
1499
|
-
smithyClient.createAggregatedClient(commands, Glacier);
|
|
1500
|
-
|
|
1501
1462
|
const paginateListJobs = core.createPaginator(GlacierClient, ListJobsCommand, "marker", "Marker", "limit");
|
|
1502
1463
|
|
|
1503
1464
|
const paginateListMultipartUploads = core.createPaginator(GlacierClient, ListMultipartUploadsCommand, "marker", "Marker", "limit");
|
|
@@ -1556,6 +1517,55 @@ const waitUntilVaultNotExists = async (params, input) => {
|
|
|
1556
1517
|
return utilWaiter.checkExceptions(result);
|
|
1557
1518
|
};
|
|
1558
1519
|
|
|
1520
|
+
const commands = {
|
|
1521
|
+
AbortMultipartUploadCommand,
|
|
1522
|
+
AbortVaultLockCommand,
|
|
1523
|
+
AddTagsToVaultCommand,
|
|
1524
|
+
CompleteMultipartUploadCommand,
|
|
1525
|
+
CompleteVaultLockCommand,
|
|
1526
|
+
CreateVaultCommand,
|
|
1527
|
+
DeleteArchiveCommand,
|
|
1528
|
+
DeleteVaultCommand,
|
|
1529
|
+
DeleteVaultAccessPolicyCommand,
|
|
1530
|
+
DeleteVaultNotificationsCommand,
|
|
1531
|
+
DescribeJobCommand,
|
|
1532
|
+
DescribeVaultCommand,
|
|
1533
|
+
GetDataRetrievalPolicyCommand,
|
|
1534
|
+
GetJobOutputCommand,
|
|
1535
|
+
GetVaultAccessPolicyCommand,
|
|
1536
|
+
GetVaultLockCommand,
|
|
1537
|
+
GetVaultNotificationsCommand,
|
|
1538
|
+
InitiateJobCommand,
|
|
1539
|
+
InitiateMultipartUploadCommand,
|
|
1540
|
+
InitiateVaultLockCommand,
|
|
1541
|
+
ListJobsCommand,
|
|
1542
|
+
ListMultipartUploadsCommand,
|
|
1543
|
+
ListPartsCommand,
|
|
1544
|
+
ListProvisionedCapacityCommand,
|
|
1545
|
+
ListTagsForVaultCommand,
|
|
1546
|
+
ListVaultsCommand,
|
|
1547
|
+
PurchaseProvisionedCapacityCommand,
|
|
1548
|
+
RemoveTagsFromVaultCommand,
|
|
1549
|
+
SetDataRetrievalPolicyCommand,
|
|
1550
|
+
SetVaultAccessPolicyCommand,
|
|
1551
|
+
SetVaultNotificationsCommand,
|
|
1552
|
+
UploadArchiveCommand,
|
|
1553
|
+
UploadMultipartPartCommand,
|
|
1554
|
+
};
|
|
1555
|
+
const paginators = {
|
|
1556
|
+
paginateListJobs,
|
|
1557
|
+
paginateListMultipartUploads,
|
|
1558
|
+
paginateListParts,
|
|
1559
|
+
paginateListVaults,
|
|
1560
|
+
};
|
|
1561
|
+
const waiters = {
|
|
1562
|
+
waitUntilVaultExists,
|
|
1563
|
+
waitUntilVaultNotExists,
|
|
1564
|
+
};
|
|
1565
|
+
class Glacier extends GlacierClient {
|
|
1566
|
+
}
|
|
1567
|
+
smithyClient.createAggregatedClient(commands, Glacier, { paginators, waiters });
|
|
1568
|
+
|
|
1559
1569
|
const Type = {
|
|
1560
1570
|
AmazonCustomerByEmail: "AmazonCustomerByEmail",
|
|
1561
1571
|
CanonicalUser: "CanonicalUser",
|
package/dist-es/Glacier.js
CHANGED
|
@@ -33,6 +33,12 @@ import { SetVaultNotificationsCommand, } from "./commands/SetVaultNotificationsC
|
|
|
33
33
|
import { UploadArchiveCommand, } from "./commands/UploadArchiveCommand";
|
|
34
34
|
import { UploadMultipartPartCommand, } from "./commands/UploadMultipartPartCommand";
|
|
35
35
|
import { GlacierClient } from "./GlacierClient";
|
|
36
|
+
import { paginateListJobs } from "./pagination/ListJobsPaginator";
|
|
37
|
+
import { paginateListMultipartUploads } from "./pagination/ListMultipartUploadsPaginator";
|
|
38
|
+
import { paginateListParts } from "./pagination/ListPartsPaginator";
|
|
39
|
+
import { paginateListVaults } from "./pagination/ListVaultsPaginator";
|
|
40
|
+
import { waitUntilVaultExists } from "./waiters/waitForVaultExists";
|
|
41
|
+
import { waitUntilVaultNotExists } from "./waiters/waitForVaultNotExists";
|
|
36
42
|
const commands = {
|
|
37
43
|
AbortMultipartUploadCommand,
|
|
38
44
|
AbortVaultLockCommand,
|
|
@@ -68,6 +74,16 @@ const commands = {
|
|
|
68
74
|
UploadArchiveCommand,
|
|
69
75
|
UploadMultipartPartCommand,
|
|
70
76
|
};
|
|
77
|
+
const paginators = {
|
|
78
|
+
paginateListJobs,
|
|
79
|
+
paginateListMultipartUploads,
|
|
80
|
+
paginateListParts,
|
|
81
|
+
paginateListVaults,
|
|
82
|
+
};
|
|
83
|
+
const waiters = {
|
|
84
|
+
waitUntilVaultExists,
|
|
85
|
+
waitUntilVaultNotExists,
|
|
86
|
+
};
|
|
71
87
|
export class Glacier extends GlacierClient {
|
|
72
88
|
}
|
|
73
|
-
createAggregatedClient(commands, Glacier);
|
|
89
|
+
createAggregatedClient(commands, Glacier, { paginators, waiters });
|
package/dist-types/Glacier.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator, WaiterConfiguration } from "@smithy/types";
|
|
2
|
+
import type { WaiterResult } from "@smithy/util-waiter";
|
|
2
3
|
import { type AbortMultipartUploadCommandInput, type AbortMultipartUploadCommandOutput } from "./commands/AbortMultipartUploadCommand";
|
|
3
4
|
import { type AbortVaultLockCommandInput, type AbortVaultLockCommandOutput } from "./commands/AbortVaultLockCommand";
|
|
4
5
|
import { type AddTagsToVaultCommandInput, type AddTagsToVaultCommandOutput } from "./commands/AddTagsToVaultCommand";
|
|
@@ -232,6 +233,46 @@ export interface Glacier {
|
|
|
232
233
|
uploadMultipartPart(args: UploadMultipartPartCommandInput, options?: __HttpHandlerOptions): Promise<UploadMultipartPartCommandOutput>;
|
|
233
234
|
uploadMultipartPart(args: UploadMultipartPartCommandInput, cb: (err: any, data?: UploadMultipartPartCommandOutput) => void): void;
|
|
234
235
|
uploadMultipartPart(args: UploadMultipartPartCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UploadMultipartPartCommandOutput) => void): void;
|
|
236
|
+
/**
|
|
237
|
+
* @see {@link ListJobsCommand}
|
|
238
|
+
* @param args - command input.
|
|
239
|
+
* @param paginationConfig - optional pagination config.
|
|
240
|
+
* @returns AsyncIterable of {@link ListJobsCommandOutput}.
|
|
241
|
+
*/
|
|
242
|
+
paginateListJobs(args: ListJobsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListJobsCommandOutput>;
|
|
243
|
+
/**
|
|
244
|
+
* @see {@link ListMultipartUploadsCommand}
|
|
245
|
+
* @param args - command input.
|
|
246
|
+
* @param paginationConfig - optional pagination config.
|
|
247
|
+
* @returns AsyncIterable of {@link ListMultipartUploadsCommandOutput}.
|
|
248
|
+
*/
|
|
249
|
+
paginateListMultipartUploads(args: ListMultipartUploadsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListMultipartUploadsCommandOutput>;
|
|
250
|
+
/**
|
|
251
|
+
* @see {@link ListPartsCommand}
|
|
252
|
+
* @param args - command input.
|
|
253
|
+
* @param paginationConfig - optional pagination config.
|
|
254
|
+
* @returns AsyncIterable of {@link ListPartsCommandOutput}.
|
|
255
|
+
*/
|
|
256
|
+
paginateListParts(args: ListPartsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListPartsCommandOutput>;
|
|
257
|
+
/**
|
|
258
|
+
* @see {@link ListVaultsCommand}
|
|
259
|
+
* @param args - command input.
|
|
260
|
+
* @param paginationConfig - optional pagination config.
|
|
261
|
+
* @returns AsyncIterable of {@link ListVaultsCommandOutput}.
|
|
262
|
+
*/
|
|
263
|
+
paginateListVaults(args: ListVaultsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListVaultsCommandOutput>;
|
|
264
|
+
/**
|
|
265
|
+
* @see {@link DescribeVaultCommand}
|
|
266
|
+
* @param args - command input.
|
|
267
|
+
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
|
|
268
|
+
*/
|
|
269
|
+
waitUntilVaultExists(args: DescribeVaultCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Glacier>, "client">): Promise<WaiterResult>;
|
|
270
|
+
/**
|
|
271
|
+
* @see {@link DescribeVaultCommand}
|
|
272
|
+
* @param args - command input.
|
|
273
|
+
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
|
|
274
|
+
*/
|
|
275
|
+
waitUntilVaultNotExists(args: DescribeVaultCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Glacier>, "client">): Promise<WaiterResult>;
|
|
235
276
|
}
|
|
236
277
|
/**
|
|
237
278
|
* <p> Amazon Glacier (Glacier) is a storage solution for "cold data."</p>
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
PaginationConfiguration,
|
|
4
|
+
Paginator,
|
|
5
|
+
WaiterConfiguration,
|
|
6
|
+
} from "@smithy/types";
|
|
7
|
+
import { WaiterResult } from "@smithy/util-waiter";
|
|
2
8
|
import {
|
|
3
9
|
AbortMultipartUploadCommandInput,
|
|
4
10
|
AbortMultipartUploadCommandOutput,
|
|
@@ -562,5 +568,51 @@ export interface Glacier {
|
|
|
562
568
|
options: __HttpHandlerOptions,
|
|
563
569
|
cb: (err: any, data?: UploadMultipartPartCommandOutput) => void
|
|
564
570
|
): void;
|
|
571
|
+
paginateListJobs(
|
|
572
|
+
args: ListJobsCommandInput,
|
|
573
|
+
paginationConfig?: Pick<
|
|
574
|
+
PaginationConfiguration,
|
|
575
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
576
|
+
>
|
|
577
|
+
): Paginator<ListJobsCommandOutput>;
|
|
578
|
+
paginateListMultipartUploads(
|
|
579
|
+
args: ListMultipartUploadsCommandInput,
|
|
580
|
+
paginationConfig?: Pick<
|
|
581
|
+
PaginationConfiguration,
|
|
582
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
583
|
+
>
|
|
584
|
+
): Paginator<ListMultipartUploadsCommandOutput>;
|
|
585
|
+
paginateListParts(
|
|
586
|
+
args: ListPartsCommandInput,
|
|
587
|
+
paginationConfig?: Pick<
|
|
588
|
+
PaginationConfiguration,
|
|
589
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
590
|
+
>
|
|
591
|
+
): Paginator<ListPartsCommandOutput>;
|
|
592
|
+
paginateListVaults(
|
|
593
|
+
args: ListVaultsCommandInput,
|
|
594
|
+
paginationConfig?: Pick<
|
|
595
|
+
PaginationConfiguration,
|
|
596
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
597
|
+
>
|
|
598
|
+
): Paginator<ListVaultsCommandOutput>;
|
|
599
|
+
waitUntilVaultExists(
|
|
600
|
+
args: DescribeVaultCommandInput,
|
|
601
|
+
waiterConfig:
|
|
602
|
+
| number
|
|
603
|
+
| Pick<
|
|
604
|
+
WaiterConfiguration<Glacier>,
|
|
605
|
+
Exclude<keyof WaiterConfiguration<Glacier>, "client">
|
|
606
|
+
>
|
|
607
|
+
): Promise<WaiterResult>;
|
|
608
|
+
waitUntilVaultNotExists(
|
|
609
|
+
args: DescribeVaultCommandInput,
|
|
610
|
+
waiterConfig:
|
|
611
|
+
| number
|
|
612
|
+
| Pick<
|
|
613
|
+
WaiterConfiguration<Glacier>,
|
|
614
|
+
Exclude<keyof WaiterConfiguration<Glacier>, "client">
|
|
615
|
+
>
|
|
616
|
+
): Promise<WaiterResult>;
|
|
565
617
|
}
|
|
566
618
|
export declare class Glacier extends GlacierClient implements Glacier {}
|
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.978.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,41 +23,41 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
26
|
-
"@aws-sdk/body-checksum-browser": "^3.972.
|
|
27
|
-
"@aws-sdk/body-checksum-node": "^3.972.
|
|
28
|
-
"@aws-sdk/core": "^3.973.
|
|
29
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
31
|
-
"@aws-sdk/middleware-logger": "^3.972.
|
|
32
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
33
|
-
"@aws-sdk/middleware-sdk-glacier": "^3.972.
|
|
34
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
35
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
36
|
-
"@aws-sdk/types": "^3.973.
|
|
26
|
+
"@aws-sdk/body-checksum-browser": "^3.972.2",
|
|
27
|
+
"@aws-sdk/body-checksum-node": "^3.972.2",
|
|
28
|
+
"@aws-sdk/core": "^3.973.4",
|
|
29
|
+
"@aws-sdk/credential-provider-node": "^3.972.2",
|
|
30
|
+
"@aws-sdk/middleware-host-header": "^3.972.2",
|
|
31
|
+
"@aws-sdk/middleware-logger": "^3.972.2",
|
|
32
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.2",
|
|
33
|
+
"@aws-sdk/middleware-sdk-glacier": "^3.972.2",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "^3.972.4",
|
|
35
|
+
"@aws-sdk/region-config-resolver": "^3.972.2",
|
|
36
|
+
"@aws-sdk/types": "^3.973.1",
|
|
37
37
|
"@aws-sdk/util-endpoints": "3.972.0",
|
|
38
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
39
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
38
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.2",
|
|
39
|
+
"@aws-sdk/util-user-agent-node": "^3.972.2",
|
|
40
40
|
"@smithy/config-resolver": "^4.4.6",
|
|
41
|
-
"@smithy/core": "^3.
|
|
41
|
+
"@smithy/core": "^3.22.0",
|
|
42
42
|
"@smithy/fetch-http-handler": "^5.3.9",
|
|
43
43
|
"@smithy/hash-node": "^4.2.8",
|
|
44
44
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
45
45
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
46
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
47
|
-
"@smithy/middleware-retry": "^4.4.
|
|
46
|
+
"@smithy/middleware-endpoint": "^4.4.12",
|
|
47
|
+
"@smithy/middleware-retry": "^4.4.29",
|
|
48
48
|
"@smithy/middleware-serde": "^4.2.9",
|
|
49
49
|
"@smithy/middleware-stack": "^4.2.8",
|
|
50
50
|
"@smithy/node-config-provider": "^4.3.8",
|
|
51
51
|
"@smithy/node-http-handler": "^4.4.8",
|
|
52
52
|
"@smithy/protocol-http": "^5.3.8",
|
|
53
|
-
"@smithy/smithy-client": "^4.
|
|
53
|
+
"@smithy/smithy-client": "^4.11.1",
|
|
54
54
|
"@smithy/types": "^4.12.0",
|
|
55
55
|
"@smithy/url-parser": "^4.2.8",
|
|
56
56
|
"@smithy/util-base64": "^4.3.0",
|
|
57
57
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
58
58
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
59
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
60
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
59
|
+
"@smithy/util-defaults-mode-browser": "^4.3.28",
|
|
60
|
+
"@smithy/util-defaults-mode-node": "^4.2.31",
|
|
61
61
|
"@smithy/util-endpoints": "^3.2.8",
|
|
62
62
|
"@smithy/util-middleware": "^4.2.8",
|
|
63
63
|
"@smithy/util-retry": "^4.2.8",
|