@aws-sdk/client-snow-device-management 3.490.0 → 3.496.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/SnowDeviceManagement.js +1 -37
- package/dist-cjs/SnowDeviceManagementClient.js +1 -43
- package/dist-cjs/commands/CancelTaskCommand.js +1 -28
- package/dist-cjs/commands/CreateTaskCommand.js +1 -28
- package/dist-cjs/commands/DescribeDeviceCommand.js +1 -28
- package/dist-cjs/commands/DescribeDeviceEc2InstancesCommand.js +1 -28
- package/dist-cjs/commands/DescribeExecutionCommand.js +1 -28
- package/dist-cjs/commands/DescribeTaskCommand.js +1 -28
- package/dist-cjs/commands/ListDeviceResourcesCommand.js +1 -28
- package/dist-cjs/commands/ListDevicesCommand.js +1 -28
- package/dist-cjs/commands/ListExecutionsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListTasksCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -16
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +1566 -11
- package/dist-cjs/models/SnowDeviceManagementServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -140
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListDeviceResourcesPaginator.js +1 -7
- package/dist-cjs/pagination/ListDevicesPaginator.js +1 -7
- package/dist-cjs/pagination/ListExecutionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListTasksPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -8
- package/dist-cjs/protocols/Aws_restJson1.js +1 -969
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,1567 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
AttachmentStatus: () => AttachmentStatus,
|
|
26
|
+
CancelTaskCommand: () => CancelTaskCommand,
|
|
27
|
+
Command: () => Command,
|
|
28
|
+
CreateTaskCommand: () => CreateTaskCommand,
|
|
29
|
+
DescribeDeviceCommand: () => DescribeDeviceCommand,
|
|
30
|
+
DescribeDeviceEc2InstancesCommand: () => DescribeDeviceEc2InstancesCommand,
|
|
31
|
+
DescribeExecutionCommand: () => DescribeExecutionCommand,
|
|
32
|
+
DescribeTaskCommand: () => DescribeTaskCommand,
|
|
33
|
+
ExecutionState: () => ExecutionState,
|
|
34
|
+
InstanceStateName: () => InstanceStateName,
|
|
35
|
+
InternalServerException: () => InternalServerException,
|
|
36
|
+
IpAddressAssignment: () => IpAddressAssignment,
|
|
37
|
+
ListDeviceResourcesCommand: () => ListDeviceResourcesCommand,
|
|
38
|
+
ListDevicesCommand: () => ListDevicesCommand,
|
|
39
|
+
ListExecutionsCommand: () => ListExecutionsCommand,
|
|
40
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
41
|
+
ListTasksCommand: () => ListTasksCommand,
|
|
42
|
+
PhysicalConnectorType: () => PhysicalConnectorType,
|
|
43
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
44
|
+
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
45
|
+
SnowDeviceManagement: () => SnowDeviceManagement,
|
|
46
|
+
SnowDeviceManagementClient: () => SnowDeviceManagementClient,
|
|
47
|
+
SnowDeviceManagementServiceException: () => SnowDeviceManagementServiceException,
|
|
48
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
49
|
+
TaskState: () => TaskState,
|
|
50
|
+
ThrottlingException: () => ThrottlingException,
|
|
51
|
+
UnlockState: () => UnlockState,
|
|
52
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
53
|
+
ValidationException: () => ValidationException,
|
|
54
|
+
__Client: () => import_smithy_client.Client,
|
|
55
|
+
paginateListDeviceResources: () => paginateListDeviceResources,
|
|
56
|
+
paginateListDevices: () => paginateListDevices,
|
|
57
|
+
paginateListExecutions: () => paginateListExecutions,
|
|
58
|
+
paginateListTasks: () => paginateListTasks
|
|
59
|
+
});
|
|
60
|
+
module.exports = __toCommonJS(src_exports);
|
|
61
|
+
|
|
62
|
+
// src/SnowDeviceManagementClient.ts
|
|
63
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
64
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
65
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
66
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
67
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
68
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
69
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
70
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
71
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
// src/endpoint/EndpointParameters.ts
|
|
75
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
76
|
+
return {
|
|
77
|
+
...options,
|
|
78
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
79
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
80
|
+
defaultSigningName: "snow-device-management"
|
|
81
|
+
};
|
|
82
|
+
}, "resolveClientEndpointParameters");
|
|
83
|
+
var commonParams = {
|
|
84
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
85
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
86
|
+
Region: { type: "builtInParams", name: "region" },
|
|
87
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
// src/SnowDeviceManagementClient.ts
|
|
91
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
92
|
+
|
|
93
|
+
// src/runtimeExtensions.ts
|
|
94
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
95
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
96
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
97
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
98
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
99
|
+
const extensionConfiguration = {
|
|
100
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
101
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
102
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
103
|
+
};
|
|
104
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
105
|
+
return {
|
|
106
|
+
...runtimeConfig,
|
|
107
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
108
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
109
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
110
|
+
};
|
|
111
|
+
}, "resolveRuntimeExtensions");
|
|
112
|
+
|
|
113
|
+
// src/SnowDeviceManagementClient.ts
|
|
114
|
+
var _SnowDeviceManagementClient = class _SnowDeviceManagementClient extends import_smithy_client.Client {
|
|
115
|
+
constructor(...[configuration]) {
|
|
116
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
117
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
118
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
119
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
120
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
121
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
122
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
123
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
124
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
125
|
+
super(_config_8);
|
|
126
|
+
this.config = _config_8;
|
|
127
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
128
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
129
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
130
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
131
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
132
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
133
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
137
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
138
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
139
|
+
*/
|
|
140
|
+
destroy() {
|
|
141
|
+
super.destroy();
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
__name(_SnowDeviceManagementClient, "SnowDeviceManagementClient");
|
|
145
|
+
var SnowDeviceManagementClient = _SnowDeviceManagementClient;
|
|
146
|
+
|
|
147
|
+
// src/SnowDeviceManagement.ts
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
// src/commands/CancelTaskCommand.ts
|
|
151
|
+
|
|
152
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
153
|
+
|
|
154
|
+
var import_types = require("@smithy/types");
|
|
155
|
+
|
|
156
|
+
// src/protocols/Aws_restJson1.ts
|
|
157
|
+
var import_core = require("@smithy/core");
|
|
158
|
+
|
|
159
|
+
var import_uuid = require("uuid");
|
|
160
|
+
|
|
161
|
+
// src/models/SnowDeviceManagementServiceException.ts
|
|
162
|
+
|
|
163
|
+
var _SnowDeviceManagementServiceException = class _SnowDeviceManagementServiceException extends import_smithy_client.ServiceException {
|
|
164
|
+
/**
|
|
165
|
+
* @internal
|
|
166
|
+
*/
|
|
167
|
+
constructor(options) {
|
|
168
|
+
super(options);
|
|
169
|
+
Object.setPrototypeOf(this, _SnowDeviceManagementServiceException.prototype);
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
__name(_SnowDeviceManagementServiceException, "SnowDeviceManagementServiceException");
|
|
173
|
+
var SnowDeviceManagementServiceException = _SnowDeviceManagementServiceException;
|
|
174
|
+
|
|
175
|
+
// src/models/models_0.ts
|
|
176
|
+
var _AccessDeniedException = class _AccessDeniedException extends SnowDeviceManagementServiceException {
|
|
177
|
+
/**
|
|
178
|
+
* @internal
|
|
179
|
+
*/
|
|
180
|
+
constructor(opts) {
|
|
181
|
+
super({
|
|
182
|
+
name: "AccessDeniedException",
|
|
183
|
+
$fault: "client",
|
|
184
|
+
...opts
|
|
185
|
+
});
|
|
186
|
+
this.name = "AccessDeniedException";
|
|
187
|
+
this.$fault = "client";
|
|
188
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
__name(_AccessDeniedException, "AccessDeniedException");
|
|
192
|
+
var AccessDeniedException = _AccessDeniedException;
|
|
193
|
+
var AttachmentStatus = {
|
|
194
|
+
ATTACHED: "ATTACHED",
|
|
195
|
+
ATTACHING: "ATTACHING",
|
|
196
|
+
DETACHED: "DETACHED",
|
|
197
|
+
DETACHING: "DETACHING"
|
|
198
|
+
};
|
|
199
|
+
var _InternalServerException = class _InternalServerException extends SnowDeviceManagementServiceException {
|
|
200
|
+
/**
|
|
201
|
+
* @internal
|
|
202
|
+
*/
|
|
203
|
+
constructor(opts) {
|
|
204
|
+
super({
|
|
205
|
+
name: "InternalServerException",
|
|
206
|
+
$fault: "server",
|
|
207
|
+
...opts
|
|
208
|
+
});
|
|
209
|
+
this.name = "InternalServerException";
|
|
210
|
+
this.$fault = "server";
|
|
211
|
+
this.$retryable = {};
|
|
212
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
__name(_InternalServerException, "InternalServerException");
|
|
216
|
+
var InternalServerException = _InternalServerException;
|
|
217
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends SnowDeviceManagementServiceException {
|
|
218
|
+
/**
|
|
219
|
+
* @internal
|
|
220
|
+
*/
|
|
221
|
+
constructor(opts) {
|
|
222
|
+
super({
|
|
223
|
+
name: "ResourceNotFoundException",
|
|
224
|
+
$fault: "client",
|
|
225
|
+
...opts
|
|
226
|
+
});
|
|
227
|
+
this.name = "ResourceNotFoundException";
|
|
228
|
+
this.$fault = "client";
|
|
229
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
233
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
234
|
+
var _ThrottlingException = class _ThrottlingException extends SnowDeviceManagementServiceException {
|
|
235
|
+
/**
|
|
236
|
+
* @internal
|
|
237
|
+
*/
|
|
238
|
+
constructor(opts) {
|
|
239
|
+
super({
|
|
240
|
+
name: "ThrottlingException",
|
|
241
|
+
$fault: "client",
|
|
242
|
+
...opts
|
|
243
|
+
});
|
|
244
|
+
this.name = "ThrottlingException";
|
|
245
|
+
this.$fault = "client";
|
|
246
|
+
this.$retryable = {
|
|
247
|
+
throttling: true
|
|
248
|
+
};
|
|
249
|
+
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
__name(_ThrottlingException, "ThrottlingException");
|
|
253
|
+
var ThrottlingException = _ThrottlingException;
|
|
254
|
+
var _ValidationException = class _ValidationException extends SnowDeviceManagementServiceException {
|
|
255
|
+
/**
|
|
256
|
+
* @internal
|
|
257
|
+
*/
|
|
258
|
+
constructor(opts) {
|
|
259
|
+
super({
|
|
260
|
+
name: "ValidationException",
|
|
261
|
+
$fault: "client",
|
|
262
|
+
...opts
|
|
263
|
+
});
|
|
264
|
+
this.name = "ValidationException";
|
|
265
|
+
this.$fault = "client";
|
|
266
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
267
|
+
}
|
|
268
|
+
};
|
|
269
|
+
__name(_ValidationException, "ValidationException");
|
|
270
|
+
var ValidationException = _ValidationException;
|
|
271
|
+
var Command;
|
|
272
|
+
((Command3) => {
|
|
273
|
+
Command3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
274
|
+
if (value.unlock !== void 0)
|
|
275
|
+
return visitor.unlock(value.unlock);
|
|
276
|
+
if (value.reboot !== void 0)
|
|
277
|
+
return visitor.reboot(value.reboot);
|
|
278
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
279
|
+
}, "visit");
|
|
280
|
+
})(Command || (Command = {}));
|
|
281
|
+
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends SnowDeviceManagementServiceException {
|
|
282
|
+
/**
|
|
283
|
+
* @internal
|
|
284
|
+
*/
|
|
285
|
+
constructor(opts) {
|
|
286
|
+
super({
|
|
287
|
+
name: "ServiceQuotaExceededException",
|
|
288
|
+
$fault: "client",
|
|
289
|
+
...opts
|
|
290
|
+
});
|
|
291
|
+
this.name = "ServiceQuotaExceededException";
|
|
292
|
+
this.$fault = "client";
|
|
293
|
+
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
__name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
|
|
297
|
+
var ServiceQuotaExceededException = _ServiceQuotaExceededException;
|
|
298
|
+
var UnlockState = {
|
|
299
|
+
LOCKED: "LOCKED",
|
|
300
|
+
UNLOCKED: "UNLOCKED",
|
|
301
|
+
UNLOCKING: "UNLOCKING"
|
|
302
|
+
};
|
|
303
|
+
var IpAddressAssignment = {
|
|
304
|
+
DHCP: "DHCP",
|
|
305
|
+
STATIC: "STATIC"
|
|
306
|
+
};
|
|
307
|
+
var PhysicalConnectorType = {
|
|
308
|
+
QSFP: "QSFP",
|
|
309
|
+
RJ45: "RJ45",
|
|
310
|
+
RJ45_2: "RJ45_2",
|
|
311
|
+
SFP_PLUS: "SFP_PLUS",
|
|
312
|
+
WIFI: "WIFI"
|
|
313
|
+
};
|
|
314
|
+
var InstanceStateName = {
|
|
315
|
+
PENDING: "PENDING",
|
|
316
|
+
RUNNING: "RUNNING",
|
|
317
|
+
SHUTTING_DOWN: "SHUTTING_DOWN",
|
|
318
|
+
STOPPED: "STOPPED",
|
|
319
|
+
STOPPING: "STOPPING",
|
|
320
|
+
TERMINATED: "TERMINATED"
|
|
321
|
+
};
|
|
322
|
+
var ExecutionState = {
|
|
323
|
+
CANCELED: "CANCELED",
|
|
324
|
+
FAILED: "FAILED",
|
|
325
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
326
|
+
QUEUED: "QUEUED",
|
|
327
|
+
REJECTED: "REJECTED",
|
|
328
|
+
SUCCEEDED: "SUCCEEDED",
|
|
329
|
+
TIMED_OUT: "TIMED_OUT"
|
|
330
|
+
};
|
|
331
|
+
var TaskState = {
|
|
332
|
+
CANCELED: "CANCELED",
|
|
333
|
+
COMPLETED: "COMPLETED",
|
|
334
|
+
IN_PROGRESS: "IN_PROGRESS"
|
|
335
|
+
};
|
|
336
|
+
|
|
337
|
+
// src/protocols/Aws_restJson1.ts
|
|
338
|
+
var se_CancelTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
339
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
340
|
+
const headers = {};
|
|
341
|
+
b.bp("/task/{taskId}/cancel");
|
|
342
|
+
b.p("taskId", () => input.taskId, "{taskId}", false);
|
|
343
|
+
let body;
|
|
344
|
+
b.m("POST").h(headers).b(body);
|
|
345
|
+
return b.build();
|
|
346
|
+
}, "se_CancelTaskCommand");
|
|
347
|
+
var se_CreateTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
348
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
349
|
+
const headers = {
|
|
350
|
+
"content-type": "application/json"
|
|
351
|
+
};
|
|
352
|
+
b.bp("/task");
|
|
353
|
+
let body;
|
|
354
|
+
body = JSON.stringify(
|
|
355
|
+
(0, import_smithy_client.take)(input, {
|
|
356
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
357
|
+
command: (_) => (0, import_smithy_client._json)(_),
|
|
358
|
+
description: [],
|
|
359
|
+
tags: (_) => (0, import_smithy_client._json)(_),
|
|
360
|
+
targets: (_) => (0, import_smithy_client._json)(_)
|
|
361
|
+
})
|
|
362
|
+
);
|
|
363
|
+
b.m("POST").h(headers).b(body);
|
|
364
|
+
return b.build();
|
|
365
|
+
}, "se_CreateTaskCommand");
|
|
366
|
+
var se_DescribeDeviceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
367
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
368
|
+
const headers = {};
|
|
369
|
+
b.bp("/managed-device/{managedDeviceId}/describe");
|
|
370
|
+
b.p("managedDeviceId", () => input.managedDeviceId, "{managedDeviceId}", false);
|
|
371
|
+
let body;
|
|
372
|
+
b.m("POST").h(headers).b(body);
|
|
373
|
+
return b.build();
|
|
374
|
+
}, "se_DescribeDeviceCommand");
|
|
375
|
+
var se_DescribeDeviceEc2InstancesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
376
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
377
|
+
const headers = {
|
|
378
|
+
"content-type": "application/json"
|
|
379
|
+
};
|
|
380
|
+
b.bp("/managed-device/{managedDeviceId}/resources/ec2/describe");
|
|
381
|
+
b.p("managedDeviceId", () => input.managedDeviceId, "{managedDeviceId}", false);
|
|
382
|
+
let body;
|
|
383
|
+
body = JSON.stringify(
|
|
384
|
+
(0, import_smithy_client.take)(input, {
|
|
385
|
+
instanceIds: (_) => (0, import_smithy_client._json)(_)
|
|
386
|
+
})
|
|
387
|
+
);
|
|
388
|
+
b.m("POST").h(headers).b(body);
|
|
389
|
+
return b.build();
|
|
390
|
+
}, "se_DescribeDeviceEc2InstancesCommand");
|
|
391
|
+
var se_DescribeExecutionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
392
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
393
|
+
const headers = {};
|
|
394
|
+
b.bp("/task/{taskId}/execution/{managedDeviceId}");
|
|
395
|
+
b.p("taskId", () => input.taskId, "{taskId}", false);
|
|
396
|
+
b.p("managedDeviceId", () => input.managedDeviceId, "{managedDeviceId}", false);
|
|
397
|
+
let body;
|
|
398
|
+
b.m("POST").h(headers).b(body);
|
|
399
|
+
return b.build();
|
|
400
|
+
}, "se_DescribeExecutionCommand");
|
|
401
|
+
var se_DescribeTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
402
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
403
|
+
const headers = {};
|
|
404
|
+
b.bp("/task/{taskId}");
|
|
405
|
+
b.p("taskId", () => input.taskId, "{taskId}", false);
|
|
406
|
+
let body;
|
|
407
|
+
b.m("POST").h(headers).b(body);
|
|
408
|
+
return b.build();
|
|
409
|
+
}, "se_DescribeTaskCommand");
|
|
410
|
+
var se_ListDeviceResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
411
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
412
|
+
const headers = {};
|
|
413
|
+
b.bp("/managed-device/{managedDeviceId}/resources");
|
|
414
|
+
b.p("managedDeviceId", () => input.managedDeviceId, "{managedDeviceId}", false);
|
|
415
|
+
const query = (0, import_smithy_client.map)({
|
|
416
|
+
[_t]: [, input[_t]],
|
|
417
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
418
|
+
[_nT]: [, input[_nT]]
|
|
419
|
+
});
|
|
420
|
+
let body;
|
|
421
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
422
|
+
return b.build();
|
|
423
|
+
}, "se_ListDeviceResourcesCommand");
|
|
424
|
+
var se_ListDevicesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
425
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
426
|
+
const headers = {};
|
|
427
|
+
b.bp("/managed-devices");
|
|
428
|
+
const query = (0, import_smithy_client.map)({
|
|
429
|
+
[_jI]: [, input[_jI]],
|
|
430
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
431
|
+
[_nT]: [, input[_nT]]
|
|
432
|
+
});
|
|
433
|
+
let body;
|
|
434
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
435
|
+
return b.build();
|
|
436
|
+
}, "se_ListDevicesCommand");
|
|
437
|
+
var se_ListExecutionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
438
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
439
|
+
const headers = {};
|
|
440
|
+
b.bp("/executions");
|
|
441
|
+
const query = (0, import_smithy_client.map)({
|
|
442
|
+
[_tI]: [, (0, import_smithy_client.expectNonNull)(input[_tI], `taskId`)],
|
|
443
|
+
[_s]: [, input[_s]],
|
|
444
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
445
|
+
[_nT]: [, input[_nT]]
|
|
446
|
+
});
|
|
447
|
+
let body;
|
|
448
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
449
|
+
return b.build();
|
|
450
|
+
}, "se_ListExecutionsCommand");
|
|
451
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
452
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
453
|
+
const headers = {};
|
|
454
|
+
b.bp("/tags/{resourceArn}");
|
|
455
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
456
|
+
let body;
|
|
457
|
+
b.m("GET").h(headers).b(body);
|
|
458
|
+
return b.build();
|
|
459
|
+
}, "se_ListTagsForResourceCommand");
|
|
460
|
+
var se_ListTasksCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
461
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
462
|
+
const headers = {};
|
|
463
|
+
b.bp("/tasks");
|
|
464
|
+
const query = (0, import_smithy_client.map)({
|
|
465
|
+
[_s]: [, input[_s]],
|
|
466
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
467
|
+
[_nT]: [, input[_nT]]
|
|
468
|
+
});
|
|
469
|
+
let body;
|
|
470
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
471
|
+
return b.build();
|
|
472
|
+
}, "se_ListTasksCommand");
|
|
473
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
474
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
475
|
+
const headers = {
|
|
476
|
+
"content-type": "application/json"
|
|
477
|
+
};
|
|
478
|
+
b.bp("/tags/{resourceArn}");
|
|
479
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
480
|
+
let body;
|
|
481
|
+
body = JSON.stringify(
|
|
482
|
+
(0, import_smithy_client.take)(input, {
|
|
483
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
484
|
+
})
|
|
485
|
+
);
|
|
486
|
+
b.m("POST").h(headers).b(body);
|
|
487
|
+
return b.build();
|
|
488
|
+
}, "se_TagResourceCommand");
|
|
489
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
490
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
491
|
+
const headers = {};
|
|
492
|
+
b.bp("/tags/{resourceArn}");
|
|
493
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
494
|
+
const query = (0, import_smithy_client.map)({
|
|
495
|
+
[_tK]: [
|
|
496
|
+
(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
497
|
+
() => (input[_tK] || []).map((_entry) => _entry)
|
|
498
|
+
]
|
|
499
|
+
});
|
|
500
|
+
let body;
|
|
501
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
502
|
+
return b.build();
|
|
503
|
+
}, "se_UntagResourceCommand");
|
|
504
|
+
var de_CancelTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
505
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
506
|
+
return de_CancelTaskCommandError(output, context);
|
|
507
|
+
}
|
|
508
|
+
const contents = (0, import_smithy_client.map)({
|
|
509
|
+
$metadata: deserializeMetadata(output)
|
|
510
|
+
});
|
|
511
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
512
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
513
|
+
taskId: import_smithy_client.expectString
|
|
514
|
+
});
|
|
515
|
+
Object.assign(contents, doc);
|
|
516
|
+
return contents;
|
|
517
|
+
}, "de_CancelTaskCommand");
|
|
518
|
+
var de_CancelTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
519
|
+
const parsedOutput = {
|
|
520
|
+
...output,
|
|
521
|
+
body: await parseErrorBody(output.body, context)
|
|
522
|
+
};
|
|
523
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
524
|
+
switch (errorCode) {
|
|
525
|
+
case "AccessDeniedException":
|
|
526
|
+
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
527
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
528
|
+
case "InternalServerException":
|
|
529
|
+
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
530
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
531
|
+
case "ResourceNotFoundException":
|
|
532
|
+
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
533
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
534
|
+
case "ThrottlingException":
|
|
535
|
+
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
536
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
537
|
+
case "ValidationException":
|
|
538
|
+
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
539
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
540
|
+
default:
|
|
541
|
+
const parsedBody = parsedOutput.body;
|
|
542
|
+
return throwDefaultError({
|
|
543
|
+
output,
|
|
544
|
+
parsedBody,
|
|
545
|
+
errorCode
|
|
546
|
+
});
|
|
547
|
+
}
|
|
548
|
+
}, "de_CancelTaskCommandError");
|
|
549
|
+
var de_CreateTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
550
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
551
|
+
return de_CreateTaskCommandError(output, context);
|
|
552
|
+
}
|
|
553
|
+
const contents = (0, import_smithy_client.map)({
|
|
554
|
+
$metadata: deserializeMetadata(output)
|
|
555
|
+
});
|
|
556
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
557
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
558
|
+
taskArn: import_smithy_client.expectString,
|
|
559
|
+
taskId: import_smithy_client.expectString
|
|
560
|
+
});
|
|
561
|
+
Object.assign(contents, doc);
|
|
562
|
+
return contents;
|
|
563
|
+
}, "de_CreateTaskCommand");
|
|
564
|
+
var de_CreateTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
565
|
+
const parsedOutput = {
|
|
566
|
+
...output,
|
|
567
|
+
body: await parseErrorBody(output.body, context)
|
|
568
|
+
};
|
|
569
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
570
|
+
switch (errorCode) {
|
|
571
|
+
case "AccessDeniedException":
|
|
572
|
+
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
573
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
574
|
+
case "InternalServerException":
|
|
575
|
+
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
576
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
577
|
+
case "ResourceNotFoundException":
|
|
578
|
+
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
579
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
580
|
+
case "ServiceQuotaExceededException":
|
|
581
|
+
case "com.amazonaws.snowdevicemanagement#ServiceQuotaExceededException":
|
|
582
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
583
|
+
case "ThrottlingException":
|
|
584
|
+
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
585
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
586
|
+
case "ValidationException":
|
|
587
|
+
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
588
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
589
|
+
default:
|
|
590
|
+
const parsedBody = parsedOutput.body;
|
|
591
|
+
return throwDefaultError({
|
|
592
|
+
output,
|
|
593
|
+
parsedBody,
|
|
594
|
+
errorCode
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
}, "de_CreateTaskCommandError");
|
|
598
|
+
var de_DescribeDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
599
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
600
|
+
return de_DescribeDeviceCommandError(output, context);
|
|
601
|
+
}
|
|
602
|
+
const contents = (0, import_smithy_client.map)({
|
|
603
|
+
$metadata: deserializeMetadata(output)
|
|
604
|
+
});
|
|
605
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
606
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
607
|
+
associatedWithJob: import_smithy_client.expectString,
|
|
608
|
+
deviceCapacities: import_smithy_client._json,
|
|
609
|
+
deviceState: import_smithy_client.expectString,
|
|
610
|
+
deviceType: import_smithy_client.expectString,
|
|
611
|
+
lastReachedOutAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
612
|
+
lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
613
|
+
managedDeviceArn: import_smithy_client.expectString,
|
|
614
|
+
managedDeviceId: import_smithy_client.expectString,
|
|
615
|
+
physicalNetworkInterfaces: import_smithy_client._json,
|
|
616
|
+
software: import_smithy_client._json,
|
|
617
|
+
tags: import_smithy_client._json
|
|
618
|
+
});
|
|
619
|
+
Object.assign(contents, doc);
|
|
620
|
+
return contents;
|
|
621
|
+
}, "de_DescribeDeviceCommand");
|
|
622
|
+
var de_DescribeDeviceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
623
|
+
const parsedOutput = {
|
|
624
|
+
...output,
|
|
625
|
+
body: await parseErrorBody(output.body, context)
|
|
626
|
+
};
|
|
627
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
628
|
+
switch (errorCode) {
|
|
629
|
+
case "AccessDeniedException":
|
|
630
|
+
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
631
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
632
|
+
case "InternalServerException":
|
|
633
|
+
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
634
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
635
|
+
case "ResourceNotFoundException":
|
|
636
|
+
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
637
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
638
|
+
case "ThrottlingException":
|
|
639
|
+
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
640
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
641
|
+
case "ValidationException":
|
|
642
|
+
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
643
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
644
|
+
default:
|
|
645
|
+
const parsedBody = parsedOutput.body;
|
|
646
|
+
return throwDefaultError({
|
|
647
|
+
output,
|
|
648
|
+
parsedBody,
|
|
649
|
+
errorCode
|
|
650
|
+
});
|
|
651
|
+
}
|
|
652
|
+
}, "de_DescribeDeviceCommandError");
|
|
653
|
+
var de_DescribeDeviceEc2InstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
654
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
655
|
+
return de_DescribeDeviceEc2InstancesCommandError(output, context);
|
|
656
|
+
}
|
|
657
|
+
const contents = (0, import_smithy_client.map)({
|
|
658
|
+
$metadata: deserializeMetadata(output)
|
|
659
|
+
});
|
|
660
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
661
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
662
|
+
instances: (_) => de_InstanceSummaryList(_, context)
|
|
663
|
+
});
|
|
664
|
+
Object.assign(contents, doc);
|
|
665
|
+
return contents;
|
|
666
|
+
}, "de_DescribeDeviceEc2InstancesCommand");
|
|
667
|
+
var de_DescribeDeviceEc2InstancesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
668
|
+
const parsedOutput = {
|
|
669
|
+
...output,
|
|
670
|
+
body: await parseErrorBody(output.body, context)
|
|
671
|
+
};
|
|
672
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
673
|
+
switch (errorCode) {
|
|
674
|
+
case "AccessDeniedException":
|
|
675
|
+
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
676
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
677
|
+
case "InternalServerException":
|
|
678
|
+
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
679
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
680
|
+
case "ResourceNotFoundException":
|
|
681
|
+
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
682
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
683
|
+
case "ThrottlingException":
|
|
684
|
+
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
685
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
686
|
+
case "ValidationException":
|
|
687
|
+
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
688
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
689
|
+
default:
|
|
690
|
+
const parsedBody = parsedOutput.body;
|
|
691
|
+
return throwDefaultError({
|
|
692
|
+
output,
|
|
693
|
+
parsedBody,
|
|
694
|
+
errorCode
|
|
695
|
+
});
|
|
696
|
+
}
|
|
697
|
+
}, "de_DescribeDeviceEc2InstancesCommandError");
|
|
698
|
+
var de_DescribeExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
699
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
700
|
+
return de_DescribeExecutionCommandError(output, context);
|
|
701
|
+
}
|
|
702
|
+
const contents = (0, import_smithy_client.map)({
|
|
703
|
+
$metadata: deserializeMetadata(output)
|
|
704
|
+
});
|
|
705
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
706
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
707
|
+
executionId: import_smithy_client.expectString,
|
|
708
|
+
lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
709
|
+
managedDeviceId: import_smithy_client.expectString,
|
|
710
|
+
startedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
711
|
+
state: import_smithy_client.expectString,
|
|
712
|
+
taskId: import_smithy_client.expectString
|
|
713
|
+
});
|
|
714
|
+
Object.assign(contents, doc);
|
|
715
|
+
return contents;
|
|
716
|
+
}, "de_DescribeExecutionCommand");
|
|
717
|
+
var de_DescribeExecutionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
718
|
+
const parsedOutput = {
|
|
719
|
+
...output,
|
|
720
|
+
body: await parseErrorBody(output.body, context)
|
|
721
|
+
};
|
|
722
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
723
|
+
switch (errorCode) {
|
|
724
|
+
case "AccessDeniedException":
|
|
725
|
+
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
726
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
727
|
+
case "InternalServerException":
|
|
728
|
+
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
729
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
730
|
+
case "ResourceNotFoundException":
|
|
731
|
+
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
732
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
733
|
+
case "ThrottlingException":
|
|
734
|
+
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
735
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
736
|
+
case "ValidationException":
|
|
737
|
+
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
738
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
739
|
+
default:
|
|
740
|
+
const parsedBody = parsedOutput.body;
|
|
741
|
+
return throwDefaultError({
|
|
742
|
+
output,
|
|
743
|
+
parsedBody,
|
|
744
|
+
errorCode
|
|
745
|
+
});
|
|
746
|
+
}
|
|
747
|
+
}, "de_DescribeExecutionCommandError");
|
|
748
|
+
var de_DescribeTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
749
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
750
|
+
return de_DescribeTaskCommandError(output, context);
|
|
751
|
+
}
|
|
752
|
+
const contents = (0, import_smithy_client.map)({
|
|
753
|
+
$metadata: deserializeMetadata(output)
|
|
754
|
+
});
|
|
755
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
756
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
757
|
+
completedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
758
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
759
|
+
description: import_smithy_client.expectString,
|
|
760
|
+
lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
761
|
+
state: import_smithy_client.expectString,
|
|
762
|
+
tags: import_smithy_client._json,
|
|
763
|
+
targets: import_smithy_client._json,
|
|
764
|
+
taskArn: import_smithy_client.expectString,
|
|
765
|
+
taskId: import_smithy_client.expectString
|
|
766
|
+
});
|
|
767
|
+
Object.assign(contents, doc);
|
|
768
|
+
return contents;
|
|
769
|
+
}, "de_DescribeTaskCommand");
|
|
770
|
+
var de_DescribeTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
771
|
+
const parsedOutput = {
|
|
772
|
+
...output,
|
|
773
|
+
body: await parseErrorBody(output.body, context)
|
|
774
|
+
};
|
|
775
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
776
|
+
switch (errorCode) {
|
|
777
|
+
case "AccessDeniedException":
|
|
778
|
+
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
779
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
780
|
+
case "InternalServerException":
|
|
781
|
+
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
782
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
783
|
+
case "ResourceNotFoundException":
|
|
784
|
+
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
785
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
786
|
+
case "ThrottlingException":
|
|
787
|
+
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
788
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
789
|
+
case "ValidationException":
|
|
790
|
+
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
791
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
792
|
+
default:
|
|
793
|
+
const parsedBody = parsedOutput.body;
|
|
794
|
+
return throwDefaultError({
|
|
795
|
+
output,
|
|
796
|
+
parsedBody,
|
|
797
|
+
errorCode
|
|
798
|
+
});
|
|
799
|
+
}
|
|
800
|
+
}, "de_DescribeTaskCommandError");
|
|
801
|
+
var de_ListDeviceResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
802
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
803
|
+
return de_ListDeviceResourcesCommandError(output, context);
|
|
804
|
+
}
|
|
805
|
+
const contents = (0, import_smithy_client.map)({
|
|
806
|
+
$metadata: deserializeMetadata(output)
|
|
807
|
+
});
|
|
808
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
809
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
810
|
+
nextToken: import_smithy_client.expectString,
|
|
811
|
+
resources: import_smithy_client._json
|
|
812
|
+
});
|
|
813
|
+
Object.assign(contents, doc);
|
|
814
|
+
return contents;
|
|
815
|
+
}, "de_ListDeviceResourcesCommand");
|
|
816
|
+
var de_ListDeviceResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
817
|
+
const parsedOutput = {
|
|
818
|
+
...output,
|
|
819
|
+
body: await parseErrorBody(output.body, context)
|
|
820
|
+
};
|
|
821
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
822
|
+
switch (errorCode) {
|
|
823
|
+
case "AccessDeniedException":
|
|
824
|
+
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
825
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
826
|
+
case "InternalServerException":
|
|
827
|
+
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
828
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
829
|
+
case "ResourceNotFoundException":
|
|
830
|
+
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
831
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
832
|
+
case "ThrottlingException":
|
|
833
|
+
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
834
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
835
|
+
case "ValidationException":
|
|
836
|
+
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
837
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
838
|
+
default:
|
|
839
|
+
const parsedBody = parsedOutput.body;
|
|
840
|
+
return throwDefaultError({
|
|
841
|
+
output,
|
|
842
|
+
parsedBody,
|
|
843
|
+
errorCode
|
|
844
|
+
});
|
|
845
|
+
}
|
|
846
|
+
}, "de_ListDeviceResourcesCommandError");
|
|
847
|
+
var de_ListDevicesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
848
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
849
|
+
return de_ListDevicesCommandError(output, context);
|
|
850
|
+
}
|
|
851
|
+
const contents = (0, import_smithy_client.map)({
|
|
852
|
+
$metadata: deserializeMetadata(output)
|
|
853
|
+
});
|
|
854
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
855
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
856
|
+
devices: import_smithy_client._json,
|
|
857
|
+
nextToken: import_smithy_client.expectString
|
|
858
|
+
});
|
|
859
|
+
Object.assign(contents, doc);
|
|
860
|
+
return contents;
|
|
861
|
+
}, "de_ListDevicesCommand");
|
|
862
|
+
var de_ListDevicesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
863
|
+
const parsedOutput = {
|
|
864
|
+
...output,
|
|
865
|
+
body: await parseErrorBody(output.body, context)
|
|
866
|
+
};
|
|
867
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
868
|
+
switch (errorCode) {
|
|
869
|
+
case "AccessDeniedException":
|
|
870
|
+
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
871
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
872
|
+
case "InternalServerException":
|
|
873
|
+
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
874
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
875
|
+
case "ThrottlingException":
|
|
876
|
+
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
877
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
878
|
+
case "ValidationException":
|
|
879
|
+
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
880
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
881
|
+
default:
|
|
882
|
+
const parsedBody = parsedOutput.body;
|
|
883
|
+
return throwDefaultError({
|
|
884
|
+
output,
|
|
885
|
+
parsedBody,
|
|
886
|
+
errorCode
|
|
887
|
+
});
|
|
888
|
+
}
|
|
889
|
+
}, "de_ListDevicesCommandError");
|
|
890
|
+
var de_ListExecutionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
891
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
892
|
+
return de_ListExecutionsCommandError(output, context);
|
|
893
|
+
}
|
|
894
|
+
const contents = (0, import_smithy_client.map)({
|
|
895
|
+
$metadata: deserializeMetadata(output)
|
|
896
|
+
});
|
|
897
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
898
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
899
|
+
executions: import_smithy_client._json,
|
|
900
|
+
nextToken: import_smithy_client.expectString
|
|
901
|
+
});
|
|
902
|
+
Object.assign(contents, doc);
|
|
903
|
+
return contents;
|
|
904
|
+
}, "de_ListExecutionsCommand");
|
|
905
|
+
var de_ListExecutionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
906
|
+
const parsedOutput = {
|
|
907
|
+
...output,
|
|
908
|
+
body: await parseErrorBody(output.body, context)
|
|
909
|
+
};
|
|
910
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
911
|
+
switch (errorCode) {
|
|
912
|
+
case "AccessDeniedException":
|
|
913
|
+
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
914
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
915
|
+
case "InternalServerException":
|
|
916
|
+
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
917
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
918
|
+
case "ResourceNotFoundException":
|
|
919
|
+
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
920
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
921
|
+
case "ThrottlingException":
|
|
922
|
+
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
923
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
924
|
+
case "ValidationException":
|
|
925
|
+
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
926
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
927
|
+
default:
|
|
928
|
+
const parsedBody = parsedOutput.body;
|
|
929
|
+
return throwDefaultError({
|
|
930
|
+
output,
|
|
931
|
+
parsedBody,
|
|
932
|
+
errorCode
|
|
933
|
+
});
|
|
934
|
+
}
|
|
935
|
+
}, "de_ListExecutionsCommandError");
|
|
936
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
937
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
938
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
939
|
+
}
|
|
940
|
+
const contents = (0, import_smithy_client.map)({
|
|
941
|
+
$metadata: deserializeMetadata(output)
|
|
942
|
+
});
|
|
943
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
944
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
945
|
+
tags: import_smithy_client._json
|
|
946
|
+
});
|
|
947
|
+
Object.assign(contents, doc);
|
|
948
|
+
return contents;
|
|
949
|
+
}, "de_ListTagsForResourceCommand");
|
|
950
|
+
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
951
|
+
const parsedOutput = {
|
|
952
|
+
...output,
|
|
953
|
+
body: await parseErrorBody(output.body, context)
|
|
954
|
+
};
|
|
955
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
956
|
+
switch (errorCode) {
|
|
957
|
+
case "InternalServerException":
|
|
958
|
+
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
959
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
960
|
+
case "ResourceNotFoundException":
|
|
961
|
+
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
962
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
963
|
+
case "ValidationException":
|
|
964
|
+
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
965
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
966
|
+
default:
|
|
967
|
+
const parsedBody = parsedOutput.body;
|
|
968
|
+
return throwDefaultError({
|
|
969
|
+
output,
|
|
970
|
+
parsedBody,
|
|
971
|
+
errorCode
|
|
972
|
+
});
|
|
973
|
+
}
|
|
974
|
+
}, "de_ListTagsForResourceCommandError");
|
|
975
|
+
var de_ListTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
976
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
977
|
+
return de_ListTasksCommandError(output, context);
|
|
978
|
+
}
|
|
979
|
+
const contents = (0, import_smithy_client.map)({
|
|
980
|
+
$metadata: deserializeMetadata(output)
|
|
981
|
+
});
|
|
982
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
983
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
984
|
+
nextToken: import_smithy_client.expectString,
|
|
985
|
+
tasks: import_smithy_client._json
|
|
986
|
+
});
|
|
987
|
+
Object.assign(contents, doc);
|
|
988
|
+
return contents;
|
|
989
|
+
}, "de_ListTasksCommand");
|
|
990
|
+
var de_ListTasksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
991
|
+
const parsedOutput = {
|
|
992
|
+
...output,
|
|
993
|
+
body: await parseErrorBody(output.body, context)
|
|
994
|
+
};
|
|
995
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
996
|
+
switch (errorCode) {
|
|
997
|
+
case "AccessDeniedException":
|
|
998
|
+
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
999
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1000
|
+
case "InternalServerException":
|
|
1001
|
+
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
1002
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1003
|
+
case "ThrottlingException":
|
|
1004
|
+
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
1005
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1006
|
+
case "ValidationException":
|
|
1007
|
+
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
1008
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1009
|
+
default:
|
|
1010
|
+
const parsedBody = parsedOutput.body;
|
|
1011
|
+
return throwDefaultError({
|
|
1012
|
+
output,
|
|
1013
|
+
parsedBody,
|
|
1014
|
+
errorCode
|
|
1015
|
+
});
|
|
1016
|
+
}
|
|
1017
|
+
}, "de_ListTasksCommandError");
|
|
1018
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1019
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1020
|
+
return de_TagResourceCommandError(output, context);
|
|
1021
|
+
}
|
|
1022
|
+
const contents = (0, import_smithy_client.map)({
|
|
1023
|
+
$metadata: deserializeMetadata(output)
|
|
1024
|
+
});
|
|
1025
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1026
|
+
return contents;
|
|
1027
|
+
}, "de_TagResourceCommand");
|
|
1028
|
+
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1029
|
+
const parsedOutput = {
|
|
1030
|
+
...output,
|
|
1031
|
+
body: await parseErrorBody(output.body, context)
|
|
1032
|
+
};
|
|
1033
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1034
|
+
switch (errorCode) {
|
|
1035
|
+
case "InternalServerException":
|
|
1036
|
+
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
1037
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1038
|
+
case "ResourceNotFoundException":
|
|
1039
|
+
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
1040
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1041
|
+
case "ValidationException":
|
|
1042
|
+
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
1043
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1044
|
+
default:
|
|
1045
|
+
const parsedBody = parsedOutput.body;
|
|
1046
|
+
return throwDefaultError({
|
|
1047
|
+
output,
|
|
1048
|
+
parsedBody,
|
|
1049
|
+
errorCode
|
|
1050
|
+
});
|
|
1051
|
+
}
|
|
1052
|
+
}, "de_TagResourceCommandError");
|
|
1053
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1054
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1055
|
+
return de_UntagResourceCommandError(output, context);
|
|
1056
|
+
}
|
|
1057
|
+
const contents = (0, import_smithy_client.map)({
|
|
1058
|
+
$metadata: deserializeMetadata(output)
|
|
1059
|
+
});
|
|
1060
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1061
|
+
return contents;
|
|
1062
|
+
}, "de_UntagResourceCommand");
|
|
1063
|
+
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1064
|
+
const parsedOutput = {
|
|
1065
|
+
...output,
|
|
1066
|
+
body: await parseErrorBody(output.body, context)
|
|
1067
|
+
};
|
|
1068
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1069
|
+
switch (errorCode) {
|
|
1070
|
+
case "InternalServerException":
|
|
1071
|
+
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
1072
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1073
|
+
case "ResourceNotFoundException":
|
|
1074
|
+
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
1075
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1076
|
+
case "ValidationException":
|
|
1077
|
+
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
1078
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1079
|
+
default:
|
|
1080
|
+
const parsedBody = parsedOutput.body;
|
|
1081
|
+
return throwDefaultError({
|
|
1082
|
+
output,
|
|
1083
|
+
parsedBody,
|
|
1084
|
+
errorCode
|
|
1085
|
+
});
|
|
1086
|
+
}
|
|
1087
|
+
}, "de_UntagResourceCommandError");
|
|
1088
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(SnowDeviceManagementServiceException);
|
|
1089
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1090
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1091
|
+
const data = parsedOutput.body;
|
|
1092
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1093
|
+
message: import_smithy_client.expectString
|
|
1094
|
+
});
|
|
1095
|
+
Object.assign(contents, doc);
|
|
1096
|
+
const exception = new AccessDeniedException({
|
|
1097
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1098
|
+
...contents
|
|
1099
|
+
});
|
|
1100
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1101
|
+
}, "de_AccessDeniedExceptionRes");
|
|
1102
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1103
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1104
|
+
const data = parsedOutput.body;
|
|
1105
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1106
|
+
message: import_smithy_client.expectString
|
|
1107
|
+
});
|
|
1108
|
+
Object.assign(contents, doc);
|
|
1109
|
+
const exception = new InternalServerException({
|
|
1110
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1111
|
+
...contents
|
|
1112
|
+
});
|
|
1113
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1114
|
+
}, "de_InternalServerExceptionRes");
|
|
1115
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1116
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1117
|
+
const data = parsedOutput.body;
|
|
1118
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1119
|
+
message: import_smithy_client.expectString
|
|
1120
|
+
});
|
|
1121
|
+
Object.assign(contents, doc);
|
|
1122
|
+
const exception = new ResourceNotFoundException({
|
|
1123
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1124
|
+
...contents
|
|
1125
|
+
});
|
|
1126
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1127
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
1128
|
+
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1129
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1130
|
+
const data = parsedOutput.body;
|
|
1131
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1132
|
+
message: import_smithy_client.expectString
|
|
1133
|
+
});
|
|
1134
|
+
Object.assign(contents, doc);
|
|
1135
|
+
const exception = new ServiceQuotaExceededException({
|
|
1136
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1137
|
+
...contents
|
|
1138
|
+
});
|
|
1139
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1140
|
+
}, "de_ServiceQuotaExceededExceptionRes");
|
|
1141
|
+
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1142
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1143
|
+
const data = parsedOutput.body;
|
|
1144
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1145
|
+
message: import_smithy_client.expectString
|
|
1146
|
+
});
|
|
1147
|
+
Object.assign(contents, doc);
|
|
1148
|
+
const exception = new ThrottlingException({
|
|
1149
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1150
|
+
...contents
|
|
1151
|
+
});
|
|
1152
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1153
|
+
}, "de_ThrottlingExceptionRes");
|
|
1154
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1155
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1156
|
+
const data = parsedOutput.body;
|
|
1157
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1158
|
+
message: import_smithy_client.expectString
|
|
1159
|
+
});
|
|
1160
|
+
Object.assign(contents, doc);
|
|
1161
|
+
const exception = new ValidationException({
|
|
1162
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1163
|
+
...contents
|
|
1164
|
+
});
|
|
1165
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1166
|
+
}, "de_ValidationExceptionRes");
|
|
1167
|
+
var de_EbsInstanceBlockDevice = /* @__PURE__ */ __name((output, context) => {
|
|
1168
|
+
return (0, import_smithy_client.take)(output, {
|
|
1169
|
+
attachTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1170
|
+
deleteOnTermination: import_smithy_client.expectBoolean,
|
|
1171
|
+
status: import_smithy_client.expectString,
|
|
1172
|
+
volumeId: import_smithy_client.expectString
|
|
1173
|
+
});
|
|
1174
|
+
}, "de_EbsInstanceBlockDevice");
|
|
1175
|
+
var de_Instance = /* @__PURE__ */ __name((output, context) => {
|
|
1176
|
+
return (0, import_smithy_client.take)(output, {
|
|
1177
|
+
amiLaunchIndex: import_smithy_client.expectInt32,
|
|
1178
|
+
blockDeviceMappings: (_) => de_InstanceBlockDeviceMappingList(_, context),
|
|
1179
|
+
cpuOptions: import_smithy_client._json,
|
|
1180
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1181
|
+
imageId: import_smithy_client.expectString,
|
|
1182
|
+
instanceId: import_smithy_client.expectString,
|
|
1183
|
+
instanceType: import_smithy_client.expectString,
|
|
1184
|
+
privateIpAddress: import_smithy_client.expectString,
|
|
1185
|
+
publicIpAddress: import_smithy_client.expectString,
|
|
1186
|
+
rootDeviceName: import_smithy_client.expectString,
|
|
1187
|
+
securityGroups: import_smithy_client._json,
|
|
1188
|
+
state: import_smithy_client._json,
|
|
1189
|
+
updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
|
|
1190
|
+
});
|
|
1191
|
+
}, "de_Instance");
|
|
1192
|
+
var de_InstanceBlockDeviceMapping = /* @__PURE__ */ __name((output, context) => {
|
|
1193
|
+
return (0, import_smithy_client.take)(output, {
|
|
1194
|
+
deviceName: import_smithy_client.expectString,
|
|
1195
|
+
ebs: (_) => de_EbsInstanceBlockDevice(_, context)
|
|
1196
|
+
});
|
|
1197
|
+
}, "de_InstanceBlockDeviceMapping");
|
|
1198
|
+
var de_InstanceBlockDeviceMappingList = /* @__PURE__ */ __name((output, context) => {
|
|
1199
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1200
|
+
return de_InstanceBlockDeviceMapping(entry, context);
|
|
1201
|
+
});
|
|
1202
|
+
return retVal;
|
|
1203
|
+
}, "de_InstanceBlockDeviceMappingList");
|
|
1204
|
+
var de_InstanceSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1205
|
+
return (0, import_smithy_client.take)(output, {
|
|
1206
|
+
instance: (_) => de_Instance(_, context),
|
|
1207
|
+
lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
|
|
1208
|
+
});
|
|
1209
|
+
}, "de_InstanceSummary");
|
|
1210
|
+
var de_InstanceSummaryList = /* @__PURE__ */ __name((output, context) => {
|
|
1211
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1212
|
+
return de_InstanceSummary(entry, context);
|
|
1213
|
+
});
|
|
1214
|
+
return retVal;
|
|
1215
|
+
}, "de_InstanceSummaryList");
|
|
1216
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1217
|
+
httpStatusCode: output.statusCode,
|
|
1218
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1219
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1220
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
1221
|
+
}), "deserializeMetadata");
|
|
1222
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1223
|
+
var _jI = "jobId";
|
|
1224
|
+
var _mR = "maxResults";
|
|
1225
|
+
var _nT = "nextToken";
|
|
1226
|
+
var _s = "state";
|
|
1227
|
+
var _t = "type";
|
|
1228
|
+
var _tI = "taskId";
|
|
1229
|
+
var _tK = "tagKeys";
|
|
1230
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1231
|
+
if (encoded.length) {
|
|
1232
|
+
return JSON.parse(encoded);
|
|
1233
|
+
}
|
|
1234
|
+
return {};
|
|
1235
|
+
}), "parseBody");
|
|
1236
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1237
|
+
const value = await parseBody(errorBody, context);
|
|
1238
|
+
value.message = value.message ?? value.Message;
|
|
1239
|
+
return value;
|
|
1240
|
+
}, "parseErrorBody");
|
|
1241
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1242
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1243
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1244
|
+
let cleanValue = rawValue;
|
|
1245
|
+
if (typeof cleanValue === "number") {
|
|
1246
|
+
cleanValue = cleanValue.toString();
|
|
1247
|
+
}
|
|
1248
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1249
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1250
|
+
}
|
|
1251
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1252
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1253
|
+
}
|
|
1254
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
1255
|
+
cleanValue = cleanValue.split("#")[1];
|
|
1256
|
+
}
|
|
1257
|
+
return cleanValue;
|
|
1258
|
+
}, "sanitizeErrorCode");
|
|
1259
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1260
|
+
if (headerKey !== void 0) {
|
|
1261
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1262
|
+
}
|
|
1263
|
+
if (data.code !== void 0) {
|
|
1264
|
+
return sanitizeErrorCode(data.code);
|
|
1265
|
+
}
|
|
1266
|
+
if (data["__type"] !== void 0) {
|
|
1267
|
+
return sanitizeErrorCode(data["__type"]);
|
|
1268
|
+
}
|
|
1269
|
+
}, "loadRestJsonErrorCode");
|
|
1270
|
+
|
|
1271
|
+
// src/commands/CancelTaskCommand.ts
|
|
1272
|
+
var _CancelTaskCommand = class _CancelTaskCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1273
|
+
...commonParams
|
|
1274
|
+
}).m(function(Command3, cs, config, o) {
|
|
1275
|
+
return [
|
|
1276
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1277
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
|
|
1278
|
+
];
|
|
1279
|
+
}).s("SnowDeviceManagement", "CancelTask", {}).n("SnowDeviceManagementClient", "CancelTaskCommand").f(void 0, void 0).ser(se_CancelTaskCommand).de(de_CancelTaskCommand).build() {
|
|
1280
|
+
};
|
|
1281
|
+
__name(_CancelTaskCommand, "CancelTaskCommand");
|
|
1282
|
+
var CancelTaskCommand = _CancelTaskCommand;
|
|
1283
|
+
|
|
1284
|
+
// src/commands/CreateTaskCommand.ts
|
|
1285
|
+
|
|
1286
|
+
|
|
1287
|
+
|
|
1288
|
+
|
|
1289
|
+
var _CreateTaskCommand = class _CreateTaskCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1290
|
+
...commonParams
|
|
1291
|
+
}).m(function(Command3, cs, config, o) {
|
|
1292
|
+
return [
|
|
1293
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1294
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
|
|
1295
|
+
];
|
|
1296
|
+
}).s("SnowDeviceManagement", "CreateTask", {}).n("SnowDeviceManagementClient", "CreateTaskCommand").f(void 0, void 0).ser(se_CreateTaskCommand).de(de_CreateTaskCommand).build() {
|
|
1297
|
+
};
|
|
1298
|
+
__name(_CreateTaskCommand, "CreateTaskCommand");
|
|
1299
|
+
var CreateTaskCommand = _CreateTaskCommand;
|
|
1300
|
+
|
|
1301
|
+
// src/commands/DescribeDeviceCommand.ts
|
|
1302
|
+
|
|
1303
|
+
|
|
1304
|
+
|
|
1305
|
+
|
|
1306
|
+
var _DescribeDeviceCommand = class _DescribeDeviceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1307
|
+
...commonParams
|
|
1308
|
+
}).m(function(Command3, cs, config, o) {
|
|
1309
|
+
return [
|
|
1310
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1311
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
|
|
1312
|
+
];
|
|
1313
|
+
}).s("SnowDeviceManagement", "DescribeDevice", {}).n("SnowDeviceManagementClient", "DescribeDeviceCommand").f(void 0, void 0).ser(se_DescribeDeviceCommand).de(de_DescribeDeviceCommand).build() {
|
|
1314
|
+
};
|
|
1315
|
+
__name(_DescribeDeviceCommand, "DescribeDeviceCommand");
|
|
1316
|
+
var DescribeDeviceCommand = _DescribeDeviceCommand;
|
|
1317
|
+
|
|
1318
|
+
// src/commands/DescribeDeviceEc2InstancesCommand.ts
|
|
1319
|
+
|
|
1320
|
+
|
|
1321
|
+
|
|
1322
|
+
|
|
1323
|
+
var _DescribeDeviceEc2InstancesCommand = class _DescribeDeviceEc2InstancesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1324
|
+
...commonParams
|
|
1325
|
+
}).m(function(Command3, cs, config, o) {
|
|
1326
|
+
return [
|
|
1327
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1328
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
|
|
1329
|
+
];
|
|
1330
|
+
}).s("SnowDeviceManagement", "DescribeDeviceEc2Instances", {}).n("SnowDeviceManagementClient", "DescribeDeviceEc2InstancesCommand").f(void 0, void 0).ser(se_DescribeDeviceEc2InstancesCommand).de(de_DescribeDeviceEc2InstancesCommand).build() {
|
|
1331
|
+
};
|
|
1332
|
+
__name(_DescribeDeviceEc2InstancesCommand, "DescribeDeviceEc2InstancesCommand");
|
|
1333
|
+
var DescribeDeviceEc2InstancesCommand = _DescribeDeviceEc2InstancesCommand;
|
|
1334
|
+
|
|
1335
|
+
// src/commands/DescribeExecutionCommand.ts
|
|
1336
|
+
|
|
1337
|
+
|
|
1338
|
+
|
|
1339
|
+
|
|
1340
|
+
var _DescribeExecutionCommand = class _DescribeExecutionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1341
|
+
...commonParams
|
|
1342
|
+
}).m(function(Command3, cs, config, o) {
|
|
1343
|
+
return [
|
|
1344
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1345
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
|
|
1346
|
+
];
|
|
1347
|
+
}).s("SnowDeviceManagement", "DescribeExecution", {}).n("SnowDeviceManagementClient", "DescribeExecutionCommand").f(void 0, void 0).ser(se_DescribeExecutionCommand).de(de_DescribeExecutionCommand).build() {
|
|
1348
|
+
};
|
|
1349
|
+
__name(_DescribeExecutionCommand, "DescribeExecutionCommand");
|
|
1350
|
+
var DescribeExecutionCommand = _DescribeExecutionCommand;
|
|
1351
|
+
|
|
1352
|
+
// src/commands/DescribeTaskCommand.ts
|
|
1353
|
+
|
|
1354
|
+
|
|
1355
|
+
|
|
1356
|
+
|
|
1357
|
+
var _DescribeTaskCommand = class _DescribeTaskCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1358
|
+
...commonParams
|
|
1359
|
+
}).m(function(Command3, cs, config, o) {
|
|
1360
|
+
return [
|
|
1361
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1362
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
|
|
1363
|
+
];
|
|
1364
|
+
}).s("SnowDeviceManagement", "DescribeTask", {}).n("SnowDeviceManagementClient", "DescribeTaskCommand").f(void 0, void 0).ser(se_DescribeTaskCommand).de(de_DescribeTaskCommand).build() {
|
|
1365
|
+
};
|
|
1366
|
+
__name(_DescribeTaskCommand, "DescribeTaskCommand");
|
|
1367
|
+
var DescribeTaskCommand = _DescribeTaskCommand;
|
|
1368
|
+
|
|
1369
|
+
// src/commands/ListDeviceResourcesCommand.ts
|
|
1370
|
+
|
|
1371
|
+
|
|
1372
|
+
|
|
1373
|
+
|
|
1374
|
+
var _ListDeviceResourcesCommand = class _ListDeviceResourcesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1375
|
+
...commonParams
|
|
1376
|
+
}).m(function(Command3, cs, config, o) {
|
|
1377
|
+
return [
|
|
1378
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1379
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
|
|
1380
|
+
];
|
|
1381
|
+
}).s("SnowDeviceManagement", "ListDeviceResources", {}).n("SnowDeviceManagementClient", "ListDeviceResourcesCommand").f(void 0, void 0).ser(se_ListDeviceResourcesCommand).de(de_ListDeviceResourcesCommand).build() {
|
|
1382
|
+
};
|
|
1383
|
+
__name(_ListDeviceResourcesCommand, "ListDeviceResourcesCommand");
|
|
1384
|
+
var ListDeviceResourcesCommand = _ListDeviceResourcesCommand;
|
|
1385
|
+
|
|
1386
|
+
// src/commands/ListDevicesCommand.ts
|
|
1387
|
+
|
|
1388
|
+
|
|
1389
|
+
|
|
1390
|
+
|
|
1391
|
+
var _ListDevicesCommand = class _ListDevicesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1392
|
+
...commonParams
|
|
1393
|
+
}).m(function(Command3, cs, config, o) {
|
|
1394
|
+
return [
|
|
1395
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1396
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
|
|
1397
|
+
];
|
|
1398
|
+
}).s("SnowDeviceManagement", "ListDevices", {}).n("SnowDeviceManagementClient", "ListDevicesCommand").f(void 0, void 0).ser(se_ListDevicesCommand).de(de_ListDevicesCommand).build() {
|
|
1399
|
+
};
|
|
1400
|
+
__name(_ListDevicesCommand, "ListDevicesCommand");
|
|
1401
|
+
var ListDevicesCommand = _ListDevicesCommand;
|
|
1402
|
+
|
|
1403
|
+
// src/commands/ListExecutionsCommand.ts
|
|
1404
|
+
|
|
1405
|
+
|
|
1406
|
+
|
|
1407
|
+
|
|
1408
|
+
var _ListExecutionsCommand = class _ListExecutionsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1409
|
+
...commonParams
|
|
1410
|
+
}).m(function(Command3, cs, config, o) {
|
|
1411
|
+
return [
|
|
1412
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1413
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
|
|
1414
|
+
];
|
|
1415
|
+
}).s("SnowDeviceManagement", "ListExecutions", {}).n("SnowDeviceManagementClient", "ListExecutionsCommand").f(void 0, void 0).ser(se_ListExecutionsCommand).de(de_ListExecutionsCommand).build() {
|
|
1416
|
+
};
|
|
1417
|
+
__name(_ListExecutionsCommand, "ListExecutionsCommand");
|
|
1418
|
+
var ListExecutionsCommand = _ListExecutionsCommand;
|
|
1419
|
+
|
|
1420
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
1421
|
+
|
|
1422
|
+
|
|
1423
|
+
|
|
1424
|
+
|
|
1425
|
+
var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1426
|
+
...commonParams
|
|
1427
|
+
}).m(function(Command3, cs, config, o) {
|
|
1428
|
+
return [
|
|
1429
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1430
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
|
|
1431
|
+
];
|
|
1432
|
+
}).s("SnowDeviceManagement", "ListTagsForResource", {}).n("SnowDeviceManagementClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
1433
|
+
};
|
|
1434
|
+
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
1435
|
+
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
1436
|
+
|
|
1437
|
+
// src/commands/ListTasksCommand.ts
|
|
1438
|
+
|
|
1439
|
+
|
|
1440
|
+
|
|
1441
|
+
|
|
1442
|
+
var _ListTasksCommand = class _ListTasksCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1443
|
+
...commonParams
|
|
1444
|
+
}).m(function(Command3, cs, config, o) {
|
|
1445
|
+
return [
|
|
1446
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1447
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
|
|
1448
|
+
];
|
|
1449
|
+
}).s("SnowDeviceManagement", "ListTasks", {}).n("SnowDeviceManagementClient", "ListTasksCommand").f(void 0, void 0).ser(se_ListTasksCommand).de(de_ListTasksCommand).build() {
|
|
1450
|
+
};
|
|
1451
|
+
__name(_ListTasksCommand, "ListTasksCommand");
|
|
1452
|
+
var ListTasksCommand = _ListTasksCommand;
|
|
1453
|
+
|
|
1454
|
+
// src/commands/TagResourceCommand.ts
|
|
1455
|
+
|
|
1456
|
+
|
|
1457
|
+
|
|
1458
|
+
|
|
1459
|
+
var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1460
|
+
...commonParams
|
|
1461
|
+
}).m(function(Command3, cs, config, o) {
|
|
1462
|
+
return [
|
|
1463
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1464
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
|
|
1465
|
+
];
|
|
1466
|
+
}).s("SnowDeviceManagement", "TagResource", {}).n("SnowDeviceManagementClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
1467
|
+
};
|
|
1468
|
+
__name(_TagResourceCommand, "TagResourceCommand");
|
|
1469
|
+
var TagResourceCommand = _TagResourceCommand;
|
|
1470
|
+
|
|
1471
|
+
// src/commands/UntagResourceCommand.ts
|
|
1472
|
+
|
|
1473
|
+
|
|
1474
|
+
|
|
1475
|
+
|
|
1476
|
+
var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1477
|
+
...commonParams
|
|
1478
|
+
}).m(function(Command3, cs, config, o) {
|
|
1479
|
+
return [
|
|
1480
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1481
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
|
|
1482
|
+
];
|
|
1483
|
+
}).s("SnowDeviceManagement", "UntagResource", {}).n("SnowDeviceManagementClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
1484
|
+
};
|
|
1485
|
+
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
1486
|
+
var UntagResourceCommand = _UntagResourceCommand;
|
|
1487
|
+
|
|
1488
|
+
// src/SnowDeviceManagement.ts
|
|
1489
|
+
var commands = {
|
|
1490
|
+
CancelTaskCommand,
|
|
1491
|
+
CreateTaskCommand,
|
|
1492
|
+
DescribeDeviceCommand,
|
|
1493
|
+
DescribeDeviceEc2InstancesCommand,
|
|
1494
|
+
DescribeExecutionCommand,
|
|
1495
|
+
DescribeTaskCommand,
|
|
1496
|
+
ListDeviceResourcesCommand,
|
|
1497
|
+
ListDevicesCommand,
|
|
1498
|
+
ListExecutionsCommand,
|
|
1499
|
+
ListTagsForResourceCommand,
|
|
1500
|
+
ListTasksCommand,
|
|
1501
|
+
TagResourceCommand,
|
|
1502
|
+
UntagResourceCommand
|
|
1503
|
+
};
|
|
1504
|
+
var _SnowDeviceManagement = class _SnowDeviceManagement extends SnowDeviceManagementClient {
|
|
1505
|
+
};
|
|
1506
|
+
__name(_SnowDeviceManagement, "SnowDeviceManagement");
|
|
1507
|
+
var SnowDeviceManagement = _SnowDeviceManagement;
|
|
1508
|
+
(0, import_smithy_client.createAggregatedClient)(commands, SnowDeviceManagement);
|
|
1509
|
+
|
|
1510
|
+
// src/pagination/ListDeviceResourcesPaginator.ts
|
|
1511
|
+
|
|
1512
|
+
var paginateListDeviceResources = (0, import_core.createPaginator)(SnowDeviceManagementClient, ListDeviceResourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
1513
|
+
|
|
1514
|
+
// src/pagination/ListDevicesPaginator.ts
|
|
1515
|
+
|
|
1516
|
+
var paginateListDevices = (0, import_core.createPaginator)(SnowDeviceManagementClient, ListDevicesCommand, "nextToken", "nextToken", "maxResults");
|
|
1517
|
+
|
|
1518
|
+
// src/pagination/ListExecutionsPaginator.ts
|
|
1519
|
+
|
|
1520
|
+
var paginateListExecutions = (0, import_core.createPaginator)(SnowDeviceManagementClient, ListExecutionsCommand, "nextToken", "nextToken", "maxResults");
|
|
1521
|
+
|
|
1522
|
+
// src/pagination/ListTasksPaginator.ts
|
|
1523
|
+
|
|
1524
|
+
var paginateListTasks = (0, import_core.createPaginator)(SnowDeviceManagementClient, ListTasksCommand, "nextToken", "nextToken", "maxResults");
|
|
1525
|
+
|
|
1526
|
+
// src/index.ts
|
|
1527
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
1528
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1529
|
+
|
|
1530
|
+
0 && (module.exports = {
|
|
1531
|
+
AccessDeniedException,
|
|
1532
|
+
AttachmentStatus,
|
|
1533
|
+
CancelTaskCommand,
|
|
1534
|
+
Command,
|
|
1535
|
+
CreateTaskCommand,
|
|
1536
|
+
DescribeDeviceCommand,
|
|
1537
|
+
DescribeDeviceEc2InstancesCommand,
|
|
1538
|
+
DescribeExecutionCommand,
|
|
1539
|
+
DescribeTaskCommand,
|
|
1540
|
+
ExecutionState,
|
|
1541
|
+
InstanceStateName,
|
|
1542
|
+
InternalServerException,
|
|
1543
|
+
IpAddressAssignment,
|
|
1544
|
+
ListDeviceResourcesCommand,
|
|
1545
|
+
ListDevicesCommand,
|
|
1546
|
+
ListExecutionsCommand,
|
|
1547
|
+
ListTagsForResourceCommand,
|
|
1548
|
+
ListTasksCommand,
|
|
1549
|
+
PhysicalConnectorType,
|
|
1550
|
+
ResourceNotFoundException,
|
|
1551
|
+
ServiceQuotaExceededException,
|
|
1552
|
+
SnowDeviceManagement,
|
|
1553
|
+
SnowDeviceManagementClient,
|
|
1554
|
+
SnowDeviceManagementServiceException,
|
|
1555
|
+
TagResourceCommand,
|
|
1556
|
+
TaskState,
|
|
1557
|
+
ThrottlingException,
|
|
1558
|
+
UnlockState,
|
|
1559
|
+
UntagResourceCommand,
|
|
1560
|
+
ValidationException,
|
|
1561
|
+
__Client,
|
|
1562
|
+
paginateListDeviceResources,
|
|
1563
|
+
paginateListDevices,
|
|
1564
|
+
paginateListExecutions,
|
|
1565
|
+
paginateListTasks
|
|
1566
|
+
});
|
|
1567
|
+
|