@aws-sdk/client-snowball 3.899.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 +1885 -2065
- package/package.json +37 -37
package/dist-cjs/index.js
CHANGED
|
@@ -1,2145 +1,1965 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
CreateJobCommand: () => CreateJobCommand,
|
|
33
|
-
CreateJobRequestFilterSensitiveLog: () => CreateJobRequestFilterSensitiveLog,
|
|
34
|
-
CreateLongTermPricingCommand: () => CreateLongTermPricingCommand,
|
|
35
|
-
CreateReturnShippingLabelCommand: () => CreateReturnShippingLabelCommand,
|
|
36
|
-
DescribeAddressCommand: () => DescribeAddressCommand,
|
|
37
|
-
DescribeAddressesCommand: () => DescribeAddressesCommand,
|
|
38
|
-
DescribeClusterCommand: () => DescribeClusterCommand,
|
|
39
|
-
DescribeJobCommand: () => DescribeJobCommand,
|
|
40
|
-
DescribeJobResultFilterSensitiveLog: () => DescribeJobResultFilterSensitiveLog,
|
|
41
|
-
DescribeReturnShippingLabelCommand: () => DescribeReturnShippingLabelCommand,
|
|
42
|
-
DeviceServiceName: () => DeviceServiceName,
|
|
43
|
-
Ec2RequestFailedException: () => Ec2RequestFailedException,
|
|
44
|
-
GetJobManifestCommand: () => GetJobManifestCommand,
|
|
45
|
-
GetJobUnlockCodeCommand: () => GetJobUnlockCodeCommand,
|
|
46
|
-
GetSnowballUsageCommand: () => GetSnowballUsageCommand,
|
|
47
|
-
GetSoftwareUpdatesCommand: () => GetSoftwareUpdatesCommand,
|
|
48
|
-
ImpactLevel: () => ImpactLevel,
|
|
49
|
-
InvalidAddressException: () => InvalidAddressException,
|
|
50
|
-
InvalidInputCombinationException: () => InvalidInputCombinationException,
|
|
51
|
-
InvalidJobStateException: () => InvalidJobStateException,
|
|
52
|
-
InvalidNextTokenException: () => InvalidNextTokenException,
|
|
53
|
-
InvalidResourceException: () => InvalidResourceException,
|
|
54
|
-
JobMetadataFilterSensitiveLog: () => JobMetadataFilterSensitiveLog,
|
|
55
|
-
JobState: () => JobState,
|
|
56
|
-
JobType: () => JobType,
|
|
57
|
-
KMSRequestFailedException: () => KMSRequestFailedException,
|
|
58
|
-
ListClusterJobsCommand: () => ListClusterJobsCommand,
|
|
59
|
-
ListClustersCommand: () => ListClustersCommand,
|
|
60
|
-
ListCompatibleImagesCommand: () => ListCompatibleImagesCommand,
|
|
61
|
-
ListJobsCommand: () => ListJobsCommand,
|
|
62
|
-
ListLongTermPricingCommand: () => ListLongTermPricingCommand,
|
|
63
|
-
ListPickupLocationsCommand: () => ListPickupLocationsCommand,
|
|
64
|
-
ListServiceVersionsCommand: () => ListServiceVersionsCommand,
|
|
65
|
-
LongTermPricingType: () => LongTermPricingType,
|
|
66
|
-
PickupDetailsFilterSensitiveLog: () => PickupDetailsFilterSensitiveLog,
|
|
67
|
-
RemoteManagement: () => RemoteManagement,
|
|
68
|
-
ReturnShippingLabelAlreadyExistsException: () => ReturnShippingLabelAlreadyExistsException,
|
|
69
|
-
ServiceName: () => ServiceName,
|
|
70
|
-
ShipmentState: () => ShipmentState,
|
|
71
|
-
ShippingLabelStatus: () => ShippingLabelStatus,
|
|
72
|
-
ShippingOption: () => ShippingOption,
|
|
73
|
-
Snowball: () => Snowball,
|
|
74
|
-
SnowballCapacity: () => SnowballCapacity,
|
|
75
|
-
SnowballClient: () => SnowballClient,
|
|
76
|
-
SnowballServiceException: () => SnowballServiceException,
|
|
77
|
-
SnowballType: () => SnowballType,
|
|
78
|
-
StorageUnit: () => StorageUnit,
|
|
79
|
-
TransferOption: () => TransferOption,
|
|
80
|
-
UnsupportedAddressException: () => UnsupportedAddressException,
|
|
81
|
-
UpdateClusterCommand: () => UpdateClusterCommand,
|
|
82
|
-
UpdateJobCommand: () => UpdateJobCommand,
|
|
83
|
-
UpdateJobRequestFilterSensitiveLog: () => UpdateJobRequestFilterSensitiveLog,
|
|
84
|
-
UpdateJobShipmentStateCommand: () => UpdateJobShipmentStateCommand,
|
|
85
|
-
UpdateLongTermPricingCommand: () => UpdateLongTermPricingCommand,
|
|
86
|
-
__Client: () => import_smithy_client.Client,
|
|
87
|
-
paginateDescribeAddresses: () => paginateDescribeAddresses,
|
|
88
|
-
paginateListClusterJobs: () => paginateListClusterJobs,
|
|
89
|
-
paginateListClusters: () => paginateListClusters,
|
|
90
|
-
paginateListCompatibleImages: () => paginateListCompatibleImages,
|
|
91
|
-
paginateListJobs: () => paginateListJobs,
|
|
92
|
-
paginateListLongTermPricing: () => paginateListLongTermPricing,
|
|
93
|
-
paginateListPickupLocations: () => paginateListPickupLocations
|
|
94
|
-
});
|
|
95
|
-
module.exports = __toCommonJS(index_exports);
|
|
96
|
-
|
|
97
|
-
// src/SnowballClient.ts
|
|
98
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
99
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
100
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
101
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
102
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
103
|
-
var import_core = require("@smithy/core");
|
|
104
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
105
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
106
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
107
|
-
|
|
108
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
109
|
-
|
|
110
|
-
// src/endpoint/EndpointParameters.ts
|
|
111
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
112
|
-
return Object.assign(options, {
|
|
113
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
114
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
115
|
-
defaultSigningName: "snowball"
|
|
116
|
-
});
|
|
117
|
-
}, "resolveClientEndpointParameters");
|
|
118
|
-
var commonParams = {
|
|
119
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
120
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
121
|
-
Region: { type: "builtInParams", name: "region" },
|
|
122
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
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
|
+
|
|
20
|
+
const resolveClientEndpointParameters = (options) => {
|
|
21
|
+
return Object.assign(options, {
|
|
22
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
23
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
24
|
+
defaultSigningName: "snowball",
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
const commonParams = {
|
|
28
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
29
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
30
|
+
Region: { type: "builtInParams", name: "region" },
|
|
31
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
123
32
|
};
|
|
124
33
|
|
|
125
|
-
|
|
126
|
-
|
|
34
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
37
|
+
let _credentials = runtimeConfig.credentials;
|
|
38
|
+
return {
|
|
39
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
40
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
41
|
+
if (index === -1) {
|
|
42
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
httpAuthSchemes() {
|
|
49
|
+
return _httpAuthSchemes;
|
|
50
|
+
},
|
|
51
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
52
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
53
|
+
},
|
|
54
|
+
httpAuthSchemeProvider() {
|
|
55
|
+
return _httpAuthSchemeProvider;
|
|
56
|
+
},
|
|
57
|
+
setCredentials(credentials) {
|
|
58
|
+
_credentials = credentials;
|
|
59
|
+
},
|
|
60
|
+
credentials() {
|
|
61
|
+
return _credentials;
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
66
|
+
return {
|
|
67
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
68
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
69
|
+
credentials: config.credentials(),
|
|
70
|
+
};
|
|
71
|
+
};
|
|
127
72
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
73
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
74
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
75
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
76
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
77
|
+
};
|
|
132
78
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
79
|
+
class SnowballClient extends smithyClient.Client {
|
|
80
|
+
config;
|
|
81
|
+
constructor(...[configuration]) {
|
|
82
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
83
|
+
super(_config_0);
|
|
84
|
+
this.initConfig = _config_0;
|
|
85
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
86
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
|
+
this.config = _config_8;
|
|
94
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
101
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSnowballHttpAuthSchemeParametersProvider,
|
|
102
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
103
|
+
"aws.auth#sigv4": config.credentials,
|
|
104
|
+
}),
|
|
105
|
+
}));
|
|
106
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
107
|
+
}
|
|
108
|
+
destroy() {
|
|
109
|
+
super.destroy();
|
|
161
110
|
}
|
|
162
|
-
|
|
163
|
-
}, "getHttpAuthExtensionConfiguration");
|
|
164
|
-
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
165
|
-
return {
|
|
166
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
167
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
168
|
-
credentials: config.credentials()
|
|
169
|
-
};
|
|
170
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
111
|
+
}
|
|
171
112
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
179
|
-
);
|
|
180
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
181
|
-
return Object.assign(
|
|
182
|
-
runtimeConfig,
|
|
183
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
184
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
185
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
186
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
187
|
-
);
|
|
188
|
-
}, "resolveRuntimeExtensions");
|
|
113
|
+
class SnowballServiceException extends smithyClient.ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, SnowballServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
189
119
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
__name(this, "SnowballClient");
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
* The resolved configuration of SnowballClient class. This is resolved and normalized from the {@link SnowballClientConfig | constructor configuration interface}.
|
|
197
|
-
*/
|
|
198
|
-
config;
|
|
199
|
-
constructor(...[configuration]) {
|
|
200
|
-
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
201
|
-
super(_config_0);
|
|
202
|
-
this.initConfig = _config_0;
|
|
203
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
204
|
-
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
205
|
-
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
206
|
-
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
|
|
207
|
-
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
208
|
-
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
209
|
-
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
210
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
211
|
-
this.config = _config_8;
|
|
212
|
-
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
213
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
214
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
215
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
216
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
217
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
218
|
-
this.middlewareStack.use(
|
|
219
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
220
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultSnowballHttpAuthSchemeParametersProvider,
|
|
221
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
222
|
-
"aws.auth#sigv4": config.credentials
|
|
223
|
-
}), "identityProviderConfigProvider")
|
|
224
|
-
})
|
|
225
|
-
);
|
|
226
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
230
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
231
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
232
|
-
*/
|
|
233
|
-
destroy() {
|
|
234
|
-
super.destroy();
|
|
235
|
-
}
|
|
120
|
+
const AddressType = {
|
|
121
|
+
AWS_SHIP: "AWS_SHIP",
|
|
122
|
+
CUST_PICKUP: "CUST_PICKUP",
|
|
236
123
|
};
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
124
|
+
class InvalidJobStateException extends SnowballServiceException {
|
|
125
|
+
name = "InvalidJobStateException";
|
|
126
|
+
$fault = "client";
|
|
127
|
+
Message;
|
|
128
|
+
constructor(opts) {
|
|
129
|
+
super({
|
|
130
|
+
name: "InvalidJobStateException",
|
|
131
|
+
$fault: "client",
|
|
132
|
+
...opts,
|
|
133
|
+
});
|
|
134
|
+
Object.setPrototypeOf(this, InvalidJobStateException.prototype);
|
|
135
|
+
this.Message = opts.Message;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
class InvalidResourceException extends SnowballServiceException {
|
|
139
|
+
name = "InvalidResourceException";
|
|
140
|
+
$fault = "client";
|
|
141
|
+
Message;
|
|
142
|
+
ResourceType;
|
|
143
|
+
constructor(opts) {
|
|
144
|
+
super({
|
|
145
|
+
name: "InvalidResourceException",
|
|
146
|
+
$fault: "client",
|
|
147
|
+
...opts,
|
|
148
|
+
});
|
|
149
|
+
Object.setPrototypeOf(this, InvalidResourceException.prototype);
|
|
150
|
+
this.Message = opts.Message;
|
|
151
|
+
this.ResourceType = opts.ResourceType;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
class KMSRequestFailedException extends SnowballServiceException {
|
|
155
|
+
name = "KMSRequestFailedException";
|
|
156
|
+
$fault = "client";
|
|
157
|
+
Message;
|
|
158
|
+
constructor(opts) {
|
|
159
|
+
super({
|
|
160
|
+
name: "KMSRequestFailedException",
|
|
161
|
+
$fault: "client",
|
|
162
|
+
...opts,
|
|
163
|
+
});
|
|
164
|
+
Object.setPrototypeOf(this, KMSRequestFailedException.prototype);
|
|
165
|
+
this.Message = opts.Message;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
class InvalidAddressException extends SnowballServiceException {
|
|
169
|
+
name = "InvalidAddressException";
|
|
170
|
+
$fault = "client";
|
|
171
|
+
Message;
|
|
172
|
+
constructor(opts) {
|
|
173
|
+
super({
|
|
174
|
+
name: "InvalidAddressException",
|
|
175
|
+
$fault: "client",
|
|
176
|
+
...opts,
|
|
177
|
+
});
|
|
178
|
+
Object.setPrototypeOf(this, InvalidAddressException.prototype);
|
|
179
|
+
this.Message = opts.Message;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
class UnsupportedAddressException extends SnowballServiceException {
|
|
183
|
+
name = "UnsupportedAddressException";
|
|
184
|
+
$fault = "client";
|
|
185
|
+
Message;
|
|
186
|
+
constructor(opts) {
|
|
187
|
+
super({
|
|
188
|
+
name: "UnsupportedAddressException",
|
|
189
|
+
$fault: "client",
|
|
190
|
+
...opts,
|
|
191
|
+
});
|
|
192
|
+
Object.setPrototypeOf(this, UnsupportedAddressException.prototype);
|
|
193
|
+
this.Message = opts.Message;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
const JobType = {
|
|
197
|
+
EXPORT: "EXPORT",
|
|
198
|
+
IMPORT: "IMPORT",
|
|
199
|
+
LOCAL_USE: "LOCAL_USE",
|
|
200
|
+
};
|
|
201
|
+
const JobState = {
|
|
202
|
+
CANCELLED: "Cancelled",
|
|
203
|
+
COMPLETE: "Complete",
|
|
204
|
+
IN_PROGRESS: "InProgress",
|
|
205
|
+
IN_TRANSIT_TO_AWS: "InTransitToAWS",
|
|
206
|
+
IN_TRANSIT_TO_CUSTOMER: "InTransitToCustomer",
|
|
207
|
+
LISTING: "Listing",
|
|
208
|
+
NEW: "New",
|
|
209
|
+
PENDING: "Pending",
|
|
210
|
+
PREPARING_APPLIANCE: "PreparingAppliance",
|
|
211
|
+
PREPARING_SHIPMENT: "PreparingShipment",
|
|
212
|
+
WITH_AWS: "WithAWS",
|
|
213
|
+
WITH_AWS_SORTING_FACILITY: "WithAWSSortingFacility",
|
|
214
|
+
WITH_CUSTOMER: "WithCustomer",
|
|
215
|
+
};
|
|
216
|
+
const StorageUnit = {
|
|
217
|
+
TB: "TB",
|
|
218
|
+
};
|
|
219
|
+
const RemoteManagement = {
|
|
220
|
+
INSTALLED_AUTOSTART: "INSTALLED_AUTOSTART",
|
|
221
|
+
INSTALLED_ONLY: "INSTALLED_ONLY",
|
|
222
|
+
NOT_INSTALLED: "NOT_INSTALLED",
|
|
223
|
+
};
|
|
224
|
+
const DeviceServiceName = {
|
|
225
|
+
NFS_ON_DEVICE_SERVICE: "NFS_ON_DEVICE_SERVICE",
|
|
226
|
+
S3_ON_DEVICE_SERVICE: "S3_ON_DEVICE_SERVICE",
|
|
227
|
+
};
|
|
228
|
+
const TransferOption = {
|
|
229
|
+
EXPORT: "EXPORT",
|
|
230
|
+
IMPORT: "IMPORT",
|
|
231
|
+
LOCAL_USE: "LOCAL_USE",
|
|
267
232
|
};
|
|
233
|
+
const ShippingOption = {
|
|
234
|
+
EXPRESS: "EXPRESS",
|
|
235
|
+
NEXT_DAY: "NEXT_DAY",
|
|
236
|
+
SECOND_DAY: "SECOND_DAY",
|
|
237
|
+
STANDARD: "STANDARD",
|
|
238
|
+
};
|
|
239
|
+
const SnowballCapacity = {
|
|
240
|
+
NO_PREFERENCE: "NoPreference",
|
|
241
|
+
T100: "T100",
|
|
242
|
+
T13: "T13",
|
|
243
|
+
T14: "T14",
|
|
244
|
+
T240: "T240",
|
|
245
|
+
T32: "T32",
|
|
246
|
+
T42: "T42",
|
|
247
|
+
T50: "T50",
|
|
248
|
+
T8: "T8",
|
|
249
|
+
T80: "T80",
|
|
250
|
+
T98: "T98",
|
|
251
|
+
};
|
|
252
|
+
const SnowballType = {
|
|
253
|
+
EDGE: "EDGE",
|
|
254
|
+
EDGE_C: "EDGE_C",
|
|
255
|
+
EDGE_CG: "EDGE_CG",
|
|
256
|
+
EDGE_S: "EDGE_S",
|
|
257
|
+
RACK_5U_C: "RACK_5U_C",
|
|
258
|
+
SNC1_HDD: "SNC1_HDD",
|
|
259
|
+
SNC1_SSD: "SNC1_SSD",
|
|
260
|
+
STANDARD: "STANDARD",
|
|
261
|
+
V3_5C: "V3_5C",
|
|
262
|
+
V3_5S: "V3_5S",
|
|
263
|
+
};
|
|
264
|
+
class Ec2RequestFailedException extends SnowballServiceException {
|
|
265
|
+
name = "Ec2RequestFailedException";
|
|
266
|
+
$fault = "client";
|
|
267
|
+
Message;
|
|
268
|
+
constructor(opts) {
|
|
269
|
+
super({
|
|
270
|
+
name: "Ec2RequestFailedException",
|
|
271
|
+
$fault: "client",
|
|
272
|
+
...opts,
|
|
273
|
+
});
|
|
274
|
+
Object.setPrototypeOf(this, Ec2RequestFailedException.prototype);
|
|
275
|
+
this.Message = opts.Message;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
class InvalidInputCombinationException extends SnowballServiceException {
|
|
279
|
+
name = "InvalidInputCombinationException";
|
|
280
|
+
$fault = "client";
|
|
281
|
+
Message;
|
|
282
|
+
constructor(opts) {
|
|
283
|
+
super({
|
|
284
|
+
name: "InvalidInputCombinationException",
|
|
285
|
+
$fault: "client",
|
|
286
|
+
...opts,
|
|
287
|
+
});
|
|
288
|
+
Object.setPrototypeOf(this, InvalidInputCombinationException.prototype);
|
|
289
|
+
this.Message = opts.Message;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
class ClusterLimitExceededException extends SnowballServiceException {
|
|
293
|
+
name = "ClusterLimitExceededException";
|
|
294
|
+
$fault = "client";
|
|
295
|
+
Message;
|
|
296
|
+
constructor(opts) {
|
|
297
|
+
super({
|
|
298
|
+
name: "ClusterLimitExceededException",
|
|
299
|
+
$fault: "client",
|
|
300
|
+
...opts,
|
|
301
|
+
});
|
|
302
|
+
Object.setPrototypeOf(this, ClusterLimitExceededException.prototype);
|
|
303
|
+
this.Message = opts.Message;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
const ImpactLevel = {
|
|
307
|
+
IL2: "IL2",
|
|
308
|
+
IL4: "IL4",
|
|
309
|
+
IL5: "IL5",
|
|
310
|
+
IL6: "IL6",
|
|
311
|
+
IL99: "IL99",
|
|
312
|
+
};
|
|
313
|
+
const LongTermPricingType = {
|
|
314
|
+
ONE_MONTH: "OneMonth",
|
|
315
|
+
ONE_YEAR: "OneYear",
|
|
316
|
+
THREE_YEAR: "ThreeYear",
|
|
317
|
+
};
|
|
318
|
+
class ConflictException extends SnowballServiceException {
|
|
319
|
+
name = "ConflictException";
|
|
320
|
+
$fault = "client";
|
|
321
|
+
ConflictResource;
|
|
322
|
+
Message;
|
|
323
|
+
constructor(opts) {
|
|
324
|
+
super({
|
|
325
|
+
name: "ConflictException",
|
|
326
|
+
$fault: "client",
|
|
327
|
+
...opts,
|
|
328
|
+
});
|
|
329
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
330
|
+
this.ConflictResource = opts.ConflictResource;
|
|
331
|
+
this.Message = opts.Message;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
const ShippingLabelStatus = {
|
|
335
|
+
FAILED: "Failed",
|
|
336
|
+
IN_PROGRESS: "InProgress",
|
|
337
|
+
SUCCEEDED: "Succeeded",
|
|
338
|
+
TIMED_OUT: "TimedOut",
|
|
339
|
+
};
|
|
340
|
+
class ReturnShippingLabelAlreadyExistsException extends SnowballServiceException {
|
|
341
|
+
name = "ReturnShippingLabelAlreadyExistsException";
|
|
342
|
+
$fault = "client";
|
|
343
|
+
Message;
|
|
344
|
+
constructor(opts) {
|
|
345
|
+
super({
|
|
346
|
+
name: "ReturnShippingLabelAlreadyExistsException",
|
|
347
|
+
$fault: "client",
|
|
348
|
+
...opts,
|
|
349
|
+
});
|
|
350
|
+
Object.setPrototypeOf(this, ReturnShippingLabelAlreadyExistsException.prototype);
|
|
351
|
+
this.Message = opts.Message;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
class InvalidNextTokenException extends SnowballServiceException {
|
|
355
|
+
name = "InvalidNextTokenException";
|
|
356
|
+
$fault = "client";
|
|
357
|
+
Message;
|
|
358
|
+
constructor(opts) {
|
|
359
|
+
super({
|
|
360
|
+
name: "InvalidNextTokenException",
|
|
361
|
+
$fault: "client",
|
|
362
|
+
...opts,
|
|
363
|
+
});
|
|
364
|
+
Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
|
|
365
|
+
this.Message = opts.Message;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
const ClusterState = {
|
|
369
|
+
AWAITING_QUORUM: "AwaitingQuorum",
|
|
370
|
+
CANCELLED: "Cancelled",
|
|
371
|
+
COMPLETE: "Complete",
|
|
372
|
+
IN_USE: "InUse",
|
|
373
|
+
PENDING: "Pending",
|
|
374
|
+
};
|
|
375
|
+
const ServiceName = {
|
|
376
|
+
EKS_ANYWHERE: "EKS_ANYWHERE",
|
|
377
|
+
KUBERNETES: "KUBERNETES",
|
|
378
|
+
};
|
|
379
|
+
const ShipmentState = {
|
|
380
|
+
RECEIVED: "RECEIVED",
|
|
381
|
+
RETURNED: "RETURNED",
|
|
382
|
+
};
|
|
383
|
+
const PickupDetailsFilterSensitiveLog = (obj) => ({
|
|
384
|
+
...obj,
|
|
385
|
+
...(obj.PhoneNumber && { PhoneNumber: smithyClient.SENSITIVE_STRING }),
|
|
386
|
+
...(obj.Email && { Email: smithyClient.SENSITIVE_STRING }),
|
|
387
|
+
});
|
|
388
|
+
const CreateJobRequestFilterSensitiveLog = (obj) => ({
|
|
389
|
+
...obj,
|
|
390
|
+
...(obj.PickupDetails && { PickupDetails: PickupDetailsFilterSensitiveLog(obj.PickupDetails) }),
|
|
391
|
+
});
|
|
392
|
+
const JobMetadataFilterSensitiveLog = (obj) => ({
|
|
393
|
+
...obj,
|
|
394
|
+
...(obj.PickupDetails && { PickupDetails: PickupDetailsFilterSensitiveLog(obj.PickupDetails) }),
|
|
395
|
+
});
|
|
396
|
+
const DescribeJobResultFilterSensitiveLog = (obj) => ({
|
|
397
|
+
...obj,
|
|
398
|
+
...(obj.JobMetadata && { JobMetadata: JobMetadataFilterSensitiveLog(obj.JobMetadata) }),
|
|
399
|
+
...(obj.SubJobMetadata && { SubJobMetadata: obj.SubJobMetadata.map((item) => JobMetadataFilterSensitiveLog(item)) }),
|
|
400
|
+
});
|
|
401
|
+
const UpdateJobRequestFilterSensitiveLog = (obj) => ({
|
|
402
|
+
...obj,
|
|
403
|
+
...(obj.PickupDetails && { PickupDetails: PickupDetailsFilterSensitiveLog(obj.PickupDetails) }),
|
|
404
|
+
});
|
|
268
405
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
406
|
+
const se_CancelClusterCommand = async (input, context) => {
|
|
407
|
+
const headers = sharedHeaders("CancelCluster");
|
|
408
|
+
let body;
|
|
409
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
410
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
411
|
+
};
|
|
412
|
+
const se_CancelJobCommand = async (input, context) => {
|
|
413
|
+
const headers = sharedHeaders("CancelJob");
|
|
414
|
+
let body;
|
|
415
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
416
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
417
|
+
};
|
|
418
|
+
const se_CreateAddressCommand = async (input, context) => {
|
|
419
|
+
const headers = sharedHeaders("CreateAddress");
|
|
420
|
+
let body;
|
|
421
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
422
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
423
|
+
};
|
|
424
|
+
const se_CreateClusterCommand = async (input, context) => {
|
|
425
|
+
const headers = sharedHeaders("CreateCluster");
|
|
426
|
+
let body;
|
|
427
|
+
body = JSON.stringify(se_CreateClusterRequest(input));
|
|
428
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
429
|
+
};
|
|
430
|
+
const se_CreateJobCommand = async (input, context) => {
|
|
431
|
+
const headers = sharedHeaders("CreateJob");
|
|
432
|
+
let body;
|
|
433
|
+
body = JSON.stringify(se_CreateJobRequest(input));
|
|
434
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
435
|
+
};
|
|
436
|
+
const se_CreateLongTermPricingCommand = async (input, context) => {
|
|
437
|
+
const headers = sharedHeaders("CreateLongTermPricing");
|
|
438
|
+
let body;
|
|
439
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
440
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
441
|
+
};
|
|
442
|
+
const se_CreateReturnShippingLabelCommand = async (input, context) => {
|
|
443
|
+
const headers = sharedHeaders("CreateReturnShippingLabel");
|
|
444
|
+
let body;
|
|
445
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
446
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
447
|
+
};
|
|
448
|
+
const se_DescribeAddressCommand = async (input, context) => {
|
|
449
|
+
const headers = sharedHeaders("DescribeAddress");
|
|
450
|
+
let body;
|
|
451
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
452
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
453
|
+
};
|
|
454
|
+
const se_DescribeAddressesCommand = async (input, context) => {
|
|
455
|
+
const headers = sharedHeaders("DescribeAddresses");
|
|
456
|
+
let body;
|
|
457
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
458
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
459
|
+
};
|
|
460
|
+
const se_DescribeClusterCommand = async (input, context) => {
|
|
461
|
+
const headers = sharedHeaders("DescribeCluster");
|
|
462
|
+
let body;
|
|
463
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
464
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
465
|
+
};
|
|
466
|
+
const se_DescribeJobCommand = async (input, context) => {
|
|
467
|
+
const headers = sharedHeaders("DescribeJob");
|
|
468
|
+
let body;
|
|
469
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
470
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
471
|
+
};
|
|
472
|
+
const se_DescribeReturnShippingLabelCommand = async (input, context) => {
|
|
473
|
+
const headers = sharedHeaders("DescribeReturnShippingLabel");
|
|
474
|
+
let body;
|
|
475
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
476
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
477
|
+
};
|
|
478
|
+
const se_GetJobManifestCommand = async (input, context) => {
|
|
479
|
+
const headers = sharedHeaders("GetJobManifest");
|
|
480
|
+
let body;
|
|
481
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
482
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
483
|
+
};
|
|
484
|
+
const se_GetJobUnlockCodeCommand = async (input, context) => {
|
|
485
|
+
const headers = sharedHeaders("GetJobUnlockCode");
|
|
486
|
+
let body;
|
|
487
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
488
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
489
|
+
};
|
|
490
|
+
const se_GetSnowballUsageCommand = async (input, context) => {
|
|
491
|
+
const headers = sharedHeaders("GetSnowballUsage");
|
|
492
|
+
let body;
|
|
493
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
494
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
495
|
+
};
|
|
496
|
+
const se_GetSoftwareUpdatesCommand = async (input, context) => {
|
|
497
|
+
const headers = sharedHeaders("GetSoftwareUpdates");
|
|
498
|
+
let body;
|
|
499
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
500
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
501
|
+
};
|
|
502
|
+
const se_ListClusterJobsCommand = async (input, context) => {
|
|
503
|
+
const headers = sharedHeaders("ListClusterJobs");
|
|
504
|
+
let body;
|
|
505
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
506
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
507
|
+
};
|
|
508
|
+
const se_ListClustersCommand = async (input, context) => {
|
|
509
|
+
const headers = sharedHeaders("ListClusters");
|
|
510
|
+
let body;
|
|
511
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
512
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
513
|
+
};
|
|
514
|
+
const se_ListCompatibleImagesCommand = async (input, context) => {
|
|
515
|
+
const headers = sharedHeaders("ListCompatibleImages");
|
|
516
|
+
let body;
|
|
517
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
518
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
519
|
+
};
|
|
520
|
+
const se_ListJobsCommand = async (input, context) => {
|
|
521
|
+
const headers = sharedHeaders("ListJobs");
|
|
522
|
+
let body;
|
|
523
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
524
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
525
|
+
};
|
|
526
|
+
const se_ListLongTermPricingCommand = async (input, context) => {
|
|
527
|
+
const headers = sharedHeaders("ListLongTermPricing");
|
|
528
|
+
let body;
|
|
529
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
530
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
531
|
+
};
|
|
532
|
+
const se_ListPickupLocationsCommand = async (input, context) => {
|
|
533
|
+
const headers = sharedHeaders("ListPickupLocations");
|
|
534
|
+
let body;
|
|
535
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
536
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
537
|
+
};
|
|
538
|
+
const se_ListServiceVersionsCommand = async (input, context) => {
|
|
539
|
+
const headers = sharedHeaders("ListServiceVersions");
|
|
540
|
+
let body;
|
|
541
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
542
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
543
|
+
};
|
|
544
|
+
const se_UpdateClusterCommand = async (input, context) => {
|
|
545
|
+
const headers = sharedHeaders("UpdateCluster");
|
|
546
|
+
let body;
|
|
547
|
+
body = JSON.stringify(se_UpdateClusterRequest(input));
|
|
548
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
549
|
+
};
|
|
550
|
+
const se_UpdateJobCommand = async (input, context) => {
|
|
551
|
+
const headers = sharedHeaders("UpdateJob");
|
|
552
|
+
let body;
|
|
553
|
+
body = JSON.stringify(se_UpdateJobRequest(input));
|
|
554
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
555
|
+
};
|
|
556
|
+
const se_UpdateJobShipmentStateCommand = async (input, context) => {
|
|
557
|
+
const headers = sharedHeaders("UpdateJobShipmentState");
|
|
558
|
+
let body;
|
|
559
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
560
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
561
|
+
};
|
|
562
|
+
const se_UpdateLongTermPricingCommand = async (input, context) => {
|
|
563
|
+
const headers = sharedHeaders("UpdateLongTermPricing");
|
|
564
|
+
let body;
|
|
565
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
566
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
567
|
+
};
|
|
568
|
+
const de_CancelClusterCommand = async (output, context) => {
|
|
569
|
+
if (output.statusCode >= 300) {
|
|
570
|
+
return de_CommandError(output, context);
|
|
571
|
+
}
|
|
572
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
573
|
+
let contents = {};
|
|
574
|
+
contents = smithyClient._json(data);
|
|
575
|
+
const response = {
|
|
576
|
+
$metadata: deserializeMetadata(output),
|
|
577
|
+
...contents,
|
|
578
|
+
};
|
|
579
|
+
return response;
|
|
580
|
+
};
|
|
581
|
+
const de_CancelJobCommand = async (output, context) => {
|
|
582
|
+
if (output.statusCode >= 300) {
|
|
583
|
+
return de_CommandError(output, context);
|
|
584
|
+
}
|
|
585
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
586
|
+
let contents = {};
|
|
587
|
+
contents = smithyClient._json(data);
|
|
588
|
+
const response = {
|
|
589
|
+
$metadata: deserializeMetadata(output),
|
|
590
|
+
...contents,
|
|
591
|
+
};
|
|
592
|
+
return response;
|
|
593
|
+
};
|
|
594
|
+
const de_CreateAddressCommand = async (output, context) => {
|
|
595
|
+
if (output.statusCode >= 300) {
|
|
596
|
+
return de_CommandError(output, context);
|
|
597
|
+
}
|
|
598
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
599
|
+
let contents = {};
|
|
600
|
+
contents = smithyClient._json(data);
|
|
601
|
+
const response = {
|
|
602
|
+
$metadata: deserializeMetadata(output),
|
|
603
|
+
...contents,
|
|
604
|
+
};
|
|
605
|
+
return response;
|
|
606
|
+
};
|
|
607
|
+
const de_CreateClusterCommand = async (output, context) => {
|
|
608
|
+
if (output.statusCode >= 300) {
|
|
609
|
+
return de_CommandError(output, context);
|
|
610
|
+
}
|
|
611
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
612
|
+
let contents = {};
|
|
613
|
+
contents = de_CreateClusterResult(data);
|
|
614
|
+
const response = {
|
|
615
|
+
$metadata: deserializeMetadata(output),
|
|
616
|
+
...contents,
|
|
617
|
+
};
|
|
618
|
+
return response;
|
|
619
|
+
};
|
|
620
|
+
const de_CreateJobCommand = async (output, context) => {
|
|
621
|
+
if (output.statusCode >= 300) {
|
|
622
|
+
return de_CommandError(output, context);
|
|
623
|
+
}
|
|
624
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
625
|
+
let contents = {};
|
|
626
|
+
contents = smithyClient._json(data);
|
|
627
|
+
const response = {
|
|
628
|
+
$metadata: deserializeMetadata(output),
|
|
629
|
+
...contents,
|
|
630
|
+
};
|
|
631
|
+
return response;
|
|
632
|
+
};
|
|
633
|
+
const de_CreateLongTermPricingCommand = async (output, context) => {
|
|
634
|
+
if (output.statusCode >= 300) {
|
|
635
|
+
return de_CommandError(output, context);
|
|
636
|
+
}
|
|
637
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
638
|
+
let contents = {};
|
|
639
|
+
contents = smithyClient._json(data);
|
|
640
|
+
const response = {
|
|
641
|
+
$metadata: deserializeMetadata(output),
|
|
642
|
+
...contents,
|
|
643
|
+
};
|
|
644
|
+
return response;
|
|
645
|
+
};
|
|
646
|
+
const de_CreateReturnShippingLabelCommand = async (output, context) => {
|
|
647
|
+
if (output.statusCode >= 300) {
|
|
648
|
+
return de_CommandError(output, context);
|
|
649
|
+
}
|
|
650
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
651
|
+
let contents = {};
|
|
652
|
+
contents = smithyClient._json(data);
|
|
653
|
+
const response = {
|
|
654
|
+
$metadata: deserializeMetadata(output),
|
|
655
|
+
...contents,
|
|
656
|
+
};
|
|
657
|
+
return response;
|
|
658
|
+
};
|
|
659
|
+
const de_DescribeAddressCommand = async (output, context) => {
|
|
660
|
+
if (output.statusCode >= 300) {
|
|
661
|
+
return de_CommandError(output, context);
|
|
662
|
+
}
|
|
663
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
664
|
+
let contents = {};
|
|
665
|
+
contents = smithyClient._json(data);
|
|
666
|
+
const response = {
|
|
667
|
+
$metadata: deserializeMetadata(output),
|
|
668
|
+
...contents,
|
|
669
|
+
};
|
|
670
|
+
return response;
|
|
671
|
+
};
|
|
672
|
+
const de_DescribeAddressesCommand = async (output, context) => {
|
|
673
|
+
if (output.statusCode >= 300) {
|
|
674
|
+
return de_CommandError(output, context);
|
|
675
|
+
}
|
|
676
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
677
|
+
let contents = {};
|
|
678
|
+
contents = smithyClient._json(data);
|
|
679
|
+
const response = {
|
|
680
|
+
$metadata: deserializeMetadata(output),
|
|
681
|
+
...contents,
|
|
682
|
+
};
|
|
683
|
+
return response;
|
|
684
|
+
};
|
|
685
|
+
const de_DescribeClusterCommand = async (output, context) => {
|
|
686
|
+
if (output.statusCode >= 300) {
|
|
687
|
+
return de_CommandError(output, context);
|
|
688
|
+
}
|
|
689
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
690
|
+
let contents = {};
|
|
691
|
+
contents = de_DescribeClusterResult(data);
|
|
692
|
+
const response = {
|
|
693
|
+
$metadata: deserializeMetadata(output),
|
|
694
|
+
...contents,
|
|
695
|
+
};
|
|
696
|
+
return response;
|
|
697
|
+
};
|
|
698
|
+
const de_DescribeJobCommand = async (output, context) => {
|
|
699
|
+
if (output.statusCode >= 300) {
|
|
700
|
+
return de_CommandError(output, context);
|
|
701
|
+
}
|
|
702
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
703
|
+
let contents = {};
|
|
704
|
+
contents = de_DescribeJobResult(data);
|
|
705
|
+
const response = {
|
|
706
|
+
$metadata: deserializeMetadata(output),
|
|
707
|
+
...contents,
|
|
708
|
+
};
|
|
709
|
+
return response;
|
|
710
|
+
};
|
|
711
|
+
const de_DescribeReturnShippingLabelCommand = async (output, context) => {
|
|
712
|
+
if (output.statusCode >= 300) {
|
|
713
|
+
return de_CommandError(output, context);
|
|
714
|
+
}
|
|
715
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
716
|
+
let contents = {};
|
|
717
|
+
contents = de_DescribeReturnShippingLabelResult(data);
|
|
718
|
+
const response = {
|
|
719
|
+
$metadata: deserializeMetadata(output),
|
|
720
|
+
...contents,
|
|
721
|
+
};
|
|
722
|
+
return response;
|
|
723
|
+
};
|
|
724
|
+
const de_GetJobManifestCommand = async (output, context) => {
|
|
725
|
+
if (output.statusCode >= 300) {
|
|
726
|
+
return de_CommandError(output, context);
|
|
727
|
+
}
|
|
728
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
729
|
+
let contents = {};
|
|
730
|
+
contents = smithyClient._json(data);
|
|
731
|
+
const response = {
|
|
732
|
+
$metadata: deserializeMetadata(output),
|
|
733
|
+
...contents,
|
|
734
|
+
};
|
|
735
|
+
return response;
|
|
736
|
+
};
|
|
737
|
+
const de_GetJobUnlockCodeCommand = async (output, context) => {
|
|
738
|
+
if (output.statusCode >= 300) {
|
|
739
|
+
return de_CommandError(output, context);
|
|
740
|
+
}
|
|
741
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
742
|
+
let contents = {};
|
|
743
|
+
contents = smithyClient._json(data);
|
|
744
|
+
const response = {
|
|
745
|
+
$metadata: deserializeMetadata(output),
|
|
746
|
+
...contents,
|
|
747
|
+
};
|
|
748
|
+
return response;
|
|
749
|
+
};
|
|
750
|
+
const de_GetSnowballUsageCommand = async (output, context) => {
|
|
751
|
+
if (output.statusCode >= 300) {
|
|
752
|
+
return de_CommandError(output, context);
|
|
753
|
+
}
|
|
754
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
755
|
+
let contents = {};
|
|
756
|
+
contents = smithyClient._json(data);
|
|
757
|
+
const response = {
|
|
758
|
+
$metadata: deserializeMetadata(output),
|
|
759
|
+
...contents,
|
|
760
|
+
};
|
|
761
|
+
return response;
|
|
762
|
+
};
|
|
763
|
+
const de_GetSoftwareUpdatesCommand = async (output, context) => {
|
|
764
|
+
if (output.statusCode >= 300) {
|
|
765
|
+
return de_CommandError(output, context);
|
|
766
|
+
}
|
|
767
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
768
|
+
let contents = {};
|
|
769
|
+
contents = smithyClient._json(data);
|
|
770
|
+
const response = {
|
|
771
|
+
$metadata: deserializeMetadata(output),
|
|
772
|
+
...contents,
|
|
773
|
+
};
|
|
774
|
+
return response;
|
|
775
|
+
};
|
|
776
|
+
const de_ListClusterJobsCommand = async (output, context) => {
|
|
777
|
+
if (output.statusCode >= 300) {
|
|
778
|
+
return de_CommandError(output, context);
|
|
779
|
+
}
|
|
780
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
781
|
+
let contents = {};
|
|
782
|
+
contents = de_ListClusterJobsResult(data);
|
|
783
|
+
const response = {
|
|
784
|
+
$metadata: deserializeMetadata(output),
|
|
785
|
+
...contents,
|
|
786
|
+
};
|
|
787
|
+
return response;
|
|
788
|
+
};
|
|
789
|
+
const de_ListClustersCommand = async (output, context) => {
|
|
790
|
+
if (output.statusCode >= 300) {
|
|
791
|
+
return de_CommandError(output, context);
|
|
792
|
+
}
|
|
793
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
794
|
+
let contents = {};
|
|
795
|
+
contents = de_ListClustersResult(data);
|
|
796
|
+
const response = {
|
|
797
|
+
$metadata: deserializeMetadata(output),
|
|
798
|
+
...contents,
|
|
799
|
+
};
|
|
800
|
+
return response;
|
|
801
|
+
};
|
|
802
|
+
const de_ListCompatibleImagesCommand = async (output, context) => {
|
|
803
|
+
if (output.statusCode >= 300) {
|
|
804
|
+
return de_CommandError(output, context);
|
|
805
|
+
}
|
|
806
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
807
|
+
let contents = {};
|
|
808
|
+
contents = smithyClient._json(data);
|
|
809
|
+
const response = {
|
|
810
|
+
$metadata: deserializeMetadata(output),
|
|
811
|
+
...contents,
|
|
812
|
+
};
|
|
813
|
+
return response;
|
|
814
|
+
};
|
|
815
|
+
const de_ListJobsCommand = async (output, context) => {
|
|
816
|
+
if (output.statusCode >= 300) {
|
|
817
|
+
return de_CommandError(output, context);
|
|
818
|
+
}
|
|
819
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
820
|
+
let contents = {};
|
|
821
|
+
contents = de_ListJobsResult(data);
|
|
822
|
+
const response = {
|
|
823
|
+
$metadata: deserializeMetadata(output),
|
|
824
|
+
...contents,
|
|
825
|
+
};
|
|
826
|
+
return response;
|
|
827
|
+
};
|
|
828
|
+
const de_ListLongTermPricingCommand = async (output, context) => {
|
|
829
|
+
if (output.statusCode >= 300) {
|
|
830
|
+
return de_CommandError(output, context);
|
|
831
|
+
}
|
|
832
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
833
|
+
let contents = {};
|
|
834
|
+
contents = de_ListLongTermPricingResult(data);
|
|
835
|
+
const response = {
|
|
836
|
+
$metadata: deserializeMetadata(output),
|
|
837
|
+
...contents,
|
|
838
|
+
};
|
|
839
|
+
return response;
|
|
840
|
+
};
|
|
841
|
+
const de_ListPickupLocationsCommand = async (output, context) => {
|
|
842
|
+
if (output.statusCode >= 300) {
|
|
843
|
+
return de_CommandError(output, context);
|
|
844
|
+
}
|
|
845
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
846
|
+
let contents = {};
|
|
847
|
+
contents = smithyClient._json(data);
|
|
848
|
+
const response = {
|
|
849
|
+
$metadata: deserializeMetadata(output),
|
|
850
|
+
...contents,
|
|
851
|
+
};
|
|
852
|
+
return response;
|
|
853
|
+
};
|
|
854
|
+
const de_ListServiceVersionsCommand = async (output, context) => {
|
|
855
|
+
if (output.statusCode >= 300) {
|
|
856
|
+
return de_CommandError(output, context);
|
|
857
|
+
}
|
|
858
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
859
|
+
let contents = {};
|
|
860
|
+
contents = smithyClient._json(data);
|
|
861
|
+
const response = {
|
|
862
|
+
$metadata: deserializeMetadata(output),
|
|
863
|
+
...contents,
|
|
864
|
+
};
|
|
865
|
+
return response;
|
|
866
|
+
};
|
|
867
|
+
const de_UpdateClusterCommand = async (output, context) => {
|
|
868
|
+
if (output.statusCode >= 300) {
|
|
869
|
+
return de_CommandError(output, context);
|
|
870
|
+
}
|
|
871
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
872
|
+
let contents = {};
|
|
873
|
+
contents = smithyClient._json(data);
|
|
874
|
+
const response = {
|
|
875
|
+
$metadata: deserializeMetadata(output),
|
|
876
|
+
...contents,
|
|
877
|
+
};
|
|
878
|
+
return response;
|
|
879
|
+
};
|
|
880
|
+
const de_UpdateJobCommand = async (output, context) => {
|
|
881
|
+
if (output.statusCode >= 300) {
|
|
882
|
+
return de_CommandError(output, context);
|
|
883
|
+
}
|
|
884
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
885
|
+
let contents = {};
|
|
886
|
+
contents = smithyClient._json(data);
|
|
887
|
+
const response = {
|
|
888
|
+
$metadata: deserializeMetadata(output),
|
|
889
|
+
...contents,
|
|
890
|
+
};
|
|
891
|
+
return response;
|
|
892
|
+
};
|
|
893
|
+
const de_UpdateJobShipmentStateCommand = async (output, context) => {
|
|
894
|
+
if (output.statusCode >= 300) {
|
|
895
|
+
return de_CommandError(output, context);
|
|
896
|
+
}
|
|
897
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
898
|
+
let contents = {};
|
|
899
|
+
contents = smithyClient._json(data);
|
|
900
|
+
const response = {
|
|
901
|
+
$metadata: deserializeMetadata(output),
|
|
902
|
+
...contents,
|
|
903
|
+
};
|
|
904
|
+
return response;
|
|
905
|
+
};
|
|
906
|
+
const de_UpdateLongTermPricingCommand = async (output, context) => {
|
|
907
|
+
if (output.statusCode >= 300) {
|
|
908
|
+
return de_CommandError(output, context);
|
|
909
|
+
}
|
|
910
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
911
|
+
let contents = {};
|
|
912
|
+
contents = smithyClient._json(data);
|
|
913
|
+
const response = {
|
|
914
|
+
$metadata: deserializeMetadata(output),
|
|
915
|
+
...contents,
|
|
916
|
+
};
|
|
917
|
+
return response;
|
|
918
|
+
};
|
|
919
|
+
const de_CommandError = async (output, context) => {
|
|
920
|
+
const parsedOutput = {
|
|
921
|
+
...output,
|
|
922
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
923
|
+
};
|
|
924
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
925
|
+
switch (errorCode) {
|
|
926
|
+
case "InvalidJobStateException":
|
|
927
|
+
case "com.amazonaws.snowball#InvalidJobStateException":
|
|
928
|
+
throw await de_InvalidJobStateExceptionRes(parsedOutput);
|
|
929
|
+
case "InvalidResourceException":
|
|
930
|
+
case "com.amazonaws.snowball#InvalidResourceException":
|
|
931
|
+
throw await de_InvalidResourceExceptionRes(parsedOutput);
|
|
932
|
+
case "KMSRequestFailedException":
|
|
933
|
+
case "com.amazonaws.snowball#KMSRequestFailedException":
|
|
934
|
+
throw await de_KMSRequestFailedExceptionRes(parsedOutput);
|
|
935
|
+
case "InvalidAddressException":
|
|
936
|
+
case "com.amazonaws.snowball#InvalidAddressException":
|
|
937
|
+
throw await de_InvalidAddressExceptionRes(parsedOutput);
|
|
938
|
+
case "UnsupportedAddressException":
|
|
939
|
+
case "com.amazonaws.snowball#UnsupportedAddressException":
|
|
940
|
+
throw await de_UnsupportedAddressExceptionRes(parsedOutput);
|
|
941
|
+
case "Ec2RequestFailedException":
|
|
942
|
+
case "com.amazonaws.snowball#Ec2RequestFailedException":
|
|
943
|
+
throw await de_Ec2RequestFailedExceptionRes(parsedOutput);
|
|
944
|
+
case "InvalidInputCombinationException":
|
|
945
|
+
case "com.amazonaws.snowball#InvalidInputCombinationException":
|
|
946
|
+
throw await de_InvalidInputCombinationExceptionRes(parsedOutput);
|
|
947
|
+
case "ClusterLimitExceededException":
|
|
948
|
+
case "com.amazonaws.snowball#ClusterLimitExceededException":
|
|
949
|
+
throw await de_ClusterLimitExceededExceptionRes(parsedOutput);
|
|
950
|
+
case "ConflictException":
|
|
951
|
+
case "com.amazonaws.snowball#ConflictException":
|
|
952
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
953
|
+
case "ReturnShippingLabelAlreadyExistsException":
|
|
954
|
+
case "com.amazonaws.snowball#ReturnShippingLabelAlreadyExistsException":
|
|
955
|
+
throw await de_ReturnShippingLabelAlreadyExistsExceptionRes(parsedOutput);
|
|
956
|
+
case "InvalidNextTokenException":
|
|
957
|
+
case "com.amazonaws.snowball#InvalidNextTokenException":
|
|
958
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput);
|
|
959
|
+
default:
|
|
960
|
+
const parsedBody = parsedOutput.body;
|
|
961
|
+
return throwDefaultError({
|
|
962
|
+
output,
|
|
963
|
+
parsedBody,
|
|
964
|
+
errorCode,
|
|
965
|
+
});
|
|
966
|
+
}
|
|
967
|
+
};
|
|
968
|
+
const de_ClusterLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
969
|
+
const body = parsedOutput.body;
|
|
970
|
+
const deserialized = smithyClient._json(body);
|
|
971
|
+
const exception = new ClusterLimitExceededException({
|
|
972
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
973
|
+
...deserialized,
|
|
289
974
|
});
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
name = "InvalidResourceException";
|
|
299
|
-
$fault = "client";
|
|
300
|
-
Message;
|
|
301
|
-
/**
|
|
302
|
-
* <p>The provided resource value is invalid.</p>
|
|
303
|
-
* @public
|
|
304
|
-
*/
|
|
305
|
-
ResourceType;
|
|
306
|
-
/**
|
|
307
|
-
* @internal
|
|
308
|
-
*/
|
|
309
|
-
constructor(opts) {
|
|
310
|
-
super({
|
|
311
|
-
name: "InvalidResourceException",
|
|
312
|
-
$fault: "client",
|
|
313
|
-
...opts
|
|
975
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
976
|
+
};
|
|
977
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
978
|
+
const body = parsedOutput.body;
|
|
979
|
+
const deserialized = smithyClient._json(body);
|
|
980
|
+
const exception = new ConflictException({
|
|
981
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
982
|
+
...deserialized,
|
|
314
983
|
});
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
}
|
|
324
|
-
name = "KMSRequestFailedException";
|
|
325
|
-
$fault = "client";
|
|
326
|
-
Message;
|
|
327
|
-
/**
|
|
328
|
-
* @internal
|
|
329
|
-
*/
|
|
330
|
-
constructor(opts) {
|
|
331
|
-
super({
|
|
332
|
-
name: "KMSRequestFailedException",
|
|
333
|
-
$fault: "client",
|
|
334
|
-
...opts
|
|
984
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
985
|
+
};
|
|
986
|
+
const de_Ec2RequestFailedExceptionRes = async (parsedOutput, context) => {
|
|
987
|
+
const body = parsedOutput.body;
|
|
988
|
+
const deserialized = smithyClient._json(body);
|
|
989
|
+
const exception = new Ec2RequestFailedException({
|
|
990
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
991
|
+
...deserialized,
|
|
335
992
|
});
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
name = "InvalidAddressException";
|
|
345
|
-
$fault = "client";
|
|
346
|
-
Message;
|
|
347
|
-
/**
|
|
348
|
-
* @internal
|
|
349
|
-
*/
|
|
350
|
-
constructor(opts) {
|
|
351
|
-
super({
|
|
352
|
-
name: "InvalidAddressException",
|
|
353
|
-
$fault: "client",
|
|
354
|
-
...opts
|
|
993
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
994
|
+
};
|
|
995
|
+
const de_InvalidAddressExceptionRes = async (parsedOutput, context) => {
|
|
996
|
+
const body = parsedOutput.body;
|
|
997
|
+
const deserialized = smithyClient._json(body);
|
|
998
|
+
const exception = new InvalidAddressException({
|
|
999
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1000
|
+
...deserialized,
|
|
355
1001
|
});
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
name = "UnsupportedAddressException";
|
|
365
|
-
$fault = "client";
|
|
366
|
-
Message;
|
|
367
|
-
/**
|
|
368
|
-
* @internal
|
|
369
|
-
*/
|
|
370
|
-
constructor(opts) {
|
|
371
|
-
super({
|
|
372
|
-
name: "UnsupportedAddressException",
|
|
373
|
-
$fault: "client",
|
|
374
|
-
...opts
|
|
1002
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1003
|
+
};
|
|
1004
|
+
const de_InvalidInputCombinationExceptionRes = async (parsedOutput, context) => {
|
|
1005
|
+
const body = parsedOutput.body;
|
|
1006
|
+
const deserialized = smithyClient._json(body);
|
|
1007
|
+
const exception = new InvalidInputCombinationException({
|
|
1008
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1009
|
+
...deserialized,
|
|
375
1010
|
});
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
};
|
|
385
|
-
var JobState = {
|
|
386
|
-
CANCELLED: "Cancelled",
|
|
387
|
-
COMPLETE: "Complete",
|
|
388
|
-
IN_PROGRESS: "InProgress",
|
|
389
|
-
IN_TRANSIT_TO_AWS: "InTransitToAWS",
|
|
390
|
-
IN_TRANSIT_TO_CUSTOMER: "InTransitToCustomer",
|
|
391
|
-
LISTING: "Listing",
|
|
392
|
-
NEW: "New",
|
|
393
|
-
PENDING: "Pending",
|
|
394
|
-
PREPARING_APPLIANCE: "PreparingAppliance",
|
|
395
|
-
PREPARING_SHIPMENT: "PreparingShipment",
|
|
396
|
-
WITH_AWS: "WithAWS",
|
|
397
|
-
WITH_AWS_SORTING_FACILITY: "WithAWSSortingFacility",
|
|
398
|
-
WITH_CUSTOMER: "WithCustomer"
|
|
399
|
-
};
|
|
400
|
-
var StorageUnit = {
|
|
401
|
-
TB: "TB"
|
|
402
|
-
};
|
|
403
|
-
var RemoteManagement = {
|
|
404
|
-
INSTALLED_AUTOSTART: "INSTALLED_AUTOSTART",
|
|
405
|
-
INSTALLED_ONLY: "INSTALLED_ONLY",
|
|
406
|
-
NOT_INSTALLED: "NOT_INSTALLED"
|
|
407
|
-
};
|
|
408
|
-
var DeviceServiceName = {
|
|
409
|
-
NFS_ON_DEVICE_SERVICE: "NFS_ON_DEVICE_SERVICE",
|
|
410
|
-
S3_ON_DEVICE_SERVICE: "S3_ON_DEVICE_SERVICE"
|
|
411
|
-
};
|
|
412
|
-
var TransferOption = {
|
|
413
|
-
EXPORT: "EXPORT",
|
|
414
|
-
IMPORT: "IMPORT",
|
|
415
|
-
LOCAL_USE: "LOCAL_USE"
|
|
416
|
-
};
|
|
417
|
-
var ShippingOption = {
|
|
418
|
-
EXPRESS: "EXPRESS",
|
|
419
|
-
NEXT_DAY: "NEXT_DAY",
|
|
420
|
-
SECOND_DAY: "SECOND_DAY",
|
|
421
|
-
STANDARD: "STANDARD"
|
|
422
|
-
};
|
|
423
|
-
var SnowballCapacity = {
|
|
424
|
-
NO_PREFERENCE: "NoPreference",
|
|
425
|
-
T100: "T100",
|
|
426
|
-
T13: "T13",
|
|
427
|
-
T14: "T14",
|
|
428
|
-
T240: "T240",
|
|
429
|
-
T32: "T32",
|
|
430
|
-
T42: "T42",
|
|
431
|
-
T50: "T50",
|
|
432
|
-
T8: "T8",
|
|
433
|
-
T80: "T80",
|
|
434
|
-
T98: "T98"
|
|
435
|
-
};
|
|
436
|
-
var SnowballType = {
|
|
437
|
-
EDGE: "EDGE",
|
|
438
|
-
EDGE_C: "EDGE_C",
|
|
439
|
-
EDGE_CG: "EDGE_CG",
|
|
440
|
-
EDGE_S: "EDGE_S",
|
|
441
|
-
RACK_5U_C: "RACK_5U_C",
|
|
442
|
-
SNC1_HDD: "SNC1_HDD",
|
|
443
|
-
SNC1_SSD: "SNC1_SSD",
|
|
444
|
-
STANDARD: "STANDARD",
|
|
445
|
-
V3_5C: "V3_5C",
|
|
446
|
-
V3_5S: "V3_5S"
|
|
447
|
-
};
|
|
448
|
-
var Ec2RequestFailedException = class _Ec2RequestFailedException extends SnowballServiceException {
|
|
449
|
-
static {
|
|
450
|
-
__name(this, "Ec2RequestFailedException");
|
|
451
|
-
}
|
|
452
|
-
name = "Ec2RequestFailedException";
|
|
453
|
-
$fault = "client";
|
|
454
|
-
Message;
|
|
455
|
-
/**
|
|
456
|
-
* @internal
|
|
457
|
-
*/
|
|
458
|
-
constructor(opts) {
|
|
459
|
-
super({
|
|
460
|
-
name: "Ec2RequestFailedException",
|
|
461
|
-
$fault: "client",
|
|
462
|
-
...opts
|
|
1011
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1012
|
+
};
|
|
1013
|
+
const de_InvalidJobStateExceptionRes = async (parsedOutput, context) => {
|
|
1014
|
+
const body = parsedOutput.body;
|
|
1015
|
+
const deserialized = smithyClient._json(body);
|
|
1016
|
+
const exception = new InvalidJobStateException({
|
|
1017
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1018
|
+
...deserialized,
|
|
463
1019
|
});
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
name = "InvalidInputCombinationException";
|
|
473
|
-
$fault = "client";
|
|
474
|
-
Message;
|
|
475
|
-
/**
|
|
476
|
-
* @internal
|
|
477
|
-
*/
|
|
478
|
-
constructor(opts) {
|
|
479
|
-
super({
|
|
480
|
-
name: "InvalidInputCombinationException",
|
|
481
|
-
$fault: "client",
|
|
482
|
-
...opts
|
|
1020
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1021
|
+
};
|
|
1022
|
+
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
1023
|
+
const body = parsedOutput.body;
|
|
1024
|
+
const deserialized = smithyClient._json(body);
|
|
1025
|
+
const exception = new InvalidNextTokenException({
|
|
1026
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1027
|
+
...deserialized,
|
|
483
1028
|
});
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
name = "ClusterLimitExceededException";
|
|
493
|
-
$fault = "client";
|
|
494
|
-
Message;
|
|
495
|
-
/**
|
|
496
|
-
* @internal
|
|
497
|
-
*/
|
|
498
|
-
constructor(opts) {
|
|
499
|
-
super({
|
|
500
|
-
name: "ClusterLimitExceededException",
|
|
501
|
-
$fault: "client",
|
|
502
|
-
...opts
|
|
1029
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1030
|
+
};
|
|
1031
|
+
const de_InvalidResourceExceptionRes = async (parsedOutput, context) => {
|
|
1032
|
+
const body = parsedOutput.body;
|
|
1033
|
+
const deserialized = smithyClient._json(body);
|
|
1034
|
+
const exception = new InvalidResourceException({
|
|
1035
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1036
|
+
...deserialized,
|
|
503
1037
|
});
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
IL6: "IL6",
|
|
513
|
-
IL99: "IL99"
|
|
514
|
-
};
|
|
515
|
-
var LongTermPricingType = {
|
|
516
|
-
ONE_MONTH: "OneMonth",
|
|
517
|
-
ONE_YEAR: "OneYear",
|
|
518
|
-
THREE_YEAR: "ThreeYear"
|
|
519
|
-
};
|
|
520
|
-
var ConflictException = class _ConflictException extends SnowballServiceException {
|
|
521
|
-
static {
|
|
522
|
-
__name(this, "ConflictException");
|
|
523
|
-
}
|
|
524
|
-
name = "ConflictException";
|
|
525
|
-
$fault = "client";
|
|
526
|
-
/**
|
|
527
|
-
* <p>You get this resource when you call <code>CreateReturnShippingLabel</code> more than once when other requests are not completed. .</p>
|
|
528
|
-
* @public
|
|
529
|
-
*/
|
|
530
|
-
ConflictResource;
|
|
531
|
-
Message;
|
|
532
|
-
/**
|
|
533
|
-
* @internal
|
|
534
|
-
*/
|
|
535
|
-
constructor(opts) {
|
|
536
|
-
super({
|
|
537
|
-
name: "ConflictException",
|
|
538
|
-
$fault: "client",
|
|
539
|
-
...opts
|
|
1038
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1039
|
+
};
|
|
1040
|
+
const de_KMSRequestFailedExceptionRes = async (parsedOutput, context) => {
|
|
1041
|
+
const body = parsedOutput.body;
|
|
1042
|
+
const deserialized = smithyClient._json(body);
|
|
1043
|
+
const exception = new KMSRequestFailedException({
|
|
1044
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1045
|
+
...deserialized,
|
|
540
1046
|
});
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
SUCCEEDED: "Succeeded",
|
|
550
|
-
TIMED_OUT: "TimedOut"
|
|
551
|
-
};
|
|
552
|
-
var ReturnShippingLabelAlreadyExistsException = class _ReturnShippingLabelAlreadyExistsException extends SnowballServiceException {
|
|
553
|
-
static {
|
|
554
|
-
__name(this, "ReturnShippingLabelAlreadyExistsException");
|
|
555
|
-
}
|
|
556
|
-
name = "ReturnShippingLabelAlreadyExistsException";
|
|
557
|
-
$fault = "client";
|
|
558
|
-
Message;
|
|
559
|
-
/**
|
|
560
|
-
* @internal
|
|
561
|
-
*/
|
|
562
|
-
constructor(opts) {
|
|
563
|
-
super({
|
|
564
|
-
name: "ReturnShippingLabelAlreadyExistsException",
|
|
565
|
-
$fault: "client",
|
|
566
|
-
...opts
|
|
1047
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1048
|
+
};
|
|
1049
|
+
const de_ReturnShippingLabelAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1050
|
+
const body = parsedOutput.body;
|
|
1051
|
+
const deserialized = smithyClient._json(body);
|
|
1052
|
+
const exception = new ReturnShippingLabelAlreadyExistsException({
|
|
1053
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1054
|
+
...deserialized,
|
|
567
1055
|
});
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
name = "InvalidNextTokenException";
|
|
577
|
-
$fault = "client";
|
|
578
|
-
Message;
|
|
579
|
-
/**
|
|
580
|
-
* @internal
|
|
581
|
-
*/
|
|
582
|
-
constructor(opts) {
|
|
583
|
-
super({
|
|
584
|
-
name: "InvalidNextTokenException",
|
|
585
|
-
$fault: "client",
|
|
586
|
-
...opts
|
|
1056
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1057
|
+
};
|
|
1058
|
+
const de_UnsupportedAddressExceptionRes = async (parsedOutput, context) => {
|
|
1059
|
+
const body = parsedOutput.body;
|
|
1060
|
+
const deserialized = smithyClient._json(body);
|
|
1061
|
+
const exception = new UnsupportedAddressException({
|
|
1062
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1063
|
+
...deserialized,
|
|
587
1064
|
});
|
|
588
|
-
|
|
589
|
-
this.Message = opts.Message;
|
|
590
|
-
}
|
|
591
|
-
};
|
|
592
|
-
var ClusterState = {
|
|
593
|
-
AWAITING_QUORUM: "AwaitingQuorum",
|
|
594
|
-
CANCELLED: "Cancelled",
|
|
595
|
-
COMPLETE: "Complete",
|
|
596
|
-
IN_USE: "InUse",
|
|
597
|
-
PENDING: "Pending"
|
|
598
|
-
};
|
|
599
|
-
var ServiceName = {
|
|
600
|
-
EKS_ANYWHERE: "EKS_ANYWHERE",
|
|
601
|
-
KUBERNETES: "KUBERNETES"
|
|
602
|
-
};
|
|
603
|
-
var ShipmentState = {
|
|
604
|
-
RECEIVED: "RECEIVED",
|
|
605
|
-
RETURNED: "RETURNED"
|
|
606
|
-
};
|
|
607
|
-
var PickupDetailsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
608
|
-
...obj,
|
|
609
|
-
...obj.PhoneNumber && { PhoneNumber: import_smithy_client.SENSITIVE_STRING },
|
|
610
|
-
...obj.Email && { Email: import_smithy_client.SENSITIVE_STRING }
|
|
611
|
-
}), "PickupDetailsFilterSensitiveLog");
|
|
612
|
-
var CreateJobRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
613
|
-
...obj,
|
|
614
|
-
...obj.PickupDetails && { PickupDetails: PickupDetailsFilterSensitiveLog(obj.PickupDetails) }
|
|
615
|
-
}), "CreateJobRequestFilterSensitiveLog");
|
|
616
|
-
var JobMetadataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
617
|
-
...obj,
|
|
618
|
-
...obj.PickupDetails && { PickupDetails: PickupDetailsFilterSensitiveLog(obj.PickupDetails) }
|
|
619
|
-
}), "JobMetadataFilterSensitiveLog");
|
|
620
|
-
var DescribeJobResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
621
|
-
...obj,
|
|
622
|
-
...obj.JobMetadata && { JobMetadata: JobMetadataFilterSensitiveLog(obj.JobMetadata) },
|
|
623
|
-
...obj.SubJobMetadata && { SubJobMetadata: obj.SubJobMetadata.map((item) => JobMetadataFilterSensitiveLog(item)) }
|
|
624
|
-
}), "DescribeJobResultFilterSensitiveLog");
|
|
625
|
-
var UpdateJobRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
626
|
-
...obj,
|
|
627
|
-
...obj.PickupDetails && { PickupDetails: PickupDetailsFilterSensitiveLog(obj.PickupDetails) }
|
|
628
|
-
}), "UpdateJobRequestFilterSensitiveLog");
|
|
629
|
-
|
|
630
|
-
// src/protocols/Aws_json1_1.ts
|
|
631
|
-
var se_CancelClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
632
|
-
const headers = sharedHeaders("CancelCluster");
|
|
633
|
-
let body;
|
|
634
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
635
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
636
|
-
}, "se_CancelClusterCommand");
|
|
637
|
-
var se_CancelJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
638
|
-
const headers = sharedHeaders("CancelJob");
|
|
639
|
-
let body;
|
|
640
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
641
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
642
|
-
}, "se_CancelJobCommand");
|
|
643
|
-
var se_CreateAddressCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
644
|
-
const headers = sharedHeaders("CreateAddress");
|
|
645
|
-
let body;
|
|
646
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
647
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
648
|
-
}, "se_CreateAddressCommand");
|
|
649
|
-
var se_CreateClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
650
|
-
const headers = sharedHeaders("CreateCluster");
|
|
651
|
-
let body;
|
|
652
|
-
body = JSON.stringify(se_CreateClusterRequest(input, context));
|
|
653
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
654
|
-
}, "se_CreateClusterCommand");
|
|
655
|
-
var se_CreateJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
656
|
-
const headers = sharedHeaders("CreateJob");
|
|
657
|
-
let body;
|
|
658
|
-
body = JSON.stringify(se_CreateJobRequest(input, context));
|
|
659
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
660
|
-
}, "se_CreateJobCommand");
|
|
661
|
-
var se_CreateLongTermPricingCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
662
|
-
const headers = sharedHeaders("CreateLongTermPricing");
|
|
663
|
-
let body;
|
|
664
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
665
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
666
|
-
}, "se_CreateLongTermPricingCommand");
|
|
667
|
-
var se_CreateReturnShippingLabelCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
668
|
-
const headers = sharedHeaders("CreateReturnShippingLabel");
|
|
669
|
-
let body;
|
|
670
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
671
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
672
|
-
}, "se_CreateReturnShippingLabelCommand");
|
|
673
|
-
var se_DescribeAddressCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
674
|
-
const headers = sharedHeaders("DescribeAddress");
|
|
675
|
-
let body;
|
|
676
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
677
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
678
|
-
}, "se_DescribeAddressCommand");
|
|
679
|
-
var se_DescribeAddressesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
680
|
-
const headers = sharedHeaders("DescribeAddresses");
|
|
681
|
-
let body;
|
|
682
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
683
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
684
|
-
}, "se_DescribeAddressesCommand");
|
|
685
|
-
var se_DescribeClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
686
|
-
const headers = sharedHeaders("DescribeCluster");
|
|
687
|
-
let body;
|
|
688
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
689
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
690
|
-
}, "se_DescribeClusterCommand");
|
|
691
|
-
var se_DescribeJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
692
|
-
const headers = sharedHeaders("DescribeJob");
|
|
693
|
-
let body;
|
|
694
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
695
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
696
|
-
}, "se_DescribeJobCommand");
|
|
697
|
-
var se_DescribeReturnShippingLabelCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
698
|
-
const headers = sharedHeaders("DescribeReturnShippingLabel");
|
|
699
|
-
let body;
|
|
700
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
701
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
702
|
-
}, "se_DescribeReturnShippingLabelCommand");
|
|
703
|
-
var se_GetJobManifestCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
704
|
-
const headers = sharedHeaders("GetJobManifest");
|
|
705
|
-
let body;
|
|
706
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
707
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
708
|
-
}, "se_GetJobManifestCommand");
|
|
709
|
-
var se_GetJobUnlockCodeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
710
|
-
const headers = sharedHeaders("GetJobUnlockCode");
|
|
711
|
-
let body;
|
|
712
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
713
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
714
|
-
}, "se_GetJobUnlockCodeCommand");
|
|
715
|
-
var se_GetSnowballUsageCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
716
|
-
const headers = sharedHeaders("GetSnowballUsage");
|
|
717
|
-
let body;
|
|
718
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
719
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
720
|
-
}, "se_GetSnowballUsageCommand");
|
|
721
|
-
var se_GetSoftwareUpdatesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
722
|
-
const headers = sharedHeaders("GetSoftwareUpdates");
|
|
723
|
-
let body;
|
|
724
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
725
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
726
|
-
}, "se_GetSoftwareUpdatesCommand");
|
|
727
|
-
var se_ListClusterJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
728
|
-
const headers = sharedHeaders("ListClusterJobs");
|
|
729
|
-
let body;
|
|
730
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
731
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
732
|
-
}, "se_ListClusterJobsCommand");
|
|
733
|
-
var se_ListClustersCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
734
|
-
const headers = sharedHeaders("ListClusters");
|
|
735
|
-
let body;
|
|
736
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
737
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
738
|
-
}, "se_ListClustersCommand");
|
|
739
|
-
var se_ListCompatibleImagesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
740
|
-
const headers = sharedHeaders("ListCompatibleImages");
|
|
741
|
-
let body;
|
|
742
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
743
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
744
|
-
}, "se_ListCompatibleImagesCommand");
|
|
745
|
-
var se_ListJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
746
|
-
const headers = sharedHeaders("ListJobs");
|
|
747
|
-
let body;
|
|
748
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
749
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
750
|
-
}, "se_ListJobsCommand");
|
|
751
|
-
var se_ListLongTermPricingCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
752
|
-
const headers = sharedHeaders("ListLongTermPricing");
|
|
753
|
-
let body;
|
|
754
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
755
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
756
|
-
}, "se_ListLongTermPricingCommand");
|
|
757
|
-
var se_ListPickupLocationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
758
|
-
const headers = sharedHeaders("ListPickupLocations");
|
|
759
|
-
let body;
|
|
760
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
761
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
762
|
-
}, "se_ListPickupLocationsCommand");
|
|
763
|
-
var se_ListServiceVersionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
764
|
-
const headers = sharedHeaders("ListServiceVersions");
|
|
765
|
-
let body;
|
|
766
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
767
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
768
|
-
}, "se_ListServiceVersionsCommand");
|
|
769
|
-
var se_UpdateClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
770
|
-
const headers = sharedHeaders("UpdateCluster");
|
|
771
|
-
let body;
|
|
772
|
-
body = JSON.stringify(se_UpdateClusterRequest(input, context));
|
|
773
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
774
|
-
}, "se_UpdateClusterCommand");
|
|
775
|
-
var se_UpdateJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
776
|
-
const headers = sharedHeaders("UpdateJob");
|
|
777
|
-
let body;
|
|
778
|
-
body = JSON.stringify(se_UpdateJobRequest(input, context));
|
|
779
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
780
|
-
}, "se_UpdateJobCommand");
|
|
781
|
-
var se_UpdateJobShipmentStateCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
782
|
-
const headers = sharedHeaders("UpdateJobShipmentState");
|
|
783
|
-
let body;
|
|
784
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
785
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
786
|
-
}, "se_UpdateJobShipmentStateCommand");
|
|
787
|
-
var se_UpdateLongTermPricingCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
788
|
-
const headers = sharedHeaders("UpdateLongTermPricing");
|
|
789
|
-
let body;
|
|
790
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
791
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
792
|
-
}, "se_UpdateLongTermPricingCommand");
|
|
793
|
-
var de_CancelClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
794
|
-
if (output.statusCode >= 300) {
|
|
795
|
-
return de_CommandError(output, context);
|
|
796
|
-
}
|
|
797
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
798
|
-
let contents = {};
|
|
799
|
-
contents = (0, import_smithy_client._json)(data);
|
|
800
|
-
const response = {
|
|
801
|
-
$metadata: deserializeMetadata(output),
|
|
802
|
-
...contents
|
|
803
|
-
};
|
|
804
|
-
return response;
|
|
805
|
-
}, "de_CancelClusterCommand");
|
|
806
|
-
var de_CancelJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
807
|
-
if (output.statusCode >= 300) {
|
|
808
|
-
return de_CommandError(output, context);
|
|
809
|
-
}
|
|
810
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
811
|
-
let contents = {};
|
|
812
|
-
contents = (0, import_smithy_client._json)(data);
|
|
813
|
-
const response = {
|
|
814
|
-
$metadata: deserializeMetadata(output),
|
|
815
|
-
...contents
|
|
816
|
-
};
|
|
817
|
-
return response;
|
|
818
|
-
}, "de_CancelJobCommand");
|
|
819
|
-
var de_CreateAddressCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
820
|
-
if (output.statusCode >= 300) {
|
|
821
|
-
return de_CommandError(output, context);
|
|
822
|
-
}
|
|
823
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
824
|
-
let contents = {};
|
|
825
|
-
contents = (0, import_smithy_client._json)(data);
|
|
826
|
-
const response = {
|
|
827
|
-
$metadata: deserializeMetadata(output),
|
|
828
|
-
...contents
|
|
829
|
-
};
|
|
830
|
-
return response;
|
|
831
|
-
}, "de_CreateAddressCommand");
|
|
832
|
-
var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
833
|
-
if (output.statusCode >= 300) {
|
|
834
|
-
return de_CommandError(output, context);
|
|
835
|
-
}
|
|
836
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
837
|
-
let contents = {};
|
|
838
|
-
contents = de_CreateClusterResult(data, context);
|
|
839
|
-
const response = {
|
|
840
|
-
$metadata: deserializeMetadata(output),
|
|
841
|
-
...contents
|
|
842
|
-
};
|
|
843
|
-
return response;
|
|
844
|
-
}, "de_CreateClusterCommand");
|
|
845
|
-
var de_CreateJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
846
|
-
if (output.statusCode >= 300) {
|
|
847
|
-
return de_CommandError(output, context);
|
|
848
|
-
}
|
|
849
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
850
|
-
let contents = {};
|
|
851
|
-
contents = (0, import_smithy_client._json)(data);
|
|
852
|
-
const response = {
|
|
853
|
-
$metadata: deserializeMetadata(output),
|
|
854
|
-
...contents
|
|
855
|
-
};
|
|
856
|
-
return response;
|
|
857
|
-
}, "de_CreateJobCommand");
|
|
858
|
-
var de_CreateLongTermPricingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
859
|
-
if (output.statusCode >= 300) {
|
|
860
|
-
return de_CommandError(output, context);
|
|
861
|
-
}
|
|
862
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
863
|
-
let contents = {};
|
|
864
|
-
contents = (0, import_smithy_client._json)(data);
|
|
865
|
-
const response = {
|
|
866
|
-
$metadata: deserializeMetadata(output),
|
|
867
|
-
...contents
|
|
868
|
-
};
|
|
869
|
-
return response;
|
|
870
|
-
}, "de_CreateLongTermPricingCommand");
|
|
871
|
-
var de_CreateReturnShippingLabelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
872
|
-
if (output.statusCode >= 300) {
|
|
873
|
-
return de_CommandError(output, context);
|
|
874
|
-
}
|
|
875
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
876
|
-
let contents = {};
|
|
877
|
-
contents = (0, import_smithy_client._json)(data);
|
|
878
|
-
const response = {
|
|
879
|
-
$metadata: deserializeMetadata(output),
|
|
880
|
-
...contents
|
|
881
|
-
};
|
|
882
|
-
return response;
|
|
883
|
-
}, "de_CreateReturnShippingLabelCommand");
|
|
884
|
-
var de_DescribeAddressCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
885
|
-
if (output.statusCode >= 300) {
|
|
886
|
-
return de_CommandError(output, context);
|
|
887
|
-
}
|
|
888
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
889
|
-
let contents = {};
|
|
890
|
-
contents = (0, import_smithy_client._json)(data);
|
|
891
|
-
const response = {
|
|
892
|
-
$metadata: deserializeMetadata(output),
|
|
893
|
-
...contents
|
|
894
|
-
};
|
|
895
|
-
return response;
|
|
896
|
-
}, "de_DescribeAddressCommand");
|
|
897
|
-
var de_DescribeAddressesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
898
|
-
if (output.statusCode >= 300) {
|
|
899
|
-
return de_CommandError(output, context);
|
|
900
|
-
}
|
|
901
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
902
|
-
let contents = {};
|
|
903
|
-
contents = (0, import_smithy_client._json)(data);
|
|
904
|
-
const response = {
|
|
905
|
-
$metadata: deserializeMetadata(output),
|
|
906
|
-
...contents
|
|
907
|
-
};
|
|
908
|
-
return response;
|
|
909
|
-
}, "de_DescribeAddressesCommand");
|
|
910
|
-
var de_DescribeClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
911
|
-
if (output.statusCode >= 300) {
|
|
912
|
-
return de_CommandError(output, context);
|
|
913
|
-
}
|
|
914
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
915
|
-
let contents = {};
|
|
916
|
-
contents = de_DescribeClusterResult(data, context);
|
|
917
|
-
const response = {
|
|
918
|
-
$metadata: deserializeMetadata(output),
|
|
919
|
-
...contents
|
|
920
|
-
};
|
|
921
|
-
return response;
|
|
922
|
-
}, "de_DescribeClusterCommand");
|
|
923
|
-
var de_DescribeJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
924
|
-
if (output.statusCode >= 300) {
|
|
925
|
-
return de_CommandError(output, context);
|
|
926
|
-
}
|
|
927
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
928
|
-
let contents = {};
|
|
929
|
-
contents = de_DescribeJobResult(data, context);
|
|
930
|
-
const response = {
|
|
931
|
-
$metadata: deserializeMetadata(output),
|
|
932
|
-
...contents
|
|
933
|
-
};
|
|
934
|
-
return response;
|
|
935
|
-
}, "de_DescribeJobCommand");
|
|
936
|
-
var de_DescribeReturnShippingLabelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
937
|
-
if (output.statusCode >= 300) {
|
|
938
|
-
return de_CommandError(output, context);
|
|
939
|
-
}
|
|
940
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
941
|
-
let contents = {};
|
|
942
|
-
contents = de_DescribeReturnShippingLabelResult(data, context);
|
|
943
|
-
const response = {
|
|
944
|
-
$metadata: deserializeMetadata(output),
|
|
945
|
-
...contents
|
|
946
|
-
};
|
|
947
|
-
return response;
|
|
948
|
-
}, "de_DescribeReturnShippingLabelCommand");
|
|
949
|
-
var de_GetJobManifestCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
950
|
-
if (output.statusCode >= 300) {
|
|
951
|
-
return de_CommandError(output, context);
|
|
952
|
-
}
|
|
953
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
954
|
-
let contents = {};
|
|
955
|
-
contents = (0, import_smithy_client._json)(data);
|
|
956
|
-
const response = {
|
|
957
|
-
$metadata: deserializeMetadata(output),
|
|
958
|
-
...contents
|
|
959
|
-
};
|
|
960
|
-
return response;
|
|
961
|
-
}, "de_GetJobManifestCommand");
|
|
962
|
-
var de_GetJobUnlockCodeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
963
|
-
if (output.statusCode >= 300) {
|
|
964
|
-
return de_CommandError(output, context);
|
|
965
|
-
}
|
|
966
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
967
|
-
let contents = {};
|
|
968
|
-
contents = (0, import_smithy_client._json)(data);
|
|
969
|
-
const response = {
|
|
970
|
-
$metadata: deserializeMetadata(output),
|
|
971
|
-
...contents
|
|
972
|
-
};
|
|
973
|
-
return response;
|
|
974
|
-
}, "de_GetJobUnlockCodeCommand");
|
|
975
|
-
var de_GetSnowballUsageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
976
|
-
if (output.statusCode >= 300) {
|
|
977
|
-
return de_CommandError(output, context);
|
|
978
|
-
}
|
|
979
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
980
|
-
let contents = {};
|
|
981
|
-
contents = (0, import_smithy_client._json)(data);
|
|
982
|
-
const response = {
|
|
983
|
-
$metadata: deserializeMetadata(output),
|
|
984
|
-
...contents
|
|
985
|
-
};
|
|
986
|
-
return response;
|
|
987
|
-
}, "de_GetSnowballUsageCommand");
|
|
988
|
-
var de_GetSoftwareUpdatesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
989
|
-
if (output.statusCode >= 300) {
|
|
990
|
-
return de_CommandError(output, context);
|
|
991
|
-
}
|
|
992
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
993
|
-
let contents = {};
|
|
994
|
-
contents = (0, import_smithy_client._json)(data);
|
|
995
|
-
const response = {
|
|
996
|
-
$metadata: deserializeMetadata(output),
|
|
997
|
-
...contents
|
|
998
|
-
};
|
|
999
|
-
return response;
|
|
1000
|
-
}, "de_GetSoftwareUpdatesCommand");
|
|
1001
|
-
var de_ListClusterJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1002
|
-
if (output.statusCode >= 300) {
|
|
1003
|
-
return de_CommandError(output, context);
|
|
1004
|
-
}
|
|
1005
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1006
|
-
let contents = {};
|
|
1007
|
-
contents = de_ListClusterJobsResult(data, context);
|
|
1008
|
-
const response = {
|
|
1009
|
-
$metadata: deserializeMetadata(output),
|
|
1010
|
-
...contents
|
|
1011
|
-
};
|
|
1012
|
-
return response;
|
|
1013
|
-
}, "de_ListClusterJobsCommand");
|
|
1014
|
-
var de_ListClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1015
|
-
if (output.statusCode >= 300) {
|
|
1016
|
-
return de_CommandError(output, context);
|
|
1017
|
-
}
|
|
1018
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1019
|
-
let contents = {};
|
|
1020
|
-
contents = de_ListClustersResult(data, context);
|
|
1021
|
-
const response = {
|
|
1022
|
-
$metadata: deserializeMetadata(output),
|
|
1023
|
-
...contents
|
|
1024
|
-
};
|
|
1025
|
-
return response;
|
|
1026
|
-
}, "de_ListClustersCommand");
|
|
1027
|
-
var de_ListCompatibleImagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1028
|
-
if (output.statusCode >= 300) {
|
|
1029
|
-
return de_CommandError(output, context);
|
|
1030
|
-
}
|
|
1031
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1032
|
-
let contents = {};
|
|
1033
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1034
|
-
const response = {
|
|
1035
|
-
$metadata: deserializeMetadata(output),
|
|
1036
|
-
...contents
|
|
1037
|
-
};
|
|
1038
|
-
return response;
|
|
1039
|
-
}, "de_ListCompatibleImagesCommand");
|
|
1040
|
-
var de_ListJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1041
|
-
if (output.statusCode >= 300) {
|
|
1042
|
-
return de_CommandError(output, context);
|
|
1043
|
-
}
|
|
1044
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1045
|
-
let contents = {};
|
|
1046
|
-
contents = de_ListJobsResult(data, context);
|
|
1047
|
-
const response = {
|
|
1048
|
-
$metadata: deserializeMetadata(output),
|
|
1049
|
-
...contents
|
|
1050
|
-
};
|
|
1051
|
-
return response;
|
|
1052
|
-
}, "de_ListJobsCommand");
|
|
1053
|
-
var de_ListLongTermPricingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1054
|
-
if (output.statusCode >= 300) {
|
|
1055
|
-
return de_CommandError(output, context);
|
|
1056
|
-
}
|
|
1057
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1058
|
-
let contents = {};
|
|
1059
|
-
contents = de_ListLongTermPricingResult(data, context);
|
|
1060
|
-
const response = {
|
|
1061
|
-
$metadata: deserializeMetadata(output),
|
|
1062
|
-
...contents
|
|
1063
|
-
};
|
|
1064
|
-
return response;
|
|
1065
|
-
}, "de_ListLongTermPricingCommand");
|
|
1066
|
-
var de_ListPickupLocationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1067
|
-
if (output.statusCode >= 300) {
|
|
1068
|
-
return de_CommandError(output, context);
|
|
1069
|
-
}
|
|
1070
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1071
|
-
let contents = {};
|
|
1072
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1073
|
-
const response = {
|
|
1074
|
-
$metadata: deserializeMetadata(output),
|
|
1075
|
-
...contents
|
|
1076
|
-
};
|
|
1077
|
-
return response;
|
|
1078
|
-
}, "de_ListPickupLocationsCommand");
|
|
1079
|
-
var de_ListServiceVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1080
|
-
if (output.statusCode >= 300) {
|
|
1081
|
-
return de_CommandError(output, context);
|
|
1082
|
-
}
|
|
1083
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1084
|
-
let contents = {};
|
|
1085
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1086
|
-
const response = {
|
|
1087
|
-
$metadata: deserializeMetadata(output),
|
|
1088
|
-
...contents
|
|
1089
|
-
};
|
|
1090
|
-
return response;
|
|
1091
|
-
}, "de_ListServiceVersionsCommand");
|
|
1092
|
-
var de_UpdateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1093
|
-
if (output.statusCode >= 300) {
|
|
1094
|
-
return de_CommandError(output, context);
|
|
1095
|
-
}
|
|
1096
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1097
|
-
let contents = {};
|
|
1098
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1099
|
-
const response = {
|
|
1100
|
-
$metadata: deserializeMetadata(output),
|
|
1101
|
-
...contents
|
|
1102
|
-
};
|
|
1103
|
-
return response;
|
|
1104
|
-
}, "de_UpdateClusterCommand");
|
|
1105
|
-
var de_UpdateJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1106
|
-
if (output.statusCode >= 300) {
|
|
1107
|
-
return de_CommandError(output, context);
|
|
1108
|
-
}
|
|
1109
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1110
|
-
let contents = {};
|
|
1111
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1112
|
-
const response = {
|
|
1113
|
-
$metadata: deserializeMetadata(output),
|
|
1114
|
-
...contents
|
|
1115
|
-
};
|
|
1116
|
-
return response;
|
|
1117
|
-
}, "de_UpdateJobCommand");
|
|
1118
|
-
var de_UpdateJobShipmentStateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1119
|
-
if (output.statusCode >= 300) {
|
|
1120
|
-
return de_CommandError(output, context);
|
|
1121
|
-
}
|
|
1122
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1123
|
-
let contents = {};
|
|
1124
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1125
|
-
const response = {
|
|
1126
|
-
$metadata: deserializeMetadata(output),
|
|
1127
|
-
...contents
|
|
1128
|
-
};
|
|
1129
|
-
return response;
|
|
1130
|
-
}, "de_UpdateJobShipmentStateCommand");
|
|
1131
|
-
var de_UpdateLongTermPricingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1132
|
-
if (output.statusCode >= 300) {
|
|
1133
|
-
return de_CommandError(output, context);
|
|
1134
|
-
}
|
|
1135
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1136
|
-
let contents = {};
|
|
1137
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1138
|
-
const response = {
|
|
1139
|
-
$metadata: deserializeMetadata(output),
|
|
1140
|
-
...contents
|
|
1141
|
-
};
|
|
1142
|
-
return response;
|
|
1143
|
-
}, "de_UpdateLongTermPricingCommand");
|
|
1144
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1145
|
-
const parsedOutput = {
|
|
1146
|
-
...output,
|
|
1147
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1148
|
-
};
|
|
1149
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1150
|
-
switch (errorCode) {
|
|
1151
|
-
case "InvalidJobStateException":
|
|
1152
|
-
case "com.amazonaws.snowball#InvalidJobStateException":
|
|
1153
|
-
throw await de_InvalidJobStateExceptionRes(parsedOutput, context);
|
|
1154
|
-
case "InvalidResourceException":
|
|
1155
|
-
case "com.amazonaws.snowball#InvalidResourceException":
|
|
1156
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1157
|
-
case "KMSRequestFailedException":
|
|
1158
|
-
case "com.amazonaws.snowball#KMSRequestFailedException":
|
|
1159
|
-
throw await de_KMSRequestFailedExceptionRes(parsedOutput, context);
|
|
1160
|
-
case "InvalidAddressException":
|
|
1161
|
-
case "com.amazonaws.snowball#InvalidAddressException":
|
|
1162
|
-
throw await de_InvalidAddressExceptionRes(parsedOutput, context);
|
|
1163
|
-
case "UnsupportedAddressException":
|
|
1164
|
-
case "com.amazonaws.snowball#UnsupportedAddressException":
|
|
1165
|
-
throw await de_UnsupportedAddressExceptionRes(parsedOutput, context);
|
|
1166
|
-
case "Ec2RequestFailedException":
|
|
1167
|
-
case "com.amazonaws.snowball#Ec2RequestFailedException":
|
|
1168
|
-
throw await de_Ec2RequestFailedExceptionRes(parsedOutput, context);
|
|
1169
|
-
case "InvalidInputCombinationException":
|
|
1170
|
-
case "com.amazonaws.snowball#InvalidInputCombinationException":
|
|
1171
|
-
throw await de_InvalidInputCombinationExceptionRes(parsedOutput, context);
|
|
1172
|
-
case "ClusterLimitExceededException":
|
|
1173
|
-
case "com.amazonaws.snowball#ClusterLimitExceededException":
|
|
1174
|
-
throw await de_ClusterLimitExceededExceptionRes(parsedOutput, context);
|
|
1175
|
-
case "ConflictException":
|
|
1176
|
-
case "com.amazonaws.snowball#ConflictException":
|
|
1177
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1178
|
-
case "ReturnShippingLabelAlreadyExistsException":
|
|
1179
|
-
case "com.amazonaws.snowball#ReturnShippingLabelAlreadyExistsException":
|
|
1180
|
-
throw await de_ReturnShippingLabelAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1181
|
-
case "InvalidNextTokenException":
|
|
1182
|
-
case "com.amazonaws.snowball#InvalidNextTokenException":
|
|
1183
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1184
|
-
default:
|
|
1185
|
-
const parsedBody = parsedOutput.body;
|
|
1186
|
-
return throwDefaultError({
|
|
1187
|
-
output,
|
|
1188
|
-
parsedBody,
|
|
1189
|
-
errorCode
|
|
1190
|
-
});
|
|
1191
|
-
}
|
|
1192
|
-
}, "de_CommandError");
|
|
1193
|
-
var de_ClusterLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1194
|
-
const body = parsedOutput.body;
|
|
1195
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1196
|
-
const exception = new ClusterLimitExceededException({
|
|
1197
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1198
|
-
...deserialized
|
|
1199
|
-
});
|
|
1200
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1201
|
-
}, "de_ClusterLimitExceededExceptionRes");
|
|
1202
|
-
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1203
|
-
const body = parsedOutput.body;
|
|
1204
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1205
|
-
const exception = new ConflictException({
|
|
1206
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1207
|
-
...deserialized
|
|
1208
|
-
});
|
|
1209
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1210
|
-
}, "de_ConflictExceptionRes");
|
|
1211
|
-
var de_Ec2RequestFailedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1212
|
-
const body = parsedOutput.body;
|
|
1213
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1214
|
-
const exception = new Ec2RequestFailedException({
|
|
1215
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1216
|
-
...deserialized
|
|
1217
|
-
});
|
|
1218
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1219
|
-
}, "de_Ec2RequestFailedExceptionRes");
|
|
1220
|
-
var de_InvalidAddressExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1221
|
-
const body = parsedOutput.body;
|
|
1222
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1223
|
-
const exception = new InvalidAddressException({
|
|
1224
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1225
|
-
...deserialized
|
|
1226
|
-
});
|
|
1227
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1228
|
-
}, "de_InvalidAddressExceptionRes");
|
|
1229
|
-
var de_InvalidInputCombinationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1230
|
-
const body = parsedOutput.body;
|
|
1231
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1232
|
-
const exception = new InvalidInputCombinationException({
|
|
1233
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1234
|
-
...deserialized
|
|
1235
|
-
});
|
|
1236
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1237
|
-
}, "de_InvalidInputCombinationExceptionRes");
|
|
1238
|
-
var de_InvalidJobStateExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1239
|
-
const body = parsedOutput.body;
|
|
1240
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1241
|
-
const exception = new InvalidJobStateException({
|
|
1242
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1243
|
-
...deserialized
|
|
1244
|
-
});
|
|
1245
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1246
|
-
}, "de_InvalidJobStateExceptionRes");
|
|
1247
|
-
var de_InvalidNextTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1248
|
-
const body = parsedOutput.body;
|
|
1249
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1250
|
-
const exception = new InvalidNextTokenException({
|
|
1251
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1252
|
-
...deserialized
|
|
1253
|
-
});
|
|
1254
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1255
|
-
}, "de_InvalidNextTokenExceptionRes");
|
|
1256
|
-
var de_InvalidResourceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1257
|
-
const body = parsedOutput.body;
|
|
1258
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1259
|
-
const exception = new InvalidResourceException({
|
|
1260
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1261
|
-
...deserialized
|
|
1262
|
-
});
|
|
1263
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1264
|
-
}, "de_InvalidResourceExceptionRes");
|
|
1265
|
-
var de_KMSRequestFailedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1266
|
-
const body = parsedOutput.body;
|
|
1267
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1268
|
-
const exception = new KMSRequestFailedException({
|
|
1269
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1270
|
-
...deserialized
|
|
1271
|
-
});
|
|
1272
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1273
|
-
}, "de_KMSRequestFailedExceptionRes");
|
|
1274
|
-
var de_ReturnShippingLabelAlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1275
|
-
const body = parsedOutput.body;
|
|
1276
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1277
|
-
const exception = new ReturnShippingLabelAlreadyExistsException({
|
|
1278
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1279
|
-
...deserialized
|
|
1280
|
-
});
|
|
1281
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1282
|
-
}, "de_ReturnShippingLabelAlreadyExistsExceptionRes");
|
|
1283
|
-
var de_UnsupportedAddressExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1284
|
-
const body = parsedOutput.body;
|
|
1285
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1286
|
-
const exception = new UnsupportedAddressException({
|
|
1287
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1288
|
-
...deserialized
|
|
1289
|
-
});
|
|
1290
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1291
|
-
}, "de_UnsupportedAddressExceptionRes");
|
|
1292
|
-
var se_CreateClusterRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1293
|
-
return (0, import_smithy_client.take)(input, {
|
|
1294
|
-
AddressId: [],
|
|
1295
|
-
Description: [],
|
|
1296
|
-
ForceCreateJobs: [],
|
|
1297
|
-
ForwardingAddressId: [],
|
|
1298
|
-
InitialClusterSize: [],
|
|
1299
|
-
JobType: [],
|
|
1300
|
-
KmsKeyARN: [],
|
|
1301
|
-
LongTermPricingIds: import_smithy_client._json,
|
|
1302
|
-
Notification: import_smithy_client._json,
|
|
1303
|
-
OnDeviceServiceConfiguration: /* @__PURE__ */ __name((_) => se_OnDeviceServiceConfiguration(_, context), "OnDeviceServiceConfiguration"),
|
|
1304
|
-
RemoteManagement: [],
|
|
1305
|
-
Resources: import_smithy_client._json,
|
|
1306
|
-
RoleARN: [],
|
|
1307
|
-
ShippingOption: [],
|
|
1308
|
-
SnowballCapacityPreference: [],
|
|
1309
|
-
SnowballType: [],
|
|
1310
|
-
TaxDocuments: import_smithy_client._json
|
|
1311
|
-
});
|
|
1312
|
-
}, "se_CreateClusterRequest");
|
|
1313
|
-
var se_CreateJobRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1314
|
-
return (0, import_smithy_client.take)(input, {
|
|
1315
|
-
AddressId: [],
|
|
1316
|
-
ClusterId: [],
|
|
1317
|
-
Description: [],
|
|
1318
|
-
DeviceConfiguration: import_smithy_client._json,
|
|
1319
|
-
ForwardingAddressId: [],
|
|
1320
|
-
ImpactLevel: [],
|
|
1321
|
-
JobType: [],
|
|
1322
|
-
KmsKeyARN: [],
|
|
1323
|
-
LongTermPricingId: [],
|
|
1324
|
-
Notification: import_smithy_client._json,
|
|
1325
|
-
OnDeviceServiceConfiguration: /* @__PURE__ */ __name((_) => se_OnDeviceServiceConfiguration(_, context), "OnDeviceServiceConfiguration"),
|
|
1326
|
-
PickupDetails: /* @__PURE__ */ __name((_) => se_PickupDetails(_, context), "PickupDetails"),
|
|
1327
|
-
RemoteManagement: [],
|
|
1328
|
-
Resources: import_smithy_client._json,
|
|
1329
|
-
RoleARN: [],
|
|
1330
|
-
ShippingOption: [],
|
|
1331
|
-
SnowballCapacityPreference: [],
|
|
1332
|
-
SnowballType: [],
|
|
1333
|
-
TaxDocuments: import_smithy_client._json
|
|
1334
|
-
});
|
|
1335
|
-
}, "se_CreateJobRequest");
|
|
1336
|
-
var se_OnDeviceServiceConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
1337
|
-
return (0, import_smithy_client.take)(input, {
|
|
1338
|
-
EKSOnDeviceService: import_smithy_client._json,
|
|
1339
|
-
NFSOnDeviceService: import_smithy_client._json,
|
|
1340
|
-
S3OnDeviceService: /* @__PURE__ */ __name((_) => se_S3OnDeviceServiceConfiguration(_, context), "S3OnDeviceService"),
|
|
1341
|
-
TGWOnDeviceService: import_smithy_client._json
|
|
1342
|
-
});
|
|
1343
|
-
}, "se_OnDeviceServiceConfiguration");
|
|
1344
|
-
var se_PickupDetails = /* @__PURE__ */ __name((input, context) => {
|
|
1345
|
-
return (0, import_smithy_client.take)(input, {
|
|
1346
|
-
DevicePickupId: [],
|
|
1347
|
-
Email: [],
|
|
1348
|
-
IdentificationExpirationDate: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "IdentificationExpirationDate"),
|
|
1349
|
-
IdentificationIssuingOrg: [],
|
|
1350
|
-
IdentificationNumber: [],
|
|
1351
|
-
Name: [],
|
|
1352
|
-
PhoneNumber: []
|
|
1353
|
-
});
|
|
1354
|
-
}, "se_PickupDetails");
|
|
1355
|
-
var se_S3OnDeviceServiceConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
1356
|
-
return (0, import_smithy_client.take)(input, {
|
|
1357
|
-
FaultTolerance: [],
|
|
1358
|
-
ServiceSize: [],
|
|
1359
|
-
StorageLimit: import_smithy_client.serializeFloat,
|
|
1360
|
-
StorageUnit: []
|
|
1361
|
-
});
|
|
1362
|
-
}, "se_S3OnDeviceServiceConfiguration");
|
|
1363
|
-
var se_UpdateClusterRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1364
|
-
return (0, import_smithy_client.take)(input, {
|
|
1365
|
-
AddressId: [],
|
|
1366
|
-
ClusterId: [],
|
|
1367
|
-
Description: [],
|
|
1368
|
-
ForwardingAddressId: [],
|
|
1369
|
-
Notification: import_smithy_client._json,
|
|
1370
|
-
OnDeviceServiceConfiguration: /* @__PURE__ */ __name((_) => se_OnDeviceServiceConfiguration(_, context), "OnDeviceServiceConfiguration"),
|
|
1371
|
-
Resources: import_smithy_client._json,
|
|
1372
|
-
RoleARN: [],
|
|
1373
|
-
ShippingOption: []
|
|
1374
|
-
});
|
|
1375
|
-
}, "se_UpdateClusterRequest");
|
|
1376
|
-
var se_UpdateJobRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1377
|
-
return (0, import_smithy_client.take)(input, {
|
|
1378
|
-
AddressId: [],
|
|
1379
|
-
Description: [],
|
|
1380
|
-
ForwardingAddressId: [],
|
|
1381
|
-
JobId: [],
|
|
1382
|
-
Notification: import_smithy_client._json,
|
|
1383
|
-
OnDeviceServiceConfiguration: /* @__PURE__ */ __name((_) => se_OnDeviceServiceConfiguration(_, context), "OnDeviceServiceConfiguration"),
|
|
1384
|
-
PickupDetails: /* @__PURE__ */ __name((_) => se_PickupDetails(_, context), "PickupDetails"),
|
|
1385
|
-
Resources: import_smithy_client._json,
|
|
1386
|
-
RoleARN: [],
|
|
1387
|
-
ShippingOption: [],
|
|
1388
|
-
SnowballCapacityPreference: []
|
|
1389
|
-
});
|
|
1390
|
-
}, "se_UpdateJobRequest");
|
|
1391
|
-
var de_ClusterListEntry = /* @__PURE__ */ __name((output, context) => {
|
|
1392
|
-
return (0, import_smithy_client.take)(output, {
|
|
1393
|
-
ClusterId: import_smithy_client.expectString,
|
|
1394
|
-
ClusterState: import_smithy_client.expectString,
|
|
1395
|
-
CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationDate"),
|
|
1396
|
-
Description: import_smithy_client.expectString
|
|
1397
|
-
});
|
|
1398
|
-
}, "de_ClusterListEntry");
|
|
1399
|
-
var de_ClusterListEntryList = /* @__PURE__ */ __name((output, context) => {
|
|
1400
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1401
|
-
return de_ClusterListEntry(entry, context);
|
|
1402
|
-
});
|
|
1403
|
-
return retVal;
|
|
1404
|
-
}, "de_ClusterListEntryList");
|
|
1405
|
-
var de_ClusterMetadata = /* @__PURE__ */ __name((output, context) => {
|
|
1406
|
-
return (0, import_smithy_client.take)(output, {
|
|
1407
|
-
AddressId: import_smithy_client.expectString,
|
|
1408
|
-
ClusterId: import_smithy_client.expectString,
|
|
1409
|
-
ClusterState: import_smithy_client.expectString,
|
|
1410
|
-
CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationDate"),
|
|
1411
|
-
Description: import_smithy_client.expectString,
|
|
1412
|
-
ForwardingAddressId: import_smithy_client.expectString,
|
|
1413
|
-
JobType: import_smithy_client.expectString,
|
|
1414
|
-
KmsKeyARN: import_smithy_client.expectString,
|
|
1415
|
-
Notification: import_smithy_client._json,
|
|
1416
|
-
OnDeviceServiceConfiguration: /* @__PURE__ */ __name((_) => de_OnDeviceServiceConfiguration(_, context), "OnDeviceServiceConfiguration"),
|
|
1417
|
-
Resources: import_smithy_client._json,
|
|
1418
|
-
RoleARN: import_smithy_client.expectString,
|
|
1419
|
-
ShippingOption: import_smithy_client.expectString,
|
|
1420
|
-
SnowballType: import_smithy_client.expectString,
|
|
1421
|
-
TaxDocuments: import_smithy_client._json
|
|
1422
|
-
});
|
|
1423
|
-
}, "de_ClusterMetadata");
|
|
1424
|
-
var de_CreateClusterResult = /* @__PURE__ */ __name((output, context) => {
|
|
1425
|
-
return (0, import_smithy_client.take)(output, {
|
|
1426
|
-
ClusterId: import_smithy_client.expectString,
|
|
1427
|
-
JobListEntries: /* @__PURE__ */ __name((_) => de_JobListEntryList(_, context), "JobListEntries")
|
|
1428
|
-
});
|
|
1429
|
-
}, "de_CreateClusterResult");
|
|
1430
|
-
var de_DescribeClusterResult = /* @__PURE__ */ __name((output, context) => {
|
|
1431
|
-
return (0, import_smithy_client.take)(output, {
|
|
1432
|
-
ClusterMetadata: /* @__PURE__ */ __name((_) => de_ClusterMetadata(_, context), "ClusterMetadata")
|
|
1433
|
-
});
|
|
1434
|
-
}, "de_DescribeClusterResult");
|
|
1435
|
-
var de_DescribeJobResult = /* @__PURE__ */ __name((output, context) => {
|
|
1436
|
-
return (0, import_smithy_client.take)(output, {
|
|
1437
|
-
JobMetadata: /* @__PURE__ */ __name((_) => de_JobMetadata(_, context), "JobMetadata"),
|
|
1438
|
-
SubJobMetadata: /* @__PURE__ */ __name((_) => de_JobMetadataList(_, context), "SubJobMetadata")
|
|
1439
|
-
});
|
|
1440
|
-
}, "de_DescribeJobResult");
|
|
1441
|
-
var de_DescribeReturnShippingLabelResult = /* @__PURE__ */ __name((output, context) => {
|
|
1442
|
-
return (0, import_smithy_client.take)(output, {
|
|
1443
|
-
ExpirationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ExpirationDate"),
|
|
1444
|
-
ReturnShippingLabelURI: import_smithy_client.expectString,
|
|
1445
|
-
Status: import_smithy_client.expectString
|
|
1446
|
-
});
|
|
1447
|
-
}, "de_DescribeReturnShippingLabelResult");
|
|
1448
|
-
var de_JobListEntry = /* @__PURE__ */ __name((output, context) => {
|
|
1449
|
-
return (0, import_smithy_client.take)(output, {
|
|
1450
|
-
CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationDate"),
|
|
1451
|
-
Description: import_smithy_client.expectString,
|
|
1452
|
-
IsMaster: import_smithy_client.expectBoolean,
|
|
1453
|
-
JobId: import_smithy_client.expectString,
|
|
1454
|
-
JobState: import_smithy_client.expectString,
|
|
1455
|
-
JobType: import_smithy_client.expectString,
|
|
1456
|
-
SnowballType: import_smithy_client.expectString
|
|
1457
|
-
});
|
|
1458
|
-
}, "de_JobListEntry");
|
|
1459
|
-
var de_JobListEntryList = /* @__PURE__ */ __name((output, context) => {
|
|
1460
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1461
|
-
return de_JobListEntry(entry, context);
|
|
1462
|
-
});
|
|
1463
|
-
return retVal;
|
|
1464
|
-
}, "de_JobListEntryList");
|
|
1465
|
-
var de_JobMetadata = /* @__PURE__ */ __name((output, context) => {
|
|
1466
|
-
return (0, import_smithy_client.take)(output, {
|
|
1467
|
-
AddressId: import_smithy_client.expectString,
|
|
1468
|
-
ClusterId: import_smithy_client.expectString,
|
|
1469
|
-
CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationDate"),
|
|
1470
|
-
DataTransferProgress: import_smithy_client._json,
|
|
1471
|
-
Description: import_smithy_client.expectString,
|
|
1472
|
-
DeviceConfiguration: import_smithy_client._json,
|
|
1473
|
-
ForwardingAddressId: import_smithy_client.expectString,
|
|
1474
|
-
ImpactLevel: import_smithy_client.expectString,
|
|
1475
|
-
JobId: import_smithy_client.expectString,
|
|
1476
|
-
JobLogInfo: import_smithy_client._json,
|
|
1477
|
-
JobState: import_smithy_client.expectString,
|
|
1478
|
-
JobType: import_smithy_client.expectString,
|
|
1479
|
-
KmsKeyARN: import_smithy_client.expectString,
|
|
1480
|
-
LongTermPricingId: import_smithy_client.expectString,
|
|
1481
|
-
Notification: import_smithy_client._json,
|
|
1482
|
-
OnDeviceServiceConfiguration: /* @__PURE__ */ __name((_) => de_OnDeviceServiceConfiguration(_, context), "OnDeviceServiceConfiguration"),
|
|
1483
|
-
PickupDetails: /* @__PURE__ */ __name((_) => de_PickupDetails(_, context), "PickupDetails"),
|
|
1484
|
-
RemoteManagement: import_smithy_client.expectString,
|
|
1485
|
-
Resources: import_smithy_client._json,
|
|
1486
|
-
RoleARN: import_smithy_client.expectString,
|
|
1487
|
-
ShippingDetails: import_smithy_client._json,
|
|
1488
|
-
SnowballCapacityPreference: import_smithy_client.expectString,
|
|
1489
|
-
SnowballId: import_smithy_client.expectString,
|
|
1490
|
-
SnowballType: import_smithy_client.expectString,
|
|
1491
|
-
TaxDocuments: import_smithy_client._json
|
|
1492
|
-
});
|
|
1493
|
-
}, "de_JobMetadata");
|
|
1494
|
-
var de_JobMetadataList = /* @__PURE__ */ __name((output, context) => {
|
|
1495
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1496
|
-
return de_JobMetadata(entry, context);
|
|
1497
|
-
});
|
|
1498
|
-
return retVal;
|
|
1499
|
-
}, "de_JobMetadataList");
|
|
1500
|
-
var de_ListClusterJobsResult = /* @__PURE__ */ __name((output, context) => {
|
|
1501
|
-
return (0, import_smithy_client.take)(output, {
|
|
1502
|
-
JobListEntries: /* @__PURE__ */ __name((_) => de_JobListEntryList(_, context), "JobListEntries"),
|
|
1503
|
-
NextToken: import_smithy_client.expectString
|
|
1504
|
-
});
|
|
1505
|
-
}, "de_ListClusterJobsResult");
|
|
1506
|
-
var de_ListClustersResult = /* @__PURE__ */ __name((output, context) => {
|
|
1507
|
-
return (0, import_smithy_client.take)(output, {
|
|
1508
|
-
ClusterListEntries: /* @__PURE__ */ __name((_) => de_ClusterListEntryList(_, context), "ClusterListEntries"),
|
|
1509
|
-
NextToken: import_smithy_client.expectString
|
|
1510
|
-
});
|
|
1511
|
-
}, "de_ListClustersResult");
|
|
1512
|
-
var de_ListJobsResult = /* @__PURE__ */ __name((output, context) => {
|
|
1513
|
-
return (0, import_smithy_client.take)(output, {
|
|
1514
|
-
JobListEntries: /* @__PURE__ */ __name((_) => de_JobListEntryList(_, context), "JobListEntries"),
|
|
1515
|
-
NextToken: import_smithy_client.expectString
|
|
1516
|
-
});
|
|
1517
|
-
}, "de_ListJobsResult");
|
|
1518
|
-
var de_ListLongTermPricingResult = /* @__PURE__ */ __name((output, context) => {
|
|
1519
|
-
return (0, import_smithy_client.take)(output, {
|
|
1520
|
-
LongTermPricingEntries: /* @__PURE__ */ __name((_) => de_LongTermPricingEntryList(_, context), "LongTermPricingEntries"),
|
|
1521
|
-
NextToken: import_smithy_client.expectString
|
|
1522
|
-
});
|
|
1523
|
-
}, "de_ListLongTermPricingResult");
|
|
1524
|
-
var de_LongTermPricingEntryList = /* @__PURE__ */ __name((output, context) => {
|
|
1525
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1526
|
-
return de_LongTermPricingListEntry(entry, context);
|
|
1527
|
-
});
|
|
1528
|
-
return retVal;
|
|
1529
|
-
}, "de_LongTermPricingEntryList");
|
|
1530
|
-
var de_LongTermPricingListEntry = /* @__PURE__ */ __name((output, context) => {
|
|
1531
|
-
return (0, import_smithy_client.take)(output, {
|
|
1532
|
-
CurrentActiveJob: import_smithy_client.expectString,
|
|
1533
|
-
IsLongTermPricingAutoRenew: import_smithy_client.expectBoolean,
|
|
1534
|
-
JobIds: import_smithy_client._json,
|
|
1535
|
-
LongTermPricingEndDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LongTermPricingEndDate"),
|
|
1536
|
-
LongTermPricingId: import_smithy_client.expectString,
|
|
1537
|
-
LongTermPricingStartDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LongTermPricingStartDate"),
|
|
1538
|
-
LongTermPricingStatus: import_smithy_client.expectString,
|
|
1539
|
-
LongTermPricingType: import_smithy_client.expectString,
|
|
1540
|
-
ReplacementJob: import_smithy_client.expectString,
|
|
1541
|
-
SnowballType: import_smithy_client.expectString
|
|
1542
|
-
});
|
|
1543
|
-
}, "de_LongTermPricingListEntry");
|
|
1544
|
-
var de_OnDeviceServiceConfiguration = /* @__PURE__ */ __name((output, context) => {
|
|
1545
|
-
return (0, import_smithy_client.take)(output, {
|
|
1546
|
-
EKSOnDeviceService: import_smithy_client._json,
|
|
1547
|
-
NFSOnDeviceService: import_smithy_client._json,
|
|
1548
|
-
S3OnDeviceService: /* @__PURE__ */ __name((_) => de_S3OnDeviceServiceConfiguration(_, context), "S3OnDeviceService"),
|
|
1549
|
-
TGWOnDeviceService: import_smithy_client._json
|
|
1550
|
-
});
|
|
1551
|
-
}, "de_OnDeviceServiceConfiguration");
|
|
1552
|
-
var de_PickupDetails = /* @__PURE__ */ __name((output, context) => {
|
|
1553
|
-
return (0, import_smithy_client.take)(output, {
|
|
1554
|
-
DevicePickupId: import_smithy_client.expectString,
|
|
1555
|
-
Email: import_smithy_client.expectString,
|
|
1556
|
-
IdentificationExpirationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "IdentificationExpirationDate"),
|
|
1557
|
-
IdentificationIssuingOrg: import_smithy_client.expectString,
|
|
1558
|
-
IdentificationNumber: import_smithy_client.expectString,
|
|
1559
|
-
Name: import_smithy_client.expectString,
|
|
1560
|
-
PhoneNumber: import_smithy_client.expectString
|
|
1561
|
-
});
|
|
1562
|
-
}, "de_PickupDetails");
|
|
1563
|
-
var de_S3OnDeviceServiceConfiguration = /* @__PURE__ */ __name((output, context) => {
|
|
1564
|
-
return (0, import_smithy_client.take)(output, {
|
|
1565
|
-
FaultTolerance: import_smithy_client.expectInt32,
|
|
1566
|
-
ServiceSize: import_smithy_client.expectInt32,
|
|
1567
|
-
StorageLimit: import_smithy_client.limitedParseDouble,
|
|
1568
|
-
StorageUnit: import_smithy_client.expectString
|
|
1569
|
-
});
|
|
1570
|
-
}, "de_S3OnDeviceServiceConfiguration");
|
|
1571
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1572
|
-
httpStatusCode: output.statusCode,
|
|
1573
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1574
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1575
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
1576
|
-
}), "deserializeMetadata");
|
|
1577
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(SnowballServiceException);
|
|
1578
|
-
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
1579
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1580
|
-
const contents = {
|
|
1581
|
-
protocol,
|
|
1582
|
-
hostname,
|
|
1583
|
-
port,
|
|
1584
|
-
method: "POST",
|
|
1585
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1586
|
-
headers
|
|
1587
|
-
};
|
|
1588
|
-
if (resolvedHostname !== void 0) {
|
|
1589
|
-
contents.hostname = resolvedHostname;
|
|
1590
|
-
}
|
|
1591
|
-
if (body !== void 0) {
|
|
1592
|
-
contents.body = body;
|
|
1593
|
-
}
|
|
1594
|
-
return new import_protocol_http.HttpRequest(contents);
|
|
1595
|
-
}, "buildHttpRpcRequest");
|
|
1596
|
-
function sharedHeaders(operation) {
|
|
1597
|
-
return {
|
|
1598
|
-
"content-type": "application/x-amz-json-1.1",
|
|
1599
|
-
"x-amz-target": `AWSIESnowballJobManagementService.${operation}`
|
|
1600
|
-
};
|
|
1601
|
-
}
|
|
1602
|
-
__name(sharedHeaders, "sharedHeaders");
|
|
1603
|
-
|
|
1604
|
-
// src/commands/CancelClusterCommand.ts
|
|
1605
|
-
var CancelClusterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1606
|
-
return [
|
|
1607
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1608
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1609
|
-
];
|
|
1610
|
-
}).s("AWSIESnowballJobManagementService", "CancelCluster", {}).n("SnowballClient", "CancelClusterCommand").f(void 0, void 0).ser(se_CancelClusterCommand).de(de_CancelClusterCommand).build() {
|
|
1611
|
-
static {
|
|
1612
|
-
__name(this, "CancelClusterCommand");
|
|
1613
|
-
}
|
|
1065
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1614
1066
|
};
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1067
|
+
const se_CreateClusterRequest = (input, context) => {
|
|
1068
|
+
return smithyClient.take(input, {
|
|
1069
|
+
AddressId: [],
|
|
1070
|
+
Description: [],
|
|
1071
|
+
ForceCreateJobs: [],
|
|
1072
|
+
ForwardingAddressId: [],
|
|
1073
|
+
InitialClusterSize: [],
|
|
1074
|
+
JobType: [],
|
|
1075
|
+
KmsKeyARN: [],
|
|
1076
|
+
LongTermPricingIds: smithyClient._json,
|
|
1077
|
+
Notification: smithyClient._json,
|
|
1078
|
+
OnDeviceServiceConfiguration: (_) => se_OnDeviceServiceConfiguration(_),
|
|
1079
|
+
RemoteManagement: [],
|
|
1080
|
+
Resources: smithyClient._json,
|
|
1081
|
+
RoleARN: [],
|
|
1082
|
+
ShippingOption: [],
|
|
1083
|
+
SnowballCapacityPreference: [],
|
|
1084
|
+
SnowballType: [],
|
|
1085
|
+
TaxDocuments: smithyClient._json,
|
|
1086
|
+
});
|
|
1629
1087
|
};
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1088
|
+
const se_CreateJobRequest = (input, context) => {
|
|
1089
|
+
return smithyClient.take(input, {
|
|
1090
|
+
AddressId: [],
|
|
1091
|
+
ClusterId: [],
|
|
1092
|
+
Description: [],
|
|
1093
|
+
DeviceConfiguration: smithyClient._json,
|
|
1094
|
+
ForwardingAddressId: [],
|
|
1095
|
+
ImpactLevel: [],
|
|
1096
|
+
JobType: [],
|
|
1097
|
+
KmsKeyARN: [],
|
|
1098
|
+
LongTermPricingId: [],
|
|
1099
|
+
Notification: smithyClient._json,
|
|
1100
|
+
OnDeviceServiceConfiguration: (_) => se_OnDeviceServiceConfiguration(_),
|
|
1101
|
+
PickupDetails: (_) => se_PickupDetails(_),
|
|
1102
|
+
RemoteManagement: [],
|
|
1103
|
+
Resources: smithyClient._json,
|
|
1104
|
+
RoleARN: [],
|
|
1105
|
+
ShippingOption: [],
|
|
1106
|
+
SnowballCapacityPreference: [],
|
|
1107
|
+
SnowballType: [],
|
|
1108
|
+
TaxDocuments: smithyClient._json,
|
|
1109
|
+
});
|
|
1644
1110
|
};
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1653
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1654
|
-
];
|
|
1655
|
-
}).s("AWSIESnowballJobManagementService", "CreateCluster", {}).n("SnowballClient", "CreateClusterCommand").f(void 0, void 0).ser(se_CreateClusterCommand).de(de_CreateClusterCommand).build() {
|
|
1656
|
-
static {
|
|
1657
|
-
__name(this, "CreateClusterCommand");
|
|
1658
|
-
}
|
|
1111
|
+
const se_OnDeviceServiceConfiguration = (input, context) => {
|
|
1112
|
+
return smithyClient.take(input, {
|
|
1113
|
+
EKSOnDeviceService: smithyClient._json,
|
|
1114
|
+
NFSOnDeviceService: smithyClient._json,
|
|
1115
|
+
S3OnDeviceService: (_) => se_S3OnDeviceServiceConfiguration(_),
|
|
1116
|
+
TGWOnDeviceService: smithyClient._json,
|
|
1117
|
+
});
|
|
1659
1118
|
};
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
}).s("AWSIESnowballJobManagementService", "CreateJob", {}).n("SnowballClient", "CreateJobCommand").f(CreateJobRequestFilterSensitiveLog, void 0).ser(se_CreateJobCommand).de(de_CreateJobCommand).build() {
|
|
1671
|
-
static {
|
|
1672
|
-
__name(this, "CreateJobCommand");
|
|
1673
|
-
}
|
|
1119
|
+
const se_PickupDetails = (input, context) => {
|
|
1120
|
+
return smithyClient.take(input, {
|
|
1121
|
+
DevicePickupId: [],
|
|
1122
|
+
Email: [],
|
|
1123
|
+
IdentificationExpirationDate: (_) => _.getTime() / 1_000,
|
|
1124
|
+
IdentificationIssuingOrg: [],
|
|
1125
|
+
IdentificationNumber: [],
|
|
1126
|
+
Name: [],
|
|
1127
|
+
PhoneNumber: [],
|
|
1128
|
+
});
|
|
1674
1129
|
};
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1683
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1684
|
-
];
|
|
1685
|
-
}).s("AWSIESnowballJobManagementService", "CreateLongTermPricing", {}).n("SnowballClient", "CreateLongTermPricingCommand").f(void 0, void 0).ser(se_CreateLongTermPricingCommand).de(de_CreateLongTermPricingCommand).build() {
|
|
1686
|
-
static {
|
|
1687
|
-
__name(this, "CreateLongTermPricingCommand");
|
|
1688
|
-
}
|
|
1130
|
+
const se_S3OnDeviceServiceConfiguration = (input, context) => {
|
|
1131
|
+
return smithyClient.take(input, {
|
|
1132
|
+
FaultTolerance: [],
|
|
1133
|
+
ServiceSize: [],
|
|
1134
|
+
StorageLimit: smithyClient.serializeFloat,
|
|
1135
|
+
StorageUnit: [],
|
|
1136
|
+
});
|
|
1689
1137
|
};
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
__name(this, "CreateReturnShippingLabelCommand");
|
|
1703
|
-
}
|
|
1138
|
+
const se_UpdateClusterRequest = (input, context) => {
|
|
1139
|
+
return smithyClient.take(input, {
|
|
1140
|
+
AddressId: [],
|
|
1141
|
+
ClusterId: [],
|
|
1142
|
+
Description: [],
|
|
1143
|
+
ForwardingAddressId: [],
|
|
1144
|
+
Notification: smithyClient._json,
|
|
1145
|
+
OnDeviceServiceConfiguration: (_) => se_OnDeviceServiceConfiguration(_),
|
|
1146
|
+
Resources: smithyClient._json,
|
|
1147
|
+
RoleARN: [],
|
|
1148
|
+
ShippingOption: [],
|
|
1149
|
+
});
|
|
1704
1150
|
};
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1151
|
+
const se_UpdateJobRequest = (input, context) => {
|
|
1152
|
+
return smithyClient.take(input, {
|
|
1153
|
+
AddressId: [],
|
|
1154
|
+
Description: [],
|
|
1155
|
+
ForwardingAddressId: [],
|
|
1156
|
+
JobId: [],
|
|
1157
|
+
Notification: smithyClient._json,
|
|
1158
|
+
OnDeviceServiceConfiguration: (_) => se_OnDeviceServiceConfiguration(_),
|
|
1159
|
+
PickupDetails: (_) => se_PickupDetails(_),
|
|
1160
|
+
Resources: smithyClient._json,
|
|
1161
|
+
RoleARN: [],
|
|
1162
|
+
ShippingOption: [],
|
|
1163
|
+
SnowballCapacityPreference: [],
|
|
1164
|
+
});
|
|
1719
1165
|
};
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1728
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1729
|
-
];
|
|
1730
|
-
}).s("AWSIESnowballJobManagementService", "DescribeAddresses", {}).n("SnowballClient", "DescribeAddressesCommand").f(void 0, void 0).ser(se_DescribeAddressesCommand).de(de_DescribeAddressesCommand).build() {
|
|
1731
|
-
static {
|
|
1732
|
-
__name(this, "DescribeAddressesCommand");
|
|
1733
|
-
}
|
|
1166
|
+
const de_ClusterListEntry = (output, context) => {
|
|
1167
|
+
return smithyClient.take(output, {
|
|
1168
|
+
ClusterId: smithyClient.expectString,
|
|
1169
|
+
ClusterState: smithyClient.expectString,
|
|
1170
|
+
CreationDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1171
|
+
Description: smithyClient.expectString,
|
|
1172
|
+
});
|
|
1734
1173
|
};
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1743
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1744
|
-
];
|
|
1745
|
-
}).s("AWSIESnowballJobManagementService", "DescribeCluster", {}).n("SnowballClient", "DescribeClusterCommand").f(void 0, void 0).ser(se_DescribeClusterCommand).de(de_DescribeClusterCommand).build() {
|
|
1746
|
-
static {
|
|
1747
|
-
__name(this, "DescribeClusterCommand");
|
|
1748
|
-
}
|
|
1174
|
+
const de_ClusterListEntryList = (output, context) => {
|
|
1175
|
+
const retVal = (output || [])
|
|
1176
|
+
.filter((e) => e != null)
|
|
1177
|
+
.map((entry) => {
|
|
1178
|
+
return de_ClusterListEntry(entry);
|
|
1179
|
+
});
|
|
1180
|
+
return retVal;
|
|
1749
1181
|
};
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1182
|
+
const de_ClusterMetadata = (output, context) => {
|
|
1183
|
+
return smithyClient.take(output, {
|
|
1184
|
+
AddressId: smithyClient.expectString,
|
|
1185
|
+
ClusterId: smithyClient.expectString,
|
|
1186
|
+
ClusterState: smithyClient.expectString,
|
|
1187
|
+
CreationDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1188
|
+
Description: smithyClient.expectString,
|
|
1189
|
+
ForwardingAddressId: smithyClient.expectString,
|
|
1190
|
+
JobType: smithyClient.expectString,
|
|
1191
|
+
KmsKeyARN: smithyClient.expectString,
|
|
1192
|
+
Notification: smithyClient._json,
|
|
1193
|
+
OnDeviceServiceConfiguration: (_) => de_OnDeviceServiceConfiguration(_),
|
|
1194
|
+
Resources: smithyClient._json,
|
|
1195
|
+
RoleARN: smithyClient.expectString,
|
|
1196
|
+
ShippingOption: smithyClient.expectString,
|
|
1197
|
+
SnowballType: smithyClient.expectString,
|
|
1198
|
+
TaxDocuments: smithyClient._json,
|
|
1199
|
+
});
|
|
1764
1200
|
};
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
var DescribeReturnShippingLabelCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1771
|
-
return [
|
|
1772
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1773
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1774
|
-
];
|
|
1775
|
-
}).s("AWSIESnowballJobManagementService", "DescribeReturnShippingLabel", {}).n("SnowballClient", "DescribeReturnShippingLabelCommand").f(void 0, void 0).ser(se_DescribeReturnShippingLabelCommand).de(de_DescribeReturnShippingLabelCommand).build() {
|
|
1776
|
-
static {
|
|
1777
|
-
__name(this, "DescribeReturnShippingLabelCommand");
|
|
1778
|
-
}
|
|
1201
|
+
const de_CreateClusterResult = (output, context) => {
|
|
1202
|
+
return smithyClient.take(output, {
|
|
1203
|
+
ClusterId: smithyClient.expectString,
|
|
1204
|
+
JobListEntries: (_) => de_JobListEntryList(_),
|
|
1205
|
+
});
|
|
1779
1206
|
};
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
var GetJobManifestCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1786
|
-
return [
|
|
1787
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1788
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1789
|
-
];
|
|
1790
|
-
}).s("AWSIESnowballJobManagementService", "GetJobManifest", {}).n("SnowballClient", "GetJobManifestCommand").f(void 0, void 0).ser(se_GetJobManifestCommand).de(de_GetJobManifestCommand).build() {
|
|
1791
|
-
static {
|
|
1792
|
-
__name(this, "GetJobManifestCommand");
|
|
1793
|
-
}
|
|
1207
|
+
const de_DescribeClusterResult = (output, context) => {
|
|
1208
|
+
return smithyClient.take(output, {
|
|
1209
|
+
ClusterMetadata: (_) => de_ClusterMetadata(_),
|
|
1210
|
+
});
|
|
1794
1211
|
};
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
var GetJobUnlockCodeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1801
|
-
return [
|
|
1802
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1803
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1804
|
-
];
|
|
1805
|
-
}).s("AWSIESnowballJobManagementService", "GetJobUnlockCode", {}).n("SnowballClient", "GetJobUnlockCodeCommand").f(void 0, void 0).ser(se_GetJobUnlockCodeCommand).de(de_GetJobUnlockCodeCommand).build() {
|
|
1806
|
-
static {
|
|
1807
|
-
__name(this, "GetJobUnlockCodeCommand");
|
|
1808
|
-
}
|
|
1212
|
+
const de_DescribeJobResult = (output, context) => {
|
|
1213
|
+
return smithyClient.take(output, {
|
|
1214
|
+
JobMetadata: (_) => de_JobMetadata(_),
|
|
1215
|
+
SubJobMetadata: (_) => de_JobMetadataList(_),
|
|
1216
|
+
});
|
|
1809
1217
|
};
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
return [
|
|
1817
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1818
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1819
|
-
];
|
|
1820
|
-
}).s("AWSIESnowballJobManagementService", "GetSnowballUsage", {}).n("SnowballClient", "GetSnowballUsageCommand").f(void 0, void 0).ser(se_GetSnowballUsageCommand).de(de_GetSnowballUsageCommand).build() {
|
|
1821
|
-
static {
|
|
1822
|
-
__name(this, "GetSnowballUsageCommand");
|
|
1823
|
-
}
|
|
1218
|
+
const de_DescribeReturnShippingLabelResult = (output, context) => {
|
|
1219
|
+
return smithyClient.take(output, {
|
|
1220
|
+
ExpirationDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1221
|
+
ReturnShippingLabelURI: smithyClient.expectString,
|
|
1222
|
+
Status: smithyClient.expectString,
|
|
1223
|
+
});
|
|
1824
1224
|
};
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
}).s("AWSIESnowballJobManagementService", "GetSoftwareUpdates", {}).n("SnowballClient", "GetSoftwareUpdatesCommand").f(void 0, void 0).ser(se_GetSoftwareUpdatesCommand).de(de_GetSoftwareUpdatesCommand).build() {
|
|
1836
|
-
static {
|
|
1837
|
-
__name(this, "GetSoftwareUpdatesCommand");
|
|
1838
|
-
}
|
|
1225
|
+
const de_JobListEntry = (output, context) => {
|
|
1226
|
+
return smithyClient.take(output, {
|
|
1227
|
+
CreationDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1228
|
+
Description: smithyClient.expectString,
|
|
1229
|
+
IsMaster: smithyClient.expectBoolean,
|
|
1230
|
+
JobId: smithyClient.expectString,
|
|
1231
|
+
JobState: smithyClient.expectString,
|
|
1232
|
+
JobType: smithyClient.expectString,
|
|
1233
|
+
SnowballType: smithyClient.expectString,
|
|
1234
|
+
});
|
|
1839
1235
|
};
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1848
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1849
|
-
];
|
|
1850
|
-
}).s("AWSIESnowballJobManagementService", "ListClusterJobs", {}).n("SnowballClient", "ListClusterJobsCommand").f(void 0, void 0).ser(se_ListClusterJobsCommand).de(de_ListClusterJobsCommand).build() {
|
|
1851
|
-
static {
|
|
1852
|
-
__name(this, "ListClusterJobsCommand");
|
|
1853
|
-
}
|
|
1236
|
+
const de_JobListEntryList = (output, context) => {
|
|
1237
|
+
const retVal = (output || [])
|
|
1238
|
+
.filter((e) => e != null)
|
|
1239
|
+
.map((entry) => {
|
|
1240
|
+
return de_JobListEntry(entry);
|
|
1241
|
+
});
|
|
1242
|
+
return retVal;
|
|
1854
1243
|
};
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1244
|
+
const de_JobMetadata = (output, context) => {
|
|
1245
|
+
return smithyClient.take(output, {
|
|
1246
|
+
AddressId: smithyClient.expectString,
|
|
1247
|
+
ClusterId: smithyClient.expectString,
|
|
1248
|
+
CreationDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1249
|
+
DataTransferProgress: smithyClient._json,
|
|
1250
|
+
Description: smithyClient.expectString,
|
|
1251
|
+
DeviceConfiguration: smithyClient._json,
|
|
1252
|
+
ForwardingAddressId: smithyClient.expectString,
|
|
1253
|
+
ImpactLevel: smithyClient.expectString,
|
|
1254
|
+
JobId: smithyClient.expectString,
|
|
1255
|
+
JobLogInfo: smithyClient._json,
|
|
1256
|
+
JobState: smithyClient.expectString,
|
|
1257
|
+
JobType: smithyClient.expectString,
|
|
1258
|
+
KmsKeyARN: smithyClient.expectString,
|
|
1259
|
+
LongTermPricingId: smithyClient.expectString,
|
|
1260
|
+
Notification: smithyClient._json,
|
|
1261
|
+
OnDeviceServiceConfiguration: (_) => de_OnDeviceServiceConfiguration(_),
|
|
1262
|
+
PickupDetails: (_) => de_PickupDetails(_),
|
|
1263
|
+
RemoteManagement: smithyClient.expectString,
|
|
1264
|
+
Resources: smithyClient._json,
|
|
1265
|
+
RoleARN: smithyClient.expectString,
|
|
1266
|
+
ShippingDetails: smithyClient._json,
|
|
1267
|
+
SnowballCapacityPreference: smithyClient.expectString,
|
|
1268
|
+
SnowballId: smithyClient.expectString,
|
|
1269
|
+
SnowballType: smithyClient.expectString,
|
|
1270
|
+
TaxDocuments: smithyClient._json,
|
|
1271
|
+
});
|
|
1869
1272
|
};
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1878
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1879
|
-
];
|
|
1880
|
-
}).s("AWSIESnowballJobManagementService", "ListCompatibleImages", {}).n("SnowballClient", "ListCompatibleImagesCommand").f(void 0, void 0).ser(se_ListCompatibleImagesCommand).de(de_ListCompatibleImagesCommand).build() {
|
|
1881
|
-
static {
|
|
1882
|
-
__name(this, "ListCompatibleImagesCommand");
|
|
1883
|
-
}
|
|
1273
|
+
const de_JobMetadataList = (output, context) => {
|
|
1274
|
+
const retVal = (output || [])
|
|
1275
|
+
.filter((e) => e != null)
|
|
1276
|
+
.map((entry) => {
|
|
1277
|
+
return de_JobMetadata(entry);
|
|
1278
|
+
});
|
|
1279
|
+
return retVal;
|
|
1884
1280
|
};
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
var ListJobsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1891
|
-
return [
|
|
1892
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1893
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1894
|
-
];
|
|
1895
|
-
}).s("AWSIESnowballJobManagementService", "ListJobs", {}).n("SnowballClient", "ListJobsCommand").f(void 0, void 0).ser(se_ListJobsCommand).de(de_ListJobsCommand).build() {
|
|
1896
|
-
static {
|
|
1897
|
-
__name(this, "ListJobsCommand");
|
|
1898
|
-
}
|
|
1281
|
+
const de_ListClusterJobsResult = (output, context) => {
|
|
1282
|
+
return smithyClient.take(output, {
|
|
1283
|
+
JobListEntries: (_) => de_JobListEntryList(_),
|
|
1284
|
+
NextToken: smithyClient.expectString,
|
|
1285
|
+
});
|
|
1899
1286
|
};
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
var ListLongTermPricingCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1906
|
-
return [
|
|
1907
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1908
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1909
|
-
];
|
|
1910
|
-
}).s("AWSIESnowballJobManagementService", "ListLongTermPricing", {}).n("SnowballClient", "ListLongTermPricingCommand").f(void 0, void 0).ser(se_ListLongTermPricingCommand).de(de_ListLongTermPricingCommand).build() {
|
|
1911
|
-
static {
|
|
1912
|
-
__name(this, "ListLongTermPricingCommand");
|
|
1913
|
-
}
|
|
1287
|
+
const de_ListClustersResult = (output, context) => {
|
|
1288
|
+
return smithyClient.take(output, {
|
|
1289
|
+
ClusterListEntries: (_) => de_ClusterListEntryList(_),
|
|
1290
|
+
NextToken: smithyClient.expectString,
|
|
1291
|
+
});
|
|
1914
1292
|
};
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
})
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1293
|
+
const de_ListJobsResult = (output, context) => {
|
|
1294
|
+
return smithyClient.take(output, {
|
|
1295
|
+
JobListEntries: (_) => de_JobListEntryList(_),
|
|
1296
|
+
NextToken: smithyClient.expectString,
|
|
1297
|
+
});
|
|
1298
|
+
};
|
|
1299
|
+
const de_ListLongTermPricingResult = (output, context) => {
|
|
1300
|
+
return smithyClient.take(output, {
|
|
1301
|
+
LongTermPricingEntries: (_) => de_LongTermPricingEntryList(_),
|
|
1302
|
+
NextToken: smithyClient.expectString,
|
|
1303
|
+
});
|
|
1304
|
+
};
|
|
1305
|
+
const de_LongTermPricingEntryList = (output, context) => {
|
|
1306
|
+
const retVal = (output || [])
|
|
1307
|
+
.filter((e) => e != null)
|
|
1308
|
+
.map((entry) => {
|
|
1309
|
+
return de_LongTermPricingListEntry(entry);
|
|
1310
|
+
});
|
|
1311
|
+
return retVal;
|
|
1312
|
+
};
|
|
1313
|
+
const de_LongTermPricingListEntry = (output, context) => {
|
|
1314
|
+
return smithyClient.take(output, {
|
|
1315
|
+
CurrentActiveJob: smithyClient.expectString,
|
|
1316
|
+
IsLongTermPricingAutoRenew: smithyClient.expectBoolean,
|
|
1317
|
+
JobIds: smithyClient._json,
|
|
1318
|
+
LongTermPricingEndDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1319
|
+
LongTermPricingId: smithyClient.expectString,
|
|
1320
|
+
LongTermPricingStartDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1321
|
+
LongTermPricingStatus: smithyClient.expectString,
|
|
1322
|
+
LongTermPricingType: smithyClient.expectString,
|
|
1323
|
+
ReplacementJob: smithyClient.expectString,
|
|
1324
|
+
SnowballType: smithyClient.expectString,
|
|
1325
|
+
});
|
|
1326
|
+
};
|
|
1327
|
+
const de_OnDeviceServiceConfiguration = (output, context) => {
|
|
1328
|
+
return smithyClient.take(output, {
|
|
1329
|
+
EKSOnDeviceService: smithyClient._json,
|
|
1330
|
+
NFSOnDeviceService: smithyClient._json,
|
|
1331
|
+
S3OnDeviceService: (_) => de_S3OnDeviceServiceConfiguration(_),
|
|
1332
|
+
TGWOnDeviceService: smithyClient._json,
|
|
1333
|
+
});
|
|
1334
|
+
};
|
|
1335
|
+
const de_PickupDetails = (output, context) => {
|
|
1336
|
+
return smithyClient.take(output, {
|
|
1337
|
+
DevicePickupId: smithyClient.expectString,
|
|
1338
|
+
Email: smithyClient.expectString,
|
|
1339
|
+
IdentificationExpirationDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1340
|
+
IdentificationIssuingOrg: smithyClient.expectString,
|
|
1341
|
+
IdentificationNumber: smithyClient.expectString,
|
|
1342
|
+
Name: smithyClient.expectString,
|
|
1343
|
+
PhoneNumber: smithyClient.expectString,
|
|
1344
|
+
});
|
|
1345
|
+
};
|
|
1346
|
+
const de_S3OnDeviceServiceConfiguration = (output, context) => {
|
|
1347
|
+
return smithyClient.take(output, {
|
|
1348
|
+
FaultTolerance: smithyClient.expectInt32,
|
|
1349
|
+
ServiceSize: smithyClient.expectInt32,
|
|
1350
|
+
StorageLimit: smithyClient.limitedParseDouble,
|
|
1351
|
+
StorageUnit: smithyClient.expectString,
|
|
1352
|
+
});
|
|
1353
|
+
};
|
|
1354
|
+
const deserializeMetadata = (output) => ({
|
|
1355
|
+
httpStatusCode: output.statusCode,
|
|
1356
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1357
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1358
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1359
|
+
});
|
|
1360
|
+
const throwDefaultError = smithyClient.withBaseException(SnowballServiceException);
|
|
1361
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1362
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1363
|
+
const contents = {
|
|
1364
|
+
protocol,
|
|
1365
|
+
hostname,
|
|
1366
|
+
port,
|
|
1367
|
+
method: "POST",
|
|
1368
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1369
|
+
headers,
|
|
1370
|
+
};
|
|
1371
|
+
if (body !== undefined) {
|
|
1372
|
+
contents.body = body;
|
|
1373
|
+
}
|
|
1374
|
+
return new protocolHttp.HttpRequest(contents);
|
|
1929
1375
|
};
|
|
1376
|
+
function sharedHeaders(operation) {
|
|
1377
|
+
return {
|
|
1378
|
+
"content-type": "application/x-amz-json-1.1",
|
|
1379
|
+
"x-amz-target": `AWSIESnowballJobManagementService.${operation}`,
|
|
1380
|
+
};
|
|
1381
|
+
}
|
|
1930
1382
|
|
|
1931
|
-
|
|
1383
|
+
class CancelClusterCommand extends smithyClient.Command
|
|
1384
|
+
.classBuilder()
|
|
1385
|
+
.ep(commonParams)
|
|
1386
|
+
.m(function (Command, cs, config, o) {
|
|
1387
|
+
return [
|
|
1388
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1389
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1390
|
+
];
|
|
1391
|
+
})
|
|
1392
|
+
.s("AWSIESnowballJobManagementService", "CancelCluster", {})
|
|
1393
|
+
.n("SnowballClient", "CancelClusterCommand")
|
|
1394
|
+
.f(void 0, void 0)
|
|
1395
|
+
.ser(se_CancelClusterCommand)
|
|
1396
|
+
.de(de_CancelClusterCommand)
|
|
1397
|
+
.build() {
|
|
1398
|
+
}
|
|
1932
1399
|
|
|
1400
|
+
class CancelJobCommand extends smithyClient.Command
|
|
1401
|
+
.classBuilder()
|
|
1402
|
+
.ep(commonParams)
|
|
1403
|
+
.m(function (Command, cs, config, o) {
|
|
1404
|
+
return [
|
|
1405
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1406
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1407
|
+
];
|
|
1408
|
+
})
|
|
1409
|
+
.s("AWSIESnowballJobManagementService", "CancelJob", {})
|
|
1410
|
+
.n("SnowballClient", "CancelJobCommand")
|
|
1411
|
+
.f(void 0, void 0)
|
|
1412
|
+
.ser(se_CancelJobCommand)
|
|
1413
|
+
.de(de_CancelJobCommand)
|
|
1414
|
+
.build() {
|
|
1415
|
+
}
|
|
1933
1416
|
|
|
1417
|
+
class CreateAddressCommand extends smithyClient.Command
|
|
1418
|
+
.classBuilder()
|
|
1419
|
+
.ep(commonParams)
|
|
1420
|
+
.m(function (Command, cs, config, o) {
|
|
1421
|
+
return [
|
|
1422
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1423
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1424
|
+
];
|
|
1425
|
+
})
|
|
1426
|
+
.s("AWSIESnowballJobManagementService", "CreateAddress", {})
|
|
1427
|
+
.n("SnowballClient", "CreateAddressCommand")
|
|
1428
|
+
.f(void 0, void 0)
|
|
1429
|
+
.ser(se_CreateAddressCommand)
|
|
1430
|
+
.de(de_CreateAddressCommand)
|
|
1431
|
+
.build() {
|
|
1432
|
+
}
|
|
1934
1433
|
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
(
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
}
|
|
1434
|
+
class CreateClusterCommand extends smithyClient.Command
|
|
1435
|
+
.classBuilder()
|
|
1436
|
+
.ep(commonParams)
|
|
1437
|
+
.m(function (Command, cs, config, o) {
|
|
1438
|
+
return [
|
|
1439
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1440
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1441
|
+
];
|
|
1442
|
+
})
|
|
1443
|
+
.s("AWSIESnowballJobManagementService", "CreateCluster", {})
|
|
1444
|
+
.n("SnowballClient", "CreateClusterCommand")
|
|
1445
|
+
.f(void 0, void 0)
|
|
1446
|
+
.ser(se_CreateClusterCommand)
|
|
1447
|
+
.de(de_CreateClusterCommand)
|
|
1448
|
+
.build() {
|
|
1449
|
+
}
|
|
1945
1450
|
|
|
1946
|
-
|
|
1451
|
+
class CreateJobCommand extends smithyClient.Command
|
|
1452
|
+
.classBuilder()
|
|
1453
|
+
.ep(commonParams)
|
|
1454
|
+
.m(function (Command, cs, config, o) {
|
|
1455
|
+
return [
|
|
1456
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1457
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1458
|
+
];
|
|
1459
|
+
})
|
|
1460
|
+
.s("AWSIESnowballJobManagementService", "CreateJob", {})
|
|
1461
|
+
.n("SnowballClient", "CreateJobCommand")
|
|
1462
|
+
.f(CreateJobRequestFilterSensitiveLog, void 0)
|
|
1463
|
+
.ser(se_CreateJobCommand)
|
|
1464
|
+
.de(de_CreateJobCommand)
|
|
1465
|
+
.build() {
|
|
1466
|
+
}
|
|
1947
1467
|
|
|
1468
|
+
class CreateLongTermPricingCommand extends smithyClient.Command
|
|
1469
|
+
.classBuilder()
|
|
1470
|
+
.ep(commonParams)
|
|
1471
|
+
.m(function (Command, cs, config, o) {
|
|
1472
|
+
return [
|
|
1473
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1474
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1475
|
+
];
|
|
1476
|
+
})
|
|
1477
|
+
.s("AWSIESnowballJobManagementService", "CreateLongTermPricing", {})
|
|
1478
|
+
.n("SnowballClient", "CreateLongTermPricingCommand")
|
|
1479
|
+
.f(void 0, void 0)
|
|
1480
|
+
.ser(se_CreateLongTermPricingCommand)
|
|
1481
|
+
.de(de_CreateLongTermPricingCommand)
|
|
1482
|
+
.build() {
|
|
1483
|
+
}
|
|
1948
1484
|
|
|
1485
|
+
class CreateReturnShippingLabelCommand extends smithyClient.Command
|
|
1486
|
+
.classBuilder()
|
|
1487
|
+
.ep(commonParams)
|
|
1488
|
+
.m(function (Command, cs, config, o) {
|
|
1489
|
+
return [
|
|
1490
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1491
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1492
|
+
];
|
|
1493
|
+
})
|
|
1494
|
+
.s("AWSIESnowballJobManagementService", "CreateReturnShippingLabel", {})
|
|
1495
|
+
.n("SnowballClient", "CreateReturnShippingLabelCommand")
|
|
1496
|
+
.f(void 0, void 0)
|
|
1497
|
+
.ser(se_CreateReturnShippingLabelCommand)
|
|
1498
|
+
.de(de_CreateReturnShippingLabelCommand)
|
|
1499
|
+
.build() {
|
|
1500
|
+
}
|
|
1949
1501
|
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
(
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
}
|
|
1502
|
+
class DescribeAddressCommand extends smithyClient.Command
|
|
1503
|
+
.classBuilder()
|
|
1504
|
+
.ep(commonParams)
|
|
1505
|
+
.m(function (Command, cs, config, o) {
|
|
1506
|
+
return [
|
|
1507
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1508
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1509
|
+
];
|
|
1510
|
+
})
|
|
1511
|
+
.s("AWSIESnowballJobManagementService", "DescribeAddress", {})
|
|
1512
|
+
.n("SnowballClient", "DescribeAddressCommand")
|
|
1513
|
+
.f(void 0, void 0)
|
|
1514
|
+
.ser(se_DescribeAddressCommand)
|
|
1515
|
+
.de(de_DescribeAddressCommand)
|
|
1516
|
+
.build() {
|
|
1517
|
+
}
|
|
1960
1518
|
|
|
1961
|
-
|
|
1519
|
+
class DescribeAddressesCommand extends smithyClient.Command
|
|
1520
|
+
.classBuilder()
|
|
1521
|
+
.ep(commonParams)
|
|
1522
|
+
.m(function (Command, cs, config, o) {
|
|
1523
|
+
return [
|
|
1524
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1525
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1526
|
+
];
|
|
1527
|
+
})
|
|
1528
|
+
.s("AWSIESnowballJobManagementService", "DescribeAddresses", {})
|
|
1529
|
+
.n("SnowballClient", "DescribeAddressesCommand")
|
|
1530
|
+
.f(void 0, void 0)
|
|
1531
|
+
.ser(se_DescribeAddressesCommand)
|
|
1532
|
+
.de(de_DescribeAddressesCommand)
|
|
1533
|
+
.build() {
|
|
1534
|
+
}
|
|
1962
1535
|
|
|
1536
|
+
class DescribeClusterCommand extends smithyClient.Command
|
|
1537
|
+
.classBuilder()
|
|
1538
|
+
.ep(commonParams)
|
|
1539
|
+
.m(function (Command, cs, config, o) {
|
|
1540
|
+
return [
|
|
1541
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1542
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1543
|
+
];
|
|
1544
|
+
})
|
|
1545
|
+
.s("AWSIESnowballJobManagementService", "DescribeCluster", {})
|
|
1546
|
+
.n("SnowballClient", "DescribeClusterCommand")
|
|
1547
|
+
.f(void 0, void 0)
|
|
1548
|
+
.ser(se_DescribeClusterCommand)
|
|
1549
|
+
.de(de_DescribeClusterCommand)
|
|
1550
|
+
.build() {
|
|
1551
|
+
}
|
|
1963
1552
|
|
|
1553
|
+
class DescribeJobCommand extends smithyClient.Command
|
|
1554
|
+
.classBuilder()
|
|
1555
|
+
.ep(commonParams)
|
|
1556
|
+
.m(function (Command, cs, config, o) {
|
|
1557
|
+
return [
|
|
1558
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1559
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1560
|
+
];
|
|
1561
|
+
})
|
|
1562
|
+
.s("AWSIESnowballJobManagementService", "DescribeJob", {})
|
|
1563
|
+
.n("SnowballClient", "DescribeJobCommand")
|
|
1564
|
+
.f(void 0, DescribeJobResultFilterSensitiveLog)
|
|
1565
|
+
.ser(se_DescribeJobCommand)
|
|
1566
|
+
.de(de_DescribeJobCommand)
|
|
1567
|
+
.build() {
|
|
1568
|
+
}
|
|
1964
1569
|
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
(
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
}
|
|
1570
|
+
class DescribeReturnShippingLabelCommand extends smithyClient.Command
|
|
1571
|
+
.classBuilder()
|
|
1572
|
+
.ep(commonParams)
|
|
1573
|
+
.m(function (Command, cs, config, o) {
|
|
1574
|
+
return [
|
|
1575
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1576
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1577
|
+
];
|
|
1578
|
+
})
|
|
1579
|
+
.s("AWSIESnowballJobManagementService", "DescribeReturnShippingLabel", {})
|
|
1580
|
+
.n("SnowballClient", "DescribeReturnShippingLabelCommand")
|
|
1581
|
+
.f(void 0, void 0)
|
|
1582
|
+
.ser(se_DescribeReturnShippingLabelCommand)
|
|
1583
|
+
.de(de_DescribeReturnShippingLabelCommand)
|
|
1584
|
+
.build() {
|
|
1585
|
+
}
|
|
1975
1586
|
|
|
1976
|
-
|
|
1587
|
+
class GetJobManifestCommand extends smithyClient.Command
|
|
1588
|
+
.classBuilder()
|
|
1589
|
+
.ep(commonParams)
|
|
1590
|
+
.m(function (Command, cs, config, o) {
|
|
1591
|
+
return [
|
|
1592
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1593
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1594
|
+
];
|
|
1595
|
+
})
|
|
1596
|
+
.s("AWSIESnowballJobManagementService", "GetJobManifest", {})
|
|
1597
|
+
.n("SnowballClient", "GetJobManifestCommand")
|
|
1598
|
+
.f(void 0, void 0)
|
|
1599
|
+
.ser(se_GetJobManifestCommand)
|
|
1600
|
+
.de(de_GetJobManifestCommand)
|
|
1601
|
+
.build() {
|
|
1602
|
+
}
|
|
1977
1603
|
|
|
1604
|
+
class GetJobUnlockCodeCommand extends smithyClient.Command
|
|
1605
|
+
.classBuilder()
|
|
1606
|
+
.ep(commonParams)
|
|
1607
|
+
.m(function (Command, cs, config, o) {
|
|
1608
|
+
return [
|
|
1609
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1610
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1611
|
+
];
|
|
1612
|
+
})
|
|
1613
|
+
.s("AWSIESnowballJobManagementService", "GetJobUnlockCode", {})
|
|
1614
|
+
.n("SnowballClient", "GetJobUnlockCodeCommand")
|
|
1615
|
+
.f(void 0, void 0)
|
|
1616
|
+
.ser(se_GetJobUnlockCodeCommand)
|
|
1617
|
+
.de(de_GetJobUnlockCodeCommand)
|
|
1618
|
+
.build() {
|
|
1619
|
+
}
|
|
1978
1620
|
|
|
1621
|
+
class GetSnowballUsageCommand extends smithyClient.Command
|
|
1622
|
+
.classBuilder()
|
|
1623
|
+
.ep(commonParams)
|
|
1624
|
+
.m(function (Command, cs, config, o) {
|
|
1625
|
+
return [
|
|
1626
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1627
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1628
|
+
];
|
|
1629
|
+
})
|
|
1630
|
+
.s("AWSIESnowballJobManagementService", "GetSnowballUsage", {})
|
|
1631
|
+
.n("SnowballClient", "GetSnowballUsageCommand")
|
|
1632
|
+
.f(void 0, void 0)
|
|
1633
|
+
.ser(se_GetSnowballUsageCommand)
|
|
1634
|
+
.de(de_GetSnowballUsageCommand)
|
|
1635
|
+
.build() {
|
|
1636
|
+
}
|
|
1979
1637
|
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
(
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
}
|
|
1638
|
+
class GetSoftwareUpdatesCommand extends smithyClient.Command
|
|
1639
|
+
.classBuilder()
|
|
1640
|
+
.ep(commonParams)
|
|
1641
|
+
.m(function (Command, cs, config, o) {
|
|
1642
|
+
return [
|
|
1643
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1644
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1645
|
+
];
|
|
1646
|
+
})
|
|
1647
|
+
.s("AWSIESnowballJobManagementService", "GetSoftwareUpdates", {})
|
|
1648
|
+
.n("SnowballClient", "GetSoftwareUpdatesCommand")
|
|
1649
|
+
.f(void 0, void 0)
|
|
1650
|
+
.ser(se_GetSoftwareUpdatesCommand)
|
|
1651
|
+
.de(de_GetSoftwareUpdatesCommand)
|
|
1652
|
+
.build() {
|
|
1653
|
+
}
|
|
1990
1654
|
|
|
1991
|
-
|
|
1655
|
+
class ListClusterJobsCommand extends smithyClient.Command
|
|
1656
|
+
.classBuilder()
|
|
1657
|
+
.ep(commonParams)
|
|
1658
|
+
.m(function (Command, cs, config, o) {
|
|
1659
|
+
return [
|
|
1660
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1661
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1662
|
+
];
|
|
1663
|
+
})
|
|
1664
|
+
.s("AWSIESnowballJobManagementService", "ListClusterJobs", {})
|
|
1665
|
+
.n("SnowballClient", "ListClusterJobsCommand")
|
|
1666
|
+
.f(void 0, void 0)
|
|
1667
|
+
.ser(se_ListClusterJobsCommand)
|
|
1668
|
+
.de(de_ListClusterJobsCommand)
|
|
1669
|
+
.build() {
|
|
1670
|
+
}
|
|
1992
1671
|
|
|
1672
|
+
class ListClustersCommand extends smithyClient.Command
|
|
1673
|
+
.classBuilder()
|
|
1674
|
+
.ep(commonParams)
|
|
1675
|
+
.m(function (Command, cs, config, o) {
|
|
1676
|
+
return [
|
|
1677
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1678
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1679
|
+
];
|
|
1680
|
+
})
|
|
1681
|
+
.s("AWSIESnowballJobManagementService", "ListClusters", {})
|
|
1682
|
+
.n("SnowballClient", "ListClustersCommand")
|
|
1683
|
+
.f(void 0, void 0)
|
|
1684
|
+
.ser(se_ListClustersCommand)
|
|
1685
|
+
.de(de_ListClustersCommand)
|
|
1686
|
+
.build() {
|
|
1687
|
+
}
|
|
1993
1688
|
|
|
1689
|
+
class ListCompatibleImagesCommand extends smithyClient.Command
|
|
1690
|
+
.classBuilder()
|
|
1691
|
+
.ep(commonParams)
|
|
1692
|
+
.m(function (Command, cs, config, o) {
|
|
1693
|
+
return [
|
|
1694
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1695
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1696
|
+
];
|
|
1697
|
+
})
|
|
1698
|
+
.s("AWSIESnowballJobManagementService", "ListCompatibleImages", {})
|
|
1699
|
+
.n("SnowballClient", "ListCompatibleImagesCommand")
|
|
1700
|
+
.f(void 0, void 0)
|
|
1701
|
+
.ser(se_ListCompatibleImagesCommand)
|
|
1702
|
+
.de(de_ListCompatibleImagesCommand)
|
|
1703
|
+
.build() {
|
|
1704
|
+
}
|
|
1994
1705
|
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
(
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
}
|
|
1706
|
+
class ListJobsCommand extends smithyClient.Command
|
|
1707
|
+
.classBuilder()
|
|
1708
|
+
.ep(commonParams)
|
|
1709
|
+
.m(function (Command, cs, config, o) {
|
|
1710
|
+
return [
|
|
1711
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1712
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1713
|
+
];
|
|
1714
|
+
})
|
|
1715
|
+
.s("AWSIESnowballJobManagementService", "ListJobs", {})
|
|
1716
|
+
.n("SnowballClient", "ListJobsCommand")
|
|
1717
|
+
.f(void 0, void 0)
|
|
1718
|
+
.ser(se_ListJobsCommand)
|
|
1719
|
+
.de(de_ListJobsCommand)
|
|
1720
|
+
.build() {
|
|
1721
|
+
}
|
|
2005
1722
|
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
GetSnowballUsageCommand,
|
|
2023
|
-
GetSoftwareUpdatesCommand,
|
|
2024
|
-
ListClusterJobsCommand,
|
|
2025
|
-
ListClustersCommand,
|
|
2026
|
-
ListCompatibleImagesCommand,
|
|
2027
|
-
ListJobsCommand,
|
|
2028
|
-
ListLongTermPricingCommand,
|
|
2029
|
-
ListPickupLocationsCommand,
|
|
2030
|
-
ListServiceVersionsCommand,
|
|
2031
|
-
UpdateClusterCommand,
|
|
2032
|
-
UpdateJobCommand,
|
|
2033
|
-
UpdateJobShipmentStateCommand,
|
|
2034
|
-
UpdateLongTermPricingCommand
|
|
2035
|
-
};
|
|
2036
|
-
var Snowball = class extends SnowballClient {
|
|
2037
|
-
static {
|
|
2038
|
-
__name(this, "Snowball");
|
|
2039
|
-
}
|
|
2040
|
-
};
|
|
2041
|
-
(0, import_smithy_client.createAggregatedClient)(commands, Snowball);
|
|
1723
|
+
class ListLongTermPricingCommand extends smithyClient.Command
|
|
1724
|
+
.classBuilder()
|
|
1725
|
+
.ep(commonParams)
|
|
1726
|
+
.m(function (Command, cs, config, o) {
|
|
1727
|
+
return [
|
|
1728
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1729
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1730
|
+
];
|
|
1731
|
+
})
|
|
1732
|
+
.s("AWSIESnowballJobManagementService", "ListLongTermPricing", {})
|
|
1733
|
+
.n("SnowballClient", "ListLongTermPricingCommand")
|
|
1734
|
+
.f(void 0, void 0)
|
|
1735
|
+
.ser(se_ListLongTermPricingCommand)
|
|
1736
|
+
.de(de_ListLongTermPricingCommand)
|
|
1737
|
+
.build() {
|
|
1738
|
+
}
|
|
2042
1739
|
|
|
2043
|
-
|
|
1740
|
+
class ListPickupLocationsCommand extends smithyClient.Command
|
|
1741
|
+
.classBuilder()
|
|
1742
|
+
.ep(commonParams)
|
|
1743
|
+
.m(function (Command, cs, config, o) {
|
|
1744
|
+
return [
|
|
1745
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1746
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1747
|
+
];
|
|
1748
|
+
})
|
|
1749
|
+
.s("AWSIESnowballJobManagementService", "ListPickupLocations", {})
|
|
1750
|
+
.n("SnowballClient", "ListPickupLocationsCommand")
|
|
1751
|
+
.f(void 0, void 0)
|
|
1752
|
+
.ser(se_ListPickupLocationsCommand)
|
|
1753
|
+
.de(de_ListPickupLocationsCommand)
|
|
1754
|
+
.build() {
|
|
1755
|
+
}
|
|
2044
1756
|
|
|
2045
|
-
|
|
1757
|
+
class ListServiceVersionsCommand extends smithyClient.Command
|
|
1758
|
+
.classBuilder()
|
|
1759
|
+
.ep(commonParams)
|
|
1760
|
+
.m(function (Command, cs, config, o) {
|
|
1761
|
+
return [
|
|
1762
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1763
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1764
|
+
];
|
|
1765
|
+
})
|
|
1766
|
+
.s("AWSIESnowballJobManagementService", "ListServiceVersions", {})
|
|
1767
|
+
.n("SnowballClient", "ListServiceVersionsCommand")
|
|
1768
|
+
.f(void 0, void 0)
|
|
1769
|
+
.ser(se_ListServiceVersionsCommand)
|
|
1770
|
+
.de(de_ListServiceVersionsCommand)
|
|
1771
|
+
.build() {
|
|
1772
|
+
}
|
|
2046
1773
|
|
|
2047
|
-
|
|
1774
|
+
class UpdateClusterCommand extends smithyClient.Command
|
|
1775
|
+
.classBuilder()
|
|
1776
|
+
.ep(commonParams)
|
|
1777
|
+
.m(function (Command, cs, config, o) {
|
|
1778
|
+
return [
|
|
1779
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1780
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1781
|
+
];
|
|
1782
|
+
})
|
|
1783
|
+
.s("AWSIESnowballJobManagementService", "UpdateCluster", {})
|
|
1784
|
+
.n("SnowballClient", "UpdateClusterCommand")
|
|
1785
|
+
.f(void 0, void 0)
|
|
1786
|
+
.ser(se_UpdateClusterCommand)
|
|
1787
|
+
.de(de_UpdateClusterCommand)
|
|
1788
|
+
.build() {
|
|
1789
|
+
}
|
|
2048
1790
|
|
|
2049
|
-
|
|
1791
|
+
class UpdateJobCommand extends smithyClient.Command
|
|
1792
|
+
.classBuilder()
|
|
1793
|
+
.ep(commonParams)
|
|
1794
|
+
.m(function (Command, cs, config, o) {
|
|
1795
|
+
return [
|
|
1796
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1797
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1798
|
+
];
|
|
1799
|
+
})
|
|
1800
|
+
.s("AWSIESnowballJobManagementService", "UpdateJob", {})
|
|
1801
|
+
.n("SnowballClient", "UpdateJobCommand")
|
|
1802
|
+
.f(UpdateJobRequestFilterSensitiveLog, void 0)
|
|
1803
|
+
.ser(se_UpdateJobCommand)
|
|
1804
|
+
.de(de_UpdateJobCommand)
|
|
1805
|
+
.build() {
|
|
1806
|
+
}
|
|
2050
1807
|
|
|
2051
|
-
|
|
1808
|
+
class UpdateJobShipmentStateCommand extends smithyClient.Command
|
|
1809
|
+
.classBuilder()
|
|
1810
|
+
.ep(commonParams)
|
|
1811
|
+
.m(function (Command, cs, config, o) {
|
|
1812
|
+
return [
|
|
1813
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1814
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1815
|
+
];
|
|
1816
|
+
})
|
|
1817
|
+
.s("AWSIESnowballJobManagementService", "UpdateJobShipmentState", {})
|
|
1818
|
+
.n("SnowballClient", "UpdateJobShipmentStateCommand")
|
|
1819
|
+
.f(void 0, void 0)
|
|
1820
|
+
.ser(se_UpdateJobShipmentStateCommand)
|
|
1821
|
+
.de(de_UpdateJobShipmentStateCommand)
|
|
1822
|
+
.build() {
|
|
1823
|
+
}
|
|
2052
1824
|
|
|
2053
|
-
|
|
1825
|
+
class UpdateLongTermPricingCommand extends smithyClient.Command
|
|
1826
|
+
.classBuilder()
|
|
1827
|
+
.ep(commonParams)
|
|
1828
|
+
.m(function (Command, cs, config, o) {
|
|
1829
|
+
return [
|
|
1830
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1831
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1832
|
+
];
|
|
1833
|
+
})
|
|
1834
|
+
.s("AWSIESnowballJobManagementService", "UpdateLongTermPricing", {})
|
|
1835
|
+
.n("SnowballClient", "UpdateLongTermPricingCommand")
|
|
1836
|
+
.f(void 0, void 0)
|
|
1837
|
+
.ser(se_UpdateLongTermPricingCommand)
|
|
1838
|
+
.de(de_UpdateLongTermPricingCommand)
|
|
1839
|
+
.build() {
|
|
1840
|
+
}
|
|
2054
1841
|
|
|
2055
|
-
|
|
1842
|
+
const commands = {
|
|
1843
|
+
CancelClusterCommand,
|
|
1844
|
+
CancelJobCommand,
|
|
1845
|
+
CreateAddressCommand,
|
|
1846
|
+
CreateClusterCommand,
|
|
1847
|
+
CreateJobCommand,
|
|
1848
|
+
CreateLongTermPricingCommand,
|
|
1849
|
+
CreateReturnShippingLabelCommand,
|
|
1850
|
+
DescribeAddressCommand,
|
|
1851
|
+
DescribeAddressesCommand,
|
|
1852
|
+
DescribeClusterCommand,
|
|
1853
|
+
DescribeJobCommand,
|
|
1854
|
+
DescribeReturnShippingLabelCommand,
|
|
1855
|
+
GetJobManifestCommand,
|
|
1856
|
+
GetJobUnlockCodeCommand,
|
|
1857
|
+
GetSnowballUsageCommand,
|
|
1858
|
+
GetSoftwareUpdatesCommand,
|
|
1859
|
+
ListClusterJobsCommand,
|
|
1860
|
+
ListClustersCommand,
|
|
1861
|
+
ListCompatibleImagesCommand,
|
|
1862
|
+
ListJobsCommand,
|
|
1863
|
+
ListLongTermPricingCommand,
|
|
1864
|
+
ListPickupLocationsCommand,
|
|
1865
|
+
ListServiceVersionsCommand,
|
|
1866
|
+
UpdateClusterCommand,
|
|
1867
|
+
UpdateJobCommand,
|
|
1868
|
+
UpdateJobShipmentStateCommand,
|
|
1869
|
+
UpdateLongTermPricingCommand,
|
|
1870
|
+
};
|
|
1871
|
+
class Snowball extends SnowballClient {
|
|
1872
|
+
}
|
|
1873
|
+
smithyClient.createAggregatedClient(commands, Snowball);
|
|
2056
1874
|
|
|
2057
|
-
|
|
1875
|
+
const paginateDescribeAddresses = core.createPaginator(SnowballClient, DescribeAddressesCommand, "NextToken", "NextToken", "MaxResults");
|
|
2058
1876
|
|
|
2059
|
-
|
|
1877
|
+
const paginateListClusterJobs = core.createPaginator(SnowballClient, ListClusterJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
2060
1878
|
|
|
2061
|
-
|
|
1879
|
+
const paginateListClusters = core.createPaginator(SnowballClient, ListClustersCommand, "NextToken", "NextToken", "MaxResults");
|
|
2062
1880
|
|
|
2063
|
-
|
|
1881
|
+
const paginateListCompatibleImages = core.createPaginator(SnowballClient, ListCompatibleImagesCommand, "NextToken", "NextToken", "MaxResults");
|
|
2064
1882
|
|
|
2065
|
-
|
|
1883
|
+
const paginateListJobs = core.createPaginator(SnowballClient, ListJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
2066
1884
|
|
|
2067
|
-
|
|
1885
|
+
const paginateListLongTermPricing = core.createPaginator(SnowballClient, ListLongTermPricingCommand, "NextToken", "NextToken", "MaxResults");
|
|
2068
1886
|
|
|
2069
|
-
|
|
2070
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1887
|
+
const paginateListPickupLocations = core.createPaginator(SnowballClient, ListPickupLocationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
2071
1888
|
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
SnowballClient,
|
|
2076
|
-
Snowball,
|
|
2077
|
-
$Command,
|
|
2078
|
-
CancelClusterCommand,
|
|
2079
|
-
CancelJobCommand,
|
|
2080
|
-
CreateAddressCommand,
|
|
2081
|
-
CreateClusterCommand,
|
|
2082
|
-
CreateJobCommand,
|
|
2083
|
-
CreateLongTermPricingCommand,
|
|
2084
|
-
CreateReturnShippingLabelCommand,
|
|
2085
|
-
DescribeAddressCommand,
|
|
2086
|
-
DescribeAddressesCommand,
|
|
2087
|
-
DescribeClusterCommand,
|
|
2088
|
-
DescribeJobCommand,
|
|
2089
|
-
DescribeReturnShippingLabelCommand,
|
|
2090
|
-
GetJobManifestCommand,
|
|
2091
|
-
GetJobUnlockCodeCommand,
|
|
2092
|
-
GetSnowballUsageCommand,
|
|
2093
|
-
GetSoftwareUpdatesCommand,
|
|
2094
|
-
ListClusterJobsCommand,
|
|
2095
|
-
ListClustersCommand,
|
|
2096
|
-
ListCompatibleImagesCommand,
|
|
2097
|
-
ListJobsCommand,
|
|
2098
|
-
ListLongTermPricingCommand,
|
|
2099
|
-
ListPickupLocationsCommand,
|
|
2100
|
-
ListServiceVersionsCommand,
|
|
2101
|
-
UpdateClusterCommand,
|
|
2102
|
-
UpdateJobCommand,
|
|
2103
|
-
UpdateJobShipmentStateCommand,
|
|
2104
|
-
UpdateLongTermPricingCommand,
|
|
2105
|
-
paginateDescribeAddresses,
|
|
2106
|
-
paginateListClusterJobs,
|
|
2107
|
-
paginateListClusters,
|
|
2108
|
-
paginateListCompatibleImages,
|
|
2109
|
-
paginateListJobs,
|
|
2110
|
-
paginateListLongTermPricing,
|
|
2111
|
-
paginateListPickupLocations,
|
|
2112
|
-
AddressType,
|
|
2113
|
-
InvalidJobStateException,
|
|
2114
|
-
InvalidResourceException,
|
|
2115
|
-
KMSRequestFailedException,
|
|
2116
|
-
InvalidAddressException,
|
|
2117
|
-
UnsupportedAddressException,
|
|
2118
|
-
JobType,
|
|
2119
|
-
JobState,
|
|
2120
|
-
StorageUnit,
|
|
2121
|
-
RemoteManagement,
|
|
2122
|
-
DeviceServiceName,
|
|
2123
|
-
TransferOption,
|
|
2124
|
-
ShippingOption,
|
|
2125
|
-
SnowballCapacity,
|
|
2126
|
-
SnowballType,
|
|
2127
|
-
Ec2RequestFailedException,
|
|
2128
|
-
InvalidInputCombinationException,
|
|
2129
|
-
ClusterLimitExceededException,
|
|
2130
|
-
ImpactLevel,
|
|
2131
|
-
LongTermPricingType,
|
|
2132
|
-
ConflictException,
|
|
2133
|
-
ShippingLabelStatus,
|
|
2134
|
-
ReturnShippingLabelAlreadyExistsException,
|
|
2135
|
-
InvalidNextTokenException,
|
|
2136
|
-
ClusterState,
|
|
2137
|
-
ServiceName,
|
|
2138
|
-
ShipmentState,
|
|
2139
|
-
PickupDetailsFilterSensitiveLog,
|
|
2140
|
-
CreateJobRequestFilterSensitiveLog,
|
|
2141
|
-
JobMetadataFilterSensitiveLog,
|
|
2142
|
-
DescribeJobResultFilterSensitiveLog,
|
|
2143
|
-
UpdateJobRequestFilterSensitiveLog
|
|
1889
|
+
Object.defineProperty(exports, "$Command", {
|
|
1890
|
+
enumerable: true,
|
|
1891
|
+
get: function () { return smithyClient.Command; }
|
|
2144
1892
|
});
|
|
2145
|
-
|
|
1893
|
+
Object.defineProperty(exports, "__Client", {
|
|
1894
|
+
enumerable: true,
|
|
1895
|
+
get: function () { return smithyClient.Client; }
|
|
1896
|
+
});
|
|
1897
|
+
exports.AddressType = AddressType;
|
|
1898
|
+
exports.CancelClusterCommand = CancelClusterCommand;
|
|
1899
|
+
exports.CancelJobCommand = CancelJobCommand;
|
|
1900
|
+
exports.ClusterLimitExceededException = ClusterLimitExceededException;
|
|
1901
|
+
exports.ClusterState = ClusterState;
|
|
1902
|
+
exports.ConflictException = ConflictException;
|
|
1903
|
+
exports.CreateAddressCommand = CreateAddressCommand;
|
|
1904
|
+
exports.CreateClusterCommand = CreateClusterCommand;
|
|
1905
|
+
exports.CreateJobCommand = CreateJobCommand;
|
|
1906
|
+
exports.CreateJobRequestFilterSensitiveLog = CreateJobRequestFilterSensitiveLog;
|
|
1907
|
+
exports.CreateLongTermPricingCommand = CreateLongTermPricingCommand;
|
|
1908
|
+
exports.CreateReturnShippingLabelCommand = CreateReturnShippingLabelCommand;
|
|
1909
|
+
exports.DescribeAddressCommand = DescribeAddressCommand;
|
|
1910
|
+
exports.DescribeAddressesCommand = DescribeAddressesCommand;
|
|
1911
|
+
exports.DescribeClusterCommand = DescribeClusterCommand;
|
|
1912
|
+
exports.DescribeJobCommand = DescribeJobCommand;
|
|
1913
|
+
exports.DescribeJobResultFilterSensitiveLog = DescribeJobResultFilterSensitiveLog;
|
|
1914
|
+
exports.DescribeReturnShippingLabelCommand = DescribeReturnShippingLabelCommand;
|
|
1915
|
+
exports.DeviceServiceName = DeviceServiceName;
|
|
1916
|
+
exports.Ec2RequestFailedException = Ec2RequestFailedException;
|
|
1917
|
+
exports.GetJobManifestCommand = GetJobManifestCommand;
|
|
1918
|
+
exports.GetJobUnlockCodeCommand = GetJobUnlockCodeCommand;
|
|
1919
|
+
exports.GetSnowballUsageCommand = GetSnowballUsageCommand;
|
|
1920
|
+
exports.GetSoftwareUpdatesCommand = GetSoftwareUpdatesCommand;
|
|
1921
|
+
exports.ImpactLevel = ImpactLevel;
|
|
1922
|
+
exports.InvalidAddressException = InvalidAddressException;
|
|
1923
|
+
exports.InvalidInputCombinationException = InvalidInputCombinationException;
|
|
1924
|
+
exports.InvalidJobStateException = InvalidJobStateException;
|
|
1925
|
+
exports.InvalidNextTokenException = InvalidNextTokenException;
|
|
1926
|
+
exports.InvalidResourceException = InvalidResourceException;
|
|
1927
|
+
exports.JobMetadataFilterSensitiveLog = JobMetadataFilterSensitiveLog;
|
|
1928
|
+
exports.JobState = JobState;
|
|
1929
|
+
exports.JobType = JobType;
|
|
1930
|
+
exports.KMSRequestFailedException = KMSRequestFailedException;
|
|
1931
|
+
exports.ListClusterJobsCommand = ListClusterJobsCommand;
|
|
1932
|
+
exports.ListClustersCommand = ListClustersCommand;
|
|
1933
|
+
exports.ListCompatibleImagesCommand = ListCompatibleImagesCommand;
|
|
1934
|
+
exports.ListJobsCommand = ListJobsCommand;
|
|
1935
|
+
exports.ListLongTermPricingCommand = ListLongTermPricingCommand;
|
|
1936
|
+
exports.ListPickupLocationsCommand = ListPickupLocationsCommand;
|
|
1937
|
+
exports.ListServiceVersionsCommand = ListServiceVersionsCommand;
|
|
1938
|
+
exports.LongTermPricingType = LongTermPricingType;
|
|
1939
|
+
exports.PickupDetailsFilterSensitiveLog = PickupDetailsFilterSensitiveLog;
|
|
1940
|
+
exports.RemoteManagement = RemoteManagement;
|
|
1941
|
+
exports.ReturnShippingLabelAlreadyExistsException = ReturnShippingLabelAlreadyExistsException;
|
|
1942
|
+
exports.ServiceName = ServiceName;
|
|
1943
|
+
exports.ShipmentState = ShipmentState;
|
|
1944
|
+
exports.ShippingLabelStatus = ShippingLabelStatus;
|
|
1945
|
+
exports.ShippingOption = ShippingOption;
|
|
1946
|
+
exports.Snowball = Snowball;
|
|
1947
|
+
exports.SnowballCapacity = SnowballCapacity;
|
|
1948
|
+
exports.SnowballClient = SnowballClient;
|
|
1949
|
+
exports.SnowballServiceException = SnowballServiceException;
|
|
1950
|
+
exports.SnowballType = SnowballType;
|
|
1951
|
+
exports.StorageUnit = StorageUnit;
|
|
1952
|
+
exports.TransferOption = TransferOption;
|
|
1953
|
+
exports.UnsupportedAddressException = UnsupportedAddressException;
|
|
1954
|
+
exports.UpdateClusterCommand = UpdateClusterCommand;
|
|
1955
|
+
exports.UpdateJobCommand = UpdateJobCommand;
|
|
1956
|
+
exports.UpdateJobRequestFilterSensitiveLog = UpdateJobRequestFilterSensitiveLog;
|
|
1957
|
+
exports.UpdateJobShipmentStateCommand = UpdateJobShipmentStateCommand;
|
|
1958
|
+
exports.UpdateLongTermPricingCommand = UpdateLongTermPricingCommand;
|
|
1959
|
+
exports.paginateDescribeAddresses = paginateDescribeAddresses;
|
|
1960
|
+
exports.paginateListClusterJobs = paginateListClusterJobs;
|
|
1961
|
+
exports.paginateListClusters = paginateListClusters;
|
|
1962
|
+
exports.paginateListCompatibleImages = paginateListCompatibleImages;
|
|
1963
|
+
exports.paginateListJobs = paginateListJobs;
|
|
1964
|
+
exports.paginateListLongTermPricing = paginateListLongTermPricing;
|
|
1965
|
+
exports.paginateListPickupLocations = paginateListPickupLocations;
|