@aws-sdk/client-snow-device-management 3.758.0 → 3.772.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.
Files changed (2) hide show
  1. package/dist-cjs/index.js +27 -29
  2. package/package.json +3 -3
package/dist-cjs/index.js CHANGED
@@ -19,8 +19,8 @@ var __copyProps = (to, from, except, desc) => {
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
20
 
21
21
  // src/index.ts
22
- var src_exports = {};
23
- __export(src_exports, {
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
24
  AccessDeniedException: () => AccessDeniedException,
25
25
  AttachmentStatus: () => AttachmentStatus,
26
26
  CancelTaskCommand: () => CancelTaskCommand,
@@ -57,7 +57,7 @@ __export(src_exports, {
57
57
  paginateListExecutions: () => paginateListExecutions,
58
58
  paginateListTasks: () => paginateListTasks
59
59
  });
60
- module.exports = __toCommonJS(src_exports);
60
+ module.exports = __toCommonJS(index_exports);
61
61
 
62
62
  // src/SnowDeviceManagementClient.ts
63
63
  var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
@@ -184,9 +184,9 @@ var SnowDeviceManagementClient = class extends import_smithy_client.Client {
184
184
  this.middlewareStack.use(
185
185
  (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
186
186
  httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultSnowDeviceManagementHttpAuthSchemeParametersProvider,
187
- identityProviderConfigProvider: async (config) => new import_core.DefaultIdentityProviderConfig({
187
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
188
188
  "aws.auth#sigv4": config.credentials
189
- })
189
+ }), "identityProviderConfigProvider")
190
190
  })
191
191
  );
192
192
  this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
@@ -334,10 +334,8 @@ var ValidationException = class _ValidationException extends SnowDeviceManagemen
334
334
  var Command;
335
335
  ((Command3) => {
336
336
  Command3.visit = /* @__PURE__ */ __name((value, visitor) => {
337
- if (value.unlock !== void 0)
338
- return visitor.unlock(value.unlock);
339
- if (value.reboot !== void 0)
340
- return visitor.reboot(value.reboot);
337
+ if (value.unlock !== void 0) return visitor.unlock(value.unlock);
338
+ if (value.reboot !== void 0) return visitor.reboot(value.reboot);
341
339
  return visitor._(value.$unknown[0], value.$unknown[1]);
342
340
  }, "visit");
343
341
  })(Command || (Command = {}));
@@ -418,10 +416,10 @@ var se_CreateTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
418
416
  body = JSON.stringify(
419
417
  (0, import_smithy_client.take)(input, {
420
418
  clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
421
- command: (_) => (0, import_smithy_client._json)(_),
419
+ command: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "command"),
422
420
  description: [],
423
- tags: (_) => (0, import_smithy_client._json)(_),
424
- targets: (_) => (0, import_smithy_client._json)(_)
421
+ tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags"),
422
+ targets: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "targets")
425
423
  })
426
424
  );
427
425
  b.m("POST").h(headers).b(body);
@@ -446,7 +444,7 @@ var se_DescribeDeviceEc2InstancesCommand = /* @__PURE__ */ __name(async (input,
446
444
  let body;
447
445
  body = JSON.stringify(
448
446
  (0, import_smithy_client.take)(input, {
449
- instanceIds: (_) => (0, import_smithy_client._json)(_)
447
+ instanceIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "instanceIds")
450
448
  })
451
449
  );
452
450
  b.m("POST").h(headers).b(body);
@@ -544,7 +542,7 @@ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
544
542
  let body;
545
543
  body = JSON.stringify(
546
544
  (0, import_smithy_client.take)(input, {
547
- tags: (_) => (0, import_smithy_client._json)(_)
545
+ tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
548
546
  })
549
547
  );
550
548
  b.m("POST").h(headers).b(body);
@@ -604,8 +602,8 @@ var de_DescribeDeviceCommand = /* @__PURE__ */ __name(async (output, context) =>
604
602
  deviceCapacities: import_smithy_client._json,
605
603
  deviceState: import_smithy_client.expectString,
606
604
  deviceType: import_smithy_client.expectString,
607
- lastReachedOutAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
608
- lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
605
+ lastReachedOutAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastReachedOutAt"),
606
+ lastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastUpdatedAt"),
609
607
  managedDeviceArn: import_smithy_client.expectString,
610
608
  managedDeviceId: import_smithy_client.expectString,
611
609
  physicalNetworkInterfaces: import_smithy_client._json,
@@ -624,7 +622,7 @@ var de_DescribeDeviceEc2InstancesCommand = /* @__PURE__ */ __name(async (output,
624
622
  });
625
623
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
626
624
  const doc = (0, import_smithy_client.take)(data, {
627
- instances: (_) => de_InstanceSummaryList(_, context)
625
+ instances: /* @__PURE__ */ __name((_) => de_InstanceSummaryList(_, context), "instances")
628
626
  });
629
627
  Object.assign(contents, doc);
630
628
  return contents;
@@ -639,9 +637,9 @@ var de_DescribeExecutionCommand = /* @__PURE__ */ __name(async (output, context)
639
637
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
640
638
  const doc = (0, import_smithy_client.take)(data, {
641
639
  executionId: import_smithy_client.expectString,
642
- lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
640
+ lastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastUpdatedAt"),
643
641
  managedDeviceId: import_smithy_client.expectString,
644
- startedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
642
+ startedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "startedAt"),
645
643
  state: import_smithy_client.expectString,
646
644
  taskId: import_smithy_client.expectString
647
645
  });
@@ -657,10 +655,10 @@ var de_DescribeTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
657
655
  });
658
656
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
659
657
  const doc = (0, import_smithy_client.take)(data, {
660
- completedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
661
- createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
658
+ completedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "completedAt"),
659
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
662
660
  description: import_smithy_client.expectString,
663
- lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
661
+ lastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastUpdatedAt"),
664
662
  state: import_smithy_client.expectString,
665
663
  tags: import_smithy_client._json,
666
664
  targets: import_smithy_client._json,
@@ -879,7 +877,7 @@ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, cont
879
877
  }, "de_ValidationExceptionRes");
880
878
  var de_EbsInstanceBlockDevice = /* @__PURE__ */ __name((output, context) => {
881
879
  return (0, import_smithy_client.take)(output, {
882
- attachTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
880
+ attachTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "attachTime"),
883
881
  deleteOnTermination: import_smithy_client.expectBoolean,
884
882
  status: import_smithy_client.expectString,
885
883
  volumeId: import_smithy_client.expectString
@@ -888,9 +886,9 @@ var de_EbsInstanceBlockDevice = /* @__PURE__ */ __name((output, context) => {
888
886
  var de_Instance = /* @__PURE__ */ __name((output, context) => {
889
887
  return (0, import_smithy_client.take)(output, {
890
888
  amiLaunchIndex: import_smithy_client.expectInt32,
891
- blockDeviceMappings: (_) => de_InstanceBlockDeviceMappingList(_, context),
889
+ blockDeviceMappings: /* @__PURE__ */ __name((_) => de_InstanceBlockDeviceMappingList(_, context), "blockDeviceMappings"),
892
890
  cpuOptions: import_smithy_client._json,
893
- createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
891
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
894
892
  imageId: import_smithy_client.expectString,
895
893
  instanceId: import_smithy_client.expectString,
896
894
  instanceType: import_smithy_client.expectString,
@@ -899,13 +897,13 @@ var de_Instance = /* @__PURE__ */ __name((output, context) => {
899
897
  rootDeviceName: import_smithy_client.expectString,
900
898
  securityGroups: import_smithy_client._json,
901
899
  state: import_smithy_client._json,
902
- updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
900
+ updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt")
903
901
  });
904
902
  }, "de_Instance");
905
903
  var de_InstanceBlockDeviceMapping = /* @__PURE__ */ __name((output, context) => {
906
904
  return (0, import_smithy_client.take)(output, {
907
905
  deviceName: import_smithy_client.expectString,
908
- ebs: (_) => de_EbsInstanceBlockDevice(_, context)
906
+ ebs: /* @__PURE__ */ __name((_) => de_EbsInstanceBlockDevice(_, context), "ebs")
909
907
  });
910
908
  }, "de_InstanceBlockDeviceMapping");
911
909
  var de_InstanceBlockDeviceMappingList = /* @__PURE__ */ __name((output, context) => {
@@ -916,8 +914,8 @@ var de_InstanceBlockDeviceMappingList = /* @__PURE__ */ __name((output, context)
916
914
  }, "de_InstanceBlockDeviceMappingList");
917
915
  var de_InstanceSummary = /* @__PURE__ */ __name((output, context) => {
918
916
  return (0, import_smithy_client.take)(output, {
919
- instance: (_) => de_Instance(_, context),
920
- lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
917
+ instance: /* @__PURE__ */ __name((_) => de_Instance(_, context), "instance"),
918
+ lastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastUpdatedAt")
921
919
  });
922
920
  }, "de_InstanceSummary");
923
921
  var de_InstanceSummaryList = /* @__PURE__ */ __name((output, context) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-snow-device-management",
3
3
  "description": "AWS SDK for JavaScript Snow Device Management Client for Node.js, Browser and React Native",
4
- "version": "3.758.0",
4
+ "version": "3.772.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-snow-device-management",
@@ -21,10 +21,10 @@
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
23
  "@aws-sdk/core": "3.758.0",
24
- "@aws-sdk/credential-provider-node": "3.758.0",
24
+ "@aws-sdk/credential-provider-node": "3.772.0",
25
25
  "@aws-sdk/middleware-host-header": "3.734.0",
26
26
  "@aws-sdk/middleware-logger": "3.734.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.734.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.772.0",
28
28
  "@aws-sdk/middleware-user-agent": "3.758.0",
29
29
  "@aws-sdk/region-config-resolver": "3.734.0",
30
30
  "@aws-sdk/types": "3.734.0",