@aws-sdk/client-ebs 3.35.0 → 3.38.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/CHANGELOG.md +47 -0
- package/dist-cjs/EBS.js +0 -23
- package/dist-cjs/EBSClient.js +0 -28
- package/dist-cjs/commands/CompleteSnapshotCommand.js +0 -27
- package/dist-cjs/commands/GetSnapshotBlockCommand.js +0 -25
- package/dist-cjs/commands/ListChangedBlocksCommand.js +0 -26
- package/dist-cjs/commands/ListSnapshotBlocksCommand.js +0 -25
- package/dist-cjs/commands/PutSnapshotBlockCommand.js +0 -28
- package/dist-cjs/commands/StartSnapshotCommand.js +0 -28
- package/dist-cjs/commands/index.js +9 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -12
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -70
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListChangedBlocksPaginator.js +0 -11
- package/dist-cjs/pagination/ListSnapshotBlocksPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/protocols/Aws_restJson1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/EBS.js +0 -1
- package/dist-es/EBSClient.js +0 -1
- package/dist-es/commands/CompleteSnapshotCommand.js +0 -1
- package/dist-es/commands/GetSnapshotBlockCommand.js +0 -1
- package/dist-es/commands/ListChangedBlocksCommand.js +0 -1
- package/dist-es/commands/ListSnapshotBlocksCommand.js +0 -1
- package/dist-es/commands/PutSnapshotBlockCommand.js +0 -1
- package/dist-es/commands/StartSnapshotCommand.js +0 -1
- package/dist-es/commands/index.js +6 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -12
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListChangedBlocksPaginator.js +0 -1
- package/dist-es/pagination/ListSnapshotBlocksPaginator.js +0 -1
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/index.d.ts +4 -11
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/EBS.d.ts +7 -49
- package/dist-types/ts3.4/EBSClient.d.ts +24 -108
- package/dist-types/ts3.4/commands/CompleteSnapshotCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/GetSnapshotBlockCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListChangedBlocksCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListSnapshotBlocksCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/PutSnapshotBlockCommand.d.ts +5 -30
- package/dist-types/ts3.4/commands/StartSnapshotCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/index.d.ts +4 -11
- package/dist-types/ts3.4/models/models_0.d.ts +106 -416
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/EBS.js.map +0 -1
- package/dist-cjs/EBSClient.js.map +0 -1
- package/dist-cjs/commands/CompleteSnapshotCommand.js.map +0 -1
- package/dist-cjs/commands/GetSnapshotBlockCommand.js.map +0 -1
- package/dist-cjs/commands/ListChangedBlocksCommand.js.map +0 -1
- package/dist-cjs/commands/ListSnapshotBlocksCommand.js.map +0 -1
- package/dist-cjs/commands/PutSnapshotBlockCommand.js.map +0 -1
- package/dist-cjs/commands/StartSnapshotCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListChangedBlocksPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListSnapshotBlocksPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/EBS.js.map +0 -1
- package/dist-es/EBSClient.js.map +0 -1
- package/dist-es/commands/CompleteSnapshotCommand.js.map +0 -1
- package/dist-es/commands/GetSnapshotBlockCommand.js.map +0 -1
- package/dist-es/commands/ListChangedBlocksCommand.js.map +0 -1
- package/dist-es/commands/ListSnapshotBlocksCommand.js.map +0 -1
- package/dist-es/commands/PutSnapshotBlockCommand.js.map +0 -1
- package/dist-es/commands/StartSnapshotCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListChangedBlocksPaginator.js.map +0 -1
- package/dist-es/pagination/ListSnapshotBlocksPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_restJson1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/EBS.ts +0 -258
- package/src/EBSClient.ts +0 -273
- package/src/commands/CompleteSnapshotCommand.ts +0 -97
- package/src/commands/GetSnapshotBlockCommand.ts +0 -95
- package/src/commands/ListChangedBlocksCommand.ts +0 -96
- package/src/commands/ListSnapshotBlocksCommand.ts +0 -95
- package/src/commands/PutSnapshotBlockCommand.ts +0 -107
- package/src/commands/StartSnapshotCommand.ts +0 -98
- package/src/endpoints.ts +0 -83
- package/src/index.ts +0 -12
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -824
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListChangedBlocksPaginator.ts +0 -59
- package/src/pagination/ListSnapshotBlocksPaginator.ts +0 -59
- package/src/protocols/Aws_restJson1.ts +0 -1238
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,72 +1,44 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
|
|
3
3
|
import { Readable } from "stream";
|
|
4
4
|
export declare enum AccessDeniedExceptionReason {
|
|
5
5
|
DEPENDENCY_ACCESS_DENIED = "DEPENDENCY_ACCESS_DENIED",
|
|
6
6
|
UNAUTHORIZED_ACCOUNT = "UNAUTHORIZED_ACCOUNT"
|
|
7
7
|
}
|
|
8
|
-
|
|
9
|
-
* <p>You do not have sufficient access to perform this action.</p>
|
|
10
|
-
*/
|
|
8
|
+
|
|
11
9
|
export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
|
|
12
10
|
name: "AccessDeniedException";
|
|
13
11
|
$fault: "client";
|
|
14
12
|
Message?: string;
|
|
15
|
-
|
|
16
|
-
* <p>The reason for the exception.</p>
|
|
17
|
-
*/
|
|
13
|
+
|
|
18
14
|
Reason: AccessDeniedExceptionReason | string | undefined;
|
|
19
15
|
}
|
|
20
16
|
export declare namespace AccessDeniedException {
|
|
21
|
-
|
|
22
|
-
* @internal
|
|
23
|
-
*/
|
|
17
|
+
|
|
24
18
|
const filterSensitiveLog: (obj: AccessDeniedException) => any;
|
|
25
19
|
}
|
|
26
|
-
|
|
27
|
-
* <p>A block of data in an Amazon Elastic Block Store snapshot.</p>
|
|
28
|
-
*/
|
|
20
|
+
|
|
29
21
|
export interface Block {
|
|
30
|
-
|
|
31
|
-
* <p>The block index.</p>
|
|
32
|
-
*/
|
|
22
|
+
|
|
33
23
|
BlockIndex?: number;
|
|
34
|
-
|
|
35
|
-
* <p>The block token for the block index.</p>
|
|
36
|
-
*/
|
|
24
|
+
|
|
37
25
|
BlockToken?: string;
|
|
38
26
|
}
|
|
39
27
|
export declare namespace Block {
|
|
40
|
-
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
28
|
+
|
|
43
29
|
const filterSensitiveLog: (obj: Block) => any;
|
|
44
30
|
}
|
|
45
|
-
|
|
46
|
-
* <p>A block of data in an Amazon Elastic Block Store snapshot that is different from another snapshot of
|
|
47
|
-
* the same volume/snapshot lineage.</p>
|
|
48
|
-
*/
|
|
31
|
+
|
|
49
32
|
export interface ChangedBlock {
|
|
50
|
-
|
|
51
|
-
* <p>The block index.</p>
|
|
52
|
-
*/
|
|
33
|
+
|
|
53
34
|
BlockIndex?: number;
|
|
54
|
-
|
|
55
|
-
* <p>The block token for the block index of the <code>FirstSnapshotId</code> specified in
|
|
56
|
-
* the <code>ListChangedBlocks</code> operation. This value is absent if the first snapshot
|
|
57
|
-
* does not have the changed block that is on the second snapshot.</p>
|
|
58
|
-
*/
|
|
35
|
+
|
|
59
36
|
FirstBlockToken?: string;
|
|
60
|
-
|
|
61
|
-
* <p>The block token for the block index of the <code>SecondSnapshotId</code> specified in
|
|
62
|
-
* the <code>ListChangedBlocks</code> operation.</p>
|
|
63
|
-
*/
|
|
37
|
+
|
|
64
38
|
SecondBlockToken?: string;
|
|
65
39
|
}
|
|
66
40
|
export declare namespace ChangedBlock {
|
|
67
|
-
|
|
68
|
-
* @internal
|
|
69
|
-
*/
|
|
41
|
+
|
|
70
42
|
const filterSensitiveLog: (obj: ChangedBlock) => any;
|
|
71
43
|
}
|
|
72
44
|
export declare enum ChecksumAggregationMethod {
|
|
@@ -76,38 +48,19 @@ export declare enum ChecksumAlgorithm {
|
|
|
76
48
|
CHECKSUM_ALGORITHM_SHA256 = "SHA256"
|
|
77
49
|
}
|
|
78
50
|
export interface CompleteSnapshotRequest {
|
|
79
|
-
|
|
80
|
-
* <p>The ID of the snapshot.</p>
|
|
81
|
-
*/
|
|
51
|
+
|
|
82
52
|
SnapshotId: string | undefined;
|
|
83
|
-
|
|
84
|
-
* <p>The number of blocks that were written to the snapshot.</p>
|
|
85
|
-
*/
|
|
53
|
+
|
|
86
54
|
ChangedBlocksCount: number | undefined;
|
|
87
|
-
|
|
88
|
-
* <p>An aggregated Base-64 SHA256 checksum based on the checksums of each written
|
|
89
|
-
* block.</p>
|
|
90
|
-
* <p>To generate the aggregated checksum using the linear aggregation method, arrange the
|
|
91
|
-
* checksums for each written block in ascending order of their block index, concatenate
|
|
92
|
-
* them to form a single string, and then generate the checksum on the entire string using
|
|
93
|
-
* the SHA256 algorithm.</p>
|
|
94
|
-
*/
|
|
55
|
+
|
|
95
56
|
Checksum?: string;
|
|
96
|
-
|
|
97
|
-
* <p>The algorithm used to generate the checksum. Currently, the only supported algorithm
|
|
98
|
-
* is <code>SHA256</code>.</p>
|
|
99
|
-
*/
|
|
57
|
+
|
|
100
58
|
ChecksumAlgorithm?: ChecksumAlgorithm | string;
|
|
101
|
-
|
|
102
|
-
* <p>The aggregation method used to generate the checksum. Currently, the only supported
|
|
103
|
-
* aggregation method is <code>LINEAR</code>.</p>
|
|
104
|
-
*/
|
|
59
|
+
|
|
105
60
|
ChecksumAggregationMethod?: ChecksumAggregationMethod | string;
|
|
106
61
|
}
|
|
107
62
|
export declare namespace CompleteSnapshotRequest {
|
|
108
|
-
|
|
109
|
-
* @internal
|
|
110
|
-
*/
|
|
63
|
+
|
|
111
64
|
const filterSensitiveLog: (obj: CompleteSnapshotRequest) => any;
|
|
112
65
|
}
|
|
113
66
|
export declare enum Status {
|
|
@@ -116,95 +69,68 @@ export declare enum Status {
|
|
|
116
69
|
PENDING = "pending"
|
|
117
70
|
}
|
|
118
71
|
export interface CompleteSnapshotResponse {
|
|
119
|
-
|
|
120
|
-
* <p>The status of the snapshot.</p>
|
|
121
|
-
*/
|
|
72
|
+
|
|
122
73
|
Status?: Status | string;
|
|
123
74
|
}
|
|
124
75
|
export declare namespace CompleteSnapshotResponse {
|
|
125
|
-
|
|
126
|
-
* @internal
|
|
127
|
-
*/
|
|
76
|
+
|
|
128
77
|
const filterSensitiveLog: (obj: CompleteSnapshotResponse) => any;
|
|
129
78
|
}
|
|
130
|
-
|
|
131
|
-
* <p>An internal error has occurred.</p>
|
|
132
|
-
*/
|
|
79
|
+
|
|
133
80
|
export interface InternalServerException extends __SmithyException, $MetadataBearer {
|
|
134
81
|
name: "InternalServerException";
|
|
135
82
|
$fault: "server";
|
|
136
83
|
Message?: string;
|
|
137
84
|
}
|
|
138
85
|
export declare namespace InternalServerException {
|
|
139
|
-
|
|
140
|
-
* @internal
|
|
141
|
-
*/
|
|
86
|
+
|
|
142
87
|
const filterSensitiveLog: (obj: InternalServerException) => any;
|
|
143
88
|
}
|
|
144
89
|
export declare enum RequestThrottledExceptionReason {
|
|
145
90
|
ACCOUNT_THROTTLED = "ACCOUNT_THROTTLED",
|
|
146
91
|
DEPENDENCY_REQUEST_THROTTLED = "DEPENDENCY_REQUEST_THROTTLED"
|
|
147
92
|
}
|
|
148
|
-
|
|
149
|
-
* <p>The number of API requests has exceed the maximum allowed API request throttling
|
|
150
|
-
* limit.</p>
|
|
151
|
-
*/
|
|
93
|
+
|
|
152
94
|
export interface RequestThrottledException extends __SmithyException, $MetadataBearer {
|
|
153
95
|
name: "RequestThrottledException";
|
|
154
96
|
$fault: "client";
|
|
155
97
|
Message?: string;
|
|
156
|
-
|
|
157
|
-
* <p>The reason for the exception.</p>
|
|
158
|
-
*/
|
|
98
|
+
|
|
159
99
|
Reason?: RequestThrottledExceptionReason | string;
|
|
160
100
|
}
|
|
161
101
|
export declare namespace RequestThrottledException {
|
|
162
|
-
|
|
163
|
-
* @internal
|
|
164
|
-
*/
|
|
102
|
+
|
|
165
103
|
const filterSensitiveLog: (obj: RequestThrottledException) => any;
|
|
166
104
|
}
|
|
167
105
|
export declare enum ResourceNotFoundExceptionReason {
|
|
168
106
|
DEPENDENCY_RESOURCE_NOT_FOUND = "DEPENDENCY_RESOURCE_NOT_FOUND",
|
|
169
107
|
SNAPSHOT_NOT_FOUND = "SNAPSHOT_NOT_FOUND"
|
|
170
108
|
}
|
|
171
|
-
|
|
172
|
-
* <p>The specified resource does not exist.</p>
|
|
173
|
-
*/
|
|
109
|
+
|
|
174
110
|
export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
|
|
175
111
|
name: "ResourceNotFoundException";
|
|
176
112
|
$fault: "client";
|
|
177
113
|
Message?: string;
|
|
178
|
-
|
|
179
|
-
* <p>The reason for the exception.</p>
|
|
180
|
-
*/
|
|
114
|
+
|
|
181
115
|
Reason?: ResourceNotFoundExceptionReason | string;
|
|
182
116
|
}
|
|
183
117
|
export declare namespace ResourceNotFoundException {
|
|
184
|
-
|
|
185
|
-
* @internal
|
|
186
|
-
*/
|
|
118
|
+
|
|
187
119
|
const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
|
|
188
120
|
}
|
|
189
121
|
export declare enum ServiceQuotaExceededExceptionReason {
|
|
190
122
|
DEPENDENCY_SERVICE_QUOTA_EXCEEDED = "DEPENDENCY_SERVICE_QUOTA_EXCEEDED"
|
|
191
123
|
}
|
|
192
|
-
|
|
193
|
-
* <p>Your current service quotas do not allow you to perform this action.</p>
|
|
194
|
-
*/
|
|
124
|
+
|
|
195
125
|
export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
|
|
196
126
|
name: "ServiceQuotaExceededException";
|
|
197
127
|
$fault: "client";
|
|
198
128
|
Message?: string;
|
|
199
|
-
|
|
200
|
-
* <p>The reason for the exception.</p>
|
|
201
|
-
*/
|
|
129
|
+
|
|
202
130
|
Reason?: ServiceQuotaExceededExceptionReason | string;
|
|
203
131
|
}
|
|
204
132
|
export declare namespace ServiceQuotaExceededException {
|
|
205
|
-
|
|
206
|
-
* @internal
|
|
207
|
-
*/
|
|
133
|
+
|
|
208
134
|
const filterSensitiveLog: (obj: ServiceQuotaExceededException) => any;
|
|
209
135
|
}
|
|
210
136
|
export declare enum ValidationExceptionReason {
|
|
@@ -220,448 +146,212 @@ export declare enum ValidationExceptionReason {
|
|
|
220
146
|
INVALID_VOLUME_SIZE = "INVALID_VOLUME_SIZE",
|
|
221
147
|
UNRELATED_SNAPSHOTS = "UNRELATED_SNAPSHOTS"
|
|
222
148
|
}
|
|
223
|
-
|
|
224
|
-
* <p>The input fails to satisfy the constraints of the EBS direct APIs.</p>
|
|
225
|
-
*/
|
|
149
|
+
|
|
226
150
|
export interface ValidationException extends __SmithyException, $MetadataBearer {
|
|
227
151
|
name: "ValidationException";
|
|
228
152
|
$fault: "client";
|
|
229
153
|
Message?: string;
|
|
230
|
-
|
|
231
|
-
* <p>The reason for the validation exception.</p>
|
|
232
|
-
*/
|
|
154
|
+
|
|
233
155
|
Reason?: ValidationExceptionReason | string;
|
|
234
156
|
}
|
|
235
157
|
export declare namespace ValidationException {
|
|
236
|
-
|
|
237
|
-
* @internal
|
|
238
|
-
*/
|
|
158
|
+
|
|
239
159
|
const filterSensitiveLog: (obj: ValidationException) => any;
|
|
240
160
|
}
|
|
241
|
-
|
|
242
|
-
* <p>You have reached the limit for concurrent API requests. For more information, see
|
|
243
|
-
* <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapi-performance">Optimizing performance of the EBS direct APIs</a> in the <i>Amazon Elastic Compute Cloud
|
|
244
|
-
* User Guide</i>.</p>
|
|
245
|
-
*/
|
|
161
|
+
|
|
246
162
|
export interface ConcurrentLimitExceededException extends __SmithyException, $MetadataBearer {
|
|
247
163
|
name: "ConcurrentLimitExceededException";
|
|
248
164
|
$fault: "client";
|
|
249
165
|
Message?: string;
|
|
250
166
|
}
|
|
251
167
|
export declare namespace ConcurrentLimitExceededException {
|
|
252
|
-
|
|
253
|
-
* @internal
|
|
254
|
-
*/
|
|
168
|
+
|
|
255
169
|
const filterSensitiveLog: (obj: ConcurrentLimitExceededException) => any;
|
|
256
170
|
}
|
|
257
|
-
|
|
258
|
-
* <p>The request uses the same client token as a previous, but non-identical
|
|
259
|
-
* request.</p>
|
|
260
|
-
*/
|
|
171
|
+
|
|
261
172
|
export interface ConflictException extends __SmithyException, $MetadataBearer {
|
|
262
173
|
name: "ConflictException";
|
|
263
174
|
$fault: "server";
|
|
264
175
|
Message?: string;
|
|
265
176
|
}
|
|
266
177
|
export declare namespace ConflictException {
|
|
267
|
-
|
|
268
|
-
* @internal
|
|
269
|
-
*/
|
|
178
|
+
|
|
270
179
|
const filterSensitiveLog: (obj: ConflictException) => any;
|
|
271
180
|
}
|
|
272
181
|
export interface GetSnapshotBlockRequest {
|
|
273
|
-
|
|
274
|
-
* <p>The ID of the snapshot containing the block from which to get data.</p>
|
|
275
|
-
*/
|
|
182
|
+
|
|
276
183
|
SnapshotId: string | undefined;
|
|
277
|
-
|
|
278
|
-
* <p>The block index of the block from which to get data.</p>
|
|
279
|
-
*
|
|
280
|
-
*
|
|
281
|
-
* <p>Obtain the <code>BlockIndex</code> by running the <code>ListChangedBlocks</code> or
|
|
282
|
-
* <code>ListSnapshotBlocks</code> operations.</p>
|
|
283
|
-
*/
|
|
184
|
+
|
|
284
185
|
BlockIndex: number | undefined;
|
|
285
|
-
|
|
286
|
-
* <p>The block token of the block from which to get data.</p>
|
|
287
|
-
*
|
|
288
|
-
*
|
|
289
|
-
* <p>Obtain the <code>BlockToken</code> by running the <code>ListChangedBlocks</code> or
|
|
290
|
-
* <code>ListSnapshotBlocks</code> operations.</p>
|
|
291
|
-
*/
|
|
186
|
+
|
|
292
187
|
BlockToken: string | undefined;
|
|
293
188
|
}
|
|
294
189
|
export declare namespace GetSnapshotBlockRequest {
|
|
295
|
-
|
|
296
|
-
* @internal
|
|
297
|
-
*/
|
|
190
|
+
|
|
298
191
|
const filterSensitiveLog: (obj: GetSnapshotBlockRequest) => any;
|
|
299
192
|
}
|
|
300
193
|
export interface GetSnapshotBlockResponse {
|
|
301
|
-
|
|
302
|
-
* <p>The size of the data in the block.</p>
|
|
303
|
-
*/
|
|
194
|
+
|
|
304
195
|
DataLength?: number;
|
|
305
|
-
|
|
306
|
-
* <p>The data content of the block.</p>
|
|
307
|
-
*/
|
|
196
|
+
|
|
308
197
|
BlockData?: Readable | ReadableStream | Blob;
|
|
309
|
-
|
|
310
|
-
* <p>The checksum generated for the block, which is Base64 encoded.</p>
|
|
311
|
-
*/
|
|
198
|
+
|
|
312
199
|
Checksum?: string;
|
|
313
|
-
|
|
314
|
-
* <p>The algorithm used to generate the checksum for the block, such as SHA256.</p>
|
|
315
|
-
*/
|
|
200
|
+
|
|
316
201
|
ChecksumAlgorithm?: ChecksumAlgorithm | string;
|
|
317
202
|
}
|
|
318
203
|
export declare namespace GetSnapshotBlockResponse {
|
|
319
|
-
|
|
320
|
-
* @internal
|
|
321
|
-
*/
|
|
204
|
+
|
|
322
205
|
const filterSensitiveLog: (obj: GetSnapshotBlockResponse) => any;
|
|
323
206
|
}
|
|
324
207
|
export interface ListChangedBlocksRequest {
|
|
325
|
-
|
|
326
|
-
* <p>The ID of the first snapshot to use for the comparison.</p>
|
|
327
|
-
* <important>
|
|
328
|
-
* <p>The <code>FirstSnapshotID</code> parameter must be specified with a
|
|
329
|
-
* <code>SecondSnapshotId</code> parameter; otherwise, an error occurs.</p>
|
|
330
|
-
* </important>
|
|
331
|
-
*/
|
|
208
|
+
|
|
332
209
|
FirstSnapshotId?: string;
|
|
333
|
-
|
|
334
|
-
* <p>The ID of the second snapshot to use for the comparison.</p>
|
|
335
|
-
* <important>
|
|
336
|
-
* <p>The <code>SecondSnapshotId</code> parameter must be specified with a
|
|
337
|
-
* <code>FirstSnapshotID</code> parameter; otherwise, an error occurs.</p>
|
|
338
|
-
* </important>
|
|
339
|
-
*/
|
|
210
|
+
|
|
340
211
|
SecondSnapshotId: string | undefined;
|
|
341
|
-
|
|
342
|
-
* <p>The token to request the next page of results.</p>
|
|
343
|
-
*/
|
|
212
|
+
|
|
344
213
|
NextToken?: string;
|
|
345
|
-
|
|
346
|
-
* <p>The number of results to return.</p>
|
|
347
|
-
*/
|
|
214
|
+
|
|
348
215
|
MaxResults?: number;
|
|
349
|
-
|
|
350
|
-
* <p>The block index from which the comparison should start.</p>
|
|
351
|
-
* <p>The list in the response will start from this block index or the next valid block
|
|
352
|
-
* index in the snapshots.</p>
|
|
353
|
-
*/
|
|
216
|
+
|
|
354
217
|
StartingBlockIndex?: number;
|
|
355
218
|
}
|
|
356
219
|
export declare namespace ListChangedBlocksRequest {
|
|
357
|
-
|
|
358
|
-
* @internal
|
|
359
|
-
*/
|
|
220
|
+
|
|
360
221
|
const filterSensitiveLog: (obj: ListChangedBlocksRequest) => any;
|
|
361
222
|
}
|
|
362
223
|
export interface ListChangedBlocksResponse {
|
|
363
|
-
|
|
364
|
-
* <p>An array of objects containing information about the changed blocks.</p>
|
|
365
|
-
*/
|
|
224
|
+
|
|
366
225
|
ChangedBlocks?: ChangedBlock[];
|
|
367
|
-
|
|
368
|
-
* <p>The time when the <code>BlockToken</code> expires.</p>
|
|
369
|
-
*/
|
|
226
|
+
|
|
370
227
|
ExpiryTime?: Date;
|
|
371
|
-
|
|
372
|
-
* <p>The size of the volume in GB.</p>
|
|
373
|
-
*/
|
|
228
|
+
|
|
374
229
|
VolumeSize?: number;
|
|
375
|
-
|
|
376
|
-
* <p>The size of the blocks in the snapshot, in bytes.</p>
|
|
377
|
-
*/
|
|
230
|
+
|
|
378
231
|
BlockSize?: number;
|
|
379
|
-
|
|
380
|
-
* <p>The token to use to retrieve the next page of results. This value is null when there
|
|
381
|
-
* are no more results to return.</p>
|
|
382
|
-
*/
|
|
232
|
+
|
|
383
233
|
NextToken?: string;
|
|
384
234
|
}
|
|
385
235
|
export declare namespace ListChangedBlocksResponse {
|
|
386
|
-
|
|
387
|
-
* @internal
|
|
388
|
-
*/
|
|
236
|
+
|
|
389
237
|
const filterSensitiveLog: (obj: ListChangedBlocksResponse) => any;
|
|
390
238
|
}
|
|
391
239
|
export interface ListSnapshotBlocksRequest {
|
|
392
|
-
|
|
393
|
-
* <p>The ID of the snapshot from which to get block indexes and block tokens.</p>
|
|
394
|
-
*/
|
|
240
|
+
|
|
395
241
|
SnapshotId: string | undefined;
|
|
396
|
-
|
|
397
|
-
* <p>The token to request the next page of results.</p>
|
|
398
|
-
*/
|
|
242
|
+
|
|
399
243
|
NextToken?: string;
|
|
400
|
-
|
|
401
|
-
* <p>The number of results to return.</p>
|
|
402
|
-
*/
|
|
244
|
+
|
|
403
245
|
MaxResults?: number;
|
|
404
|
-
|
|
405
|
-
* <p>The block index from which the list should start. The list in the response will start
|
|
406
|
-
* from this block index or the next valid block index in the snapshot.</p>
|
|
407
|
-
*/
|
|
246
|
+
|
|
408
247
|
StartingBlockIndex?: number;
|
|
409
248
|
}
|
|
410
249
|
export declare namespace ListSnapshotBlocksRequest {
|
|
411
|
-
|
|
412
|
-
* @internal
|
|
413
|
-
*/
|
|
250
|
+
|
|
414
251
|
const filterSensitiveLog: (obj: ListSnapshotBlocksRequest) => any;
|
|
415
252
|
}
|
|
416
253
|
export interface ListSnapshotBlocksResponse {
|
|
417
|
-
|
|
418
|
-
* <p>An array of objects containing information about the blocks.</p>
|
|
419
|
-
*/
|
|
254
|
+
|
|
420
255
|
Blocks?: Block[];
|
|
421
|
-
|
|
422
|
-
* <p>The time when the <code>BlockToken</code> expires.</p>
|
|
423
|
-
*/
|
|
256
|
+
|
|
424
257
|
ExpiryTime?: Date;
|
|
425
|
-
|
|
426
|
-
* <p>The size of the volume in GB.</p>
|
|
427
|
-
*/
|
|
258
|
+
|
|
428
259
|
VolumeSize?: number;
|
|
429
|
-
|
|
430
|
-
* <p>The size of the blocks in the snapshot, in bytes.</p>
|
|
431
|
-
*/
|
|
260
|
+
|
|
432
261
|
BlockSize?: number;
|
|
433
|
-
|
|
434
|
-
* <p>The token to use to retrieve the next page of results. This value is null when there
|
|
435
|
-
* are no more results to return.</p>
|
|
436
|
-
*/
|
|
262
|
+
|
|
437
263
|
NextToken?: string;
|
|
438
264
|
}
|
|
439
265
|
export declare namespace ListSnapshotBlocksResponse {
|
|
440
|
-
|
|
441
|
-
* @internal
|
|
442
|
-
*/
|
|
266
|
+
|
|
443
267
|
const filterSensitiveLog: (obj: ListSnapshotBlocksResponse) => any;
|
|
444
268
|
}
|
|
445
269
|
export interface PutSnapshotBlockRequest {
|
|
446
|
-
|
|
447
|
-
* <p>The ID of the snapshot.</p>
|
|
448
|
-
*/
|
|
270
|
+
|
|
449
271
|
SnapshotId: string | undefined;
|
|
450
|
-
|
|
451
|
-
* <p>The block index of the block in which to write the data. A block index is a logical
|
|
452
|
-
* index in units of <code>512</code> KiB blocks. To identify the block index, divide
|
|
453
|
-
* the logical offset of the data in the logical volume by the block size (logical offset of
|
|
454
|
-
* data/<code>524288</code>). The logical offset of the data must be <code>512</code>
|
|
455
|
-
* KiB aligned.</p>
|
|
456
|
-
*/
|
|
272
|
+
|
|
457
273
|
BlockIndex: number | undefined;
|
|
458
|
-
|
|
459
|
-
* <p>The data to write to the block.</p>
|
|
460
|
-
* <p>The block data is not signed as part of the Signature Version 4 signing process. As a
|
|
461
|
-
* result, you must generate and provide a Base64-encoded SHA256 checksum for the block
|
|
462
|
-
* data using the <b>x-amz-Checksum</b> header. Also, you
|
|
463
|
-
* must specify the checksum algorithm using the <b>x-amz-Checksum-Algorithm</b>
|
|
464
|
-
* header. The checksum that you provide is part of the Signature Version 4 signing process.
|
|
465
|
-
* It is validated against a checksum generated by Amazon EBS to ensure the validity and authenticity
|
|
466
|
-
* of the data. If the checksums do not correspond, the request fails. For more information,
|
|
467
|
-
* see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapis-using-checksums">
|
|
468
|
-
* Using checksums with the EBS direct APIs</a> in the <i>Amazon Elastic Compute Cloud User
|
|
469
|
-
* Guide</i>.</p>
|
|
470
|
-
*/
|
|
274
|
+
|
|
471
275
|
BlockData: Readable | ReadableStream | Blob | undefined;
|
|
472
|
-
|
|
473
|
-
* <p>The size of the data to write to the block, in bytes. Currently, the only supported
|
|
474
|
-
* size is <code>524288</code> bytes.</p>
|
|
475
|
-
* <p>Valid values: <code>524288</code>
|
|
476
|
-
* </p>
|
|
477
|
-
*/
|
|
276
|
+
|
|
478
277
|
DataLength: number | undefined;
|
|
479
|
-
|
|
480
|
-
* <p>The progress of the write process, as a percentage.</p>
|
|
481
|
-
*/
|
|
278
|
+
|
|
482
279
|
Progress?: number;
|
|
483
|
-
|
|
484
|
-
* <p>A Base64-encoded SHA256 checksum of the data. Only SHA256 checksums are
|
|
485
|
-
* supported.</p>
|
|
486
|
-
*/
|
|
280
|
+
|
|
487
281
|
Checksum: string | undefined;
|
|
488
|
-
|
|
489
|
-
* <p>The algorithm used to generate the checksum. Currently, the only supported algorithm
|
|
490
|
-
* is <code>SHA256</code>.</p>
|
|
491
|
-
*/
|
|
282
|
+
|
|
492
283
|
ChecksumAlgorithm: ChecksumAlgorithm | string | undefined;
|
|
493
284
|
}
|
|
494
285
|
export declare namespace PutSnapshotBlockRequest {
|
|
495
|
-
|
|
496
|
-
* @internal
|
|
497
|
-
*/
|
|
286
|
+
|
|
498
287
|
const filterSensitiveLog: (obj: PutSnapshotBlockRequest) => any;
|
|
499
288
|
}
|
|
500
289
|
export interface PutSnapshotBlockResponse {
|
|
501
|
-
|
|
502
|
-
* <p>The SHA256 checksum generated for the block data by Amazon EBS.</p>
|
|
503
|
-
*/
|
|
290
|
+
|
|
504
291
|
Checksum?: string;
|
|
505
|
-
|
|
506
|
-
* <p>The algorithm used by Amazon EBS to generate the checksum.</p>
|
|
507
|
-
*/
|
|
292
|
+
|
|
508
293
|
ChecksumAlgorithm?: ChecksumAlgorithm | string;
|
|
509
294
|
}
|
|
510
295
|
export declare namespace PutSnapshotBlockResponse {
|
|
511
|
-
|
|
512
|
-
* @internal
|
|
513
|
-
*/
|
|
296
|
+
|
|
514
297
|
const filterSensitiveLog: (obj: PutSnapshotBlockResponse) => any;
|
|
515
298
|
}
|
|
516
|
-
|
|
517
|
-
* <p>Describes a tag.</p>
|
|
518
|
-
*/
|
|
299
|
+
|
|
519
300
|
export interface Tag {
|
|
520
|
-
|
|
521
|
-
* <p>The key of the tag.</p>
|
|
522
|
-
*/
|
|
301
|
+
|
|
523
302
|
Key?: string;
|
|
524
|
-
|
|
525
|
-
* <p>The value of the tag.</p>
|
|
526
|
-
*/
|
|
303
|
+
|
|
527
304
|
Value?: string;
|
|
528
305
|
}
|
|
529
306
|
export declare namespace Tag {
|
|
530
|
-
|
|
531
|
-
* @internal
|
|
532
|
-
*/
|
|
307
|
+
|
|
533
308
|
const filterSensitiveLog: (obj: Tag) => any;
|
|
534
309
|
}
|
|
535
310
|
export interface StartSnapshotRequest {
|
|
536
|
-
|
|
537
|
-
* <p>The size of the volume, in GiB. The maximum size is <code>65536</code> GiB (64
|
|
538
|
-
* TiB).</p>
|
|
539
|
-
*/
|
|
311
|
+
|
|
540
312
|
VolumeSize: number | undefined;
|
|
541
|
-
|
|
542
|
-
* <p>The ID of the parent snapshot. If there is no parent snapshot, or if you are creating
|
|
543
|
-
* the first snapshot for an on-premises volume, omit this parameter.</p>
|
|
544
|
-
* <p>If your account is enabled for encryption by default, you cannot use an unencrypted
|
|
545
|
-
* snapshot as a parent snapshot. You must first create an encrypted copy of the parent
|
|
546
|
-
* snapshot using <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CopySnapshot.html">CopySnapshot</a>.</p>
|
|
547
|
-
*/
|
|
313
|
+
|
|
548
314
|
ParentSnapshotId?: string;
|
|
549
|
-
|
|
550
|
-
* <p>The tags to apply to the snapshot.</p>
|
|
551
|
-
*/
|
|
315
|
+
|
|
552
316
|
Tags?: Tag[];
|
|
553
|
-
|
|
554
|
-
* <p>A description for the snapshot.</p>
|
|
555
|
-
*/
|
|
317
|
+
|
|
556
318
|
Description?: string;
|
|
557
|
-
|
|
558
|
-
* <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the
|
|
559
|
-
* request. Idempotency ensures that an API request completes only once. With an idempotent
|
|
560
|
-
* request, if the original request completes successfully. The subsequent retries with the same
|
|
561
|
-
* client token return the result from the original successful request and they have no additional
|
|
562
|
-
* effect.</p>
|
|
563
|
-
* <p>If you do not specify a client token, one is automatically generated by the Amazon Web Services SDK.</p>
|
|
564
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-direct-api-idempotency.html">
|
|
565
|
-
* Idempotency for StartSnapshot API</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
|
566
|
-
*/
|
|
319
|
+
|
|
567
320
|
ClientToken?: string;
|
|
568
|
-
|
|
569
|
-
* <p>Indicates whether to encrypt the snapshot. To create an encrypted snapshot, specify
|
|
570
|
-
* <code>true</code>. To create an unencrypted snapshot, omit this parameter.</p>
|
|
571
|
-
* <p>If you specify a value for <b>ParentSnapshotId</b>, omit
|
|
572
|
-
* this parameter.</p>
|
|
573
|
-
* <p>If you specify <code>true</code>, the snapshot is encrypted using the KMS key specified
|
|
574
|
-
* using the <b>KmsKeyArn</b> parameter. If no value is specified
|
|
575
|
-
* for <b>KmsKeyArn</b>, the default KMS key for your account is
|
|
576
|
-
* used. If no default KMS key has been specified for your account, the Amazon Web Services managed KMS key is used.
|
|
577
|
-
* To set a default KMS key for your account, use <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyEbsDefaultKmsKeyId.html">
|
|
578
|
-
* ModifyEbsDefaultKmsKeyId</a>.</p>
|
|
579
|
-
* <p>If your account is enabled for encryption by default, you cannot set this parameter to
|
|
580
|
-
* <code>false</code>. In this case, you can omit this parameter.</p>
|
|
581
|
-
*
|
|
582
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapis-using-encryption">
|
|
583
|
-
* Using encryption</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
|
584
|
-
*/
|
|
321
|
+
|
|
585
322
|
Encrypted?: boolean;
|
|
586
|
-
|
|
587
|
-
* <p>The Amazon Resource Name (ARN) of the Key Management Service (KMS)
|
|
588
|
-
* key to be used to encrypt the snapshot. If you do not specify a
|
|
589
|
-
* KMS key, the default Amazon Web Services managed KMS key is used.</p>
|
|
590
|
-
* <p>If you specify a <b>ParentSnapshotId</b>, omit this
|
|
591
|
-
* parameter; the snapshot will be encrypted using the same KMS key that was used to encrypt
|
|
592
|
-
* the parent snapshot.</p>
|
|
593
|
-
* <p>If <b>Encrypted</b> is set to <code>true</code>,
|
|
594
|
-
* you must specify a KMS key ARN. </p>
|
|
595
|
-
*/
|
|
323
|
+
|
|
596
324
|
KmsKeyArn?: string;
|
|
597
|
-
|
|
598
|
-
* <p>The amount of time (in minutes) after which the snapshot is automatically cancelled
|
|
599
|
-
* if:</p>
|
|
600
|
-
* <ul>
|
|
601
|
-
* <li>
|
|
602
|
-
* <p>No blocks are written to the snapshot.</p>
|
|
603
|
-
* </li>
|
|
604
|
-
* <li>
|
|
605
|
-
* <p>The snapshot is not completed after writing the last block of data.</p>
|
|
606
|
-
* </li>
|
|
607
|
-
* </ul>
|
|
608
|
-
* <p>If no value is specified, the timeout defaults to <code>60</code> minutes.</p>
|
|
609
|
-
*/
|
|
325
|
+
|
|
610
326
|
Timeout?: number;
|
|
611
327
|
}
|
|
612
328
|
export declare namespace StartSnapshotRequest {
|
|
613
|
-
|
|
614
|
-
* @internal
|
|
615
|
-
*/
|
|
329
|
+
|
|
616
330
|
const filterSensitiveLog: (obj: StartSnapshotRequest) => any;
|
|
617
331
|
}
|
|
618
332
|
export interface StartSnapshotResponse {
|
|
619
|
-
|
|
620
|
-
* <p>The description of the snapshot.</p>
|
|
621
|
-
*/
|
|
333
|
+
|
|
622
334
|
Description?: string;
|
|
623
|
-
|
|
624
|
-
* <p>The ID of the snapshot.</p>
|
|
625
|
-
*/
|
|
335
|
+
|
|
626
336
|
SnapshotId?: string;
|
|
627
|
-
|
|
628
|
-
* <p>The Amazon Web Services account ID of the snapshot owner.</p>
|
|
629
|
-
*/
|
|
337
|
+
|
|
630
338
|
OwnerId?: string;
|
|
631
|
-
|
|
632
|
-
* <p>The status of the snapshot.</p>
|
|
633
|
-
*/
|
|
339
|
+
|
|
634
340
|
Status?: Status | string;
|
|
635
|
-
|
|
636
|
-
* <p>The timestamp when the snapshot was created.</p>
|
|
637
|
-
*/
|
|
341
|
+
|
|
638
342
|
StartTime?: Date;
|
|
639
|
-
|
|
640
|
-
* <p>The size of the volume, in GiB.</p>
|
|
641
|
-
*/
|
|
343
|
+
|
|
642
344
|
VolumeSize?: number;
|
|
643
|
-
|
|
644
|
-
* <p>The size of the blocks in the snapshot, in bytes.</p>
|
|
645
|
-
*/
|
|
345
|
+
|
|
646
346
|
BlockSize?: number;
|
|
647
|
-
|
|
648
|
-
* <p>The tags applied to the snapshot. You can specify up to 50 tags per snapshot. For more
|
|
649
|
-
* information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html"> Tagging your Amazon EC2
|
|
650
|
-
* resources</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
|
651
|
-
*/
|
|
347
|
+
|
|
652
348
|
Tags?: Tag[];
|
|
653
|
-
|
|
654
|
-
* <p>The ID of the parent snapshot.</p>
|
|
655
|
-
*/
|
|
349
|
+
|
|
656
350
|
ParentSnapshotId?: string;
|
|
657
|
-
|
|
658
|
-
* <p>The Amazon Resource Name (ARN) of the Key Management Service (KMS) key used to encrypt the snapshot.</p>
|
|
659
|
-
*/
|
|
351
|
+
|
|
660
352
|
KmsKeyArn?: string;
|
|
661
353
|
}
|
|
662
354
|
export declare namespace StartSnapshotResponse {
|
|
663
|
-
|
|
664
|
-
* @internal
|
|
665
|
-
*/
|
|
355
|
+
|
|
666
356
|
const filterSensitiveLog: (obj: StartSnapshotResponse) => any;
|
|
667
357
|
}
|