@aws-sdk/client-sagemaker-edge 3.34.0 → 3.37.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 (102) 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 +1 -2
  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 +1 -2
  16. package/{dist/es → dist-es}/SagemakerEdgeClient.js +1 -2
  17. package/{dist/es → dist-es}/commands/GetDeviceRegistrationCommand.js +2 -3
  18. package/{dist/es → dist-es}/commands/SendHeartbeatCommand.js +2 -3
  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 -1
  23. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +0 -1
  24. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
  25. package/{dist/es → dist-es}/runtimeConfig.js +1 -2
  26. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
  27. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
  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 +45 -42
  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 -10
  101. package/tsconfig.json +0 -31
  102. package/tsconfig.types.json +0 -8
@@ -1,7 +1,7 @@
1
- import { SagemakerEdgeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SagemakerEdgeClient";
2
- import { SendHeartbeatRequest } from "../models/models_0";
3
1
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { SendHeartbeatRequest } from "../models/models_0";
4
+ import { SagemakerEdgeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SagemakerEdgeClient";
5
5
  export interface SendHeartbeatCommandInput extends SendHeartbeatRequest {
6
6
  }
7
7
  export interface SendHeartbeatCommandOutput extends __MetadataBearer {
File without changes
File without changes
File without changes
@@ -1,7 +1,7 @@
1
- import { GetDeviceRegistrationCommandInput, GetDeviceRegistrationCommandOutput } from "../commands/GetDeviceRegistrationCommand";
2
- import { SendHeartbeatCommandInput, SendHeartbeatCommandOutput } from "../commands/SendHeartbeatCommand";
3
1
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
4
2
  import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
3
+ import { GetDeviceRegistrationCommandInput, GetDeviceRegistrationCommandOutput } from "../commands/GetDeviceRegistrationCommand";
4
+ import { SendHeartbeatCommandInput, SendHeartbeatCommandOutput } from "../commands/SendHeartbeatCommand";
5
5
  export declare const serializeAws_restJson1GetDeviceRegistrationCommand: (input: GetDeviceRegistrationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
6
6
  export declare const serializeAws_restJson1SendHeartbeatCommand: (input: SendHeartbeatCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
7
7
  export declare const deserializeAws_restJson1GetDeviceRegistrationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDeviceRegistrationCommandOutput>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: SagemakerEdgeClientConfig) => {
8
8
  base64Decoder: import("@aws-sdk/types").Decoder;
9
9
  base64Encoder: import("@aws-sdk/types").Encoder;
10
10
  bodyLengthChecker: (body: any) => number | undefined;
11
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist/types/defaultStsRoleAssumers").DefaultCredentialProvider;
11
+ credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
12
12
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
13
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
14
  region: string | import("@aws-sdk/types").Provider<string>;
@@ -1,20 +1,14 @@
1
- import { SagemakerEdgeClient } from "./SagemakerEdgeClient";
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
2
  import { GetDeviceRegistrationCommandInput, GetDeviceRegistrationCommandOutput } from "./commands/GetDeviceRegistrationCommand";
3
3
  import { SendHeartbeatCommandInput, SendHeartbeatCommandOutput } from "./commands/SendHeartbeatCommand";
4
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
5
- /**
6
- * <p>SageMaker Edge Manager dataplane service for communicating with active agents.</p>
7
- */
4
+ import { SagemakerEdgeClient } from "./SagemakerEdgeClient";
5
+
8
6
  export declare class SagemakerEdge extends SagemakerEdgeClient {
9
- /**
10
- * <p>Use to check if a device is registered with SageMaker Edge Manager.</p>
11
- */
7
+
12
8
  getDeviceRegistration(args: GetDeviceRegistrationCommandInput, options?: __HttpHandlerOptions): Promise<GetDeviceRegistrationCommandOutput>;
13
9
  getDeviceRegistration(args: GetDeviceRegistrationCommandInput, cb: (err: any, data?: GetDeviceRegistrationCommandOutput) => void): void;
14
10
  getDeviceRegistration(args: GetDeviceRegistrationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDeviceRegistrationCommandOutput) => void): void;
15
- /**
16
- * <p>Use to get the current status of devices registered on SageMaker Edge Manager.</p>
17
- */
11
+
18
12
  sendHeartbeat(args: SendHeartbeatCommandInput, options?: __HttpHandlerOptions): Promise<SendHeartbeatCommandOutput>;
19
13
  sendHeartbeat(args: SendHeartbeatCommandInput, cb: (err: any, data?: SendHeartbeatCommandOutput) => void): void;
20
14
  sendHeartbeat(args: SendHeartbeatCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendHeartbeatCommandOutput) => void): void;
@@ -0,0 +1,69 @@
1
+ import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
2
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
3
+ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
4
+ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
+ import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
+ import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
+ import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
+ import { GetDeviceRegistrationCommandInput, GetDeviceRegistrationCommandOutput } from "./commands/GetDeviceRegistrationCommand";
10
+ import { SendHeartbeatCommandInput, SendHeartbeatCommandOutput } from "./commands/SendHeartbeatCommand";
11
+ export declare type ServiceInputTypes = GetDeviceRegistrationCommandInput | SendHeartbeatCommandInput;
12
+ export declare type ServiceOutputTypes = GetDeviceRegistrationCommandOutput | SendHeartbeatCommandOutput;
13
+ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
14
+
15
+ requestHandler?: __HttpHandler;
16
+
17
+ sha256?: __HashConstructor;
18
+
19
+ urlParser?: __UrlParser;
20
+
21
+ bodyLengthChecker?: (body: any) => number | undefined;
22
+
23
+ streamCollector?: __StreamCollector;
24
+
25
+ base64Decoder?: __Decoder;
26
+
27
+ base64Encoder?: __Encoder;
28
+
29
+ utf8Decoder?: __Decoder;
30
+
31
+ utf8Encoder?: __Encoder;
32
+
33
+ runtime?: string;
34
+
35
+ disableHostPrefix?: boolean;
36
+
37
+ maxAttempts?: number | __Provider<number>;
38
+
39
+ retryMode?: string | __Provider<string>;
40
+
41
+ logger?: __Logger;
42
+
43
+ serviceId?: string;
44
+
45
+ region?: string | __Provider<string>;
46
+
47
+ credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
48
+
49
+ regionInfoProvider?: RegionInfoProvider;
50
+
51
+ defaultUserAgentProvider?: Provider<__UserAgent>;
52
+ }
53
+ declare type SagemakerEdgeClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
54
+
55
+ export interface SagemakerEdgeClientConfig extends SagemakerEdgeClientConfigType {
56
+ }
57
+ declare type SagemakerEdgeClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
58
+
59
+ export interface SagemakerEdgeClientResolvedConfig extends SagemakerEdgeClientResolvedConfigType {
60
+ }
61
+
62
+ export declare class SagemakerEdgeClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, SagemakerEdgeClientResolvedConfig> {
63
+
64
+ readonly config: SagemakerEdgeClientResolvedConfig;
65
+ constructor(configuration: SagemakerEdgeClientConfig);
66
+
67
+ destroy(): void;
68
+ }
69
+ export {};
@@ -1,34 +1,16 @@
1
- import { SagemakerEdgeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SagemakerEdgeClient";
2
- import { GetDeviceRegistrationRequest, GetDeviceRegistrationResult } from "../models/models_0";
3
1
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { GetDeviceRegistrationRequest, GetDeviceRegistrationResult } from "../models/models_0";
4
+ import { SagemakerEdgeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SagemakerEdgeClient";
5
5
  export interface GetDeviceRegistrationCommandInput extends GetDeviceRegistrationRequest {
6
6
  }
7
7
  export interface GetDeviceRegistrationCommandOutput extends GetDeviceRegistrationResult, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Use to check if a device is registered with SageMaker Edge Manager.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { SagemakerEdgeClient, GetDeviceRegistrationCommand } from "@aws-sdk/client-sagemaker-edge"; // ES Modules import
15
- * // const { SagemakerEdgeClient, GetDeviceRegistrationCommand } = require("@aws-sdk/client-sagemaker-edge"); // CommonJS import
16
- * const client = new SagemakerEdgeClient(config);
17
- * const command = new GetDeviceRegistrationCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link GetDeviceRegistrationCommandInput} for command's `input` shape.
22
- * @see {@link GetDeviceRegistrationCommandOutput} for command's `response` shape.
23
- * @see {@link SagemakerEdgeClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
9
+
26
10
  export declare class GetDeviceRegistrationCommand extends $Command<GetDeviceRegistrationCommandInput, GetDeviceRegistrationCommandOutput, SagemakerEdgeClientResolvedConfig> {
27
11
  readonly input: GetDeviceRegistrationCommandInput;
28
12
  constructor(input: GetDeviceRegistrationCommandInput);
29
- /**
30
- * @internal
31
- */
13
+
32
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SagemakerEdgeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetDeviceRegistrationCommandInput, GetDeviceRegistrationCommandOutput>;
33
15
  private serialize;
34
16
  private deserialize;
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { SendHeartbeatRequest } from "../models/models_0";
4
+ import { SagemakerEdgeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SagemakerEdgeClient";
5
+ export interface SendHeartbeatCommandInput extends SendHeartbeatRequest {
6
+ }
7
+ export interface SendHeartbeatCommandOutput extends __MetadataBearer {
8
+ }
9
+
10
+ export declare class SendHeartbeatCommand extends $Command<SendHeartbeatCommandInput, SendHeartbeatCommandOutput, SagemakerEdgeClientResolvedConfig> {
11
+ readonly input: SendHeartbeatCommandInput;
12
+ constructor(input: SendHeartbeatCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SagemakerEdgeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<SendHeartbeatCommandInput, SendHeartbeatCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
File without changes
File without changes
@@ -0,0 +1,79 @@
1
+ import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
+ export interface GetDeviceRegistrationRequest {
3
+
4
+ DeviceName: string | undefined;
5
+
6
+ DeviceFleetName: string | undefined;
7
+ }
8
+ export declare namespace GetDeviceRegistrationRequest {
9
+
10
+ const filterSensitiveLog: (obj: GetDeviceRegistrationRequest) => any;
11
+ }
12
+ export interface GetDeviceRegistrationResult {
13
+
14
+ DeviceRegistration?: string;
15
+
16
+ CacheTTL?: string;
17
+ }
18
+ export declare namespace GetDeviceRegistrationResult {
19
+
20
+ const filterSensitiveLog: (obj: GetDeviceRegistrationResult) => any;
21
+ }
22
+
23
+ export interface InternalServiceException extends __SmithyException, $MetadataBearer {
24
+ name: "InternalServiceException";
25
+ $fault: "client";
26
+ Message?: string;
27
+ }
28
+ export declare namespace InternalServiceException {
29
+
30
+ const filterSensitiveLog: (obj: InternalServiceException) => any;
31
+ }
32
+
33
+ export interface EdgeMetric {
34
+
35
+ Dimension?: string;
36
+
37
+ MetricName?: string;
38
+
39
+ Value?: number;
40
+
41
+ Timestamp?: Date;
42
+ }
43
+ export declare namespace EdgeMetric {
44
+
45
+ const filterSensitiveLog: (obj: EdgeMetric) => any;
46
+ }
47
+
48
+ export interface Model {
49
+
50
+ ModelName?: string;
51
+
52
+ ModelVersion?: string;
53
+
54
+ LatestSampleTime?: Date;
55
+
56
+ LatestInference?: Date;
57
+
58
+ ModelMetrics?: EdgeMetric[];
59
+ }
60
+ export declare namespace Model {
61
+
62
+ const filterSensitiveLog: (obj: Model) => any;
63
+ }
64
+ export interface SendHeartbeatRequest {
65
+
66
+ AgentMetrics?: EdgeMetric[];
67
+
68
+ Models?: Model[];
69
+
70
+ AgentVersion: string | undefined;
71
+
72
+ DeviceName: string | undefined;
73
+
74
+ DeviceFleetName: string | undefined;
75
+ }
76
+ export declare namespace SendHeartbeatRequest {
77
+
78
+ const filterSensitiveLog: (obj: SendHeartbeatRequest) => any;
79
+ }
@@ -1,7 +1,7 @@
1
- import { GetDeviceRegistrationCommandInput, GetDeviceRegistrationCommandOutput } from "../commands/GetDeviceRegistrationCommand";
2
- import { SendHeartbeatCommandInput, SendHeartbeatCommandOutput } from "../commands/SendHeartbeatCommand";
3
1
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
4
2
  import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
3
+ import { GetDeviceRegistrationCommandInput, GetDeviceRegistrationCommandOutput } from "../commands/GetDeviceRegistrationCommand";
4
+ import { SendHeartbeatCommandInput, SendHeartbeatCommandOutput } from "../commands/SendHeartbeatCommand";
5
5
  export declare const serializeAws_restJson1GetDeviceRegistrationCommand: (input: GetDeviceRegistrationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
6
6
  export declare const serializeAws_restJson1SendHeartbeatCommand: (input: SendHeartbeatCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
7
7
  export declare const deserializeAws_restJson1GetDeviceRegistrationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDeviceRegistrationCommandOutput>;
@@ -1,8 +1,6 @@
1
1
  import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { SagemakerEdgeClientConfig } from "./SagemakerEdgeClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: SagemakerEdgeClientConfig) => {
7
5
  runtime: string;
8
6
  base64Decoder: import("@aws-sdk/types").Decoder;
@@ -1,14 +1,12 @@
1
1
  import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
2
2
  import { SagemakerEdgeClientConfig } from "./SagemakerEdgeClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: SagemakerEdgeClientConfig) => {
7
5
  runtime: string;
8
6
  base64Decoder: import("@aws-sdk/types").Decoder;
9
7
  base64Encoder: import("@aws-sdk/types").Encoder;
10
8
  bodyLengthChecker: (body: any) => number | undefined;
11
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist/types/defaultStsRoleAssumers").DefaultCredentialProvider;
9
+ credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
12
10
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
11
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
12
  region: string | import("@aws-sdk/types").Provider<string>;
@@ -1,7 +1,5 @@
1
1
  import { SagemakerEdgeClientConfig } from "./SagemakerEdgeClient";
2
- /**
3
- * @internal
4
- */
2
+
5
3
  export declare const getRuntimeConfig: (config: SagemakerEdgeClientConfig) => {
6
4
  runtime: string;
7
5
  sha256: import("@aws-sdk/types").HashConstructor;
@@ -1,8 +1,6 @@
1
1
  import { Logger as __Logger } from "@aws-sdk/types";
2
2
  import { SagemakerEdgeClientConfig } from "./SagemakerEdgeClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: SagemakerEdgeClientConfig) => {
7
5
  apiVersion: string;
8
6
  disableHostPrefix: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sagemaker-edge",
3
3
  "description": "AWS SDK for JavaScript Sagemaker Edge Client for Node.js, Browser and React Native",
4
- "version": "3.34.0",
4
+ "version": "3.37.0",
5
5
  "scripts": {
6
6
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
7
  "build:cjs": "tsc -p tsconfig.json",
@@ -11,54 +11,48 @@
11
11
  "clean": "yarn clean:dist && yarn clean:docs",
12
12
  "clean:dist": "rimraf ./dist",
13
13
  "clean:docs": "rimraf ./docs",
14
- "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4",
14
+ "downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
15
15
  "test": "jest --coverage --passWithNoTests"
16
16
  },
17
- "main": "./dist/cjs/index.js",
18
- "types": "./dist/types/index.d.ts",
19
- "module": "./dist/es/index.js",
20
- "browser": {
21
- "./runtimeConfig": "./runtimeConfig.browser"
22
- },
23
- "react-native": {
24
- "./runtimeConfig": "./runtimeConfig.native"
25
- },
17
+ "main": "./dist-cjs/index.js",
18
+ "types": "./dist-types/index.d.ts",
19
+ "module": "./dist-es/index.js",
26
20
  "sideEffects": false,
27
21
  "dependencies": {
28
22
  "@aws-crypto/sha256-browser": "^1.0.0",
29
23
  "@aws-crypto/sha256-js": "^1.0.0",
30
- "@aws-sdk/client-sts": "3.34.0",
31
- "@aws-sdk/config-resolver": "3.34.0",
32
- "@aws-sdk/credential-provider-node": "3.34.0",
33
- "@aws-sdk/fetch-http-handler": "3.34.0",
34
- "@aws-sdk/hash-node": "3.34.0",
35
- "@aws-sdk/invalid-dependency": "3.34.0",
36
- "@aws-sdk/middleware-content-length": "3.34.0",
37
- "@aws-sdk/middleware-host-header": "3.34.0",
38
- "@aws-sdk/middleware-logger": "3.34.0",
39
- "@aws-sdk/middleware-retry": "3.34.0",
40
- "@aws-sdk/middleware-serde": "3.34.0",
41
- "@aws-sdk/middleware-signing": "3.34.0",
42
- "@aws-sdk/middleware-stack": "3.34.0",
43
- "@aws-sdk/middleware-user-agent": "3.34.0",
44
- "@aws-sdk/node-config-provider": "3.34.0",
45
- "@aws-sdk/node-http-handler": "3.34.0",
46
- "@aws-sdk/protocol-http": "3.34.0",
47
- "@aws-sdk/smithy-client": "3.34.0",
48
- "@aws-sdk/types": "3.34.0",
49
- "@aws-sdk/url-parser": "3.34.0",
50
- "@aws-sdk/util-base64-browser": "3.34.0",
51
- "@aws-sdk/util-base64-node": "3.34.0",
52
- "@aws-sdk/util-body-length-browser": "3.34.0",
53
- "@aws-sdk/util-body-length-node": "3.34.0",
54
- "@aws-sdk/util-user-agent-browser": "3.34.0",
55
- "@aws-sdk/util-user-agent-node": "3.34.0",
56
- "@aws-sdk/util-utf8-browser": "3.34.0",
57
- "@aws-sdk/util-utf8-node": "3.34.0",
24
+ "@aws-sdk/client-sts": "3.37.0",
25
+ "@aws-sdk/config-resolver": "3.37.0",
26
+ "@aws-sdk/credential-provider-node": "3.37.0",
27
+ "@aws-sdk/fetch-http-handler": "3.37.0",
28
+ "@aws-sdk/hash-node": "3.37.0",
29
+ "@aws-sdk/invalid-dependency": "3.37.0",
30
+ "@aws-sdk/middleware-content-length": "3.37.0",
31
+ "@aws-sdk/middleware-host-header": "3.37.0",
32
+ "@aws-sdk/middleware-logger": "3.37.0",
33
+ "@aws-sdk/middleware-retry": "3.37.0",
34
+ "@aws-sdk/middleware-serde": "3.37.0",
35
+ "@aws-sdk/middleware-signing": "3.37.0",
36
+ "@aws-sdk/middleware-stack": "3.37.0",
37
+ "@aws-sdk/middleware-user-agent": "3.37.0",
38
+ "@aws-sdk/node-config-provider": "3.37.0",
39
+ "@aws-sdk/node-http-handler": "3.37.0",
40
+ "@aws-sdk/protocol-http": "3.37.0",
41
+ "@aws-sdk/smithy-client": "3.37.0",
42
+ "@aws-sdk/types": "3.37.0",
43
+ "@aws-sdk/url-parser": "3.37.0",
44
+ "@aws-sdk/util-base64-browser": "3.37.0",
45
+ "@aws-sdk/util-base64-node": "3.37.0",
46
+ "@aws-sdk/util-body-length-browser": "3.37.0",
47
+ "@aws-sdk/util-body-length-node": "3.37.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.37.0",
49
+ "@aws-sdk/util-user-agent-node": "3.37.0",
50
+ "@aws-sdk/util-utf8-browser": "3.37.0",
51
+ "@aws-sdk/util-utf8-node": "3.37.0",
58
52
  "tslib": "^2.3.0"
59
53
  },
60
54
  "devDependencies": {
61
- "@aws-sdk/client-documentation-generator": "3.34.0",
55
+ "@aws-sdk/client-documentation-generator": "3.37.0",
62
56
  "@types/node": "^12.7.5",
63
57
  "downlevel-dts": "0.7.0",
64
58
  "jest": "^26.1.0",
@@ -72,16 +66,25 @@
72
66
  },
73
67
  "typesVersions": {
74
68
  "<4.0": {
75
- "dist/types/*": [
76
- "dist/types/ts3.4/*"
69
+ "dist-types/*": [
70
+ "dist-types/ts3.4/*"
77
71
  ]
78
72
  }
79
73
  },
74
+ "files": [
75
+ "dist-*"
76
+ ],
80
77
  "author": {
81
78
  "name": "AWS SDK for JavaScript Team",
82
79
  "url": "https://aws.amazon.com/javascript/"
83
80
  },
84
81
  "license": "Apache-2.0",
82
+ "browser": {
83
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
84
+ },
85
+ "react-native": {
86
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
87
+ },
85
88
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sagemaker-edge",
86
89
  "repository": {
87
90
  "type": "git",
package/SagemakerEdge.ts DELETED
@@ -1,81 +0,0 @@
1
- import { SagemakerEdgeClient } from "./SagemakerEdgeClient";
2
- import {
3
- GetDeviceRegistrationCommand,
4
- GetDeviceRegistrationCommandInput,
5
- GetDeviceRegistrationCommandOutput,
6
- } from "./commands/GetDeviceRegistrationCommand";
7
- import {
8
- SendHeartbeatCommand,
9
- SendHeartbeatCommandInput,
10
- SendHeartbeatCommandOutput,
11
- } from "./commands/SendHeartbeatCommand";
12
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
13
-
14
- /**
15
- * <p>SageMaker Edge Manager dataplane service for communicating with active agents.</p>
16
- */
17
- export class SagemakerEdge extends SagemakerEdgeClient {
18
- /**
19
- * <p>Use to check if a device is registered with SageMaker Edge Manager.</p>
20
- */
21
- public getDeviceRegistration(
22
- args: GetDeviceRegistrationCommandInput,
23
- options?: __HttpHandlerOptions
24
- ): Promise<GetDeviceRegistrationCommandOutput>;
25
- public getDeviceRegistration(
26
- args: GetDeviceRegistrationCommandInput,
27
- cb: (err: any, data?: GetDeviceRegistrationCommandOutput) => void
28
- ): void;
29
- public getDeviceRegistration(
30
- args: GetDeviceRegistrationCommandInput,
31
- options: __HttpHandlerOptions,
32
- cb: (err: any, data?: GetDeviceRegistrationCommandOutput) => void
33
- ): void;
34
- public getDeviceRegistration(
35
- args: GetDeviceRegistrationCommandInput,
36
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetDeviceRegistrationCommandOutput) => void),
37
- cb?: (err: any, data?: GetDeviceRegistrationCommandOutput) => void
38
- ): Promise<GetDeviceRegistrationCommandOutput> | void {
39
- const command = new GetDeviceRegistrationCommand(args);
40
- if (typeof optionsOrCb === "function") {
41
- this.send(command, optionsOrCb);
42
- } else if (typeof cb === "function") {
43
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
44
- this.send(command, optionsOrCb || {}, cb);
45
- } else {
46
- return this.send(command, optionsOrCb);
47
- }
48
- }
49
-
50
- /**
51
- * <p>Use to get the current status of devices registered on SageMaker Edge Manager.</p>
52
- */
53
- public sendHeartbeat(
54
- args: SendHeartbeatCommandInput,
55
- options?: __HttpHandlerOptions
56
- ): Promise<SendHeartbeatCommandOutput>;
57
- public sendHeartbeat(
58
- args: SendHeartbeatCommandInput,
59
- cb: (err: any, data?: SendHeartbeatCommandOutput) => void
60
- ): void;
61
- public sendHeartbeat(
62
- args: SendHeartbeatCommandInput,
63
- options: __HttpHandlerOptions,
64
- cb: (err: any, data?: SendHeartbeatCommandOutput) => void
65
- ): void;
66
- public sendHeartbeat(
67
- args: SendHeartbeatCommandInput,
68
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: SendHeartbeatCommandOutput) => void),
69
- cb?: (err: any, data?: SendHeartbeatCommandOutput) => void
70
- ): Promise<SendHeartbeatCommandOutput> | void {
71
- const command = new SendHeartbeatCommand(args);
72
- if (typeof optionsOrCb === "function") {
73
- this.send(command, optionsOrCb);
74
- } else if (typeof cb === "function") {
75
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
76
- this.send(command, optionsOrCb || {}, cb);
77
- } else {
78
- return this.send(command, optionsOrCb);
79
- }
80
- }
81
- }