@aws-sdk/client-snow-device-management 3.1075.0 → 3.1076.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 CHANGED
@@ -1,21 +1,57 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultSnowDeviceManagementHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { CancelTask$, CreateTask$, DescribeDevice$, DescribeDeviceEc2Instances$, DescribeExecution$, DescribeTask$, ListDeviceResources$, ListDevices$, ListExecutions$, ListTagsForResource$, ListTasks$, TagResource$, UntagResource$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { SnowDeviceManagementServiceException } = require("./models/SnowDeviceManagementServiceException");
18
- exports.SnowDeviceManagementServiceException = SnowDeviceManagementServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
16
+
17
+ const defaultSnowDeviceManagementHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
+ return {
19
+ operation: getSmithyContext(context).operation,
20
+ region: await normalizeProvider(config.region)() || (() => {
21
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
22
+ })(),
23
+ };
24
+ };
25
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
26
+ return {
27
+ schemeId: "aws.auth#sigv4",
28
+ signingProperties: {
29
+ name: "snow-device-management",
30
+ region: authParameters.region,
31
+ },
32
+ propertiesExtractor: (config, context) => ({
33
+ signingProperties: {
34
+ config,
35
+ context,
36
+ },
37
+ }),
38
+ };
39
+ }
40
+ const defaultSnowDeviceManagementHttpAuthSchemeProvider = (authParameters) => {
41
+ const options = [];
42
+ switch (authParameters.operation) {
43
+ default: {
44
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
45
+ }
46
+ }
47
+ return options;
48
+ };
49
+ const resolveHttpAuthSchemeConfig = (config) => {
50
+ const config_0 = resolveAwsSdkSigV4Config(config);
51
+ return Object.assign(config_0, {
52
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
53
+ });
54
+ };
19
55
 
20
56
  const resolveClientEndpointParameters = (options) => {
21
57
  return Object.assign(options, {
@@ -31,6 +67,690 @@ const commonParams = {
31
67
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
68
  };
33
69
 
70
+ var version = "3.1075.0";
71
+ var packageInfo = {
72
+ version: version};
73
+
74
+ const k = "ref";
75
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
76
+ const _data = {
77
+ conditions: [
78
+ [c, [g]],
79
+ [c, j],
80
+ ["aws.partition", j, d],
81
+ [e, [{ [k]: "UseFIPS" }, b]],
82
+ [e, [{ [k]: "UseDualStack" }, b]],
83
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
85
+ ],
86
+ results: [
87
+ [a],
88
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
89
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
90
+ [g, i],
91
+ ["https://snow-device-management-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
92
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
93
+ ["https://snow-device-management-fips.{Region}.{PartitionResult#dnsSuffix}", i],
94
+ [a, "FIPS is enabled but this partition does not support FIPS"],
95
+ ["https://snow-device-management.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
96
+ [a, "DualStack is enabled but this partition does not support DualStack"],
97
+ ["https://snow-device-management.{Region}.{PartitionResult#dnsSuffix}", i],
98
+ [a, "Invalid Configuration: Missing Region"]
99
+ ]
100
+ };
101
+ const root = 2;
102
+ const r = 100_000_000;
103
+ const nodes = new Int32Array([
104
+ -1, 1, -1,
105
+ 0, 12, 3,
106
+ 1, 4, r + 11,
107
+ 2, 5, r + 11,
108
+ 3, 8, 6,
109
+ 4, 7, r + 10,
110
+ 5, r + 8, r + 9,
111
+ 4, 10, 9,
112
+ 6, r + 6, r + 7,
113
+ 5, 11, r + 5,
114
+ 6, r + 4, r + 5,
115
+ 3, r + 1, 13,
116
+ 4, r + 2, r + 3,
117
+ ]);
118
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
119
+
120
+ const cache = new EndpointCache({
121
+ size: 50,
122
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
123
+ });
124
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
125
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
126
+ endpointParams: endpointParams,
127
+ logger: context.logger,
128
+ }));
129
+ };
130
+ customEndpointFunctions.aws = awsEndpointFunctions;
131
+
132
+ class SnowDeviceManagementServiceException extends ServiceException {
133
+ constructor(options) {
134
+ super(options);
135
+ Object.setPrototypeOf(this, SnowDeviceManagementServiceException.prototype);
136
+ }
137
+ }
138
+
139
+ class AccessDeniedException extends SnowDeviceManagementServiceException {
140
+ name = "AccessDeniedException";
141
+ $fault = "client";
142
+ constructor(opts) {
143
+ super({
144
+ name: "AccessDeniedException",
145
+ $fault: "client",
146
+ ...opts,
147
+ });
148
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
149
+ }
150
+ }
151
+ class InternalServerException extends SnowDeviceManagementServiceException {
152
+ name = "InternalServerException";
153
+ $fault = "server";
154
+ $retryable = {};
155
+ constructor(opts) {
156
+ super({
157
+ name: "InternalServerException",
158
+ $fault: "server",
159
+ ...opts,
160
+ });
161
+ Object.setPrototypeOf(this, InternalServerException.prototype);
162
+ }
163
+ }
164
+ class ResourceNotFoundException extends SnowDeviceManagementServiceException {
165
+ name = "ResourceNotFoundException";
166
+ $fault = "client";
167
+ constructor(opts) {
168
+ super({
169
+ name: "ResourceNotFoundException",
170
+ $fault: "client",
171
+ ...opts,
172
+ });
173
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
174
+ }
175
+ }
176
+ class ThrottlingException extends SnowDeviceManagementServiceException {
177
+ name = "ThrottlingException";
178
+ $fault = "client";
179
+ $retryable = {
180
+ throttling: true,
181
+ };
182
+ constructor(opts) {
183
+ super({
184
+ name: "ThrottlingException",
185
+ $fault: "client",
186
+ ...opts,
187
+ });
188
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
189
+ }
190
+ }
191
+ class ValidationException extends SnowDeviceManagementServiceException {
192
+ name = "ValidationException";
193
+ $fault = "client";
194
+ constructor(opts) {
195
+ super({
196
+ name: "ValidationException",
197
+ $fault: "client",
198
+ ...opts,
199
+ });
200
+ Object.setPrototypeOf(this, ValidationException.prototype);
201
+ }
202
+ }
203
+ class ServiceQuotaExceededException extends SnowDeviceManagementServiceException {
204
+ name = "ServiceQuotaExceededException";
205
+ $fault = "client";
206
+ constructor(opts) {
207
+ super({
208
+ name: "ServiceQuotaExceededException",
209
+ $fault: "client",
210
+ ...opts,
211
+ });
212
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
213
+ }
214
+ }
215
+
216
+ const _ADE = "AccessDeniedException";
217
+ const _C = "Capacity";
218
+ const _CL = "CapacityList";
219
+ const _CO = "CpuOptions";
220
+ const _CT = "CancelTask";
221
+ const _CTI = "CancelTaskInput";
222
+ const _CTIr = "CreateTaskInput";
223
+ const _CTO = "CancelTaskOutput";
224
+ const _CTOr = "CreateTaskOutput";
225
+ const _CTr = "CreateTask";
226
+ const _Co = "Command";
227
+ const _DD = "DescribeDevice";
228
+ const _DDEI = "DescribeDeviceEc2Input";
229
+ const _DDEIe = "DescribeDeviceEc2Instances";
230
+ const _DDEO = "DescribeDeviceEc2Output";
231
+ const _DDI = "DescribeDeviceInput";
232
+ const _DDO = "DescribeDeviceOutput";
233
+ const _DE = "DescribeExecution";
234
+ const _DEI = "DescribeExecutionInput";
235
+ const _DEO = "DescribeExecutionOutput";
236
+ const _DS = "DeviceSummary";
237
+ const _DSL = "DeviceSummaryList";
238
+ const _DT = "DescribeTask";
239
+ const _DTI = "DescribeTaskInput";
240
+ const _DTO = "DescribeTaskOutput";
241
+ const _EIBD = "EbsInstanceBlockDevice";
242
+ const _ES = "ExecutionSummary";
243
+ const _ESL = "ExecutionSummaryList";
244
+ const _I = "Instance";
245
+ const _IBDM = "InstanceBlockDeviceMapping";
246
+ const _IBDML = "InstanceBlockDeviceMappingList";
247
+ const _IS = "InstanceState";
248
+ const _ISE = "InternalServerException";
249
+ const _ISL = "InstanceSummaryList";
250
+ const _ISn = "InstanceSummary";
251
+ const _LD = "ListDevices";
252
+ const _LDI = "ListDevicesInput";
253
+ const _LDO = "ListDevicesOutput";
254
+ const _LDR = "ListDeviceResources";
255
+ const _LDRI = "ListDeviceResourcesInput";
256
+ const _LDRO = "ListDeviceResourcesOutput";
257
+ const _LE = "ListExecutions";
258
+ const _LEI = "ListExecutionsInput";
259
+ const _LEO = "ListExecutionsOutput";
260
+ const _LT = "ListTasks";
261
+ const _LTFR = "ListTagsForResource";
262
+ const _LTFRI = "ListTagsForResourceInput";
263
+ const _LTFRO = "ListTagsForResourceOutput";
264
+ const _LTI = "ListTasksInput";
265
+ const _LTO = "ListTasksOutput";
266
+ const _PNI = "PhysicalNetworkInterface";
267
+ const _PNIL = "PhysicalNetworkInterfaceList";
268
+ const _R = "Reboot";
269
+ const _RNFE = "ResourceNotFoundException";
270
+ const _RS = "ResourceSummary";
271
+ const _RSL = "ResourceSummaryList";
272
+ const _SGI = "SecurityGroupIdentifier";
273
+ const _SGIL = "SecurityGroupIdentifierList";
274
+ const _SI = "SoftwareInformation";
275
+ const _SQEE = "ServiceQuotaExceededException";
276
+ const _TE = "ThrottlingException";
277
+ const _TR = "TagResource";
278
+ const _TRI = "TagResourceInput";
279
+ const _TS = "TaskSummary";
280
+ const _TSL = "TaskSummaryList";
281
+ const _U = "Unlock";
282
+ const _UR = "UntagResource";
283
+ const _URI = "UntagResourceInput";
284
+ const _VE = "ValidationException";
285
+ const _a = "available";
286
+ const _aLI = "amiLaunchIndex";
287
+ const _aT = "attachTime";
288
+ const _aWJ = "associatedWithJob";
289
+ const _ar = "arn";
290
+ const _bDM = "blockDeviceMappings";
291
+ const _c = "client";
292
+ const _cA = "createdAt";
293
+ const _cAo = "completedAt";
294
+ const _cC = "coreCount";
295
+ const _cO = "cpuOptions";
296
+ const _cT = "clientToken";
297
+ const _co = "command";
298
+ const _cod = "code";
299
+ const _d = "description";
300
+ const _dC = "deviceCapacities";
301
+ const _dG = "defaultGateway";
302
+ const _dN = "deviceName";
303
+ const _dOT = "deleteOnTermination";
304
+ const _dS = "deviceState";
305
+ const _dT = "deviceType";
306
+ const _de = "devices";
307
+ const _e = "error";
308
+ const _eI = "executionId";
309
+ const _eb = "ebs";
310
+ const _ex = "executions";
311
+ const _gI = "groupId";
312
+ const _gN = "groupName";
313
+ const _h = "http";
314
+ const _hE = "httpError";
315
+ const _hQ = "httpQuery";
316
+ const _i = "instances";
317
+ const _iA = "ipAddress";
318
+ const _iAA = "ipAddressAssignment";
319
+ const _iI = "instanceIds";
320
+ const _iIm = "imageId";
321
+ const _iIn = "instanceId";
322
+ const _iS = "installState";
323
+ const _iT = "instanceType";
324
+ const _iV = "installedVersion";
325
+ const _iVn = "installingVersion";
326
+ const _id = "id";
327
+ const _in = "instance";
328
+ const _jI = "jobId";
329
+ const _lROA = "lastReachedOutAt";
330
+ const _lUA = "lastUpdatedAt";
331
+ const _m = "message";
332
+ const _mA = "macAddress";
333
+ const _mDA = "managedDeviceArn";
334
+ const _mDI = "managedDeviceId";
335
+ const _mR = "maxResults";
336
+ const _n = "name";
337
+ const _nT = "nextToken";
338
+ const _ne = "netmask";
339
+ const _pCT = "physicalConnectorType";
340
+ const _pIA = "privateIpAddress";
341
+ const _pIAu = "publicIpAddress";
342
+ const _pNI = "physicalNetworkInterfaces";
343
+ const _pNII = "physicalNetworkInterfaceId";
344
+ const _r = "resources";
345
+ const _rA = "resourceArn";
346
+ const _rDN = "rootDeviceName";
347
+ const _rT = "resourceType";
348
+ const _re = "reboot";
349
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.snowdevicemanagement";
350
+ const _sA = "startedAt";
351
+ const _sG = "securityGroups";
352
+ const _se = "server";
353
+ const _so = "software";
354
+ const _st = "state";
355
+ const _sta = "status";
356
+ const _t = "total";
357
+ const _tA = "taskArn";
358
+ const _tI = "taskId";
359
+ const _tK = "tagKeys";
360
+ const _tPC = "threadsPerCore";
361
+ const _ta = "targets";
362
+ const _tag = "tags";
363
+ const _tas = "tasks";
364
+ const _ty = "type";
365
+ const _u = "unit";
366
+ const _uA = "updatedAt";
367
+ const _un = "unlock";
368
+ const _us = "used";
369
+ const _vI = "volumeId";
370
+ const n0 = "com.amazonaws.snowdevicemanagement";
371
+ const _s_registry = TypeRegistry.for(_s);
372
+ var SnowDeviceManagementServiceException$ = [-3, _s, "SnowDeviceManagementServiceException", 0, [], []];
373
+ _s_registry.registerError(SnowDeviceManagementServiceException$, SnowDeviceManagementServiceException);
374
+ const n0_registry = TypeRegistry.for(n0);
375
+ var AccessDeniedException$ = [-3, n0, _ADE,
376
+ { [_e]: _c, [_hE]: 403 },
377
+ [_m],
378
+ [0], 1
379
+ ];
380
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
381
+ var InternalServerException$ = [-3, n0, _ISE,
382
+ { [_e]: _se, [_hE]: 500 },
383
+ [_m],
384
+ [0], 1
385
+ ];
386
+ n0_registry.registerError(InternalServerException$, InternalServerException);
387
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
388
+ { [_e]: _c, [_hE]: 404 },
389
+ [_m],
390
+ [0], 1
391
+ ];
392
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
393
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
394
+ { [_e]: _c, [_hE]: 402 },
395
+ [_m],
396
+ [0], 1
397
+ ];
398
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
399
+ var ThrottlingException$ = [-3, n0, _TE,
400
+ { [_e]: _c, [_hE]: 429 },
401
+ [_m],
402
+ [0], 1
403
+ ];
404
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
405
+ var ValidationException$ = [-3, n0, _VE,
406
+ { [_e]: _c, [_hE]: 400 },
407
+ [_m],
408
+ [0], 1
409
+ ];
410
+ n0_registry.registerError(ValidationException$, ValidationException);
411
+ const errorTypeRegistries = [
412
+ _s_registry,
413
+ n0_registry,
414
+ ];
415
+ var CancelTaskInput$ = [3, n0, _CTI,
416
+ 0,
417
+ [_tI],
418
+ [[0, 1]], 1
419
+ ];
420
+ var CancelTaskOutput$ = [3, n0, _CTO,
421
+ 0,
422
+ [_tI],
423
+ [0]
424
+ ];
425
+ var Capacity$ = [3, n0, _C,
426
+ 0,
427
+ [_n, _u, _t, _us, _a],
428
+ [0, 0, 1, 1, 1]
429
+ ];
430
+ var CpuOptions$ = [3, n0, _CO,
431
+ 0,
432
+ [_cC, _tPC],
433
+ [1, 1]
434
+ ];
435
+ var CreateTaskInput$ = [3, n0, _CTIr,
436
+ 0,
437
+ [_ta, _co, _d, _tag, _cT],
438
+ [64 | 0, () => Command$, 0, 128 | 0, [0, 4]], 2
439
+ ];
440
+ var CreateTaskOutput$ = [3, n0, _CTOr,
441
+ 0,
442
+ [_tI, _tA],
443
+ [0, 0]
444
+ ];
445
+ var DescribeDeviceEc2Input$ = [3, n0, _DDEI,
446
+ 0,
447
+ [_mDI, _iI],
448
+ [[0, 1], 64 | 0], 2
449
+ ];
450
+ var DescribeDeviceEc2Output$ = [3, n0, _DDEO,
451
+ 0,
452
+ [_i],
453
+ [() => InstanceSummaryList]
454
+ ];
455
+ var DescribeDeviceInput$ = [3, n0, _DDI,
456
+ 0,
457
+ [_mDI],
458
+ [[0, 1]], 1
459
+ ];
460
+ var DescribeDeviceOutput$ = [3, n0, _DDO,
461
+ 0,
462
+ [_lROA, _lUA, _tag, _mDI, _mDA, _dT, _aWJ, _dS, _pNI, _dC, _so],
463
+ [4, 4, 128 | 0, 0, 0, 0, 0, 0, () => PhysicalNetworkInterfaceList, () => CapacityList, () => SoftwareInformation$]
464
+ ];
465
+ var DescribeExecutionInput$ = [3, n0, _DEI,
466
+ 0,
467
+ [_tI, _mDI],
468
+ [[0, 1], [0, 1]], 2
469
+ ];
470
+ var DescribeExecutionOutput$ = [3, n0, _DEO,
471
+ 0,
472
+ [_tI, _eI, _mDI, _st, _sA, _lUA],
473
+ [0, 0, 0, 0, 4, 4]
474
+ ];
475
+ var DescribeTaskInput$ = [3, n0, _DTI,
476
+ 0,
477
+ [_tI],
478
+ [[0, 1]], 1
479
+ ];
480
+ var DescribeTaskOutput$ = [3, n0, _DTO,
481
+ 0,
482
+ [_tI, _tA, _ta, _st, _cA, _lUA, _cAo, _d, _tag],
483
+ [0, 0, 64 | 0, 0, 4, 4, 4, 0, 128 | 0]
484
+ ];
485
+ var DeviceSummary$ = [3, n0, _DS,
486
+ 0,
487
+ [_mDI, _mDA, _aWJ, _tag],
488
+ [0, 0, 0, 128 | 0]
489
+ ];
490
+ var EbsInstanceBlockDevice$ = [3, n0, _EIBD,
491
+ 0,
492
+ [_aT, _dOT, _sta, _vI],
493
+ [4, 2, 0, 0]
494
+ ];
495
+ var ExecutionSummary$ = [3, n0, _ES,
496
+ 0,
497
+ [_tI, _eI, _mDI, _st],
498
+ [0, 0, 0, 0]
499
+ ];
500
+ var Instance$ = [3, n0, _I,
501
+ 0,
502
+ [_iIm, _aLI, _iIn, _st, _iT, _pIA, _pIAu, _cA, _uA, _bDM, _sG, _cO, _rDN],
503
+ [0, 1, 0, () => InstanceState$, 0, 0, 0, 4, 4, () => InstanceBlockDeviceMappingList, () => SecurityGroupIdentifierList, () => CpuOptions$, 0]
504
+ ];
505
+ var InstanceBlockDeviceMapping$ = [3, n0, _IBDM,
506
+ 0,
507
+ [_dN, _eb],
508
+ [0, () => EbsInstanceBlockDevice$]
509
+ ];
510
+ var InstanceState$ = [3, n0, _IS,
511
+ 0,
512
+ [_cod, _n],
513
+ [1, 0]
514
+ ];
515
+ var InstanceSummary$ = [3, n0, _ISn,
516
+ 0,
517
+ [_in, _lUA],
518
+ [() => Instance$, 4]
519
+ ];
520
+ var ListDeviceResourcesInput$ = [3, n0, _LDRI,
521
+ 0,
522
+ [_mDI, _ty, _mR, _nT],
523
+ [[0, 1], [0, { [_hQ]: _ty }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]], 1
524
+ ];
525
+ var ListDeviceResourcesOutput$ = [3, n0, _LDRO,
526
+ 0,
527
+ [_r, _nT],
528
+ [() => ResourceSummaryList, 0]
529
+ ];
530
+ var ListDevicesInput$ = [3, n0, _LDI,
531
+ 0,
532
+ [_jI, _mR, _nT],
533
+ [[0, { [_hQ]: _jI }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]]
534
+ ];
535
+ var ListDevicesOutput$ = [3, n0, _LDO,
536
+ 0,
537
+ [_de, _nT],
538
+ [() => DeviceSummaryList, 0]
539
+ ];
540
+ var ListExecutionsInput$ = [3, n0, _LEI,
541
+ 0,
542
+ [_tI, _st, _mR, _nT],
543
+ [[0, { [_hQ]: _tI }], [0, { [_hQ]: _st }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]], 1
544
+ ];
545
+ var ListExecutionsOutput$ = [3, n0, _LEO,
546
+ 0,
547
+ [_ex, _nT],
548
+ [() => ExecutionSummaryList, 0]
549
+ ];
550
+ var ListTagsForResourceInput$ = [3, n0, _LTFRI,
551
+ 0,
552
+ [_rA],
553
+ [[0, 1]], 1
554
+ ];
555
+ var ListTagsForResourceOutput$ = [3, n0, _LTFRO,
556
+ 0,
557
+ [_tag],
558
+ [128 | 0]
559
+ ];
560
+ var ListTasksInput$ = [3, n0, _LTI,
561
+ 0,
562
+ [_st, _mR, _nT],
563
+ [[0, { [_hQ]: _st }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]]
564
+ ];
565
+ var ListTasksOutput$ = [3, n0, _LTO,
566
+ 0,
567
+ [_tas, _nT],
568
+ [() => TaskSummaryList, 0]
569
+ ];
570
+ var PhysicalNetworkInterface$ = [3, n0, _PNI,
571
+ 0,
572
+ [_pNII, _pCT, _iAA, _iA, _ne, _dG, _mA],
573
+ [0, 0, 0, 0, 0, 0, 0]
574
+ ];
575
+ var Reboot$ = [3, n0, _R,
576
+ 0,
577
+ [],
578
+ []
579
+ ];
580
+ var ResourceSummary$ = [3, n0, _RS,
581
+ 0,
582
+ [_rT, _ar, _id],
583
+ [0, 0, 0], 1
584
+ ];
585
+ var SecurityGroupIdentifier$ = [3, n0, _SGI,
586
+ 0,
587
+ [_gI, _gN],
588
+ [0, 0]
589
+ ];
590
+ var SoftwareInformation$ = [3, n0, _SI,
591
+ 0,
592
+ [_iV, _iVn, _iS],
593
+ [0, 0, 0]
594
+ ];
595
+ var TagResourceInput$ = [3, n0, _TRI,
596
+ 0,
597
+ [_rA, _tag],
598
+ [[0, 1], 128 | 0], 2
599
+ ];
600
+ var TaskSummary$ = [3, n0, _TS,
601
+ 0,
602
+ [_tI, _tA, _st, _tag],
603
+ [0, 0, 0, 128 | 0], 1
604
+ ];
605
+ var Unlock$ = [3, n0, _U,
606
+ 0,
607
+ [],
608
+ []
609
+ ];
610
+ var UntagResourceInput$ = [3, n0, _URI,
611
+ 0,
612
+ [_rA, _tK],
613
+ [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
614
+ ];
615
+ var __Unit = "unit";
616
+ var CapacityList = [1, n0, _CL,
617
+ 0, () => Capacity$
618
+ ];
619
+ var DeviceSummaryList = [1, n0, _DSL,
620
+ 0, () => DeviceSummary$
621
+ ];
622
+ var ExecutionSummaryList = [1, n0, _ESL,
623
+ 0, () => ExecutionSummary$
624
+ ];
625
+ var InstanceBlockDeviceMappingList = [1, n0, _IBDML,
626
+ 0, () => InstanceBlockDeviceMapping$
627
+ ];
628
+ var InstanceSummaryList = [1, n0, _ISL,
629
+ 0, () => InstanceSummary$
630
+ ];
631
+ var PhysicalNetworkInterfaceList = [1, n0, _PNIL,
632
+ 0, () => PhysicalNetworkInterface$
633
+ ];
634
+ var ResourceSummaryList = [1, n0, _RSL,
635
+ 0, () => ResourceSummary$
636
+ ];
637
+ var SecurityGroupIdentifierList = [1, n0, _SGIL,
638
+ 0, () => SecurityGroupIdentifier$
639
+ ];
640
+ var TaskSummaryList = [1, n0, _TSL,
641
+ 0, () => TaskSummary$
642
+ ];
643
+ var Command$ = [4, n0, _Co,
644
+ 0,
645
+ [_un, _re],
646
+ [() => Unlock$, () => Reboot$]
647
+ ];
648
+ var CancelTask$ = [9, n0, _CT,
649
+ { [_h]: ["POST", "/task/{taskId}/cancel", 200] }, () => CancelTaskInput$, () => CancelTaskOutput$
650
+ ];
651
+ var CreateTask$ = [9, n0, _CTr,
652
+ { [_h]: ["POST", "/task", 200] }, () => CreateTaskInput$, () => CreateTaskOutput$
653
+ ];
654
+ var DescribeDevice$ = [9, n0, _DD,
655
+ { [_h]: ["POST", "/managed-device/{managedDeviceId}/describe", 200] }, () => DescribeDeviceInput$, () => DescribeDeviceOutput$
656
+ ];
657
+ var DescribeDeviceEc2Instances$ = [9, n0, _DDEIe,
658
+ { [_h]: ["POST", "/managed-device/{managedDeviceId}/resources/ec2/describe", 200] }, () => DescribeDeviceEc2Input$, () => DescribeDeviceEc2Output$
659
+ ];
660
+ var DescribeExecution$ = [9, n0, _DE,
661
+ { [_h]: ["POST", "/task/{taskId}/execution/{managedDeviceId}", 200] }, () => DescribeExecutionInput$, () => DescribeExecutionOutput$
662
+ ];
663
+ var DescribeTask$ = [9, n0, _DT,
664
+ { [_h]: ["POST", "/task/{taskId}", 200] }, () => DescribeTaskInput$, () => DescribeTaskOutput$
665
+ ];
666
+ var ListDeviceResources$ = [9, n0, _LDR,
667
+ { [_h]: ["GET", "/managed-device/{managedDeviceId}/resources", 200] }, () => ListDeviceResourcesInput$, () => ListDeviceResourcesOutput$
668
+ ];
669
+ var ListDevices$ = [9, n0, _LD,
670
+ { [_h]: ["GET", "/managed-devices", 200] }, () => ListDevicesInput$, () => ListDevicesOutput$
671
+ ];
672
+ var ListExecutions$ = [9, n0, _LE,
673
+ { [_h]: ["GET", "/executions", 200] }, () => ListExecutionsInput$, () => ListExecutionsOutput$
674
+ ];
675
+ var ListTagsForResource$ = [9, n0, _LTFR,
676
+ { [_h]: ["GET", "/tags/{resourceArn}", 200] }, () => ListTagsForResourceInput$, () => ListTagsForResourceOutput$
677
+ ];
678
+ var ListTasks$ = [9, n0, _LT,
679
+ { [_h]: ["GET", "/tasks", 200] }, () => ListTasksInput$, () => ListTasksOutput$
680
+ ];
681
+ var TagResource$ = [9, n0, _TR,
682
+ { [_h]: ["POST", "/tags/{resourceArn}", 200] }, () => TagResourceInput$, () => __Unit
683
+ ];
684
+ var UntagResource$ = [9, n0, _UR,
685
+ { [_h]: ["DELETE", "/tags/{resourceArn}", 200] }, () => UntagResourceInput$, () => __Unit
686
+ ];
687
+
688
+ const getRuntimeConfig$1 = (config) => {
689
+ return {
690
+ apiVersion: "2021-08-04",
691
+ base64Decoder: config?.base64Decoder ?? fromBase64,
692
+ base64Encoder: config?.base64Encoder ?? toBase64,
693
+ disableHostPrefix: config?.disableHostPrefix ?? false,
694
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
695
+ extensions: config?.extensions ?? [],
696
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSnowDeviceManagementHttpAuthSchemeProvider,
697
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
698
+ {
699
+ schemeId: "aws.auth#sigv4",
700
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
701
+ signer: new AwsSdkSigV4Signer(),
702
+ },
703
+ ],
704
+ logger: config?.logger ?? new NoOpLogger(),
705
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
706
+ protocolSettings: config?.protocolSettings ?? {
707
+ defaultNamespace: "com.amazonaws.snowdevicemanagement",
708
+ errorTypeRegistries,
709
+ version: "2021-08-04",
710
+ serviceTarget: "SnowDeviceManagement",
711
+ },
712
+ serviceId: config?.serviceId ?? "Snow Device Management",
713
+ urlParser: config?.urlParser ?? parseUrl,
714
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
715
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
716
+ };
717
+ };
718
+
719
+ const getRuntimeConfig = (config) => {
720
+ emitWarningIfUnsupportedVersion(process.version);
721
+ const defaultsMode = resolveDefaultsModeConfig(config);
722
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
723
+ const clientSharedValues = getRuntimeConfig$1(config);
724
+ emitWarningIfUnsupportedVersion$1(process.version);
725
+ const loaderConfig = {
726
+ profile: config?.profile,
727
+ logger: clientSharedValues.logger,
728
+ };
729
+ return {
730
+ ...clientSharedValues,
731
+ ...config,
732
+ runtime: "node",
733
+ defaultsMode,
734
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
735
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
736
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
737
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
738
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
739
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
740
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
741
+ retryMode: config?.retryMode ??
742
+ loadConfig({
743
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
744
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
745
+ }, config),
746
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
747
+ streamCollector: config?.streamCollector ?? streamCollector,
748
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
749
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
750
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
751
+ };
752
+ };
753
+
34
754
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
755
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
756
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -345,28 +1065,97 @@ const TaskState = {
345
1065
  IN_PROGRESS: "IN_PROGRESS",
346
1066
  };
347
1067
 
1068
+ exports.AccessDeniedException = AccessDeniedException;
1069
+ exports.AccessDeniedException$ = AccessDeniedException$;
348
1070
  exports.AttachmentStatus = AttachmentStatus;
1071
+ exports.CancelTask$ = CancelTask$;
349
1072
  exports.CancelTaskCommand = CancelTaskCommand;
1073
+ exports.CancelTaskInput$ = CancelTaskInput$;
1074
+ exports.CancelTaskOutput$ = CancelTaskOutput$;
1075
+ exports.Capacity$ = Capacity$;
1076
+ exports.Command$ = Command$;
1077
+ exports.CpuOptions$ = CpuOptions$;
1078
+ exports.CreateTask$ = CreateTask$;
350
1079
  exports.CreateTaskCommand = CreateTaskCommand;
1080
+ exports.CreateTaskInput$ = CreateTaskInput$;
1081
+ exports.CreateTaskOutput$ = CreateTaskOutput$;
1082
+ exports.DescribeDevice$ = DescribeDevice$;
351
1083
  exports.DescribeDeviceCommand = DescribeDeviceCommand;
1084
+ exports.DescribeDeviceEc2Input$ = DescribeDeviceEc2Input$;
1085
+ exports.DescribeDeviceEc2Instances$ = DescribeDeviceEc2Instances$;
352
1086
  exports.DescribeDeviceEc2InstancesCommand = DescribeDeviceEc2InstancesCommand;
1087
+ exports.DescribeDeviceEc2Output$ = DescribeDeviceEc2Output$;
1088
+ exports.DescribeDeviceInput$ = DescribeDeviceInput$;
1089
+ exports.DescribeDeviceOutput$ = DescribeDeviceOutput$;
1090
+ exports.DescribeExecution$ = DescribeExecution$;
353
1091
  exports.DescribeExecutionCommand = DescribeExecutionCommand;
1092
+ exports.DescribeExecutionInput$ = DescribeExecutionInput$;
1093
+ exports.DescribeExecutionOutput$ = DescribeExecutionOutput$;
1094
+ exports.DescribeTask$ = DescribeTask$;
354
1095
  exports.DescribeTaskCommand = DescribeTaskCommand;
1096
+ exports.DescribeTaskInput$ = DescribeTaskInput$;
1097
+ exports.DescribeTaskOutput$ = DescribeTaskOutput$;
1098
+ exports.DeviceSummary$ = DeviceSummary$;
1099
+ exports.EbsInstanceBlockDevice$ = EbsInstanceBlockDevice$;
355
1100
  exports.ExecutionState = ExecutionState;
1101
+ exports.ExecutionSummary$ = ExecutionSummary$;
1102
+ exports.Instance$ = Instance$;
1103
+ exports.InstanceBlockDeviceMapping$ = InstanceBlockDeviceMapping$;
1104
+ exports.InstanceState$ = InstanceState$;
356
1105
  exports.InstanceStateName = InstanceStateName;
1106
+ exports.InstanceSummary$ = InstanceSummary$;
1107
+ exports.InternalServerException = InternalServerException;
1108
+ exports.InternalServerException$ = InternalServerException$;
357
1109
  exports.IpAddressAssignment = IpAddressAssignment;
1110
+ exports.ListDeviceResources$ = ListDeviceResources$;
358
1111
  exports.ListDeviceResourcesCommand = ListDeviceResourcesCommand;
1112
+ exports.ListDeviceResourcesInput$ = ListDeviceResourcesInput$;
1113
+ exports.ListDeviceResourcesOutput$ = ListDeviceResourcesOutput$;
1114
+ exports.ListDevices$ = ListDevices$;
359
1115
  exports.ListDevicesCommand = ListDevicesCommand;
1116
+ exports.ListDevicesInput$ = ListDevicesInput$;
1117
+ exports.ListDevicesOutput$ = ListDevicesOutput$;
1118
+ exports.ListExecutions$ = ListExecutions$;
360
1119
  exports.ListExecutionsCommand = ListExecutionsCommand;
1120
+ exports.ListExecutionsInput$ = ListExecutionsInput$;
1121
+ exports.ListExecutionsOutput$ = ListExecutionsOutput$;
1122
+ exports.ListTagsForResource$ = ListTagsForResource$;
361
1123
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1124
+ exports.ListTagsForResourceInput$ = ListTagsForResourceInput$;
1125
+ exports.ListTagsForResourceOutput$ = ListTagsForResourceOutput$;
1126
+ exports.ListTasks$ = ListTasks$;
362
1127
  exports.ListTasksCommand = ListTasksCommand;
1128
+ exports.ListTasksInput$ = ListTasksInput$;
1129
+ exports.ListTasksOutput$ = ListTasksOutput$;
363
1130
  exports.PhysicalConnectorType = PhysicalConnectorType;
1131
+ exports.PhysicalNetworkInterface$ = PhysicalNetworkInterface$;
1132
+ exports.Reboot$ = Reboot$;
1133
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1134
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
1135
+ exports.ResourceSummary$ = ResourceSummary$;
1136
+ exports.SecurityGroupIdentifier$ = SecurityGroupIdentifier$;
1137
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1138
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
364
1139
  exports.SnowDeviceManagement = SnowDeviceManagement;
365
1140
  exports.SnowDeviceManagementClient = SnowDeviceManagementClient;
1141
+ exports.SnowDeviceManagementServiceException = SnowDeviceManagementServiceException;
1142
+ exports.SnowDeviceManagementServiceException$ = SnowDeviceManagementServiceException$;
1143
+ exports.SoftwareInformation$ = SoftwareInformation$;
1144
+ exports.TagResource$ = TagResource$;
366
1145
  exports.TagResourceCommand = TagResourceCommand;
1146
+ exports.TagResourceInput$ = TagResourceInput$;
367
1147
  exports.TaskState = TaskState;
1148
+ exports.TaskSummary$ = TaskSummary$;
1149
+ exports.ThrottlingException = ThrottlingException;
1150
+ exports.ThrottlingException$ = ThrottlingException$;
1151
+ exports.Unlock$ = Unlock$;
368
1152
  exports.UnlockState = UnlockState;
1153
+ exports.UntagResource$ = UntagResource$;
369
1154
  exports.UntagResourceCommand = UntagResourceCommand;
1155
+ exports.UntagResourceInput$ = UntagResourceInput$;
1156
+ exports.ValidationException = ValidationException;
1157
+ exports.ValidationException$ = ValidationException$;
1158
+ exports.errorTypeRegistries = errorTypeRegistries;
370
1159
  exports.paginateListDeviceResources = paginateListDeviceResources;
371
1160
  exports.paginateListDevices = paginateListDevices;
372
1161
  exports.paginateListExecutions = paginateListExecutions;