@aws-sdk/client-ebs 3.34.0 → 3.37.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 → dist-cjs}/EBS.js +1 -24
- package/dist-cjs/EBSClient.js +35 -0
- package/{dist/cjs → dist-cjs}/commands/CompleteSnapshotCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/GetSnapshotBlockCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListChangedBlocksCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/ListSnapshotBlocksCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/PutSnapshotBlockCommand.js +2 -30
- package/{dist/cjs → dist-cjs}/commands/StartSnapshotCommand.js +2 -30
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -70
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListChangedBlocksPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListSnapshotBlocksPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +1 -7
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/EBS.js +1 -2
- package/{dist/es → dist-es}/EBSClient.js +1 -2
- package/{dist/es → dist-es}/commands/CompleteSnapshotCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetSnapshotBlockCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListChangedBlocksCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListSnapshotBlocksCommand.js +2 -3
- package/{dist/es → dist-es}/commands/PutSnapshotBlockCommand.js +2 -3
- package/{dist/es → dist-es}/commands/StartSnapshotCommand.js +2 -3
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListChangedBlocksPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/ListSnapshotBlocksPaginator.js +1 -2
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
- package/{dist/types → dist-types}/EBS.d.ts +2 -2
- package/{dist/types → dist-types}/EBSClient.d.ts +7 -7
- package/{dist/types → dist-types}/commands/CompleteSnapshotCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetSnapshotBlockCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListChangedBlocksCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListSnapshotBlocksCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutSnapshotBlockCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StartSnapshotCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListChangedBlocksPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListSnapshotBlocksPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/dist-types/ts3.4/EBS.d.ts +35 -0
- package/dist-types/ts3.4/EBSClient.d.ts +73 -0
- package/dist-types/ts3.4/commands/CompleteSnapshotCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/GetSnapshotBlockCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/ListChangedBlocksCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/ListSnapshotBlocksCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/PutSnapshotBlockCommand.d.ts +24 -0
- package/dist-types/ts3.4/commands/StartSnapshotCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +357 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListChangedBlocksPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListSnapshotBlocksPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +45 -42
- package/EBS.ts +0 -257
- package/EBSClient.ts +0 -272
- package/commands/CompleteSnapshotCommand.ts +0 -96
- package/commands/GetSnapshotBlockCommand.ts +0 -94
- package/commands/ListChangedBlocksCommand.ts +0 -95
- package/commands/ListSnapshotBlocksCommand.ts +0 -94
- package/commands/PutSnapshotBlockCommand.ts +0 -106
- package/commands/StartSnapshotCommand.ts +0 -97
- package/dist/cjs/EBS.js.map +0 -1
- package/dist/cjs/EBSClient.js +0 -63
- 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/package.json +0 -93
- 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 +0 -13
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -93
- package/dist/es/pagination/Interfaces.js +0 -2
- 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/dist/types/ts3.4/EBS.d.ts +0 -77
- package/dist/types/ts3.4/EBSClient.d.ts +0 -157
- package/dist/types/ts3.4/commands/CompleteSnapshotCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/ListChangedBlocksCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/PutSnapshotBlockCommand.d.ts +0 -49
- package/dist/types/ts3.4/commands/StartSnapshotCommand.d.ts +0 -38
- package/dist/types/ts3.4/models/models_0.d.ts +0 -667
- package/endpoints.ts +0 -83
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -824
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListChangedBlocksPaginator.ts +0 -58
- package/pagination/ListSnapshotBlocksPaginator.ts +0 -58
- package/protocols/Aws_restJson1.ts +0 -1237
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -31
- package/tsconfig.types.json +0 -8
package/EBSClient.ts
DELETED
|
@@ -1,272 +0,0 @@
|
|
|
1
|
-
import { CompleteSnapshotCommandInput, CompleteSnapshotCommandOutput } from "./commands/CompleteSnapshotCommand";
|
|
2
|
-
import { GetSnapshotBlockCommandInput, GetSnapshotBlockCommandOutput } from "./commands/GetSnapshotBlockCommand";
|
|
3
|
-
import { ListChangedBlocksCommandInput, ListChangedBlocksCommandOutput } from "./commands/ListChangedBlocksCommand";
|
|
4
|
-
import { ListSnapshotBlocksCommandInput, ListSnapshotBlocksCommandOutput } from "./commands/ListSnapshotBlocksCommand";
|
|
5
|
-
import { PutSnapshotBlockCommandInput, PutSnapshotBlockCommandOutput } from "./commands/PutSnapshotBlockCommand";
|
|
6
|
-
import { StartSnapshotCommandInput, StartSnapshotCommandOutput } from "./commands/StartSnapshotCommand";
|
|
7
|
-
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
8
|
-
import {
|
|
9
|
-
EndpointsInputConfig,
|
|
10
|
-
EndpointsResolvedConfig,
|
|
11
|
-
RegionInputConfig,
|
|
12
|
-
RegionResolvedConfig,
|
|
13
|
-
resolveEndpointsConfig,
|
|
14
|
-
resolveRegionConfig,
|
|
15
|
-
} from "@aws-sdk/config-resolver";
|
|
16
|
-
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
17
|
-
import {
|
|
18
|
-
HostHeaderInputConfig,
|
|
19
|
-
HostHeaderResolvedConfig,
|
|
20
|
-
getHostHeaderPlugin,
|
|
21
|
-
resolveHostHeaderConfig,
|
|
22
|
-
} from "@aws-sdk/middleware-host-header";
|
|
23
|
-
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
24
|
-
import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
25
|
-
import {
|
|
26
|
-
AwsAuthInputConfig,
|
|
27
|
-
AwsAuthResolvedConfig,
|
|
28
|
-
getAwsAuthPlugin,
|
|
29
|
-
resolveAwsAuthConfig,
|
|
30
|
-
} from "@aws-sdk/middleware-signing";
|
|
31
|
-
import {
|
|
32
|
-
UserAgentInputConfig,
|
|
33
|
-
UserAgentResolvedConfig,
|
|
34
|
-
getUserAgentPlugin,
|
|
35
|
-
resolveUserAgentConfig,
|
|
36
|
-
} from "@aws-sdk/middleware-user-agent";
|
|
37
|
-
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
38
|
-
import {
|
|
39
|
-
Client as __Client,
|
|
40
|
-
SmithyConfiguration as __SmithyConfiguration,
|
|
41
|
-
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
42
|
-
} from "@aws-sdk/smithy-client";
|
|
43
|
-
import {
|
|
44
|
-
Provider,
|
|
45
|
-
RegionInfoProvider,
|
|
46
|
-
Credentials as __Credentials,
|
|
47
|
-
Decoder as __Decoder,
|
|
48
|
-
Encoder as __Encoder,
|
|
49
|
-
Hash as __Hash,
|
|
50
|
-
HashConstructor as __HashConstructor,
|
|
51
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
52
|
-
Logger as __Logger,
|
|
53
|
-
Provider as __Provider,
|
|
54
|
-
StreamCollector as __StreamCollector,
|
|
55
|
-
UrlParser as __UrlParser,
|
|
56
|
-
UserAgent as __UserAgent,
|
|
57
|
-
} from "@aws-sdk/types";
|
|
58
|
-
|
|
59
|
-
export type ServiceInputTypes =
|
|
60
|
-
| CompleteSnapshotCommandInput
|
|
61
|
-
| GetSnapshotBlockCommandInput
|
|
62
|
-
| ListChangedBlocksCommandInput
|
|
63
|
-
| ListSnapshotBlocksCommandInput
|
|
64
|
-
| PutSnapshotBlockCommandInput
|
|
65
|
-
| StartSnapshotCommandInput;
|
|
66
|
-
|
|
67
|
-
export type ServiceOutputTypes =
|
|
68
|
-
| CompleteSnapshotCommandOutput
|
|
69
|
-
| GetSnapshotBlockCommandOutput
|
|
70
|
-
| ListChangedBlocksCommandOutput
|
|
71
|
-
| ListSnapshotBlocksCommandOutput
|
|
72
|
-
| PutSnapshotBlockCommandOutput
|
|
73
|
-
| StartSnapshotCommandOutput;
|
|
74
|
-
|
|
75
|
-
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
76
|
-
/**
|
|
77
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
78
|
-
*/
|
|
79
|
-
requestHandler?: __HttpHandler;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
83
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
84
|
-
* @internal
|
|
85
|
-
*/
|
|
86
|
-
sha256?: __HashConstructor;
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
90
|
-
* @internal
|
|
91
|
-
*/
|
|
92
|
-
urlParser?: __UrlParser;
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* A function that can calculate the length of a request body.
|
|
96
|
-
* @internal
|
|
97
|
-
*/
|
|
98
|
-
bodyLengthChecker?: (body: any) => number | undefined;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* A function that converts a stream into an array of bytes.
|
|
102
|
-
* @internal
|
|
103
|
-
*/
|
|
104
|
-
streamCollector?: __StreamCollector;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
108
|
-
* @internal
|
|
109
|
-
*/
|
|
110
|
-
base64Decoder?: __Decoder;
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
114
|
-
* @internal
|
|
115
|
-
*/
|
|
116
|
-
base64Encoder?: __Encoder;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
120
|
-
* @internal
|
|
121
|
-
*/
|
|
122
|
-
utf8Decoder?: __Decoder;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
126
|
-
* @internal
|
|
127
|
-
*/
|
|
128
|
-
utf8Encoder?: __Encoder;
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* The runtime environment.
|
|
132
|
-
* @internal
|
|
133
|
-
*/
|
|
134
|
-
runtime?: string;
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
138
|
-
* trait of an operation.
|
|
139
|
-
*/
|
|
140
|
-
disableHostPrefix?: boolean;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
144
|
-
*/
|
|
145
|
-
maxAttempts?: number | __Provider<number>;
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Specifies which retry algorithm to use.
|
|
149
|
-
*/
|
|
150
|
-
retryMode?: string | __Provider<string>;
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* Optional logger for logging debug/info/warn/error.
|
|
154
|
-
*/
|
|
155
|
-
logger?: __Logger;
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* Unique service identifier.
|
|
159
|
-
* @internal
|
|
160
|
-
*/
|
|
161
|
-
serviceId?: string;
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* The AWS region to which this client will send requests
|
|
165
|
-
*/
|
|
166
|
-
region?: string | __Provider<string>;
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Default credentials provider; Not available in browser runtime.
|
|
170
|
-
* @internal
|
|
171
|
-
*/
|
|
172
|
-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
176
|
-
* @internal
|
|
177
|
-
*/
|
|
178
|
-
regionInfoProvider?: RegionInfoProvider;
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
182
|
-
* @internal
|
|
183
|
-
*/
|
|
184
|
-
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
type EBSClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
|
|
188
|
-
ClientDefaults &
|
|
189
|
-
RegionInputConfig &
|
|
190
|
-
EndpointsInputConfig &
|
|
191
|
-
RetryInputConfig &
|
|
192
|
-
HostHeaderInputConfig &
|
|
193
|
-
AwsAuthInputConfig &
|
|
194
|
-
UserAgentInputConfig;
|
|
195
|
-
/**
|
|
196
|
-
* The configuration interface of EBSClient class constructor that set the region, credentials and other options.
|
|
197
|
-
*/
|
|
198
|
-
export interface EBSClientConfig extends EBSClientConfigType {}
|
|
199
|
-
|
|
200
|
-
type EBSClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
201
|
-
Required<ClientDefaults> &
|
|
202
|
-
RegionResolvedConfig &
|
|
203
|
-
EndpointsResolvedConfig &
|
|
204
|
-
RetryResolvedConfig &
|
|
205
|
-
HostHeaderResolvedConfig &
|
|
206
|
-
AwsAuthResolvedConfig &
|
|
207
|
-
UserAgentResolvedConfig;
|
|
208
|
-
/**
|
|
209
|
-
* The resolved configuration interface of EBSClient class. This is resolved and normalized from the {@link EBSClientConfig | constructor configuration interface}.
|
|
210
|
-
*/
|
|
211
|
-
export interface EBSClientResolvedConfig extends EBSClientResolvedConfigType {}
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* <p>You can use the Amazon Elastic Block Store (Amazon EBS) direct APIs to create Amazon EBS snapshots, write data directly to
|
|
215
|
-
* your snapshots, read data on your snapshots, and identify the differences or changes between
|
|
216
|
-
* two snapshots. If you’re an independent software vendor (ISV) who offers backup services for
|
|
217
|
-
* Amazon EBS, the EBS direct APIs make it more efficient and cost-effective to track incremental changes on
|
|
218
|
-
* your Amazon EBS volumes through snapshots. This can be done without having to create new volumes
|
|
219
|
-
* from snapshots, and then use Amazon Elastic Compute Cloud (Amazon EC2) instances to compare the differences.</p>
|
|
220
|
-
*
|
|
221
|
-
* <p>You can create incremental snapshots directly from data on-premises into volumes and the
|
|
222
|
-
* cloud to use for quick disaster recovery. With the ability to write and read snapshots, you can
|
|
223
|
-
* write your on-premises data to an snapshot during a disaster. Then after recovery, you can
|
|
224
|
-
* restore it back to Amazon Web Services or on-premises from the snapshot. You no longer need to build and
|
|
225
|
-
* maintain complex mechanisms to copy data to and from Amazon EBS.</p>
|
|
226
|
-
*
|
|
227
|
-
*
|
|
228
|
-
* <p>This API reference provides detailed information about the actions, data types,
|
|
229
|
-
* parameters, and errors of the EBS direct APIs. For more information about the elements that
|
|
230
|
-
* 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
|
|
231
|
-
* Guide</i>. For more information about the supported Amazon Web Services Regions, endpoints,
|
|
232
|
-
* 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
|
|
233
|
-
* the <i>Amazon Web Services General Reference</i>.</p>
|
|
234
|
-
*/
|
|
235
|
-
export class EBSClient extends __Client<
|
|
236
|
-
__HttpHandlerOptions,
|
|
237
|
-
ServiceInputTypes,
|
|
238
|
-
ServiceOutputTypes,
|
|
239
|
-
EBSClientResolvedConfig
|
|
240
|
-
> {
|
|
241
|
-
/**
|
|
242
|
-
* The resolved configuration of EBSClient class. This is resolved and normalized from the {@link EBSClientConfig | constructor configuration interface}.
|
|
243
|
-
*/
|
|
244
|
-
readonly config: EBSClientResolvedConfig;
|
|
245
|
-
|
|
246
|
-
constructor(configuration: EBSClientConfig) {
|
|
247
|
-
let _config_0 = __getRuntimeConfig(configuration);
|
|
248
|
-
let _config_1 = resolveRegionConfig(_config_0);
|
|
249
|
-
let _config_2 = resolveEndpointsConfig(_config_1);
|
|
250
|
-
let _config_3 = resolveRetryConfig(_config_2);
|
|
251
|
-
let _config_4 = resolveHostHeaderConfig(_config_3);
|
|
252
|
-
let _config_5 = resolveAwsAuthConfig(_config_4);
|
|
253
|
-
let _config_6 = resolveUserAgentConfig(_config_5);
|
|
254
|
-
super(_config_6);
|
|
255
|
-
this.config = _config_6;
|
|
256
|
-
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
257
|
-
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
258
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
259
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
260
|
-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
261
|
-
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
266
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
267
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
268
|
-
*/
|
|
269
|
-
destroy(): void {
|
|
270
|
-
super.destroy();
|
|
271
|
-
}
|
|
272
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { EBSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EBSClient";
|
|
2
|
-
import { CompleteSnapshotRequest, CompleteSnapshotResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_restJson1CompleteSnapshotCommand,
|
|
5
|
-
serializeAws_restJson1CompleteSnapshotCommand,
|
|
6
|
-
} from "../protocols/Aws_restJson1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface CompleteSnapshotCommandInput extends CompleteSnapshotRequest {}
|
|
21
|
-
export interface CompleteSnapshotCommandOutput extends CompleteSnapshotResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Seals and completes the snapshot after all of the required blocks of data have been
|
|
25
|
-
* written to it. Completing the snapshot changes the status to <code>completed</code>. You
|
|
26
|
-
* cannot write new blocks to a snapshot after it has been completed.</p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { EBSClient, CompleteSnapshotCommand } from "@aws-sdk/client-ebs"; // ES Modules import
|
|
31
|
-
* // const { EBSClient, CompleteSnapshotCommand } = require("@aws-sdk/client-ebs"); // CommonJS import
|
|
32
|
-
* const client = new EBSClient(config);
|
|
33
|
-
* const command = new CompleteSnapshotCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link CompleteSnapshotCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link CompleteSnapshotCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link EBSClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class CompleteSnapshotCommand extends $Command<
|
|
43
|
-
CompleteSnapshotCommandInput,
|
|
44
|
-
CompleteSnapshotCommandOutput,
|
|
45
|
-
EBSClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: CompleteSnapshotCommandInput) {
|
|
51
|
-
// Start section: command_constructor
|
|
52
|
-
super();
|
|
53
|
-
// End section: command_constructor
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
|
-
resolveMiddleware(
|
|
60
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
61
|
-
configuration: EBSClientResolvedConfig,
|
|
62
|
-
options?: __HttpHandlerOptions
|
|
63
|
-
): Handler<CompleteSnapshotCommandInput, CompleteSnapshotCommandOutput> {
|
|
64
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
65
|
-
|
|
66
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
67
|
-
|
|
68
|
-
const { logger } = configuration;
|
|
69
|
-
const clientName = "EBSClient";
|
|
70
|
-
const commandName = "CompleteSnapshotCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: CompleteSnapshotRequest.filterSensitiveLog,
|
|
76
|
-
outputFilterSensitiveLog: CompleteSnapshotResponse.filterSensitiveLog,
|
|
77
|
-
};
|
|
78
|
-
const { requestHandler } = configuration;
|
|
79
|
-
return stack.resolve(
|
|
80
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
81
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
82
|
-
handlerExecutionContext
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
private serialize(input: CompleteSnapshotCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_restJson1CompleteSnapshotCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CompleteSnapshotCommandOutput> {
|
|
91
|
-
return deserializeAws_restJson1CompleteSnapshotCommand(output, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Start section: command_body_extra
|
|
95
|
-
// End section: command_body_extra
|
|
96
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { EBSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EBSClient";
|
|
2
|
-
import { GetSnapshotBlockRequest, GetSnapshotBlockResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_restJson1GetSnapshotBlockCommand,
|
|
5
|
-
serializeAws_restJson1GetSnapshotBlockCommand,
|
|
6
|
-
} from "../protocols/Aws_restJson1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface GetSnapshotBlockCommandInput extends GetSnapshotBlockRequest {}
|
|
21
|
-
export interface GetSnapshotBlockCommandOutput extends GetSnapshotBlockResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Returns the data in a block in an Amazon Elastic Block Store snapshot.</p>
|
|
25
|
-
* @example
|
|
26
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
27
|
-
* ```javascript
|
|
28
|
-
* import { EBSClient, GetSnapshotBlockCommand } from "@aws-sdk/client-ebs"; // ES Modules import
|
|
29
|
-
* // const { EBSClient, GetSnapshotBlockCommand } = require("@aws-sdk/client-ebs"); // CommonJS import
|
|
30
|
-
* const client = new EBSClient(config);
|
|
31
|
-
* const command = new GetSnapshotBlockCommand(input);
|
|
32
|
-
* const response = await client.send(command);
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @see {@link GetSnapshotBlockCommandInput} for command's `input` shape.
|
|
36
|
-
* @see {@link GetSnapshotBlockCommandOutput} for command's `response` shape.
|
|
37
|
-
* @see {@link EBSClientResolvedConfig | config} for command's `input` shape.
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
|
-
export class GetSnapshotBlockCommand extends $Command<
|
|
41
|
-
GetSnapshotBlockCommandInput,
|
|
42
|
-
GetSnapshotBlockCommandOutput,
|
|
43
|
-
EBSClientResolvedConfig
|
|
44
|
-
> {
|
|
45
|
-
// Start section: command_properties
|
|
46
|
-
// End section: command_properties
|
|
47
|
-
|
|
48
|
-
constructor(readonly input: GetSnapshotBlockCommandInput) {
|
|
49
|
-
// Start section: command_constructor
|
|
50
|
-
super();
|
|
51
|
-
// End section: command_constructor
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @internal
|
|
56
|
-
*/
|
|
57
|
-
resolveMiddleware(
|
|
58
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
59
|
-
configuration: EBSClientResolvedConfig,
|
|
60
|
-
options?: __HttpHandlerOptions
|
|
61
|
-
): Handler<GetSnapshotBlockCommandInput, GetSnapshotBlockCommandOutput> {
|
|
62
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
63
|
-
|
|
64
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
65
|
-
|
|
66
|
-
const { logger } = configuration;
|
|
67
|
-
const clientName = "EBSClient";
|
|
68
|
-
const commandName = "GetSnapshotBlockCommand";
|
|
69
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
70
|
-
logger,
|
|
71
|
-
clientName,
|
|
72
|
-
commandName,
|
|
73
|
-
inputFilterSensitiveLog: GetSnapshotBlockRequest.filterSensitiveLog,
|
|
74
|
-
outputFilterSensitiveLog: GetSnapshotBlockResponse.filterSensitiveLog,
|
|
75
|
-
};
|
|
76
|
-
const { requestHandler } = configuration;
|
|
77
|
-
return stack.resolve(
|
|
78
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
79
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
80
|
-
handlerExecutionContext
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
private serialize(input: GetSnapshotBlockCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
85
|
-
return serializeAws_restJson1GetSnapshotBlockCommand(input, context);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetSnapshotBlockCommandOutput> {
|
|
89
|
-
return deserializeAws_restJson1GetSnapshotBlockCommand(output, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// Start section: command_body_extra
|
|
93
|
-
// End section: command_body_extra
|
|
94
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { EBSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EBSClient";
|
|
2
|
-
import { ListChangedBlocksRequest, ListChangedBlocksResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_restJson1ListChangedBlocksCommand,
|
|
5
|
-
serializeAws_restJson1ListChangedBlocksCommand,
|
|
6
|
-
} from "../protocols/Aws_restJson1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface ListChangedBlocksCommandInput extends ListChangedBlocksRequest {}
|
|
21
|
-
export interface ListChangedBlocksCommandOutput extends ListChangedBlocksResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Returns information about the blocks that are different between two
|
|
25
|
-
* Amazon Elastic Block Store snapshots of the same volume/snapshot lineage.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { EBSClient, ListChangedBlocksCommand } from "@aws-sdk/client-ebs"; // ES Modules import
|
|
30
|
-
* // const { EBSClient, ListChangedBlocksCommand } = require("@aws-sdk/client-ebs"); // CommonJS import
|
|
31
|
-
* const client = new EBSClient(config);
|
|
32
|
-
* const command = new ListChangedBlocksCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link ListChangedBlocksCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link ListChangedBlocksCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link EBSClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class ListChangedBlocksCommand extends $Command<
|
|
42
|
-
ListChangedBlocksCommandInput,
|
|
43
|
-
ListChangedBlocksCommandOutput,
|
|
44
|
-
EBSClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: ListChangedBlocksCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: EBSClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<ListChangedBlocksCommandInput, ListChangedBlocksCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "EBSClient";
|
|
69
|
-
const commandName = "ListChangedBlocksCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: ListChangedBlocksRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: ListChangedBlocksResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: ListChangedBlocksCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1ListChangedBlocksCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListChangedBlocksCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1ListChangedBlocksCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { EBSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EBSClient";
|
|
2
|
-
import { ListSnapshotBlocksRequest, ListSnapshotBlocksResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_restJson1ListSnapshotBlocksCommand,
|
|
5
|
-
serializeAws_restJson1ListSnapshotBlocksCommand,
|
|
6
|
-
} from "../protocols/Aws_restJson1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface ListSnapshotBlocksCommandInput extends ListSnapshotBlocksRequest {}
|
|
21
|
-
export interface ListSnapshotBlocksCommandOutput extends ListSnapshotBlocksResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Returns information about the blocks in an Amazon Elastic Block Store snapshot.</p>
|
|
25
|
-
* @example
|
|
26
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
27
|
-
* ```javascript
|
|
28
|
-
* import { EBSClient, ListSnapshotBlocksCommand } from "@aws-sdk/client-ebs"; // ES Modules import
|
|
29
|
-
* // const { EBSClient, ListSnapshotBlocksCommand } = require("@aws-sdk/client-ebs"); // CommonJS import
|
|
30
|
-
* const client = new EBSClient(config);
|
|
31
|
-
* const command = new ListSnapshotBlocksCommand(input);
|
|
32
|
-
* const response = await client.send(command);
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @see {@link ListSnapshotBlocksCommandInput} for command's `input` shape.
|
|
36
|
-
* @see {@link ListSnapshotBlocksCommandOutput} for command's `response` shape.
|
|
37
|
-
* @see {@link EBSClientResolvedConfig | config} for command's `input` shape.
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
|
-
export class ListSnapshotBlocksCommand extends $Command<
|
|
41
|
-
ListSnapshotBlocksCommandInput,
|
|
42
|
-
ListSnapshotBlocksCommandOutput,
|
|
43
|
-
EBSClientResolvedConfig
|
|
44
|
-
> {
|
|
45
|
-
// Start section: command_properties
|
|
46
|
-
// End section: command_properties
|
|
47
|
-
|
|
48
|
-
constructor(readonly input: ListSnapshotBlocksCommandInput) {
|
|
49
|
-
// Start section: command_constructor
|
|
50
|
-
super();
|
|
51
|
-
// End section: command_constructor
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @internal
|
|
56
|
-
*/
|
|
57
|
-
resolveMiddleware(
|
|
58
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
59
|
-
configuration: EBSClientResolvedConfig,
|
|
60
|
-
options?: __HttpHandlerOptions
|
|
61
|
-
): Handler<ListSnapshotBlocksCommandInput, ListSnapshotBlocksCommandOutput> {
|
|
62
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
63
|
-
|
|
64
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
65
|
-
|
|
66
|
-
const { logger } = configuration;
|
|
67
|
-
const clientName = "EBSClient";
|
|
68
|
-
const commandName = "ListSnapshotBlocksCommand";
|
|
69
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
70
|
-
logger,
|
|
71
|
-
clientName,
|
|
72
|
-
commandName,
|
|
73
|
-
inputFilterSensitiveLog: ListSnapshotBlocksRequest.filterSensitiveLog,
|
|
74
|
-
outputFilterSensitiveLog: ListSnapshotBlocksResponse.filterSensitiveLog,
|
|
75
|
-
};
|
|
76
|
-
const { requestHandler } = configuration;
|
|
77
|
-
return stack.resolve(
|
|
78
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
79
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
80
|
-
handlerExecutionContext
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
private serialize(input: ListSnapshotBlocksCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
85
|
-
return serializeAws_restJson1ListSnapshotBlocksCommand(input, context);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListSnapshotBlocksCommandOutput> {
|
|
89
|
-
return deserializeAws_restJson1ListSnapshotBlocksCommand(output, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// Start section: command_body_extra
|
|
93
|
-
// End section: command_body_extra
|
|
94
|
-
}
|