1 | import {Request} from '../lib/request';
|
2 | import {Response} from '../lib/response';
|
3 | import {AWSError} from '../lib/error';
|
4 | import {Service} from '../lib/service';
|
5 | import {ServiceConfigurationOptions} from '../lib/service';
|
6 | import {ConfigBase as Config} from '../lib/config';
|
7 | import {Readable} from 'stream';
|
8 | interface Blob {}
|
9 | declare class EBS extends Service {
|
10 | |
11 |
|
12 |
|
13 | constructor(options?: EBS.Types.ClientConfiguration)
|
14 | config: Config & EBS.Types.ClientConfiguration;
|
15 | /**
|
16 | * Returns the data in a block in an Amazon Elastic Block Store snapshot.
|
17 | */
|
18 | getSnapshotBlock(params: EBS.Types.GetSnapshotBlockRequest, callback?: (err: AWSError, data: EBS.Types.GetSnapshotBlockResponse) => void): Request<EBS.Types.GetSnapshotBlockResponse, AWSError>;
|
19 | /**
|
20 | * Returns the data in a block in an Amazon Elastic Block Store snapshot.
|
21 | */
|
22 | getSnapshotBlock(callback?: (err: AWSError, data: EBS.Types.GetSnapshotBlockResponse) => void): Request<EBS.Types.GetSnapshotBlockResponse, AWSError>;
|
23 | /**
|
24 | * Returns the block indexes and block tokens for blocks that are different between two Amazon Elastic Block Store snapshots of the same volume/snapshot lineage.
|
25 | */
|
26 | listChangedBlocks(params: EBS.Types.ListChangedBlocksRequest, callback?: (err: AWSError, data: EBS.Types.ListChangedBlocksResponse) => void): Request<EBS.Types.ListChangedBlocksResponse, AWSError>;
|
27 | /**
|
28 | * Returns the block indexes and block tokens for blocks that are different between two Amazon Elastic Block Store snapshots of the same volume/snapshot lineage.
|
29 | */
|
30 | listChangedBlocks(callback?: (err: AWSError, data: EBS.Types.ListChangedBlocksResponse) => void): Request<EBS.Types.ListChangedBlocksResponse, AWSError>;
|
31 | /**
|
32 | * Returns the block indexes and block tokens for blocks in an Amazon Elastic Block Store snapshot.
|
33 | */
|
34 | listSnapshotBlocks(params: EBS.Types.ListSnapshotBlocksRequest, callback?: (err: AWSError, data: EBS.Types.ListSnapshotBlocksResponse) => void): Request<EBS.Types.ListSnapshotBlocksResponse, AWSError>;
|
35 | /**
|
36 | * Returns the block indexes and block tokens for blocks in an Amazon Elastic Block Store snapshot.
|
37 | */
|
38 | listSnapshotBlocks(callback?: (err: AWSError, data: EBS.Types.ListSnapshotBlocksResponse) => void): Request<EBS.Types.ListSnapshotBlocksResponse, AWSError>;
|
39 | }
|
40 | declare namespace EBS {
|
41 | export interface Block {
|
42 | |
43 |
|
44 |
|
45 | BlockIndex?: BlockIndex;
|
46 | |
47 |
|
48 |
|
49 | BlockToken?: BlockToken;
|
50 | }
|
51 | export type BlockData = Buffer|Uint8Array|Blob|string|Readable;
|
52 | export type BlockIndex = number;
|
53 | export type BlockSize = number;
|
54 | export type BlockToken = string;
|
55 | export type Blocks = Block[];
|
56 | export interface ChangedBlock {
|
57 | |
58 |
|
59 |
|
60 | BlockIndex?: BlockIndex;
|
61 | |
62 |
|
63 |
|
64 | FirstBlockToken?: BlockToken;
|
65 | |
66 |
|
67 |
|
68 | SecondBlockToken?: BlockToken;
|
69 | }
|
70 | export type ChangedBlocks = ChangedBlock[];
|
71 | export type Checksum = string;
|
72 | export type ChecksumAlgorithm = "SHA256"|string;
|
73 | export type DataLength = number;
|
74 | export interface GetSnapshotBlockRequest {
|
75 | |
76 |
|
77 |
|
78 | SnapshotId: SnapshotId;
|
79 | |
80 |
|
81 |
|
82 | BlockIndex: BlockIndex;
|
83 | |
84 |
|
85 |
|
86 | BlockToken: BlockToken;
|
87 | }
|
88 | export interface GetSnapshotBlockResponse {
|
89 | |
90 |
|
91 |
|
92 | DataLength?: DataLength;
|
93 | |
94 |
|
95 |
|
96 | BlockData?: BlockData;
|
97 | |
98 |
|
99 |
|
100 | Checksum?: Checksum;
|
101 | |
102 |
|
103 |
|
104 | ChecksumAlgorithm?: ChecksumAlgorithm;
|
105 | }
|
106 | export interface ListChangedBlocksRequest {
|
107 | |
108 |
|
109 |
|
110 | FirstSnapshotId?: SnapshotId;
|
111 | |
112 |
|
113 |
|
114 | SecondSnapshotId: SnapshotId;
|
115 | |
116 |
|
117 |
|
118 | NextToken?: PageToken;
|
119 | |
120 |
|
121 |
|
122 | MaxResults?: MaxResults;
|
123 | |
124 |
|
125 |
|
126 | StartingBlockIndex?: BlockIndex;
|
127 | }
|
128 | export interface ListChangedBlocksResponse {
|
129 | |
130 |
|
131 |
|
132 | ChangedBlocks?: ChangedBlocks;
|
133 | |
134 |
|
135 |
|
136 | ExpiryTime?: TimeStamp;
|
137 | |
138 |
|
139 |
|
140 | VolumeSize?: VolumeSize;
|
141 | |
142 |
|
143 |
|
144 | BlockSize?: BlockSize;
|
145 | |
146 |
|
147 |
|
148 | NextToken?: PageToken;
|
149 | }
|
150 | export interface ListSnapshotBlocksRequest {
|
151 | |
152 |
|
153 |
|
154 | SnapshotId: SnapshotId;
|
155 | |
156 |
|
157 |
|
158 | NextToken?: PageToken;
|
159 | |
160 |
|
161 |
|
162 | MaxResults?: MaxResults;
|
163 | |
164 |
|
165 |
|
166 | StartingBlockIndex?: BlockIndex;
|
167 | }
|
168 | export interface ListSnapshotBlocksResponse {
|
169 | |
170 |
|
171 |
|
172 | Blocks?: Blocks;
|
173 | |
174 |
|
175 |
|
176 | ExpiryTime?: TimeStamp;
|
177 | |
178 |
|
179 |
|
180 | VolumeSize?: VolumeSize;
|
181 | |
182 |
|
183 |
|
184 | BlockSize?: BlockSize;
|
185 | |
186 |
|
187 |
|
188 | NextToken?: PageToken;
|
189 | }
|
190 | export type MaxResults = number;
|
191 | export type PageToken = string;
|
192 | export type SnapshotId = string;
|
193 | export type TimeStamp = Date;
|
194 | export type VolumeSize = number;
|
195 | |
196 |
|
197 |
|
198 | export type apiVersion = "2019-11-02"|"latest"|string;
|
199 | export interface ClientApiVersions {
|
200 | |
201 |
|
202 |
|
203 | apiVersion?: apiVersion;
|
204 | }
|
205 | export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
|
206 | |
207 |
|
208 |
|
209 | export import Types = EBS;
|
210 | }
|
211 | export = EBS;
|