@aws-sdk/client-ebs 3.901.0 → 3.906.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +811 -987
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -1,1034 +1,858 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
var uuid = require('@smithy/uuid');
|
|
20
|
+
|
|
21
|
+
const resolveClientEndpointParameters = (options) => {
|
|
22
|
+
return Object.assign(options, {
|
|
23
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
24
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
25
|
+
defaultSigningName: "ebs",
|
|
26
|
+
});
|
|
10
27
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
28
|
+
const commonParams = {
|
|
29
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
30
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
31
|
+
Region: { type: "builtInParams", name: "region" },
|
|
32
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
33
|
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
|
|
21
|
-
// src/index.ts
|
|
22
|
-
var index_exports = {};
|
|
23
|
-
__export(index_exports, {
|
|
24
|
-
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
-
AccessDeniedExceptionReason: () => AccessDeniedExceptionReason,
|
|
26
|
-
ChangedBlockFilterSensitiveLog: () => ChangedBlockFilterSensitiveLog,
|
|
27
|
-
ChecksumAggregationMethod: () => ChecksumAggregationMethod,
|
|
28
|
-
ChecksumAlgorithm: () => ChecksumAlgorithm,
|
|
29
|
-
CompleteSnapshotCommand: () => CompleteSnapshotCommand,
|
|
30
|
-
ConcurrentLimitExceededException: () => ConcurrentLimitExceededException,
|
|
31
|
-
ConflictException: () => ConflictException,
|
|
32
|
-
EBS: () => EBS,
|
|
33
|
-
EBSClient: () => EBSClient,
|
|
34
|
-
EBSServiceException: () => EBSServiceException,
|
|
35
|
-
GetSnapshotBlockCommand: () => GetSnapshotBlockCommand,
|
|
36
|
-
GetSnapshotBlockResponseFilterSensitiveLog: () => GetSnapshotBlockResponseFilterSensitiveLog,
|
|
37
|
-
InternalServerException: () => InternalServerException,
|
|
38
|
-
ListChangedBlocksCommand: () => ListChangedBlocksCommand,
|
|
39
|
-
ListChangedBlocksResponseFilterSensitiveLog: () => ListChangedBlocksResponseFilterSensitiveLog,
|
|
40
|
-
ListSnapshotBlocksCommand: () => ListSnapshotBlocksCommand,
|
|
41
|
-
ListSnapshotBlocksResponseFilterSensitiveLog: () => ListSnapshotBlocksResponseFilterSensitiveLog,
|
|
42
|
-
PutSnapshotBlockCommand: () => PutSnapshotBlockCommand,
|
|
43
|
-
PutSnapshotBlockRequestFilterSensitiveLog: () => PutSnapshotBlockRequestFilterSensitiveLog,
|
|
44
|
-
RequestThrottledException: () => RequestThrottledException,
|
|
45
|
-
RequestThrottledExceptionReason: () => RequestThrottledExceptionReason,
|
|
46
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
47
|
-
ResourceNotFoundExceptionReason: () => ResourceNotFoundExceptionReason,
|
|
48
|
-
SSEType: () => SSEType,
|
|
49
|
-
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
50
|
-
ServiceQuotaExceededExceptionReason: () => ServiceQuotaExceededExceptionReason,
|
|
51
|
-
StartSnapshotCommand: () => StartSnapshotCommand,
|
|
52
|
-
StartSnapshotRequestFilterSensitiveLog: () => StartSnapshotRequestFilterSensitiveLog,
|
|
53
|
-
StartSnapshotResponseFilterSensitiveLog: () => StartSnapshotResponseFilterSensitiveLog,
|
|
54
|
-
Status: () => Status,
|
|
55
|
-
ValidationException: () => ValidationException,
|
|
56
|
-
ValidationExceptionReason: () => ValidationExceptionReason,
|
|
57
|
-
__Client: () => import_smithy_client.Client,
|
|
58
|
-
paginateListChangedBlocks: () => paginateListChangedBlocks,
|
|
59
|
-
paginateListSnapshotBlocks: () => paginateListSnapshotBlocks
|
|
60
|
-
});
|
|
61
|
-
module.exports = __toCommonJS(index_exports);
|
|
62
|
-
|
|
63
|
-
// src/EBSClient.ts
|
|
64
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
65
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
66
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
67
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
68
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
69
|
-
var import_core = require("@smithy/core");
|
|
70
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
71
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
72
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
73
34
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
35
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
36
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
37
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
38
|
+
let _credentials = runtimeConfig.credentials;
|
|
39
|
+
return {
|
|
40
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
41
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
42
|
+
if (index === -1) {
|
|
43
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
httpAuthSchemes() {
|
|
50
|
+
return _httpAuthSchemes;
|
|
51
|
+
},
|
|
52
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
53
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
54
|
+
},
|
|
55
|
+
httpAuthSchemeProvider() {
|
|
56
|
+
return _httpAuthSchemeProvider;
|
|
57
|
+
},
|
|
58
|
+
setCredentials(credentials) {
|
|
59
|
+
_credentials = credentials;
|
|
60
|
+
},
|
|
61
|
+
credentials() {
|
|
62
|
+
return _credentials;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
67
|
+
return {
|
|
68
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
69
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
70
|
+
credentials: config.credentials(),
|
|
71
|
+
};
|
|
89
72
|
};
|
|
90
73
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
var import_protocol_http = require("@smithy/protocol-http");
|
|
97
|
-
var import_smithy_client = require("@smithy/smithy-client");
|
|
74
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
75
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
76
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
77
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
78
|
+
};
|
|
98
79
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
80
|
+
class EBSClient extends smithyClient.Client {
|
|
81
|
+
config;
|
|
82
|
+
constructor(...[configuration]) {
|
|
83
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
84
|
+
super(_config_0);
|
|
85
|
+
this.initConfig = _config_0;
|
|
86
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
87
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
88
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
89
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
90
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
91
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
92
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
93
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
94
|
+
this.config = _config_8;
|
|
95
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
102
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultEBSHttpAuthSchemeParametersProvider,
|
|
103
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
104
|
+
"aws.auth#sigv4": config.credentials,
|
|
105
|
+
}),
|
|
106
|
+
}));
|
|
107
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
108
|
+
}
|
|
109
|
+
destroy() {
|
|
110
|
+
super.destroy();
|
|
127
111
|
}
|
|
128
|
-
|
|
129
|
-
}, "getHttpAuthExtensionConfiguration");
|
|
130
|
-
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
131
|
-
return {
|
|
132
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
133
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
134
|
-
credentials: config.credentials()
|
|
135
|
-
};
|
|
136
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
112
|
+
}
|
|
137
113
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
145
|
-
);
|
|
146
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
147
|
-
return Object.assign(
|
|
148
|
-
runtimeConfig,
|
|
149
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
150
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
151
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
152
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
153
|
-
);
|
|
154
|
-
}, "resolveRuntimeExtensions");
|
|
114
|
+
class EBSServiceException extends smithyClient.ServiceException {
|
|
115
|
+
constructor(options) {
|
|
116
|
+
super(options);
|
|
117
|
+
Object.setPrototypeOf(this, EBSServiceException.prototype);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
155
120
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
__name(this, "EBSClient");
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* The resolved configuration of EBSClient class. This is resolved and normalized from the {@link EBSClientConfig | constructor configuration interface}.
|
|
163
|
-
*/
|
|
164
|
-
config;
|
|
165
|
-
constructor(...[configuration]) {
|
|
166
|
-
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
167
|
-
super(_config_0);
|
|
168
|
-
this.initConfig = _config_0;
|
|
169
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
170
|
-
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
171
|
-
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
172
|
-
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
|
|
173
|
-
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
174
|
-
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
175
|
-
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
176
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
177
|
-
this.config = _config_8;
|
|
178
|
-
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
179
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
180
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
181
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
182
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
183
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
184
|
-
this.middlewareStack.use(
|
|
185
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
186
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultEBSHttpAuthSchemeParametersProvider,
|
|
187
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
188
|
-
"aws.auth#sigv4": config.credentials
|
|
189
|
-
}), "identityProviderConfigProvider")
|
|
190
|
-
})
|
|
191
|
-
);
|
|
192
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
193
|
-
}
|
|
194
|
-
/**
|
|
195
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
196
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
197
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
198
|
-
*/
|
|
199
|
-
destroy() {
|
|
200
|
-
super.destroy();
|
|
201
|
-
}
|
|
121
|
+
const AccessDeniedExceptionReason = {
|
|
122
|
+
DEPENDENCY_ACCESS_DENIED: "DEPENDENCY_ACCESS_DENIED",
|
|
123
|
+
UNAUTHORIZED_ACCOUNT: "UNAUTHORIZED_ACCOUNT",
|
|
202
124
|
};
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
static {
|
|
222
|
-
__name(this, "EBSServiceException");
|
|
223
|
-
}
|
|
224
|
-
/**
|
|
225
|
-
* @internal
|
|
226
|
-
*/
|
|
227
|
-
constructor(options) {
|
|
228
|
-
super(options);
|
|
229
|
-
Object.setPrototypeOf(this, _EBSServiceException.prototype);
|
|
230
|
-
}
|
|
125
|
+
class AccessDeniedException extends EBSServiceException {
|
|
126
|
+
name = "AccessDeniedException";
|
|
127
|
+
$fault = "client";
|
|
128
|
+
Message;
|
|
129
|
+
Reason;
|
|
130
|
+
constructor(opts) {
|
|
131
|
+
super({
|
|
132
|
+
name: "AccessDeniedException",
|
|
133
|
+
$fault: "client",
|
|
134
|
+
...opts,
|
|
135
|
+
});
|
|
136
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
137
|
+
this.Message = opts.Message;
|
|
138
|
+
this.Reason = opts.Reason;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
const ChecksumAggregationMethod = {
|
|
142
|
+
CHECKSUM_AGGREGATION_LINEAR: "LINEAR",
|
|
231
143
|
};
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
var AccessDeniedExceptionReason = {
|
|
236
|
-
DEPENDENCY_ACCESS_DENIED: "DEPENDENCY_ACCESS_DENIED",
|
|
237
|
-
UNAUTHORIZED_ACCOUNT: "UNAUTHORIZED_ACCOUNT"
|
|
144
|
+
const ChecksumAlgorithm = {
|
|
145
|
+
CHECKSUM_ALGORITHM_SHA256: "SHA256",
|
|
238
146
|
};
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
this.Reason = opts.Reason;
|
|
263
|
-
}
|
|
147
|
+
const Status = {
|
|
148
|
+
COMPLETED: "completed",
|
|
149
|
+
ERROR: "error",
|
|
150
|
+
PENDING: "pending",
|
|
151
|
+
};
|
|
152
|
+
class InternalServerException extends EBSServiceException {
|
|
153
|
+
name = "InternalServerException";
|
|
154
|
+
$fault = "server";
|
|
155
|
+
Message;
|
|
156
|
+
constructor(opts) {
|
|
157
|
+
super({
|
|
158
|
+
name: "InternalServerException",
|
|
159
|
+
$fault: "server",
|
|
160
|
+
...opts,
|
|
161
|
+
});
|
|
162
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
163
|
+
this.Message = opts.Message;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
const RequestThrottledExceptionReason = {
|
|
167
|
+
ACCOUNT_THROTTLED: "ACCOUNT_THROTTLED",
|
|
168
|
+
DEPENDENCY_REQUEST_THROTTLED: "DEPENDENCY_REQUEST_THROTTLED",
|
|
169
|
+
RESOURCE_LEVEL_THROTTLE: "RESOURCE_LEVEL_THROTTLE",
|
|
264
170
|
};
|
|
265
|
-
|
|
266
|
-
|
|
171
|
+
class RequestThrottledException extends EBSServiceException {
|
|
172
|
+
name = "RequestThrottledException";
|
|
173
|
+
$fault = "client";
|
|
174
|
+
Message;
|
|
175
|
+
Reason;
|
|
176
|
+
constructor(opts) {
|
|
177
|
+
super({
|
|
178
|
+
name: "RequestThrottledException",
|
|
179
|
+
$fault: "client",
|
|
180
|
+
...opts,
|
|
181
|
+
});
|
|
182
|
+
Object.setPrototypeOf(this, RequestThrottledException.prototype);
|
|
183
|
+
this.Message = opts.Message;
|
|
184
|
+
this.Reason = opts.Reason;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
const ResourceNotFoundExceptionReason = {
|
|
188
|
+
DEPENDENCY_RESOURCE_NOT_FOUND: "DEPENDENCY_RESOURCE_NOT_FOUND",
|
|
189
|
+
GRANT_NOT_FOUND: "GRANT_NOT_FOUND",
|
|
190
|
+
IMAGE_NOT_FOUND: "IMAGE_NOT_FOUND",
|
|
191
|
+
SNAPSHOT_NOT_FOUND: "SNAPSHOT_NOT_FOUND",
|
|
192
|
+
};
|
|
193
|
+
class ResourceNotFoundException extends EBSServiceException {
|
|
194
|
+
name = "ResourceNotFoundException";
|
|
195
|
+
$fault = "client";
|
|
196
|
+
Message;
|
|
197
|
+
Reason;
|
|
198
|
+
constructor(opts) {
|
|
199
|
+
super({
|
|
200
|
+
name: "ResourceNotFoundException",
|
|
201
|
+
$fault: "client",
|
|
202
|
+
...opts,
|
|
203
|
+
});
|
|
204
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
205
|
+
this.Message = opts.Message;
|
|
206
|
+
this.Reason = opts.Reason;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
const ServiceQuotaExceededExceptionReason = {
|
|
210
|
+
DEPENDENCY_SERVICE_QUOTA_EXCEEDED: "DEPENDENCY_SERVICE_QUOTA_EXCEEDED",
|
|
267
211
|
};
|
|
268
|
-
|
|
269
|
-
|
|
212
|
+
class ServiceQuotaExceededException extends EBSServiceException {
|
|
213
|
+
name = "ServiceQuotaExceededException";
|
|
214
|
+
$fault = "client";
|
|
215
|
+
Message;
|
|
216
|
+
Reason;
|
|
217
|
+
constructor(opts) {
|
|
218
|
+
super({
|
|
219
|
+
name: "ServiceQuotaExceededException",
|
|
220
|
+
$fault: "client",
|
|
221
|
+
...opts,
|
|
222
|
+
});
|
|
223
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
224
|
+
this.Message = opts.Message;
|
|
225
|
+
this.Reason = opts.Reason;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
const ValidationExceptionReason = {
|
|
229
|
+
CONFLICTING_BLOCK_UPDATE: "CONFLICTING_BLOCK_UPDATE",
|
|
230
|
+
INVALID_BLOCK: "INVALID_BLOCK",
|
|
231
|
+
INVALID_BLOCK_TOKEN: "INVALID_BLOCK_TOKEN",
|
|
232
|
+
INVALID_CONTENT_ENCODING: "INVALID_CONTENT_ENCODING",
|
|
233
|
+
INVALID_CUSTOMER_KEY: "INVALID_CUSTOMER_KEY",
|
|
234
|
+
INVALID_DEPENDENCY_REQUEST: "INVALID_DEPENDENCY_REQUEST",
|
|
235
|
+
INVALID_GRANT_TOKEN: "INVALID_GRANT_TOKEN",
|
|
236
|
+
INVALID_IMAGE_ID: "INVALID_IMAGE_ID",
|
|
237
|
+
INVALID_PAGE_TOKEN: "INVALID_PAGE_TOKEN",
|
|
238
|
+
INVALID_PARAMETER_VALUE: "INVALID_PARAMETER_VALUE",
|
|
239
|
+
INVALID_SNAPSHOT_ID: "INVALID_SNAPSHOT_ID",
|
|
240
|
+
INVALID_TAG: "INVALID_TAG",
|
|
241
|
+
INVALID_VOLUME_SIZE: "INVALID_VOLUME_SIZE",
|
|
242
|
+
UNRELATED_SNAPSHOTS: "UNRELATED_SNAPSHOTS",
|
|
243
|
+
WRITE_REQUEST_TIMEOUT: "WRITE_REQUEST_TIMEOUT",
|
|
270
244
|
};
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
245
|
+
class ValidationException extends EBSServiceException {
|
|
246
|
+
name = "ValidationException";
|
|
247
|
+
$fault = "client";
|
|
248
|
+
Message;
|
|
249
|
+
Reason;
|
|
250
|
+
constructor(opts) {
|
|
251
|
+
super({
|
|
252
|
+
name: "ValidationException",
|
|
253
|
+
$fault: "client",
|
|
254
|
+
...opts,
|
|
255
|
+
});
|
|
256
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
257
|
+
this.Message = opts.Message;
|
|
258
|
+
this.Reason = opts.Reason;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
class ConcurrentLimitExceededException extends EBSServiceException {
|
|
262
|
+
name = "ConcurrentLimitExceededException";
|
|
263
|
+
$fault = "client";
|
|
264
|
+
Message;
|
|
265
|
+
constructor(opts) {
|
|
266
|
+
super({
|
|
267
|
+
name: "ConcurrentLimitExceededException",
|
|
268
|
+
$fault: "client",
|
|
269
|
+
...opts,
|
|
270
|
+
});
|
|
271
|
+
Object.setPrototypeOf(this, ConcurrentLimitExceededException.prototype);
|
|
272
|
+
this.Message = opts.Message;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
class ConflictException extends EBSServiceException {
|
|
276
|
+
name = "ConflictException";
|
|
277
|
+
$fault = "client";
|
|
278
|
+
Message;
|
|
279
|
+
constructor(opts) {
|
|
280
|
+
super({
|
|
281
|
+
name: "ConflictException",
|
|
282
|
+
$fault: "client",
|
|
283
|
+
...opts,
|
|
284
|
+
});
|
|
285
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
286
|
+
this.Message = opts.Message;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
const SSEType = {
|
|
290
|
+
NONE: "none",
|
|
291
|
+
SSE_EBS: "sse-ebs",
|
|
292
|
+
SSE_KMS: "sse-kms",
|
|
275
293
|
};
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
294
|
+
const ChangedBlockFilterSensitiveLog = (obj) => ({
|
|
295
|
+
...obj,
|
|
296
|
+
});
|
|
297
|
+
const GetSnapshotBlockResponseFilterSensitiveLog = (obj) => ({
|
|
298
|
+
...obj,
|
|
299
|
+
...(obj.BlockData && { BlockData: smithyClient.SENSITIVE_STRING }),
|
|
300
|
+
});
|
|
301
|
+
const ListChangedBlocksResponseFilterSensitiveLog = (obj) => ({
|
|
302
|
+
...obj,
|
|
303
|
+
...(obj.ChangedBlocks && { ChangedBlocks: smithyClient.SENSITIVE_STRING }),
|
|
304
|
+
});
|
|
305
|
+
const ListSnapshotBlocksResponseFilterSensitiveLog = (obj) => ({
|
|
306
|
+
...obj,
|
|
307
|
+
...(obj.Blocks && { Blocks: smithyClient.SENSITIVE_STRING }),
|
|
308
|
+
});
|
|
309
|
+
const PutSnapshotBlockRequestFilterSensitiveLog = (obj) => ({
|
|
310
|
+
...obj,
|
|
311
|
+
...(obj.BlockData && { BlockData: smithyClient.SENSITIVE_STRING }),
|
|
312
|
+
});
|
|
313
|
+
const StartSnapshotRequestFilterSensitiveLog = (obj) => ({
|
|
314
|
+
...obj,
|
|
315
|
+
...(obj.KmsKeyArn && { KmsKeyArn: smithyClient.SENSITIVE_STRING }),
|
|
316
|
+
});
|
|
317
|
+
const StartSnapshotResponseFilterSensitiveLog = (obj) => ({
|
|
318
|
+
...obj,
|
|
319
|
+
...(obj.KmsKeyArn && { KmsKeyArn: smithyClient.SENSITIVE_STRING }),
|
|
320
|
+
});
|
|
321
|
+
|
|
322
|
+
const se_CompleteSnapshotCommand = async (input, context) => {
|
|
323
|
+
const b = core.requestBuilder(input, context);
|
|
324
|
+
const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
|
|
325
|
+
[_xac]: [() => smithyClient.isSerializableHeaderValue(input[_CBC]), () => input[_CBC].toString()],
|
|
326
|
+
[_xac_]: input[_C],
|
|
327
|
+
[_xaca]: input[_CA],
|
|
328
|
+
[_xacam]: input[_CAM],
|
|
291
329
|
});
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
330
|
+
b.bp("/snapshots/completion/{SnapshotId}");
|
|
331
|
+
b.p("SnapshotId", () => input.SnapshotId, "{SnapshotId}", false);
|
|
332
|
+
let body;
|
|
333
|
+
b.m("POST").h(headers).b(body);
|
|
334
|
+
return b.build();
|
|
295
335
|
};
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
336
|
+
const se_GetSnapshotBlockCommand = async (input, context) => {
|
|
337
|
+
const b = core.requestBuilder(input, context);
|
|
338
|
+
const headers = {};
|
|
339
|
+
b.bp("/snapshots/{SnapshotId}/blocks/{BlockIndex}");
|
|
340
|
+
b.p("SnapshotId", () => input.SnapshotId, "{SnapshotId}", false);
|
|
341
|
+
b.p("BlockIndex", () => input.BlockIndex.toString(), "{BlockIndex}", false);
|
|
342
|
+
const query = smithyClient.map({
|
|
343
|
+
[_bT]: [, smithyClient.expectNonNull(input[_BT], `BlockToken`)],
|
|
344
|
+
});
|
|
345
|
+
let body;
|
|
346
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
347
|
+
return b.build();
|
|
300
348
|
};
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
*/
|
|
312
|
-
Reason;
|
|
313
|
-
/**
|
|
314
|
-
* @internal
|
|
315
|
-
*/
|
|
316
|
-
constructor(opts) {
|
|
317
|
-
super({
|
|
318
|
-
name: "RequestThrottledException",
|
|
319
|
-
$fault: "client",
|
|
320
|
-
...opts
|
|
349
|
+
const se_ListChangedBlocksCommand = async (input, context) => {
|
|
350
|
+
const b = core.requestBuilder(input, context);
|
|
351
|
+
const headers = {};
|
|
352
|
+
b.bp("/snapshots/{SecondSnapshotId}/changedblocks");
|
|
353
|
+
b.p("SecondSnapshotId", () => input.SecondSnapshotId, "{SecondSnapshotId}", false);
|
|
354
|
+
const query = smithyClient.map({
|
|
355
|
+
[_fSI]: [, input[_FSI]],
|
|
356
|
+
[_pT]: [, input[_NT]],
|
|
357
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
358
|
+
[_sBI]: [() => input.StartingBlockIndex !== void 0, () => input[_SBI].toString()],
|
|
321
359
|
});
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
}
|
|
360
|
+
let body;
|
|
361
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
362
|
+
return b.build();
|
|
326
363
|
};
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
364
|
+
const se_ListSnapshotBlocksCommand = async (input, context) => {
|
|
365
|
+
const b = core.requestBuilder(input, context);
|
|
366
|
+
const headers = {};
|
|
367
|
+
b.bp("/snapshots/{SnapshotId}/blocks");
|
|
368
|
+
b.p("SnapshotId", () => input.SnapshotId, "{SnapshotId}", false);
|
|
369
|
+
const query = smithyClient.map({
|
|
370
|
+
[_pT]: [, input[_NT]],
|
|
371
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
372
|
+
[_sBI]: [() => input.StartingBlockIndex !== void 0, () => input[_SBI].toString()],
|
|
373
|
+
});
|
|
374
|
+
let body;
|
|
375
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
376
|
+
return b.build();
|
|
332
377
|
};
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
* @public
|
|
343
|
-
*/
|
|
344
|
-
Reason;
|
|
345
|
-
/**
|
|
346
|
-
* @internal
|
|
347
|
-
*/
|
|
348
|
-
constructor(opts) {
|
|
349
|
-
super({
|
|
350
|
-
name: "ResourceNotFoundException",
|
|
351
|
-
$fault: "client",
|
|
352
|
-
...opts
|
|
378
|
+
const se_PutSnapshotBlockCommand = async (input, context) => {
|
|
379
|
+
const b = core.requestBuilder(input, context);
|
|
380
|
+
const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
|
|
381
|
+
"x-amz-content-sha256": "UNSIGNED-PAYLOAD",
|
|
382
|
+
"content-type": "application/octet-stream",
|
|
383
|
+
[_xadl]: [() => smithyClient.isSerializableHeaderValue(input[_DL]), () => input[_DL].toString()],
|
|
384
|
+
[_xap]: [() => smithyClient.isSerializableHeaderValue(input[_P]), () => input[_P].toString()],
|
|
385
|
+
[_xac_]: input[_C],
|
|
386
|
+
[_xaca]: input[_CA],
|
|
353
387
|
});
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
388
|
+
b.bp("/snapshots/{SnapshotId}/blocks/{BlockIndex}");
|
|
389
|
+
b.p("SnapshotId", () => input.SnapshotId, "{SnapshotId}", false);
|
|
390
|
+
b.p("BlockIndex", () => input.BlockIndex.toString(), "{BlockIndex}", false);
|
|
391
|
+
let body;
|
|
392
|
+
if (input.BlockData !== undefined) {
|
|
393
|
+
body = input.BlockData;
|
|
394
|
+
}
|
|
395
|
+
b.m("PUT").h(headers).b(body);
|
|
396
|
+
return b.build();
|
|
358
397
|
};
|
|
359
|
-
|
|
360
|
-
|
|
398
|
+
const se_StartSnapshotCommand = async (input, context) => {
|
|
399
|
+
const b = core.requestBuilder(input, context);
|
|
400
|
+
const headers = {
|
|
401
|
+
"content-type": "application/json",
|
|
402
|
+
};
|
|
403
|
+
b.bp("/snapshots");
|
|
404
|
+
let body;
|
|
405
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
406
|
+
ClientToken: [true, (_) => _ ?? uuid.v4()],
|
|
407
|
+
Description: [],
|
|
408
|
+
Encrypted: [],
|
|
409
|
+
KmsKeyArn: [],
|
|
410
|
+
ParentSnapshotId: [],
|
|
411
|
+
Tags: (_) => smithyClient._json(_),
|
|
412
|
+
Timeout: [],
|
|
413
|
+
VolumeSize: [],
|
|
414
|
+
}));
|
|
415
|
+
b.m("POST").h(headers).b(body);
|
|
416
|
+
return b.build();
|
|
361
417
|
};
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
*/
|
|
373
|
-
Reason;
|
|
374
|
-
/**
|
|
375
|
-
* @internal
|
|
376
|
-
*/
|
|
377
|
-
constructor(opts) {
|
|
378
|
-
super({
|
|
379
|
-
name: "ServiceQuotaExceededException",
|
|
380
|
-
$fault: "client",
|
|
381
|
-
...opts
|
|
418
|
+
const de_CompleteSnapshotCommand = async (output, context) => {
|
|
419
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
420
|
+
return de_CommandError(output, context);
|
|
421
|
+
}
|
|
422
|
+
const contents = smithyClient.map({
|
|
423
|
+
$metadata: deserializeMetadata(output),
|
|
424
|
+
});
|
|
425
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
426
|
+
const doc = smithyClient.take(data, {
|
|
427
|
+
Status: smithyClient.expectString,
|
|
382
428
|
});
|
|
383
|
-
Object.
|
|
384
|
-
|
|
385
|
-
this.Reason = opts.Reason;
|
|
386
|
-
}
|
|
429
|
+
Object.assign(contents, doc);
|
|
430
|
+
return contents;
|
|
387
431
|
};
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
UNRELATED_SNAPSHOTS: "UNRELATED_SNAPSHOTS",
|
|
403
|
-
WRITE_REQUEST_TIMEOUT: "WRITE_REQUEST_TIMEOUT"
|
|
432
|
+
const de_GetSnapshotBlockCommand = async (output, context) => {
|
|
433
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
434
|
+
return de_CommandError(output, context);
|
|
435
|
+
}
|
|
436
|
+
const contents = smithyClient.map({
|
|
437
|
+
$metadata: deserializeMetadata(output),
|
|
438
|
+
[_DL]: [() => void 0 !== output.headers[_xadl], () => smithyClient.strictParseInt32(output.headers[_xadl])],
|
|
439
|
+
[_C]: [, output.headers[_xac_]],
|
|
440
|
+
[_CA]: [, output.headers[_xaca]],
|
|
441
|
+
});
|
|
442
|
+
const data = output.body;
|
|
443
|
+
context.sdkStreamMixin(data);
|
|
444
|
+
contents.BlockData = data;
|
|
445
|
+
return contents;
|
|
404
446
|
};
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
Message;
|
|
412
|
-
/**
|
|
413
|
-
* <p>The reason for the validation exception.</p>
|
|
414
|
-
* @public
|
|
415
|
-
*/
|
|
416
|
-
Reason;
|
|
417
|
-
/**
|
|
418
|
-
* @internal
|
|
419
|
-
*/
|
|
420
|
-
constructor(opts) {
|
|
421
|
-
super({
|
|
422
|
-
name: "ValidationException",
|
|
423
|
-
$fault: "client",
|
|
424
|
-
...opts
|
|
447
|
+
const de_ListChangedBlocksCommand = async (output, context) => {
|
|
448
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
449
|
+
return de_CommandError(output, context);
|
|
450
|
+
}
|
|
451
|
+
const contents = smithyClient.map({
|
|
452
|
+
$metadata: deserializeMetadata(output),
|
|
425
453
|
});
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
454
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
455
|
+
const doc = smithyClient.take(data, {
|
|
456
|
+
BlockSize: smithyClient.expectInt32,
|
|
457
|
+
ChangedBlocks: smithyClient._json,
|
|
458
|
+
ExpiryTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
459
|
+
NextToken: smithyClient.expectString,
|
|
460
|
+
VolumeSize: smithyClient.expectLong,
|
|
461
|
+
});
|
|
462
|
+
Object.assign(contents, doc);
|
|
463
|
+
return contents;
|
|
430
464
|
};
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
...opts
|
|
465
|
+
const de_ListSnapshotBlocksCommand = async (output, context) => {
|
|
466
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
467
|
+
return de_CommandError(output, context);
|
|
468
|
+
}
|
|
469
|
+
const contents = smithyClient.map({
|
|
470
|
+
$metadata: deserializeMetadata(output),
|
|
471
|
+
});
|
|
472
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
473
|
+
const doc = smithyClient.take(data, {
|
|
474
|
+
BlockSize: smithyClient.expectInt32,
|
|
475
|
+
Blocks: smithyClient._json,
|
|
476
|
+
ExpiryTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
477
|
+
NextToken: smithyClient.expectString,
|
|
478
|
+
VolumeSize: smithyClient.expectLong,
|
|
446
479
|
});
|
|
447
|
-
Object.
|
|
448
|
-
|
|
449
|
-
}
|
|
480
|
+
Object.assign(contents, doc);
|
|
481
|
+
return contents;
|
|
450
482
|
};
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
* @internal
|
|
460
|
-
*/
|
|
461
|
-
constructor(opts) {
|
|
462
|
-
super({
|
|
463
|
-
name: "ConflictException",
|
|
464
|
-
$fault: "client",
|
|
465
|
-
...opts
|
|
483
|
+
const de_PutSnapshotBlockCommand = async (output, context) => {
|
|
484
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
485
|
+
return de_CommandError(output, context);
|
|
486
|
+
}
|
|
487
|
+
const contents = smithyClient.map({
|
|
488
|
+
$metadata: deserializeMetadata(output),
|
|
489
|
+
[_C]: [, output.headers[_xac_]],
|
|
490
|
+
[_CA]: [, output.headers[_xaca]],
|
|
466
491
|
});
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
}
|
|
492
|
+
await smithyClient.collectBody(output.body, context);
|
|
493
|
+
return contents;
|
|
470
494
|
};
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
495
|
+
const de_StartSnapshotCommand = async (output, context) => {
|
|
496
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
497
|
+
return de_CommandError(output, context);
|
|
498
|
+
}
|
|
499
|
+
const contents = smithyClient.map({
|
|
500
|
+
$metadata: deserializeMetadata(output),
|
|
501
|
+
});
|
|
502
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
503
|
+
const doc = smithyClient.take(data, {
|
|
504
|
+
BlockSize: smithyClient.expectInt32,
|
|
505
|
+
Description: smithyClient.expectString,
|
|
506
|
+
KmsKeyArn: smithyClient.expectString,
|
|
507
|
+
OwnerId: smithyClient.expectString,
|
|
508
|
+
ParentSnapshotId: smithyClient.expectString,
|
|
509
|
+
SnapshotId: smithyClient.expectString,
|
|
510
|
+
SseType: smithyClient.expectString,
|
|
511
|
+
StartTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
512
|
+
Status: smithyClient.expectString,
|
|
513
|
+
Tags: smithyClient._json,
|
|
514
|
+
VolumeSize: smithyClient.expectLong,
|
|
515
|
+
});
|
|
516
|
+
Object.assign(contents, doc);
|
|
517
|
+
return contents;
|
|
475
518
|
};
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
let body;
|
|
516
|
-
b.m("POST").h(headers).b(body);
|
|
517
|
-
return b.build();
|
|
518
|
-
}, "se_CompleteSnapshotCommand");
|
|
519
|
-
var se_GetSnapshotBlockCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
520
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
521
|
-
const headers = {};
|
|
522
|
-
b.bp("/snapshots/{SnapshotId}/blocks/{BlockIndex}");
|
|
523
|
-
b.p("SnapshotId", () => input.SnapshotId, "{SnapshotId}", false);
|
|
524
|
-
b.p("BlockIndex", () => input.BlockIndex.toString(), "{BlockIndex}", false);
|
|
525
|
-
const query = (0, import_smithy_client.map)({
|
|
526
|
-
[_bT]: [, (0, import_smithy_client.expectNonNull)(input[_BT], `BlockToken`)]
|
|
527
|
-
});
|
|
528
|
-
let body;
|
|
529
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
530
|
-
return b.build();
|
|
531
|
-
}, "se_GetSnapshotBlockCommand");
|
|
532
|
-
var se_ListChangedBlocksCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
533
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
534
|
-
const headers = {};
|
|
535
|
-
b.bp("/snapshots/{SecondSnapshotId}/changedblocks");
|
|
536
|
-
b.p("SecondSnapshotId", () => input.SecondSnapshotId, "{SecondSnapshotId}", false);
|
|
537
|
-
const query = (0, import_smithy_client.map)({
|
|
538
|
-
[_fSI]: [, input[_FSI]],
|
|
539
|
-
[_pT]: [, input[_NT]],
|
|
540
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
541
|
-
[_sBI]: [() => input.StartingBlockIndex !== void 0, () => input[_SBI].toString()]
|
|
542
|
-
});
|
|
543
|
-
let body;
|
|
544
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
545
|
-
return b.build();
|
|
546
|
-
}, "se_ListChangedBlocksCommand");
|
|
547
|
-
var se_ListSnapshotBlocksCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
548
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
549
|
-
const headers = {};
|
|
550
|
-
b.bp("/snapshots/{SnapshotId}/blocks");
|
|
551
|
-
b.p("SnapshotId", () => input.SnapshotId, "{SnapshotId}", false);
|
|
552
|
-
const query = (0, import_smithy_client.map)({
|
|
553
|
-
[_pT]: [, input[_NT]],
|
|
554
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
555
|
-
[_sBI]: [() => input.StartingBlockIndex !== void 0, () => input[_SBI].toString()]
|
|
556
|
-
});
|
|
557
|
-
let body;
|
|
558
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
559
|
-
return b.build();
|
|
560
|
-
}, "se_ListSnapshotBlocksCommand");
|
|
561
|
-
var se_PutSnapshotBlockCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
562
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
563
|
-
const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
|
|
564
|
-
"x-amz-content-sha256": "UNSIGNED-PAYLOAD",
|
|
565
|
-
"content-type": "application/octet-stream",
|
|
566
|
-
[_xadl]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_DL]), () => input[_DL].toString()],
|
|
567
|
-
[_xap]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_P]), () => input[_P].toString()],
|
|
568
|
-
[_xac_]: input[_C],
|
|
569
|
-
[_xaca]: input[_CA]
|
|
570
|
-
});
|
|
571
|
-
b.bp("/snapshots/{SnapshotId}/blocks/{BlockIndex}");
|
|
572
|
-
b.p("SnapshotId", () => input.SnapshotId, "{SnapshotId}", false);
|
|
573
|
-
b.p("BlockIndex", () => input.BlockIndex.toString(), "{BlockIndex}", false);
|
|
574
|
-
let body;
|
|
575
|
-
if (input.BlockData !== void 0) {
|
|
576
|
-
body = input.BlockData;
|
|
577
|
-
}
|
|
578
|
-
b.m("PUT").h(headers).b(body);
|
|
579
|
-
return b.build();
|
|
580
|
-
}, "se_PutSnapshotBlockCommand");
|
|
581
|
-
var se_StartSnapshotCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
582
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
583
|
-
const headers = {
|
|
584
|
-
"content-type": "application/json"
|
|
585
|
-
};
|
|
586
|
-
b.bp("/snapshots");
|
|
587
|
-
let body;
|
|
588
|
-
body = JSON.stringify(
|
|
589
|
-
(0, import_smithy_client.take)(input, {
|
|
590
|
-
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
591
|
-
Description: [],
|
|
592
|
-
Encrypted: [],
|
|
593
|
-
KmsKeyArn: [],
|
|
594
|
-
ParentSnapshotId: [],
|
|
595
|
-
Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags"),
|
|
596
|
-
Timeout: [],
|
|
597
|
-
VolumeSize: []
|
|
598
|
-
})
|
|
599
|
-
);
|
|
600
|
-
b.m("POST").h(headers).b(body);
|
|
601
|
-
return b.build();
|
|
602
|
-
}, "se_StartSnapshotCommand");
|
|
603
|
-
var de_CompleteSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
604
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
605
|
-
return de_CommandError(output, context);
|
|
606
|
-
}
|
|
607
|
-
const contents = (0, import_smithy_client.map)({
|
|
608
|
-
$metadata: deserializeMetadata(output)
|
|
609
|
-
});
|
|
610
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
611
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
612
|
-
Status: import_smithy_client.expectString
|
|
613
|
-
});
|
|
614
|
-
Object.assign(contents, doc);
|
|
615
|
-
return contents;
|
|
616
|
-
}, "de_CompleteSnapshotCommand");
|
|
617
|
-
var de_GetSnapshotBlockCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
618
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
619
|
-
return de_CommandError(output, context);
|
|
620
|
-
}
|
|
621
|
-
const contents = (0, import_smithy_client.map)({
|
|
622
|
-
$metadata: deserializeMetadata(output),
|
|
623
|
-
[_DL]: [() => void 0 !== output.headers[_xadl], () => (0, import_smithy_client.strictParseInt32)(output.headers[_xadl])],
|
|
624
|
-
[_C]: [, output.headers[_xac_]],
|
|
625
|
-
[_CA]: [, output.headers[_xaca]]
|
|
626
|
-
});
|
|
627
|
-
const data = output.body;
|
|
628
|
-
context.sdkStreamMixin(data);
|
|
629
|
-
contents.BlockData = data;
|
|
630
|
-
return contents;
|
|
631
|
-
}, "de_GetSnapshotBlockCommand");
|
|
632
|
-
var de_ListChangedBlocksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
633
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
634
|
-
return de_CommandError(output, context);
|
|
635
|
-
}
|
|
636
|
-
const contents = (0, import_smithy_client.map)({
|
|
637
|
-
$metadata: deserializeMetadata(output)
|
|
638
|
-
});
|
|
639
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
640
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
641
|
-
BlockSize: import_smithy_client.expectInt32,
|
|
642
|
-
ChangedBlocks: import_smithy_client._json,
|
|
643
|
-
ExpiryTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ExpiryTime"),
|
|
644
|
-
NextToken: import_smithy_client.expectString,
|
|
645
|
-
VolumeSize: import_smithy_client.expectLong
|
|
646
|
-
});
|
|
647
|
-
Object.assign(contents, doc);
|
|
648
|
-
return contents;
|
|
649
|
-
}, "de_ListChangedBlocksCommand");
|
|
650
|
-
var de_ListSnapshotBlocksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
651
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
652
|
-
return de_CommandError(output, context);
|
|
653
|
-
}
|
|
654
|
-
const contents = (0, import_smithy_client.map)({
|
|
655
|
-
$metadata: deserializeMetadata(output)
|
|
656
|
-
});
|
|
657
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
658
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
659
|
-
BlockSize: import_smithy_client.expectInt32,
|
|
660
|
-
Blocks: import_smithy_client._json,
|
|
661
|
-
ExpiryTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ExpiryTime"),
|
|
662
|
-
NextToken: import_smithy_client.expectString,
|
|
663
|
-
VolumeSize: import_smithy_client.expectLong
|
|
664
|
-
});
|
|
665
|
-
Object.assign(contents, doc);
|
|
666
|
-
return contents;
|
|
667
|
-
}, "de_ListSnapshotBlocksCommand");
|
|
668
|
-
var de_PutSnapshotBlockCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
669
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
670
|
-
return de_CommandError(output, context);
|
|
671
|
-
}
|
|
672
|
-
const contents = (0, import_smithy_client.map)({
|
|
673
|
-
$metadata: deserializeMetadata(output),
|
|
674
|
-
[_C]: [, output.headers[_xac_]],
|
|
675
|
-
[_CA]: [, output.headers[_xaca]]
|
|
676
|
-
});
|
|
677
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
678
|
-
return contents;
|
|
679
|
-
}, "de_PutSnapshotBlockCommand");
|
|
680
|
-
var de_StartSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
681
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
682
|
-
return de_CommandError(output, context);
|
|
683
|
-
}
|
|
684
|
-
const contents = (0, import_smithy_client.map)({
|
|
685
|
-
$metadata: deserializeMetadata(output)
|
|
686
|
-
});
|
|
687
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
688
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
689
|
-
BlockSize: import_smithy_client.expectInt32,
|
|
690
|
-
Description: import_smithy_client.expectString,
|
|
691
|
-
KmsKeyArn: import_smithy_client.expectString,
|
|
692
|
-
OwnerId: import_smithy_client.expectString,
|
|
693
|
-
ParentSnapshotId: import_smithy_client.expectString,
|
|
694
|
-
SnapshotId: import_smithy_client.expectString,
|
|
695
|
-
SseType: import_smithy_client.expectString,
|
|
696
|
-
StartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartTime"),
|
|
697
|
-
Status: import_smithy_client.expectString,
|
|
698
|
-
Tags: import_smithy_client._json,
|
|
699
|
-
VolumeSize: import_smithy_client.expectLong
|
|
700
|
-
});
|
|
701
|
-
Object.assign(contents, doc);
|
|
702
|
-
return contents;
|
|
703
|
-
}, "de_StartSnapshotCommand");
|
|
704
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
705
|
-
const parsedOutput = {
|
|
706
|
-
...output,
|
|
707
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
708
|
-
};
|
|
709
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
710
|
-
switch (errorCode) {
|
|
711
|
-
case "AccessDeniedException":
|
|
712
|
-
case "com.amazonaws.ebs#AccessDeniedException":
|
|
713
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
714
|
-
case "InternalServerException":
|
|
715
|
-
case "com.amazonaws.ebs#InternalServerException":
|
|
716
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
717
|
-
case "RequestThrottledException":
|
|
718
|
-
case "com.amazonaws.ebs#RequestThrottledException":
|
|
719
|
-
throw await de_RequestThrottledExceptionRes(parsedOutput, context);
|
|
720
|
-
case "ResourceNotFoundException":
|
|
721
|
-
case "com.amazonaws.ebs#ResourceNotFoundException":
|
|
722
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
723
|
-
case "ServiceQuotaExceededException":
|
|
724
|
-
case "com.amazonaws.ebs#ServiceQuotaExceededException":
|
|
725
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
726
|
-
case "ValidationException":
|
|
727
|
-
case "com.amazonaws.ebs#ValidationException":
|
|
728
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
729
|
-
case "ConcurrentLimitExceededException":
|
|
730
|
-
case "com.amazonaws.ebs#ConcurrentLimitExceededException":
|
|
731
|
-
throw await de_ConcurrentLimitExceededExceptionRes(parsedOutput, context);
|
|
732
|
-
case "ConflictException":
|
|
733
|
-
case "com.amazonaws.ebs#ConflictException":
|
|
734
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
735
|
-
default:
|
|
736
|
-
const parsedBody = parsedOutput.body;
|
|
737
|
-
return throwDefaultError({
|
|
738
|
-
output,
|
|
739
|
-
parsedBody,
|
|
740
|
-
errorCode
|
|
741
|
-
});
|
|
742
|
-
}
|
|
743
|
-
}, "de_CommandError");
|
|
744
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(EBSServiceException);
|
|
745
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
746
|
-
const contents = (0, import_smithy_client.map)({});
|
|
747
|
-
const data = parsedOutput.body;
|
|
748
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
749
|
-
Message: import_smithy_client.expectString,
|
|
750
|
-
Reason: import_smithy_client.expectString
|
|
751
|
-
});
|
|
752
|
-
Object.assign(contents, doc);
|
|
753
|
-
const exception = new AccessDeniedException({
|
|
754
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
755
|
-
...contents
|
|
756
|
-
});
|
|
757
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
758
|
-
}, "de_AccessDeniedExceptionRes");
|
|
759
|
-
var de_ConcurrentLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
760
|
-
const contents = (0, import_smithy_client.map)({});
|
|
761
|
-
const data = parsedOutput.body;
|
|
762
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
763
|
-
Message: import_smithy_client.expectString
|
|
764
|
-
});
|
|
765
|
-
Object.assign(contents, doc);
|
|
766
|
-
const exception = new ConcurrentLimitExceededException({
|
|
767
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
768
|
-
...contents
|
|
769
|
-
});
|
|
770
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
771
|
-
}, "de_ConcurrentLimitExceededExceptionRes");
|
|
772
|
-
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
773
|
-
const contents = (0, import_smithy_client.map)({});
|
|
774
|
-
const data = parsedOutput.body;
|
|
775
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
776
|
-
Message: import_smithy_client.expectString
|
|
777
|
-
});
|
|
778
|
-
Object.assign(contents, doc);
|
|
779
|
-
const exception = new ConflictException({
|
|
780
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
781
|
-
...contents
|
|
782
|
-
});
|
|
783
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
784
|
-
}, "de_ConflictExceptionRes");
|
|
785
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
786
|
-
const contents = (0, import_smithy_client.map)({});
|
|
787
|
-
const data = parsedOutput.body;
|
|
788
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
789
|
-
Message: import_smithy_client.expectString
|
|
790
|
-
});
|
|
791
|
-
Object.assign(contents, doc);
|
|
792
|
-
const exception = new InternalServerException({
|
|
793
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
794
|
-
...contents
|
|
795
|
-
});
|
|
796
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
797
|
-
}, "de_InternalServerExceptionRes");
|
|
798
|
-
var de_RequestThrottledExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
799
|
-
const contents = (0, import_smithy_client.map)({});
|
|
800
|
-
const data = parsedOutput.body;
|
|
801
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
802
|
-
Message: import_smithy_client.expectString,
|
|
803
|
-
Reason: import_smithy_client.expectString
|
|
804
|
-
});
|
|
805
|
-
Object.assign(contents, doc);
|
|
806
|
-
const exception = new RequestThrottledException({
|
|
807
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
808
|
-
...contents
|
|
809
|
-
});
|
|
810
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
811
|
-
}, "de_RequestThrottledExceptionRes");
|
|
812
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
813
|
-
const contents = (0, import_smithy_client.map)({});
|
|
814
|
-
const data = parsedOutput.body;
|
|
815
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
816
|
-
Message: import_smithy_client.expectString,
|
|
817
|
-
Reason: import_smithy_client.expectString
|
|
818
|
-
});
|
|
819
|
-
Object.assign(contents, doc);
|
|
820
|
-
const exception = new ResourceNotFoundException({
|
|
821
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
822
|
-
...contents
|
|
823
|
-
});
|
|
824
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
825
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
826
|
-
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
827
|
-
const contents = (0, import_smithy_client.map)({});
|
|
828
|
-
const data = parsedOutput.body;
|
|
829
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
830
|
-
Message: import_smithy_client.expectString,
|
|
831
|
-
Reason: import_smithy_client.expectString
|
|
832
|
-
});
|
|
833
|
-
Object.assign(contents, doc);
|
|
834
|
-
const exception = new ServiceQuotaExceededException({
|
|
835
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
836
|
-
...contents
|
|
837
|
-
});
|
|
838
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
839
|
-
}, "de_ServiceQuotaExceededExceptionRes");
|
|
840
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
841
|
-
const contents = (0, import_smithy_client.map)({});
|
|
842
|
-
const data = parsedOutput.body;
|
|
843
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
844
|
-
Message: import_smithy_client.expectString,
|
|
845
|
-
Reason: import_smithy_client.expectString
|
|
846
|
-
});
|
|
847
|
-
Object.assign(contents, doc);
|
|
848
|
-
const exception = new ValidationException({
|
|
849
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
850
|
-
...contents
|
|
851
|
-
});
|
|
852
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
853
|
-
}, "de_ValidationExceptionRes");
|
|
854
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
855
|
-
httpStatusCode: output.statusCode,
|
|
856
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
857
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
858
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
859
|
-
}), "deserializeMetadata");
|
|
860
|
-
var _BT = "BlockToken";
|
|
861
|
-
var _C = "Checksum";
|
|
862
|
-
var _CA = "ChecksumAlgorithm";
|
|
863
|
-
var _CAM = "ChecksumAggregationMethod";
|
|
864
|
-
var _CBC = "ChangedBlocksCount";
|
|
865
|
-
var _DL = "DataLength";
|
|
866
|
-
var _FSI = "FirstSnapshotId";
|
|
867
|
-
var _MR = "MaxResults";
|
|
868
|
-
var _NT = "NextToken";
|
|
869
|
-
var _P = "Progress";
|
|
870
|
-
var _SBI = "StartingBlockIndex";
|
|
871
|
-
var _bT = "blockToken";
|
|
872
|
-
var _fSI = "firstSnapshotId";
|
|
873
|
-
var _mR = "maxResults";
|
|
874
|
-
var _pT = "pageToken";
|
|
875
|
-
var _sBI = "startingBlockIndex";
|
|
876
|
-
var _xac = "x-amz-changedblockscount";
|
|
877
|
-
var _xac_ = "x-amz-checksum";
|
|
878
|
-
var _xaca = "x-amz-checksum-algorithm";
|
|
879
|
-
var _xacam = "x-amz-checksum-aggregation-method";
|
|
880
|
-
var _xadl = "x-amz-data-length";
|
|
881
|
-
var _xap = "x-amz-progress";
|
|
882
|
-
|
|
883
|
-
// src/commands/CompleteSnapshotCommand.ts
|
|
884
|
-
var CompleteSnapshotCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
885
|
-
return [
|
|
886
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
887
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
888
|
-
];
|
|
889
|
-
}).s("Ebs", "CompleteSnapshot", {}).n("EBSClient", "CompleteSnapshotCommand").f(void 0, void 0).ser(se_CompleteSnapshotCommand).de(de_CompleteSnapshotCommand).build() {
|
|
890
|
-
static {
|
|
891
|
-
__name(this, "CompleteSnapshotCommand");
|
|
892
|
-
}
|
|
519
|
+
const de_CommandError = async (output, context) => {
|
|
520
|
+
const parsedOutput = {
|
|
521
|
+
...output,
|
|
522
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
523
|
+
};
|
|
524
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
525
|
+
switch (errorCode) {
|
|
526
|
+
case "AccessDeniedException":
|
|
527
|
+
case "com.amazonaws.ebs#AccessDeniedException":
|
|
528
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
529
|
+
case "InternalServerException":
|
|
530
|
+
case "com.amazonaws.ebs#InternalServerException":
|
|
531
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
532
|
+
case "RequestThrottledException":
|
|
533
|
+
case "com.amazonaws.ebs#RequestThrottledException":
|
|
534
|
+
throw await de_RequestThrottledExceptionRes(parsedOutput);
|
|
535
|
+
case "ResourceNotFoundException":
|
|
536
|
+
case "com.amazonaws.ebs#ResourceNotFoundException":
|
|
537
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
538
|
+
case "ServiceQuotaExceededException":
|
|
539
|
+
case "com.amazonaws.ebs#ServiceQuotaExceededException":
|
|
540
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
541
|
+
case "ValidationException":
|
|
542
|
+
case "com.amazonaws.ebs#ValidationException":
|
|
543
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
544
|
+
case "ConcurrentLimitExceededException":
|
|
545
|
+
case "com.amazonaws.ebs#ConcurrentLimitExceededException":
|
|
546
|
+
throw await de_ConcurrentLimitExceededExceptionRes(parsedOutput);
|
|
547
|
+
case "ConflictException":
|
|
548
|
+
case "com.amazonaws.ebs#ConflictException":
|
|
549
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
550
|
+
default:
|
|
551
|
+
const parsedBody = parsedOutput.body;
|
|
552
|
+
return throwDefaultError({
|
|
553
|
+
output,
|
|
554
|
+
parsedBody,
|
|
555
|
+
errorCode,
|
|
556
|
+
});
|
|
557
|
+
}
|
|
893
558
|
};
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
559
|
+
const throwDefaultError = smithyClient.withBaseException(EBSServiceException);
|
|
560
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
561
|
+
const contents = smithyClient.map({});
|
|
562
|
+
const data = parsedOutput.body;
|
|
563
|
+
const doc = smithyClient.take(data, {
|
|
564
|
+
Message: smithyClient.expectString,
|
|
565
|
+
Reason: smithyClient.expectString,
|
|
566
|
+
});
|
|
567
|
+
Object.assign(contents, doc);
|
|
568
|
+
const exception = new AccessDeniedException({
|
|
569
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
570
|
+
...contents,
|
|
571
|
+
});
|
|
572
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
908
573
|
};
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
})
|
|
920
|
-
|
|
921
|
-
__name(this, "ListChangedBlocksCommand");
|
|
922
|
-
}
|
|
574
|
+
const de_ConcurrentLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
575
|
+
const contents = smithyClient.map({});
|
|
576
|
+
const data = parsedOutput.body;
|
|
577
|
+
const doc = smithyClient.take(data, {
|
|
578
|
+
Message: smithyClient.expectString,
|
|
579
|
+
});
|
|
580
|
+
Object.assign(contents, doc);
|
|
581
|
+
const exception = new ConcurrentLimitExceededException({
|
|
582
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
583
|
+
...contents,
|
|
584
|
+
});
|
|
585
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
923
586
|
};
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
})
|
|
935
|
-
|
|
936
|
-
__name(this, "ListSnapshotBlocksCommand");
|
|
937
|
-
}
|
|
587
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
588
|
+
const contents = smithyClient.map({});
|
|
589
|
+
const data = parsedOutput.body;
|
|
590
|
+
const doc = smithyClient.take(data, {
|
|
591
|
+
Message: smithyClient.expectString,
|
|
592
|
+
});
|
|
593
|
+
Object.assign(contents, doc);
|
|
594
|
+
const exception = new ConflictException({
|
|
595
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
596
|
+
...contents,
|
|
597
|
+
});
|
|
598
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
938
599
|
};
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
})
|
|
950
|
-
|
|
951
|
-
__name(this, "PutSnapshotBlockCommand");
|
|
952
|
-
}
|
|
600
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
601
|
+
const contents = smithyClient.map({});
|
|
602
|
+
const data = parsedOutput.body;
|
|
603
|
+
const doc = smithyClient.take(data, {
|
|
604
|
+
Message: smithyClient.expectString,
|
|
605
|
+
});
|
|
606
|
+
Object.assign(contents, doc);
|
|
607
|
+
const exception = new InternalServerException({
|
|
608
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
609
|
+
...contents,
|
|
610
|
+
});
|
|
611
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
953
612
|
};
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
}
|
|
613
|
+
const de_RequestThrottledExceptionRes = async (parsedOutput, context) => {
|
|
614
|
+
const contents = smithyClient.map({});
|
|
615
|
+
const data = parsedOutput.body;
|
|
616
|
+
const doc = smithyClient.take(data, {
|
|
617
|
+
Message: smithyClient.expectString,
|
|
618
|
+
Reason: smithyClient.expectString,
|
|
619
|
+
});
|
|
620
|
+
Object.assign(contents, doc);
|
|
621
|
+
const exception = new RequestThrottledException({
|
|
622
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
623
|
+
...contents,
|
|
624
|
+
});
|
|
625
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
968
626
|
};
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
627
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
628
|
+
const contents = smithyClient.map({});
|
|
629
|
+
const data = parsedOutput.body;
|
|
630
|
+
const doc = smithyClient.take(data, {
|
|
631
|
+
Message: smithyClient.expectString,
|
|
632
|
+
Reason: smithyClient.expectString,
|
|
633
|
+
});
|
|
634
|
+
Object.assign(contents, doc);
|
|
635
|
+
const exception = new ResourceNotFoundException({
|
|
636
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
637
|
+
...contents,
|
|
638
|
+
});
|
|
639
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
978
640
|
};
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
641
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
642
|
+
const contents = smithyClient.map({});
|
|
643
|
+
const data = parsedOutput.body;
|
|
644
|
+
const doc = smithyClient.take(data, {
|
|
645
|
+
Message: smithyClient.expectString,
|
|
646
|
+
Reason: smithyClient.expectString,
|
|
647
|
+
});
|
|
648
|
+
Object.assign(contents, doc);
|
|
649
|
+
const exception = new ServiceQuotaExceededException({
|
|
650
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
651
|
+
...contents,
|
|
652
|
+
});
|
|
653
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
983
654
|
};
|
|
984
|
-
(
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
655
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
656
|
+
const contents = smithyClient.map({});
|
|
657
|
+
const data = parsedOutput.body;
|
|
658
|
+
const doc = smithyClient.take(data, {
|
|
659
|
+
Message: smithyClient.expectString,
|
|
660
|
+
Reason: smithyClient.expectString,
|
|
661
|
+
});
|
|
662
|
+
Object.assign(contents, doc);
|
|
663
|
+
const exception = new ValidationException({
|
|
664
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
665
|
+
...contents,
|
|
666
|
+
});
|
|
667
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
668
|
+
};
|
|
669
|
+
const deserializeMetadata = (output) => ({
|
|
670
|
+
httpStatusCode: output.statusCode,
|
|
671
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
672
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
673
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
674
|
+
});
|
|
675
|
+
const _BT = "BlockToken";
|
|
676
|
+
const _C = "Checksum";
|
|
677
|
+
const _CA = "ChecksumAlgorithm";
|
|
678
|
+
const _CAM = "ChecksumAggregationMethod";
|
|
679
|
+
const _CBC = "ChangedBlocksCount";
|
|
680
|
+
const _DL = "DataLength";
|
|
681
|
+
const _FSI = "FirstSnapshotId";
|
|
682
|
+
const _MR = "MaxResults";
|
|
683
|
+
const _NT = "NextToken";
|
|
684
|
+
const _P = "Progress";
|
|
685
|
+
const _SBI = "StartingBlockIndex";
|
|
686
|
+
const _bT = "blockToken";
|
|
687
|
+
const _fSI = "firstSnapshotId";
|
|
688
|
+
const _mR = "maxResults";
|
|
689
|
+
const _pT = "pageToken";
|
|
690
|
+
const _sBI = "startingBlockIndex";
|
|
691
|
+
const _xac = "x-amz-changedblockscount";
|
|
692
|
+
const _xac_ = "x-amz-checksum";
|
|
693
|
+
const _xaca = "x-amz-checksum-algorithm";
|
|
694
|
+
const _xacam = "x-amz-checksum-aggregation-method";
|
|
695
|
+
const _xadl = "x-amz-data-length";
|
|
696
|
+
const _xap = "x-amz-progress";
|
|
697
|
+
|
|
698
|
+
class CompleteSnapshotCommand extends smithyClient.Command
|
|
699
|
+
.classBuilder()
|
|
700
|
+
.ep(commonParams)
|
|
701
|
+
.m(function (Command, cs, config, o) {
|
|
702
|
+
return [
|
|
703
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
704
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
705
|
+
];
|
|
706
|
+
})
|
|
707
|
+
.s("Ebs", "CompleteSnapshot", {})
|
|
708
|
+
.n("EBSClient", "CompleteSnapshotCommand")
|
|
709
|
+
.f(void 0, void 0)
|
|
710
|
+
.ser(se_CompleteSnapshotCommand)
|
|
711
|
+
.de(de_CompleteSnapshotCommand)
|
|
712
|
+
.build() {
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
class GetSnapshotBlockCommand extends smithyClient.Command
|
|
716
|
+
.classBuilder()
|
|
717
|
+
.ep(commonParams)
|
|
718
|
+
.m(function (Command, cs, config, o) {
|
|
719
|
+
return [
|
|
720
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
721
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
722
|
+
];
|
|
723
|
+
})
|
|
724
|
+
.s("Ebs", "GetSnapshotBlock", {})
|
|
725
|
+
.n("EBSClient", "GetSnapshotBlockCommand")
|
|
726
|
+
.f(void 0, GetSnapshotBlockResponseFilterSensitiveLog)
|
|
727
|
+
.ser(se_GetSnapshotBlockCommand)
|
|
728
|
+
.de(de_GetSnapshotBlockCommand)
|
|
729
|
+
.build() {
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
class ListChangedBlocksCommand extends smithyClient.Command
|
|
733
|
+
.classBuilder()
|
|
734
|
+
.ep(commonParams)
|
|
735
|
+
.m(function (Command, cs, config, o) {
|
|
736
|
+
return [
|
|
737
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
738
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
739
|
+
];
|
|
740
|
+
})
|
|
741
|
+
.s("Ebs", "ListChangedBlocks", {})
|
|
742
|
+
.n("EBSClient", "ListChangedBlocksCommand")
|
|
743
|
+
.f(void 0, ListChangedBlocksResponseFilterSensitiveLog)
|
|
744
|
+
.ser(se_ListChangedBlocksCommand)
|
|
745
|
+
.de(de_ListChangedBlocksCommand)
|
|
746
|
+
.build() {
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
class ListSnapshotBlocksCommand extends smithyClient.Command
|
|
750
|
+
.classBuilder()
|
|
751
|
+
.ep(commonParams)
|
|
752
|
+
.m(function (Command, cs, config, o) {
|
|
753
|
+
return [
|
|
754
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
755
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
756
|
+
];
|
|
757
|
+
})
|
|
758
|
+
.s("Ebs", "ListSnapshotBlocks", {})
|
|
759
|
+
.n("EBSClient", "ListSnapshotBlocksCommand")
|
|
760
|
+
.f(void 0, ListSnapshotBlocksResponseFilterSensitiveLog)
|
|
761
|
+
.ser(se_ListSnapshotBlocksCommand)
|
|
762
|
+
.de(de_ListSnapshotBlocksCommand)
|
|
763
|
+
.build() {
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
class PutSnapshotBlockCommand extends smithyClient.Command
|
|
767
|
+
.classBuilder()
|
|
768
|
+
.ep(commonParams)
|
|
769
|
+
.m(function (Command, cs, config, o) {
|
|
770
|
+
return [
|
|
771
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
772
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
773
|
+
];
|
|
774
|
+
})
|
|
775
|
+
.s("Ebs", "PutSnapshotBlock", {})
|
|
776
|
+
.n("EBSClient", "PutSnapshotBlockCommand")
|
|
777
|
+
.f(PutSnapshotBlockRequestFilterSensitiveLog, void 0)
|
|
778
|
+
.ser(se_PutSnapshotBlockCommand)
|
|
779
|
+
.de(de_PutSnapshotBlockCommand)
|
|
780
|
+
.build() {
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
class StartSnapshotCommand extends smithyClient.Command
|
|
784
|
+
.classBuilder()
|
|
785
|
+
.ep(commonParams)
|
|
786
|
+
.m(function (Command, cs, config, o) {
|
|
787
|
+
return [
|
|
788
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
789
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
790
|
+
];
|
|
791
|
+
})
|
|
792
|
+
.s("Ebs", "StartSnapshot", {})
|
|
793
|
+
.n("EBSClient", "StartSnapshotCommand")
|
|
794
|
+
.f(StartSnapshotRequestFilterSensitiveLog, StartSnapshotResponseFilterSensitiveLog)
|
|
795
|
+
.ser(se_StartSnapshotCommand)
|
|
796
|
+
.de(de_StartSnapshotCommand)
|
|
797
|
+
.build() {
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
const commands = {
|
|
801
|
+
CompleteSnapshotCommand,
|
|
802
|
+
GetSnapshotBlockCommand,
|
|
803
|
+
ListChangedBlocksCommand,
|
|
804
|
+
ListSnapshotBlocksCommand,
|
|
805
|
+
PutSnapshotBlockCommand,
|
|
806
|
+
StartSnapshotCommand,
|
|
807
|
+
};
|
|
808
|
+
class EBS extends EBSClient {
|
|
809
|
+
}
|
|
810
|
+
smithyClient.createAggregatedClient(commands, EBS);
|
|
989
811
|
|
|
990
|
-
|
|
812
|
+
const paginateListChangedBlocks = core.createPaginator(EBSClient, ListChangedBlocksCommand, "NextToken", "NextToken", "MaxResults");
|
|
991
813
|
|
|
992
|
-
|
|
993
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
814
|
+
const paginateListSnapshotBlocks = core.createPaginator(EBSClient, ListSnapshotBlocksCommand, "NextToken", "NextToken", "MaxResults");
|
|
994
815
|
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
EBSClient,
|
|
999
|
-
EBS,
|
|
1000
|
-
$Command,
|
|
1001
|
-
CompleteSnapshotCommand,
|
|
1002
|
-
GetSnapshotBlockCommand,
|
|
1003
|
-
ListChangedBlocksCommand,
|
|
1004
|
-
ListSnapshotBlocksCommand,
|
|
1005
|
-
PutSnapshotBlockCommand,
|
|
1006
|
-
StartSnapshotCommand,
|
|
1007
|
-
paginateListChangedBlocks,
|
|
1008
|
-
paginateListSnapshotBlocks,
|
|
1009
|
-
AccessDeniedExceptionReason,
|
|
1010
|
-
AccessDeniedException,
|
|
1011
|
-
ChecksumAggregationMethod,
|
|
1012
|
-
ChecksumAlgorithm,
|
|
1013
|
-
Status,
|
|
1014
|
-
InternalServerException,
|
|
1015
|
-
RequestThrottledExceptionReason,
|
|
1016
|
-
RequestThrottledException,
|
|
1017
|
-
ResourceNotFoundExceptionReason,
|
|
1018
|
-
ResourceNotFoundException,
|
|
1019
|
-
ServiceQuotaExceededExceptionReason,
|
|
1020
|
-
ServiceQuotaExceededException,
|
|
1021
|
-
ValidationExceptionReason,
|
|
1022
|
-
ValidationException,
|
|
1023
|
-
ConcurrentLimitExceededException,
|
|
1024
|
-
ConflictException,
|
|
1025
|
-
SSEType,
|
|
1026
|
-
ChangedBlockFilterSensitiveLog,
|
|
1027
|
-
GetSnapshotBlockResponseFilterSensitiveLog,
|
|
1028
|
-
ListChangedBlocksResponseFilterSensitiveLog,
|
|
1029
|
-
ListSnapshotBlocksResponseFilterSensitiveLog,
|
|
1030
|
-
PutSnapshotBlockRequestFilterSensitiveLog,
|
|
1031
|
-
StartSnapshotRequestFilterSensitiveLog,
|
|
1032
|
-
StartSnapshotResponseFilterSensitiveLog
|
|
816
|
+
Object.defineProperty(exports, "$Command", {
|
|
817
|
+
enumerable: true,
|
|
818
|
+
get: function () { return smithyClient.Command; }
|
|
1033
819
|
});
|
|
1034
|
-
|
|
820
|
+
Object.defineProperty(exports, "__Client", {
|
|
821
|
+
enumerable: true,
|
|
822
|
+
get: function () { return smithyClient.Client; }
|
|
823
|
+
});
|
|
824
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
825
|
+
exports.AccessDeniedExceptionReason = AccessDeniedExceptionReason;
|
|
826
|
+
exports.ChangedBlockFilterSensitiveLog = ChangedBlockFilterSensitiveLog;
|
|
827
|
+
exports.ChecksumAggregationMethod = ChecksumAggregationMethod;
|
|
828
|
+
exports.ChecksumAlgorithm = ChecksumAlgorithm;
|
|
829
|
+
exports.CompleteSnapshotCommand = CompleteSnapshotCommand;
|
|
830
|
+
exports.ConcurrentLimitExceededException = ConcurrentLimitExceededException;
|
|
831
|
+
exports.ConflictException = ConflictException;
|
|
832
|
+
exports.EBS = EBS;
|
|
833
|
+
exports.EBSClient = EBSClient;
|
|
834
|
+
exports.EBSServiceException = EBSServiceException;
|
|
835
|
+
exports.GetSnapshotBlockCommand = GetSnapshotBlockCommand;
|
|
836
|
+
exports.GetSnapshotBlockResponseFilterSensitiveLog = GetSnapshotBlockResponseFilterSensitiveLog;
|
|
837
|
+
exports.InternalServerException = InternalServerException;
|
|
838
|
+
exports.ListChangedBlocksCommand = ListChangedBlocksCommand;
|
|
839
|
+
exports.ListChangedBlocksResponseFilterSensitiveLog = ListChangedBlocksResponseFilterSensitiveLog;
|
|
840
|
+
exports.ListSnapshotBlocksCommand = ListSnapshotBlocksCommand;
|
|
841
|
+
exports.ListSnapshotBlocksResponseFilterSensitiveLog = ListSnapshotBlocksResponseFilterSensitiveLog;
|
|
842
|
+
exports.PutSnapshotBlockCommand = PutSnapshotBlockCommand;
|
|
843
|
+
exports.PutSnapshotBlockRequestFilterSensitiveLog = PutSnapshotBlockRequestFilterSensitiveLog;
|
|
844
|
+
exports.RequestThrottledException = RequestThrottledException;
|
|
845
|
+
exports.RequestThrottledExceptionReason = RequestThrottledExceptionReason;
|
|
846
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
847
|
+
exports.ResourceNotFoundExceptionReason = ResourceNotFoundExceptionReason;
|
|
848
|
+
exports.SSEType = SSEType;
|
|
849
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
850
|
+
exports.ServiceQuotaExceededExceptionReason = ServiceQuotaExceededExceptionReason;
|
|
851
|
+
exports.StartSnapshotCommand = StartSnapshotCommand;
|
|
852
|
+
exports.StartSnapshotRequestFilterSensitiveLog = StartSnapshotRequestFilterSensitiveLog;
|
|
853
|
+
exports.StartSnapshotResponseFilterSensitiveLog = StartSnapshotResponseFilterSensitiveLog;
|
|
854
|
+
exports.Status = Status;
|
|
855
|
+
exports.ValidationException = ValidationException;
|
|
856
|
+
exports.ValidationExceptionReason = ValidationExceptionReason;
|
|
857
|
+
exports.paginateListChangedBlocks = paginateListChangedBlocks;
|
|
858
|
+
exports.paginateListSnapshotBlocks = paginateListSnapshotBlocks;
|