@aws-sdk/client-ebs 3.315.0 → 3.316.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/EBS.js +10 -84
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1
- package/dist-es/EBS.js +10 -84
- package/dist-es/protocols/Aws_restJson1.js +1 -1
- package/dist-types/EBS.d.ts +32 -45
- package/dist-types/ts3.4/EBS.d.ts +2 -1
- package/package.json +6 -6
package/dist-cjs/EBS.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EBS = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const CompleteSnapshotCommand_1 = require("./commands/CompleteSnapshotCommand");
|
|
5
6
|
const GetSnapshotBlockCommand_1 = require("./commands/GetSnapshotBlockCommand");
|
|
6
7
|
const ListChangedBlocksCommand_1 = require("./commands/ListChangedBlocksCommand");
|
|
@@ -8,90 +9,15 @@ const ListSnapshotBlocksCommand_1 = require("./commands/ListSnapshotBlocksComman
|
|
|
8
9
|
const PutSnapshotBlockCommand_1 = require("./commands/PutSnapshotBlockCommand");
|
|
9
10
|
const StartSnapshotCommand_1 = require("./commands/StartSnapshotCommand");
|
|
10
11
|
const EBSClient_1 = require("./EBSClient");
|
|
12
|
+
const commands = {
|
|
13
|
+
CompleteSnapshotCommand: CompleteSnapshotCommand_1.CompleteSnapshotCommand,
|
|
14
|
+
GetSnapshotBlockCommand: GetSnapshotBlockCommand_1.GetSnapshotBlockCommand,
|
|
15
|
+
ListChangedBlocksCommand: ListChangedBlocksCommand_1.ListChangedBlocksCommand,
|
|
16
|
+
ListSnapshotBlocksCommand: ListSnapshotBlocksCommand_1.ListSnapshotBlocksCommand,
|
|
17
|
+
PutSnapshotBlockCommand: PutSnapshotBlockCommand_1.PutSnapshotBlockCommand,
|
|
18
|
+
StartSnapshotCommand: StartSnapshotCommand_1.StartSnapshotCommand,
|
|
19
|
+
};
|
|
11
20
|
class EBS extends EBSClient_1.EBSClient {
|
|
12
|
-
completeSnapshot(args, optionsOrCb, cb) {
|
|
13
|
-
const command = new CompleteSnapshotCommand_1.CompleteSnapshotCommand(args);
|
|
14
|
-
if (typeof optionsOrCb === "function") {
|
|
15
|
-
this.send(command, optionsOrCb);
|
|
16
|
-
}
|
|
17
|
-
else if (typeof cb === "function") {
|
|
18
|
-
if (typeof optionsOrCb !== "object")
|
|
19
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
20
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
return this.send(command, optionsOrCb);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
getSnapshotBlock(args, optionsOrCb, cb) {
|
|
27
|
-
const command = new GetSnapshotBlockCommand_1.GetSnapshotBlockCommand(args);
|
|
28
|
-
if (typeof optionsOrCb === "function") {
|
|
29
|
-
this.send(command, optionsOrCb);
|
|
30
|
-
}
|
|
31
|
-
else if (typeof cb === "function") {
|
|
32
|
-
if (typeof optionsOrCb !== "object")
|
|
33
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
34
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
return this.send(command, optionsOrCb);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
listChangedBlocks(args, optionsOrCb, cb) {
|
|
41
|
-
const command = new ListChangedBlocksCommand_1.ListChangedBlocksCommand(args);
|
|
42
|
-
if (typeof optionsOrCb === "function") {
|
|
43
|
-
this.send(command, optionsOrCb);
|
|
44
|
-
}
|
|
45
|
-
else if (typeof cb === "function") {
|
|
46
|
-
if (typeof optionsOrCb !== "object")
|
|
47
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
48
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
return this.send(command, optionsOrCb);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
listSnapshotBlocks(args, optionsOrCb, cb) {
|
|
55
|
-
const command = new ListSnapshotBlocksCommand_1.ListSnapshotBlocksCommand(args);
|
|
56
|
-
if (typeof optionsOrCb === "function") {
|
|
57
|
-
this.send(command, optionsOrCb);
|
|
58
|
-
}
|
|
59
|
-
else if (typeof cb === "function") {
|
|
60
|
-
if (typeof optionsOrCb !== "object")
|
|
61
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
62
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
return this.send(command, optionsOrCb);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
putSnapshotBlock(args, optionsOrCb, cb) {
|
|
69
|
-
const command = new PutSnapshotBlockCommand_1.PutSnapshotBlockCommand(args);
|
|
70
|
-
if (typeof optionsOrCb === "function") {
|
|
71
|
-
this.send(command, optionsOrCb);
|
|
72
|
-
}
|
|
73
|
-
else if (typeof cb === "function") {
|
|
74
|
-
if (typeof optionsOrCb !== "object")
|
|
75
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
76
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
return this.send(command, optionsOrCb);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
startSnapshot(args, optionsOrCb, cb) {
|
|
83
|
-
const command = new StartSnapshotCommand_1.StartSnapshotCommand(args);
|
|
84
|
-
if (typeof optionsOrCb === "function") {
|
|
85
|
-
this.send(command, optionsOrCb);
|
|
86
|
-
}
|
|
87
|
-
else if (typeof cb === "function") {
|
|
88
|
-
if (typeof optionsOrCb !== "object")
|
|
89
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
90
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
return this.send(command, optionsOrCb);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
21
|
}
|
|
97
22
|
exports.EBS = EBS;
|
|
23
|
+
(0, smithy_client_1.createAggregatedClient)(commands, EBS);
|
|
@@ -139,7 +139,7 @@ const se_StartSnapshotCommand = async (input, context) => {
|
|
|
139
139
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/snapshots";
|
|
140
140
|
let body;
|
|
141
141
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
142
|
-
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
142
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
143
143
|
Description: [],
|
|
144
144
|
Encrypted: [],
|
|
145
145
|
KmsKeyArn: [],
|
package/dist-es/EBS.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { CompleteSnapshotCommand, } from "./commands/CompleteSnapshotCommand";
|
|
2
3
|
import { GetSnapshotBlockCommand, } from "./commands/GetSnapshotBlockCommand";
|
|
3
4
|
import { ListChangedBlocksCommand, } from "./commands/ListChangedBlocksCommand";
|
|
@@ -5,89 +6,14 @@ import { ListSnapshotBlocksCommand, } from "./commands/ListSnapshotBlocksCommand
|
|
|
5
6
|
import { PutSnapshotBlockCommand, } from "./commands/PutSnapshotBlockCommand";
|
|
6
7
|
import { StartSnapshotCommand, } from "./commands/StartSnapshotCommand";
|
|
7
8
|
import { EBSClient } from "./EBSClient";
|
|
9
|
+
const commands = {
|
|
10
|
+
CompleteSnapshotCommand,
|
|
11
|
+
GetSnapshotBlockCommand,
|
|
12
|
+
ListChangedBlocksCommand,
|
|
13
|
+
ListSnapshotBlocksCommand,
|
|
14
|
+
PutSnapshotBlockCommand,
|
|
15
|
+
StartSnapshotCommand,
|
|
16
|
+
};
|
|
8
17
|
export class EBS extends EBSClient {
|
|
9
|
-
completeSnapshot(args, optionsOrCb, cb) {
|
|
10
|
-
const command = new CompleteSnapshotCommand(args);
|
|
11
|
-
if (typeof optionsOrCb === "function") {
|
|
12
|
-
this.send(command, optionsOrCb);
|
|
13
|
-
}
|
|
14
|
-
else if (typeof cb === "function") {
|
|
15
|
-
if (typeof optionsOrCb !== "object")
|
|
16
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
17
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
return this.send(command, optionsOrCb);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
getSnapshotBlock(args, optionsOrCb, cb) {
|
|
24
|
-
const command = new GetSnapshotBlockCommand(args);
|
|
25
|
-
if (typeof optionsOrCb === "function") {
|
|
26
|
-
this.send(command, optionsOrCb);
|
|
27
|
-
}
|
|
28
|
-
else if (typeof cb === "function") {
|
|
29
|
-
if (typeof optionsOrCb !== "object")
|
|
30
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
31
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
return this.send(command, optionsOrCb);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
listChangedBlocks(args, optionsOrCb, cb) {
|
|
38
|
-
const command = new ListChangedBlocksCommand(args);
|
|
39
|
-
if (typeof optionsOrCb === "function") {
|
|
40
|
-
this.send(command, optionsOrCb);
|
|
41
|
-
}
|
|
42
|
-
else if (typeof cb === "function") {
|
|
43
|
-
if (typeof optionsOrCb !== "object")
|
|
44
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
45
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
return this.send(command, optionsOrCb);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
listSnapshotBlocks(args, optionsOrCb, cb) {
|
|
52
|
-
const command = new ListSnapshotBlocksCommand(args);
|
|
53
|
-
if (typeof optionsOrCb === "function") {
|
|
54
|
-
this.send(command, optionsOrCb);
|
|
55
|
-
}
|
|
56
|
-
else if (typeof cb === "function") {
|
|
57
|
-
if (typeof optionsOrCb !== "object")
|
|
58
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
59
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
return this.send(command, optionsOrCb);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
putSnapshotBlock(args, optionsOrCb, cb) {
|
|
66
|
-
const command = new PutSnapshotBlockCommand(args);
|
|
67
|
-
if (typeof optionsOrCb === "function") {
|
|
68
|
-
this.send(command, optionsOrCb);
|
|
69
|
-
}
|
|
70
|
-
else if (typeof cb === "function") {
|
|
71
|
-
if (typeof optionsOrCb !== "object")
|
|
72
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
73
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
74
|
-
}
|
|
75
|
-
else {
|
|
76
|
-
return this.send(command, optionsOrCb);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
startSnapshot(args, optionsOrCb, cb) {
|
|
80
|
-
const command = new StartSnapshotCommand(args);
|
|
81
|
-
if (typeof optionsOrCb === "function") {
|
|
82
|
-
this.send(command, optionsOrCb);
|
|
83
|
-
}
|
|
84
|
-
else if (typeof cb === "function") {
|
|
85
|
-
if (typeof optionsOrCb !== "object")
|
|
86
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
87
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
return this.send(command, optionsOrCb);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
18
|
}
|
|
19
|
+
createAggregatedClient(commands, EBS);
|
|
@@ -131,7 +131,7 @@ export const se_StartSnapshotCommand = async (input, context) => {
|
|
|
131
131
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/snapshots";
|
|
132
132
|
let body;
|
|
133
133
|
body = JSON.stringify(take(input, {
|
|
134
|
-
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
134
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
135
135
|
Description: [],
|
|
136
136
|
Encrypted: [],
|
|
137
137
|
KmsKeyArn: [],
|
package/dist-types/EBS.d.ts
CHANGED
|
@@ -6,79 +6,66 @@ import { ListSnapshotBlocksCommandInput, ListSnapshotBlocksCommandOutput } from
|
|
|
6
6
|
import { PutSnapshotBlockCommandInput, PutSnapshotBlockCommandOutput } from "./commands/PutSnapshotBlockCommand";
|
|
7
7
|
import { StartSnapshotCommandInput, StartSnapshotCommandOutput } from "./commands/StartSnapshotCommand";
|
|
8
8
|
import { EBSClient } from "./EBSClient";
|
|
9
|
-
|
|
10
|
-
* @public
|
|
11
|
-
* <p>You can use the Amazon Elastic Block Store (Amazon EBS) direct APIs to create Amazon EBS snapshots, write data directly to
|
|
12
|
-
* your snapshots, read data on your snapshots, and identify the differences or changes between
|
|
13
|
-
* two snapshots. If you’re an independent software vendor (ISV) who offers backup services for
|
|
14
|
-
* Amazon EBS, the EBS direct APIs make it more efficient and cost-effective to track incremental changes on
|
|
15
|
-
* your Amazon EBS volumes through snapshots. This can be done without having to create new volumes
|
|
16
|
-
* from snapshots, and then use Amazon Elastic Compute Cloud (Amazon EC2) instances to compare the differences.</p>
|
|
17
|
-
*
|
|
18
|
-
* <p>You can create incremental snapshots directly from data on-premises into volumes and the
|
|
19
|
-
* cloud to use for quick disaster recovery. With the ability to write and read snapshots, you can
|
|
20
|
-
* write your on-premises data to an snapshot during a disaster. Then after recovery, you can
|
|
21
|
-
* restore it back to Amazon Web Services or on-premises from the snapshot. You no longer need to build and
|
|
22
|
-
* maintain complex mechanisms to copy data to and from Amazon EBS.</p>
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* <p>This API reference provides detailed information about the actions, data types,
|
|
26
|
-
* parameters, and errors of the EBS direct APIs. For more information about the elements that
|
|
27
|
-
* make up the EBS direct APIs, and examples of how to use them effectively, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html">Accessing the Contents of an Amazon EBS Snapshot</a> in the <i>Amazon Elastic Compute Cloud User
|
|
28
|
-
* Guide</i>. For more information about the supported Amazon Web Services Regions, endpoints,
|
|
29
|
-
* and service quotas for the EBS direct APIs, see <a href="https://docs.aws.amazon.com/general/latest/gr/ebs-service.html">Amazon Elastic Block Store Endpoints and Quotas</a> in
|
|
30
|
-
* the <i>Amazon Web Services General Reference</i>.</p>
|
|
31
|
-
*/
|
|
32
|
-
export declare class EBS extends EBSClient {
|
|
9
|
+
export interface EBS {
|
|
33
10
|
/**
|
|
34
|
-
* @
|
|
35
|
-
* <p>Seals and completes the snapshot after all of the required blocks of data have been
|
|
36
|
-
* written to it. Completing the snapshot changes the status to <code>completed</code>. You
|
|
37
|
-
* cannot write new blocks to a snapshot after it has been completed.</p>
|
|
11
|
+
* @see {@link CompleteSnapshotCommand}
|
|
38
12
|
*/
|
|
39
13
|
completeSnapshot(args: CompleteSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<CompleteSnapshotCommandOutput>;
|
|
40
14
|
completeSnapshot(args: CompleteSnapshotCommandInput, cb: (err: any, data?: CompleteSnapshotCommandOutput) => void): void;
|
|
41
15
|
completeSnapshot(args: CompleteSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CompleteSnapshotCommandOutput) => void): void;
|
|
42
16
|
/**
|
|
43
|
-
* @
|
|
44
|
-
* <p>Returns the data in a block in an Amazon Elastic Block Store snapshot.</p>
|
|
17
|
+
* @see {@link GetSnapshotBlockCommand}
|
|
45
18
|
*/
|
|
46
19
|
getSnapshotBlock(args: GetSnapshotBlockCommandInput, options?: __HttpHandlerOptions): Promise<GetSnapshotBlockCommandOutput>;
|
|
47
20
|
getSnapshotBlock(args: GetSnapshotBlockCommandInput, cb: (err: any, data?: GetSnapshotBlockCommandOutput) => void): void;
|
|
48
21
|
getSnapshotBlock(args: GetSnapshotBlockCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSnapshotBlockCommandOutput) => void): void;
|
|
49
22
|
/**
|
|
50
|
-
* @
|
|
51
|
-
* <p>Returns information about the blocks that are different between two
|
|
52
|
-
* Amazon Elastic Block Store snapshots of the same volume/snapshot lineage.</p>
|
|
23
|
+
* @see {@link ListChangedBlocksCommand}
|
|
53
24
|
*/
|
|
54
25
|
listChangedBlocks(args: ListChangedBlocksCommandInput, options?: __HttpHandlerOptions): Promise<ListChangedBlocksCommandOutput>;
|
|
55
26
|
listChangedBlocks(args: ListChangedBlocksCommandInput, cb: (err: any, data?: ListChangedBlocksCommandOutput) => void): void;
|
|
56
27
|
listChangedBlocks(args: ListChangedBlocksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListChangedBlocksCommandOutput) => void): void;
|
|
57
28
|
/**
|
|
58
|
-
* @
|
|
59
|
-
* <p>Returns information about the blocks in an Amazon Elastic Block Store snapshot.</p>
|
|
29
|
+
* @see {@link ListSnapshotBlocksCommand}
|
|
60
30
|
*/
|
|
61
31
|
listSnapshotBlocks(args: ListSnapshotBlocksCommandInput, options?: __HttpHandlerOptions): Promise<ListSnapshotBlocksCommandOutput>;
|
|
62
32
|
listSnapshotBlocks(args: ListSnapshotBlocksCommandInput, cb: (err: any, data?: ListSnapshotBlocksCommandOutput) => void): void;
|
|
63
33
|
listSnapshotBlocks(args: ListSnapshotBlocksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSnapshotBlocksCommandOutput) => void): void;
|
|
64
34
|
/**
|
|
65
|
-
* @
|
|
66
|
-
* <p>Writes a block of data to a snapshot. If the specified block contains
|
|
67
|
-
* data, the existing data is overwritten. The target snapshot must be in the
|
|
68
|
-
* <code>pending</code> state.</p>
|
|
69
|
-
* <p>Data written to a snapshot must be aligned with 512-KiB sectors.</p>
|
|
35
|
+
* @see {@link PutSnapshotBlockCommand}
|
|
70
36
|
*/
|
|
71
37
|
putSnapshotBlock(args: PutSnapshotBlockCommandInput, options?: __HttpHandlerOptions): Promise<PutSnapshotBlockCommandOutput>;
|
|
72
38
|
putSnapshotBlock(args: PutSnapshotBlockCommandInput, cb: (err: any, data?: PutSnapshotBlockCommandOutput) => void): void;
|
|
73
39
|
putSnapshotBlock(args: PutSnapshotBlockCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutSnapshotBlockCommandOutput) => void): void;
|
|
74
40
|
/**
|
|
75
|
-
* @
|
|
76
|
-
* <p>Creates a new Amazon EBS snapshot. The new snapshot enters the <code>pending</code> state
|
|
77
|
-
* after the request completes. </p>
|
|
78
|
-
* <p>After creating the snapshot, use <a href="https://docs.aws.amazon.com/ebs/latest/APIReference/API_PutSnapshotBlock.html"> PutSnapshotBlock</a> to
|
|
79
|
-
* write blocks of data to the snapshot.</p>
|
|
41
|
+
* @see {@link StartSnapshotCommand}
|
|
80
42
|
*/
|
|
81
43
|
startSnapshot(args: StartSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<StartSnapshotCommandOutput>;
|
|
82
44
|
startSnapshot(args: StartSnapshotCommandInput, cb: (err: any, data?: StartSnapshotCommandOutput) => void): void;
|
|
83
45
|
startSnapshot(args: StartSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartSnapshotCommandOutput) => void): void;
|
|
84
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* @public
|
|
49
|
+
* <p>You can use the Amazon Elastic Block Store (Amazon EBS) direct APIs to create Amazon EBS snapshots, write data directly to
|
|
50
|
+
* your snapshots, read data on your snapshots, and identify the differences or changes between
|
|
51
|
+
* two snapshots. If you’re an independent software vendor (ISV) who offers backup services for
|
|
52
|
+
* Amazon EBS, the EBS direct APIs make it more efficient and cost-effective to track incremental changes on
|
|
53
|
+
* your Amazon EBS volumes through snapshots. This can be done without having to create new volumes
|
|
54
|
+
* from snapshots, and then use Amazon Elastic Compute Cloud (Amazon EC2) instances to compare the differences.</p>
|
|
55
|
+
*
|
|
56
|
+
* <p>You can create incremental snapshots directly from data on-premises into volumes and the
|
|
57
|
+
* cloud to use for quick disaster recovery. With the ability to write and read snapshots, you can
|
|
58
|
+
* write your on-premises data to an snapshot during a disaster. Then after recovery, you can
|
|
59
|
+
* restore it back to Amazon Web Services or on-premises from the snapshot. You no longer need to build and
|
|
60
|
+
* maintain complex mechanisms to copy data to and from Amazon EBS.</p>
|
|
61
|
+
*
|
|
62
|
+
*
|
|
63
|
+
* <p>This API reference provides detailed information about the actions, data types,
|
|
64
|
+
* parameters, and errors of the EBS direct APIs. For more information about the elements that
|
|
65
|
+
* make up the EBS direct APIs, and examples of how to use them effectively, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html">Accessing the Contents of an Amazon EBS Snapshot</a> in the <i>Amazon Elastic Compute Cloud User
|
|
66
|
+
* Guide</i>. For more information about the supported Amazon Web Services Regions, endpoints,
|
|
67
|
+
* and service quotas for the EBS direct APIs, see <a href="https://docs.aws.amazon.com/general/latest/gr/ebs-service.html">Amazon Elastic Block Store Endpoints and Quotas</a> in
|
|
68
|
+
* the <i>Amazon Web Services General Reference</i>.</p>
|
|
69
|
+
*/
|
|
70
|
+
export declare class EBS extends EBSClient implements EBS {
|
|
71
|
+
}
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
StartSnapshotCommandOutput,
|
|
25
25
|
} from "./commands/StartSnapshotCommand";
|
|
26
26
|
import { EBSClient } from "./EBSClient";
|
|
27
|
-
export
|
|
27
|
+
export interface EBS {
|
|
28
28
|
completeSnapshot(
|
|
29
29
|
args: CompleteSnapshotCommandInput,
|
|
30
30
|
options?: __HttpHandlerOptions
|
|
@@ -104,3 +104,4 @@ export declare class EBS extends EBSClient {
|
|
|
104
104
|
cb: (err: any, data?: StartSnapshotCommandOutput) => void
|
|
105
105
|
): void;
|
|
106
106
|
}
|
|
107
|
+
export declare class EBS extends EBSClient implements EBS {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ebs",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ebs Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.316.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",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.316.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.316.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-stream-browser": "3.310.0",
|