@aws-sdk/client-sagemaker-edge 3.33.0 → 3.36.1

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 (101) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/SagemakerEdge.js +1 -5
  3. package/{dist/cjs → dist-cjs}/SagemakerEdgeClient.js +8 -17
  4. package/{dist/cjs → dist-cjs}/commands/GetDeviceRegistrationCommand.js +2 -27
  5. package/{dist/cjs → dist-cjs}/commands/SendHeartbeatCommand.js +2 -27
  6. package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
  7. package/{dist/cjs → dist-cjs}/index.js +0 -1
  8. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  9. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -19
  10. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +2 -8
  11. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  12. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  13. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  14. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  15. package/{dist/es → dist-es}/SagemakerEdge.js +2 -6
  16. package/{dist/es → dist-es}/SagemakerEdgeClient.js +2 -11
  17. package/{dist/es → dist-es}/commands/GetDeviceRegistrationCommand.js +4 -30
  18. package/{dist/es → dist-es}/commands/SendHeartbeatCommand.js +4 -30
  19. package/{dist/es → dist-es}/endpoints.js +1 -2
  20. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  21. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  22. package/{dist/es → dist-es}/models/models_0.js +0 -19
  23. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +25 -31
  24. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
  25. package/{dist/es → dist-es}/runtimeConfig.js +1 -5
  26. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
  27. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
  28. package/{dist/types → dist-types}/SagemakerEdge.d.ts +2 -2
  29. package/{dist/types → dist-types}/SagemakerEdgeClient.d.ts +3 -3
  30. package/{dist/types → dist-types}/commands/GetDeviceRegistrationCommand.d.ts +3 -3
  31. package/{dist/types → dist-types}/commands/SendHeartbeatCommand.d.ts +3 -3
  32. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  33. package/{index.ts → dist-types/index.d.ts} +0 -0
  34. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  35. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  36. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  37. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  38. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  39. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  40. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  41. package/{dist/types → dist-types}/ts3.4/SagemakerEdge.d.ts +5 -11
  42. package/dist-types/ts3.4/SagemakerEdgeClient.d.ts +69 -0
  43. package/{dist/types → dist-types}/ts3.4/commands/GetDeviceRegistrationCommand.d.ts +5 -23
  44. package/dist-types/ts3.4/commands/SendHeartbeatCommand.d.ts +17 -0
  45. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  46. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  47. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  48. package/dist-types/ts3.4/models/models_0.d.ts +79 -0
  49. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  50. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  51. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  52. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  53. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  54. package/package.json +52 -49
  55. package/SagemakerEdge.ts +0 -81
  56. package/SagemakerEdgeClient.ts +0 -240
  57. package/commands/GetDeviceRegistrationCommand.ts +0 -94
  58. package/commands/SendHeartbeatCommand.ts +0 -94
  59. package/dist/cjs/SagemakerEdge.js.map +0 -1
  60. package/dist/cjs/SagemakerEdgeClient.js.map +0 -1
  61. package/dist/cjs/commands/GetDeviceRegistrationCommand.js.map +0 -1
  62. package/dist/cjs/commands/SendHeartbeatCommand.js.map +0 -1
  63. package/dist/cjs/endpoints.js.map +0 -1
  64. package/dist/cjs/index.js.map +0 -1
  65. package/dist/cjs/models/index.js.map +0 -1
  66. package/dist/cjs/models/models_0.js.map +0 -1
  67. package/dist/cjs/package.json +0 -91
  68. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  69. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  70. package/dist/cjs/runtimeConfig.js.map +0 -1
  71. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  72. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  73. package/dist/es/SagemakerEdge.js.map +0 -1
  74. package/dist/es/SagemakerEdgeClient.js.map +0 -1
  75. package/dist/es/commands/GetDeviceRegistrationCommand.js.map +0 -1
  76. package/dist/es/commands/SendHeartbeatCommand.js.map +0 -1
  77. package/dist/es/endpoints.js.map +0 -1
  78. package/dist/es/index.js +0 -6
  79. package/dist/es/index.js.map +0 -1
  80. package/dist/es/models/index.js +0 -2
  81. package/dist/es/models/index.js.map +0 -1
  82. package/dist/es/models/models_0.js.map +0 -1
  83. package/dist/es/package.json +0 -91
  84. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  85. package/dist/es/runtimeConfig.browser.js.map +0 -1
  86. package/dist/es/runtimeConfig.js.map +0 -1
  87. package/dist/es/runtimeConfig.native.js.map +0 -1
  88. package/dist/es/runtimeConfig.shared.js.map +0 -1
  89. package/dist/types/ts3.4/SagemakerEdgeClient.d.ts +0 -134
  90. package/dist/types/ts3.4/commands/SendHeartbeatCommand.d.ts +0 -35
  91. package/dist/types/ts3.4/models/models_0.d.ts +0 -134
  92. package/endpoints.ts +0 -57
  93. package/jest.config.js +0 -4
  94. package/models/models_0.ts +0 -171
  95. package/protocols/Aws_restJson1.ts +0 -316
  96. package/runtimeConfig.browser.ts +0 -40
  97. package/runtimeConfig.native.ts +0 -16
  98. package/runtimeConfig.shared.ts +0 -16
  99. package/runtimeConfig.ts +0 -45
  100. package/tsconfig.es.json +0 -12
  101. package/tsconfig.json +0 -32
package/CHANGELOG.md CHANGED
@@ -3,6 +3,53 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
18
+
19
+
20
+ ### Features
21
+
22
+ * publish files in dist-* only ([#2873](https://github.com/aws/aws-sdk-js-v3/issues/2873)) ([53b4243](https://github.com/aws/aws-sdk-js-v3/commit/53b4243b066f25ff2412d5f0dea1036054b2df32))
23
+ * **codegen:** ts-ignore packageInfo imports in codegen ([#2875](https://github.com/aws/aws-sdk-js-v3/issues/2875)) ([99d9267](https://github.com/aws/aws-sdk-js-v3/commit/99d926762193e83a354edec6e9de2b0543449704))
24
+ * **tsconfig:** remove sourceMap ([#2867](https://github.com/aws/aws-sdk-js-v3/issues/2867)) ([d25f526](https://github.com/aws/aws-sdk-js-v3/commit/d25f526627a02a2ca28675fecce66c76b6c97966))
25
+
26
+
27
+
28
+
29
+
30
+ # [3.35.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.34.0...v3.35.0) (2021-10-04)
31
+
32
+
33
+ ### Features
34
+
35
+ * **clients:** eslint --fix using esprint ([#2849](https://github.com/aws/aws-sdk-js-v3/issues/2849)) ([94d0a2d](https://github.com/aws/aws-sdk-js-v3/commit/94d0a2d8a0579ee0a742337937ad05735cfbc1ba))
36
+ * **clients:** move source files to 'src' folder ([#2845](https://github.com/aws/aws-sdk-js-v3/issues/2845)) ([e0025cd](https://github.com/aws/aws-sdk-js-v3/commit/e0025cddbba244a41ddf1fd1adb761142e15c22d))
37
+
38
+
39
+
40
+
41
+
42
+ # [3.34.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.33.0...v3.34.0) (2021-09-24)
43
+
44
+
45
+ ### Features
46
+
47
+ * **clients:** remove comments from transpiled JS files ([#2817](https://github.com/aws/aws-sdk-js-v3/issues/2817)) ([d01420b](https://github.com/aws/aws-sdk-js-v3/commit/d01420b247966c8ec84c1dd0a1b42512ede10c90))
48
+
49
+
50
+
51
+
52
+
6
53
  # [3.33.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.32.0...v3.33.0) (2021-09-21)
7
54
 
8
55
  **Note:** Version bump only for package @aws-sdk/client-sagemaker-edge
@@ -1,12 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SagemakerEdge = void 0;
4
- const SagemakerEdgeClient_1 = require("./SagemakerEdgeClient");
5
4
  const GetDeviceRegistrationCommand_1 = require("./commands/GetDeviceRegistrationCommand");
6
5
  const SendHeartbeatCommand_1 = require("./commands/SendHeartbeatCommand");
7
- /**
8
- * <p>SageMaker Edge Manager dataplane service for communicating with active agents.</p>
9
- */
6
+ const SagemakerEdgeClient_1 = require("./SagemakerEdgeClient");
10
7
  class SagemakerEdge extends SagemakerEdgeClient_1.SagemakerEdgeClient {
11
8
  getDeviceRegistration(args, optionsOrCb, cb) {
12
9
  const command = new GetDeviceRegistrationCommand_1.GetDeviceRegistrationCommand(args);
@@ -38,4 +35,3 @@ class SagemakerEdge extends SagemakerEdgeClient_1.SagemakerEdgeClient {
38
35
  }
39
36
  }
40
37
  exports.SagemakerEdge = SagemakerEdge;
41
- //# sourceMappingURL=SagemakerEdge.js.map
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SagemakerEdgeClient = void 0;
4
- const runtimeConfig_1 = require("./runtimeConfig");
5
4
  const config_resolver_1 = require("@aws-sdk/config-resolver");
6
5
  const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
7
6
  const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
@@ -10,18 +9,16 @@ const middleware_retry_1 = require("@aws-sdk/middleware-retry");
10
9
  const middleware_signing_1 = require("@aws-sdk/middleware-signing");
11
10
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
12
11
  const smithy_client_1 = require("@aws-sdk/smithy-client");
13
- /**
14
- * <p>SageMaker Edge Manager dataplane service for communicating with active agents.</p>
15
- */
12
+ const runtimeConfig_1 = require("./runtimeConfig");
16
13
  class SagemakerEdgeClient extends smithy_client_1.Client {
17
14
  constructor(configuration) {
18
- let _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
19
- let _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
20
- let _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
21
- let _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
22
- let _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
23
- let _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4);
24
- let _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5);
15
+ const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
16
+ const _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
17
+ const _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
18
+ const _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
19
+ const _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
20
+ const _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4);
21
+ const _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5);
25
22
  super(_config_6);
26
23
  this.config = _config_6;
27
24
  this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config));
@@ -31,14 +28,8 @@ class SagemakerEdgeClient extends smithy_client_1.Client {
31
28
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
32
29
  this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
33
30
  }
34
- /**
35
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
36
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
37
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
38
- */
39
31
  destroy() {
40
32
  super.destroy();
41
33
  }
42
34
  }
43
35
  exports.SagemakerEdgeClient = SagemakerEdgeClient;
44
- //# sourceMappingURL=SagemakerEdgeClient.js.map
@@ -1,39 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetDeviceRegistrationCommand = void 0;
4
- const models_0_1 = require("../models/models_0");
5
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
6
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
8
- /**
9
- * <p>Use to check if a device is registered with SageMaker Edge Manager.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { SagemakerEdgeClient, GetDeviceRegistrationCommand } from "@aws-sdk/client-sagemaker-edge"; // ES Modules import
14
- * // const { SagemakerEdgeClient, GetDeviceRegistrationCommand } = require("@aws-sdk/client-sagemaker-edge"); // CommonJS import
15
- * const client = new SagemakerEdgeClient(config);
16
- * const command = new GetDeviceRegistrationCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link GetDeviceRegistrationCommandInput} for command's `input` shape.
21
- * @see {@link GetDeviceRegistrationCommandOutput} for command's `response` shape.
22
- * @see {@link SagemakerEdgeClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
25
8
  class GetDeviceRegistrationCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -58,4 +34,3 @@ class GetDeviceRegistrationCommand extends smithy_client_1.Command {
58
34
  }
59
35
  }
60
36
  exports.GetDeviceRegistrationCommand = GetDeviceRegistrationCommand;
61
- //# sourceMappingURL=GetDeviceRegistrationCommand.js.map
@@ -1,39 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SendHeartbeatCommand = void 0;
4
- const models_0_1 = require("../models/models_0");
5
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
6
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
8
- /**
9
- * <p>Use to get the current status of devices registered on SageMaker Edge Manager.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { SagemakerEdgeClient, SendHeartbeatCommand } from "@aws-sdk/client-sagemaker-edge"; // ES Modules import
14
- * // const { SagemakerEdgeClient, SendHeartbeatCommand } = require("@aws-sdk/client-sagemaker-edge"); // CommonJS import
15
- * const client = new SagemakerEdgeClient(config);
16
- * const command = new SendHeartbeatCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link SendHeartbeatCommandInput} for command's `input` shape.
21
- * @see {@link SendHeartbeatCommandOutput} for command's `response` shape.
22
- * @see {@link SagemakerEdgeClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
25
8
  class SendHeartbeatCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -58,4 +34,3 @@ class SendHeartbeatCommand extends smithy_client_1.Command {
58
34
  }
59
35
  }
60
36
  exports.SendHeartbeatCommand = SendHeartbeatCommand;
61
- //# sourceMappingURL=SendHeartbeatCommand.js.map
@@ -54,4 +54,3 @@ const defaultRegionInfoProvider = async (region, options) => config_resolver_1.g
54
54
  partitionHash,
55
55
  });
56
56
  exports.defaultRegionInfoProvider = defaultRegionInfoProvider;
57
- //# sourceMappingURL=endpoints.js.map
@@ -6,4 +6,3 @@ tslib_1.__exportStar(require("./SagemakerEdge"), exports);
6
6
  tslib_1.__exportStar(require("./commands/GetDeviceRegistrationCommand"), exports);
7
7
  tslib_1.__exportStar(require("./commands/SendHeartbeatCommand"), exports);
8
8
  tslib_1.__exportStar(require("./models/index"), exports);
9
- //# sourceMappingURL=index.js.map
@@ -2,4 +2,3 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./models_0"), exports);
5
- //# sourceMappingURL=index.js.map
@@ -3,56 +3,37 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SendHeartbeatRequest = exports.Model = exports.EdgeMetric = exports.InternalServiceException = exports.GetDeviceRegistrationResult = exports.GetDeviceRegistrationRequest = void 0;
4
4
  var GetDeviceRegistrationRequest;
5
5
  (function (GetDeviceRegistrationRequest) {
6
- /**
7
- * @internal
8
- */
9
6
  GetDeviceRegistrationRequest.filterSensitiveLog = (obj) => ({
10
7
  ...obj,
11
8
  });
12
9
  })(GetDeviceRegistrationRequest = exports.GetDeviceRegistrationRequest || (exports.GetDeviceRegistrationRequest = {}));
13
10
  var GetDeviceRegistrationResult;
14
11
  (function (GetDeviceRegistrationResult) {
15
- /**
16
- * @internal
17
- */
18
12
  GetDeviceRegistrationResult.filterSensitiveLog = (obj) => ({
19
13
  ...obj,
20
14
  });
21
15
  })(GetDeviceRegistrationResult = exports.GetDeviceRegistrationResult || (exports.GetDeviceRegistrationResult = {}));
22
16
  var InternalServiceException;
23
17
  (function (InternalServiceException) {
24
- /**
25
- * @internal
26
- */
27
18
  InternalServiceException.filterSensitiveLog = (obj) => ({
28
19
  ...obj,
29
20
  });
30
21
  })(InternalServiceException = exports.InternalServiceException || (exports.InternalServiceException = {}));
31
22
  var EdgeMetric;
32
23
  (function (EdgeMetric) {
33
- /**
34
- * @internal
35
- */
36
24
  EdgeMetric.filterSensitiveLog = (obj) => ({
37
25
  ...obj,
38
26
  });
39
27
  })(EdgeMetric = exports.EdgeMetric || (exports.EdgeMetric = {}));
40
28
  var Model;
41
29
  (function (Model) {
42
- /**
43
- * @internal
44
- */
45
30
  Model.filterSensitiveLog = (obj) => ({
46
31
  ...obj,
47
32
  });
48
33
  })(Model = exports.Model || (exports.Model = {}));
49
34
  var SendHeartbeatRequest;
50
35
  (function (SendHeartbeatRequest) {
51
- /**
52
- * @internal
53
- */
54
36
  SendHeartbeatRequest.filterSensitiveLog = (obj) => ({
55
37
  ...obj,
56
38
  });
57
39
  })(SendHeartbeatRequest = exports.SendHeartbeatRequest || (exports.SendHeartbeatRequest = {}));
58
- //# sourceMappingURL=models_0.js.map
@@ -8,7 +8,7 @@ const serializeAws_restJson1GetDeviceRegistrationCommand = async (input, context
8
8
  const headers = {
9
9
  "content-type": "application/json",
10
10
  };
11
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetDeviceRegistration";
11
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetDeviceRegistration";
12
12
  let body;
13
13
  body = JSON.stringify({
14
14
  ...(input.DeviceFleetName !== undefined &&
@@ -31,7 +31,7 @@ const serializeAws_restJson1SendHeartbeatCommand = async (input, context) => {
31
31
  const headers = {
32
32
  "content-type": "application/json",
33
33
  };
34
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/SendHeartbeat";
34
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/SendHeartbeat";
35
35
  let body;
36
36
  body = JSON.stringify({
37
37
  ...(input.AgentMetrics !== undefined &&
@@ -213,14 +213,12 @@ const deserializeMetadata = (output) => {
213
213
  cfId: output.headers["x-amz-cf-id"],
214
214
  });
215
215
  };
216
- // Collect low-level response body stream to Uint8Array.
217
216
  const collectBody = (streamBody = new Uint8Array(), context) => {
218
217
  if (streamBody instanceof Uint8Array) {
219
218
  return Promise.resolve(streamBody);
220
219
  }
221
220
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
222
221
  };
223
- // Encode Uint8Array data into string with utf-8.
224
222
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
225
223
  const isSerializableHeaderValue = (value) => value !== undefined &&
226
224
  value !== null &&
@@ -233,9 +231,6 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
233
231
  }
234
232
  return {};
235
233
  });
236
- /**
237
- * Load an error code for the aws.rest-json-1.1 protocol.
238
- */
239
234
  const loadRestJsonErrorCode = (output, data) => {
240
235
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
241
236
  const sanitizeErrorCode = (rawValue) => {
@@ -260,4 +255,3 @@ const loadRestJsonErrorCode = (output, data) => {
260
255
  }
261
256
  return "";
262
257
  };
263
- //# sourceMappingURL=Aws_restJson1.js.map
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("./package.json"));
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
7
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
8
8
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
@@ -12,9 +12,6 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
12
12
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
13
13
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
14
14
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
15
- /**
16
- * @internal
17
- */
18
15
  const getRuntimeConfig = (config) => {
19
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
20
17
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
@@ -38,4 +35,3 @@ const getRuntimeConfig = (config) => {
38
35
  };
39
36
  };
40
37
  exports.getRuntimeConfig = getRuntimeConfig;
41
- //# sourceMappingURL=runtimeConfig.browser.js.map
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("./package.json"));
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const client_sts_1 = require("@aws-sdk/client-sts");
7
7
  const config_resolver_1 = require("@aws-sdk/config-resolver");
8
8
  const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
@@ -16,9 +16,6 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
- /**
20
- * @internal
21
- */
22
19
  const getRuntimeConfig = (config) => {
23
20
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
24
21
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
@@ -43,4 +40,3 @@ const getRuntimeConfig = (config) => {
43
40
  };
44
41
  };
45
42
  exports.getRuntimeConfig = getRuntimeConfig;
46
- //# sourceMappingURL=runtimeConfig.js.map
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a;
11
8
  const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
@@ -17,4 +14,3 @@ const getRuntimeConfig = (config) => {
17
14
  };
18
15
  };
19
16
  exports.getRuntimeConfig = getRuntimeConfig;
20
- //# sourceMappingURL=runtimeConfig.native.js.map
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
- const endpoints_1 = require("./endpoints");
5
4
  const url_parser_1 = require("@aws-sdk/url-parser");
6
- /**
7
- * @internal
8
- */
5
+ const endpoints_1 = require("./endpoints");
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a, _b, _c, _d, _e;
11
8
  return ({
@@ -18,4 +15,3 @@ const getRuntimeConfig = (config) => {
18
15
  });
19
16
  };
20
17
  exports.getRuntimeConfig = getRuntimeConfig;
21
- //# sourceMappingURL=runtimeConfig.shared.js.map
@@ -1,11 +1,8 @@
1
1
  import { __extends } from "tslib";
2
- import { SagemakerEdgeClient } from "./SagemakerEdgeClient";
3
2
  import { GetDeviceRegistrationCommand, } from "./commands/GetDeviceRegistrationCommand";
4
3
  import { SendHeartbeatCommand, } from "./commands/SendHeartbeatCommand";
5
- /**
6
- * <p>SageMaker Edge Manager dataplane service for communicating with active agents.</p>
7
- */
8
- var SagemakerEdge = /** @class */ (function (_super) {
4
+ import { SagemakerEdgeClient } from "./SagemakerEdgeClient";
5
+ var SagemakerEdge = (function (_super) {
9
6
  __extends(SagemakerEdge, _super);
10
7
  function SagemakerEdge() {
11
8
  return _super !== null && _super.apply(this, arguments) || this;
@@ -41,4 +38,3 @@ var SagemakerEdge = /** @class */ (function (_super) {
41
38
  return SagemakerEdge;
42
39
  }(SagemakerEdgeClient));
43
40
  export { SagemakerEdge };
44
- //# sourceMappingURL=SagemakerEdge.js.map
@@ -1,5 +1,4 @@
1
1
  import { __extends } from "tslib";
2
- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
3
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
4
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
5
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,10 +7,8 @@ import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
8
7
  import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
- /**
12
- * <p>SageMaker Edge Manager dataplane service for communicating with active agents.</p>
13
- */
14
- var SagemakerEdgeClient = /** @class */ (function (_super) {
10
+ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
+ var SagemakerEdgeClient = (function (_super) {
15
12
  __extends(SagemakerEdgeClient, _super);
16
13
  function SagemakerEdgeClient(configuration) {
17
14
  var _this = this;
@@ -32,15 +29,9 @@ var SagemakerEdgeClient = /** @class */ (function (_super) {
32
29
  _this.middlewareStack.use(getUserAgentPlugin(_this.config));
33
30
  return _this;
34
31
  }
35
- /**
36
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
37
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
38
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
39
- */
40
32
  SagemakerEdgeClient.prototype.destroy = function () {
41
33
  _super.prototype.destroy.call(this);
42
34
  };
43
35
  return SagemakerEdgeClient;
44
36
  }(__Client));
45
37
  export { SagemakerEdgeClient };
46
- //# sourceMappingURL=SagemakerEdgeClient.js.map
@@ -1,40 +1,15 @@
1
1
  import { __extends } from "tslib";
2
- import { GetDeviceRegistrationRequest, GetDeviceRegistrationResult } from "../models/models_0";
3
- import { deserializeAws_restJson1GetDeviceRegistrationCommand, serializeAws_restJson1GetDeviceRegistrationCommand, } from "../protocols/Aws_restJson1";
4
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <p>Use to check if a device is registered with SageMaker Edge Manager.</p>
8
- * @example
9
- * Use a bare-bones client and the command you need to make an API call.
10
- * ```javascript
11
- * import { SagemakerEdgeClient, GetDeviceRegistrationCommand } from "@aws-sdk/client-sagemaker-edge"; // ES Modules import
12
- * // const { SagemakerEdgeClient, GetDeviceRegistrationCommand } = require("@aws-sdk/client-sagemaker-edge"); // CommonJS import
13
- * const client = new SagemakerEdgeClient(config);
14
- * const command = new GetDeviceRegistrationCommand(input);
15
- * const response = await client.send(command);
16
- * ```
17
- *
18
- * @see {@link GetDeviceRegistrationCommandInput} for command's `input` shape.
19
- * @see {@link GetDeviceRegistrationCommandOutput} for command's `response` shape.
20
- * @see {@link SagemakerEdgeClientResolvedConfig | config} for command's `input` shape.
21
- *
22
- */
23
- var GetDeviceRegistrationCommand = /** @class */ (function (_super) {
4
+ import { GetDeviceRegistrationRequest, GetDeviceRegistrationResult } from "../models/models_0";
5
+ import { deserializeAws_restJson1GetDeviceRegistrationCommand, serializeAws_restJson1GetDeviceRegistrationCommand, } from "../protocols/Aws_restJson1";
6
+ var GetDeviceRegistrationCommand = (function (_super) {
24
7
  __extends(GetDeviceRegistrationCommand, _super);
25
- // Start section: command_properties
26
- // End section: command_properties
27
8
  function GetDeviceRegistrationCommand(input) {
28
- var _this =
29
- // Start section: command_constructor
30
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
31
10
  _this.input = input;
32
11
  return _this;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  GetDeviceRegistrationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
39
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -62,4 +37,3 @@ var GetDeviceRegistrationCommand = /** @class */ (function (_super) {
62
37
  return GetDeviceRegistrationCommand;
63
38
  }($Command));
64
39
  export { GetDeviceRegistrationCommand };
65
- //# sourceMappingURL=GetDeviceRegistrationCommand.js.map
@@ -1,40 +1,15 @@
1
1
  import { __extends } from "tslib";
2
- import { SendHeartbeatRequest } from "../models/models_0";
3
- import { deserializeAws_restJson1SendHeartbeatCommand, serializeAws_restJson1SendHeartbeatCommand, } from "../protocols/Aws_restJson1";
4
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <p>Use to get the current status of devices registered on SageMaker Edge Manager.</p>
8
- * @example
9
- * Use a bare-bones client and the command you need to make an API call.
10
- * ```javascript
11
- * import { SagemakerEdgeClient, SendHeartbeatCommand } from "@aws-sdk/client-sagemaker-edge"; // ES Modules import
12
- * // const { SagemakerEdgeClient, SendHeartbeatCommand } = require("@aws-sdk/client-sagemaker-edge"); // CommonJS import
13
- * const client = new SagemakerEdgeClient(config);
14
- * const command = new SendHeartbeatCommand(input);
15
- * const response = await client.send(command);
16
- * ```
17
- *
18
- * @see {@link SendHeartbeatCommandInput} for command's `input` shape.
19
- * @see {@link SendHeartbeatCommandOutput} for command's `response` shape.
20
- * @see {@link SagemakerEdgeClientResolvedConfig | config} for command's `input` shape.
21
- *
22
- */
23
- var SendHeartbeatCommand = /** @class */ (function (_super) {
4
+ import { SendHeartbeatRequest } from "../models/models_0";
5
+ import { deserializeAws_restJson1SendHeartbeatCommand, serializeAws_restJson1SendHeartbeatCommand, } from "../protocols/Aws_restJson1";
6
+ var SendHeartbeatCommand = (function (_super) {
24
7
  __extends(SendHeartbeatCommand, _super);
25
- // Start section: command_properties
26
- // End section: command_properties
27
8
  function SendHeartbeatCommand(input) {
28
- var _this =
29
- // Start section: command_constructor
30
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
31
10
  _this.input = input;
32
11
  return _this;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  SendHeartbeatCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
39
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -62,4 +37,3 @@ var SendHeartbeatCommand = /** @class */ (function (_super) {
62
37
  return SendHeartbeatCommand;
63
38
  }($Command));
64
39
  export { SendHeartbeatCommand };
65
- //# sourceMappingURL=SendHeartbeatCommand.js.map
@@ -47,7 +47,6 @@ var partitionHash = {
47
47
  };
48
48
  export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
49
49
  return __generator(this, function (_a) {
50
- return [2 /*return*/, getRegionInfo(region, __assign(__assign({}, options), { signingService: "sagemaker", regionHash: regionHash, partitionHash: partitionHash }))];
50
+ return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "sagemaker", regionHash: regionHash, partitionHash: partitionHash }))];
51
51
  });
52
52
  }); };
53
- //# sourceMappingURL=endpoints.js.map
File without changes
@@ -1,44 +1,25 @@
1
1
  import { __assign } from "tslib";
2
2
  export var GetDeviceRegistrationRequest;
3
3
  (function (GetDeviceRegistrationRequest) {
4
- /**
5
- * @internal
6
- */
7
4
  GetDeviceRegistrationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
8
5
  })(GetDeviceRegistrationRequest || (GetDeviceRegistrationRequest = {}));
9
6
  export var GetDeviceRegistrationResult;
10
7
  (function (GetDeviceRegistrationResult) {
11
- /**
12
- * @internal
13
- */
14
8
  GetDeviceRegistrationResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
15
9
  })(GetDeviceRegistrationResult || (GetDeviceRegistrationResult = {}));
16
10
  export var InternalServiceException;
17
11
  (function (InternalServiceException) {
18
- /**
19
- * @internal
20
- */
21
12
  InternalServiceException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
22
13
  })(InternalServiceException || (InternalServiceException = {}));
23
14
  export var EdgeMetric;
24
15
  (function (EdgeMetric) {
25
- /**
26
- * @internal
27
- */
28
16
  EdgeMetric.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
29
17
  })(EdgeMetric || (EdgeMetric = {}));
30
18
  export var Model;
31
19
  (function (Model) {
32
- /**
33
- * @internal
34
- */
35
20
  Model.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
36
21
  })(Model || (Model = {}));
37
22
  export var SendHeartbeatRequest;
38
23
  (function (SendHeartbeatRequest) {
39
- /**
40
- * @internal
41
- */
42
24
  SendHeartbeatRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
43
25
  })(SendHeartbeatRequest || (SendHeartbeatRequest = {}));
44
- //# sourceMappingURL=models_0.js.map