@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
@@ -1,35 +0,0 @@
1
- import { SagemakerEdgeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SagemakerEdgeClient";
2
- import { SendHeartbeatRequest } from "../models/models_0";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
5
- export interface SendHeartbeatCommandInput extends SendHeartbeatRequest {
6
- }
7
- export interface SendHeartbeatCommandOutput extends __MetadataBearer {
8
- }
9
- /**
10
- * <p>Use to get the current status of devices registered on 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, SendHeartbeatCommand } from "@aws-sdk/client-sagemaker-edge"; // ES Modules import
15
- * // const { SagemakerEdgeClient, SendHeartbeatCommand } = require("@aws-sdk/client-sagemaker-edge"); // CommonJS import
16
- * const client = new SagemakerEdgeClient(config);
17
- * const command = new SendHeartbeatCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link SendHeartbeatCommandInput} for command's `input` shape.
22
- * @see {@link SendHeartbeatCommandOutput} for command's `response` shape.
23
- * @see {@link SagemakerEdgeClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
- export declare class SendHeartbeatCommand extends $Command<SendHeartbeatCommandInput, SendHeartbeatCommandOutput, SagemakerEdgeClientResolvedConfig> {
27
- readonly input: SendHeartbeatCommandInput;
28
- constructor(input: SendHeartbeatCommandInput);
29
- /**
30
- * @internal
31
- */
32
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SagemakerEdgeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<SendHeartbeatCommandInput, SendHeartbeatCommandOutput>;
33
- private serialize;
34
- private deserialize;
35
- }
@@ -1,134 +0,0 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
- export interface GetDeviceRegistrationRequest {
3
- /**
4
- * <p>The unique name of the device you want to get the registration status from.</p>
5
- */
6
- DeviceName: string | undefined;
7
- /**
8
- * <p>The name of the fleet that the device belongs to.</p>
9
- */
10
- DeviceFleetName: string | undefined;
11
- }
12
- export declare namespace GetDeviceRegistrationRequest {
13
- /**
14
- * @internal
15
- */
16
- const filterSensitiveLog: (obj: GetDeviceRegistrationRequest) => any;
17
- }
18
- export interface GetDeviceRegistrationResult {
19
- /**
20
- * <p>Describes if the device is currently registered with SageMaker Edge Manager.</p>
21
- */
22
- DeviceRegistration?: string;
23
- /**
24
- * <p>The amount of time, in seconds, that the registration status is stored on the device’s cache before it is refreshed.</p>
25
- */
26
- CacheTTL?: string;
27
- }
28
- export declare namespace GetDeviceRegistrationResult {
29
- /**
30
- * @internal
31
- */
32
- const filterSensitiveLog: (obj: GetDeviceRegistrationResult) => any;
33
- }
34
- /**
35
- * <p>An internal failure occurred. Try your request again. If the problem
36
- * persists, contact AWS customer support.</p>
37
- */
38
- export interface InternalServiceException extends __SmithyException, $MetadataBearer {
39
- name: "InternalServiceException";
40
- $fault: "client";
41
- Message?: string;
42
- }
43
- export declare namespace InternalServiceException {
44
- /**
45
- * @internal
46
- */
47
- const filterSensitiveLog: (obj: InternalServiceException) => any;
48
- }
49
- /**
50
- * <p>Information required for edge device metrics.</p>
51
- */
52
- export interface EdgeMetric {
53
- /**
54
- * <p>The dimension of metrics published.</p>
55
- */
56
- Dimension?: string;
57
- /**
58
- * <p>Returns the name of the metric.</p>
59
- */
60
- MetricName?: string;
61
- /**
62
- * <p>Returns the value of the metric.</p>
63
- */
64
- Value?: number;
65
- /**
66
- * <p>Timestamp of when the metric was requested.</p>
67
- */
68
- Timestamp?: Date;
69
- }
70
- export declare namespace EdgeMetric {
71
- /**
72
- * @internal
73
- */
74
- const filterSensitiveLog: (obj: EdgeMetric) => any;
75
- }
76
- /**
77
- * <p>Information about a model deployed on an edge device that is registered with SageMaker Edge Manager.</p>
78
- */
79
- export interface Model {
80
- /**
81
- * <p>The name of the model.</p>
82
- */
83
- ModelName?: string;
84
- /**
85
- * <p>The version of the model.</p>
86
- */
87
- ModelVersion?: string;
88
- /**
89
- * <p>The timestamp of the last data sample taken.</p>
90
- */
91
- LatestSampleTime?: Date;
92
- /**
93
- * <p>The timestamp of the last inference that was made.</p>
94
- */
95
- LatestInference?: Date;
96
- /**
97
- * <p>Information required for model metrics.</p>
98
- */
99
- ModelMetrics?: EdgeMetric[];
100
- }
101
- export declare namespace Model {
102
- /**
103
- * @internal
104
- */
105
- const filterSensitiveLog: (obj: Model) => any;
106
- }
107
- export interface SendHeartbeatRequest {
108
- /**
109
- * <p>For internal use. Returns a list of SageMaker Edge Manager agent operating metrics.</p>
110
- */
111
- AgentMetrics?: EdgeMetric[];
112
- /**
113
- * <p>Returns a list of models deployed on the the device.</p>
114
- */
115
- Models?: Model[];
116
- /**
117
- * <p>Returns the version of the agent.</p>
118
- */
119
- AgentVersion: string | undefined;
120
- /**
121
- * <p>The unique name of the device.</p>
122
- */
123
- DeviceName: string | undefined;
124
- /**
125
- * <p>The name of the fleet that the device belongs to.</p>
126
- */
127
- DeviceFleetName: string | undefined;
128
- }
129
- export declare namespace SendHeartbeatRequest {
130
- /**
131
- * @internal
132
- */
133
- const filterSensitiveLog: (obj: SendHeartbeatRequest) => any;
134
- }
package/endpoints.ts DELETED
@@ -1,57 +0,0 @@
1
- import { PartitionHash, RegionHash, getRegionInfo } from "@aws-sdk/config-resolver";
2
- import { RegionInfoProvider } from "@aws-sdk/types";
3
-
4
- const regionHash: RegionHash = {};
5
-
6
- const partitionHash: PartitionHash = {
7
- aws: {
8
- regions: [
9
- "af-south-1",
10
- "ap-east-1",
11
- "ap-northeast-1",
12
- "ap-northeast-2",
13
- "ap-northeast-3",
14
- "ap-south-1",
15
- "ap-southeast-1",
16
- "ap-southeast-2",
17
- "ca-central-1",
18
- "eu-central-1",
19
- "eu-north-1",
20
- "eu-south-1",
21
- "eu-west-1",
22
- "eu-west-2",
23
- "eu-west-3",
24
- "me-south-1",
25
- "sa-east-1",
26
- "us-east-1",
27
- "us-east-2",
28
- "us-west-1",
29
- "us-west-2",
30
- ],
31
- hostname: "edge.sagemaker.{region}.amazonaws.com",
32
- },
33
- "aws-cn": {
34
- regions: ["cn-north-1", "cn-northwest-1"],
35
- hostname: "edge.sagemaker.{region}.amazonaws.com.cn",
36
- },
37
- "aws-iso": {
38
- regions: ["us-iso-east-1"],
39
- hostname: "edge.sagemaker.{region}.c2s.ic.gov",
40
- },
41
- "aws-iso-b": {
42
- regions: ["us-isob-east-1"],
43
- hostname: "edge.sagemaker.{region}.sc2s.sgov.gov",
44
- },
45
- "aws-us-gov": {
46
- regions: ["us-gov-east-1", "us-gov-west-1"],
47
- hostname: "edge.sagemaker.{region}.amazonaws.com",
48
- },
49
- };
50
-
51
- export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
52
- getRegionInfo(region, {
53
- ...options,
54
- signingService: "sagemaker",
55
- regionHash,
56
- partitionHash,
57
- });
package/jest.config.js DELETED
@@ -1,4 +0,0 @@
1
- module.exports = {
2
- preset: "ts-jest",
3
- testMatch: ["**/*.spec.ts", "!**/*.browser.spec.ts", "!**/*.integ.spec.ts"],
4
- };
@@ -1,171 +0,0 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
-
3
- export interface GetDeviceRegistrationRequest {
4
- /**
5
- * <p>The unique name of the device you want to get the registration status from.</p>
6
- */
7
- DeviceName: string | undefined;
8
-
9
- /**
10
- * <p>The name of the fleet that the device belongs to.</p>
11
- */
12
- DeviceFleetName: string | undefined;
13
- }
14
-
15
- export namespace GetDeviceRegistrationRequest {
16
- /**
17
- * @internal
18
- */
19
- export const filterSensitiveLog = (obj: GetDeviceRegistrationRequest): any => ({
20
- ...obj,
21
- });
22
- }
23
-
24
- export interface GetDeviceRegistrationResult {
25
- /**
26
- * <p>Describes if the device is currently registered with SageMaker Edge Manager.</p>
27
- */
28
- DeviceRegistration?: string;
29
-
30
- /**
31
- * <p>The amount of time, in seconds, that the registration status is stored on the device’s cache before it is refreshed.</p>
32
- */
33
- CacheTTL?: string;
34
- }
35
-
36
- export namespace GetDeviceRegistrationResult {
37
- /**
38
- * @internal
39
- */
40
- export const filterSensitiveLog = (obj: GetDeviceRegistrationResult): any => ({
41
- ...obj,
42
- });
43
- }
44
-
45
- /**
46
- * <p>An internal failure occurred. Try your request again. If the problem
47
- * persists, contact AWS customer support.</p>
48
- */
49
- export interface InternalServiceException extends __SmithyException, $MetadataBearer {
50
- name: "InternalServiceException";
51
- $fault: "client";
52
- Message?: string;
53
- }
54
-
55
- export namespace InternalServiceException {
56
- /**
57
- * @internal
58
- */
59
- export const filterSensitiveLog = (obj: InternalServiceException): any => ({
60
- ...obj,
61
- });
62
- }
63
-
64
- /**
65
- * <p>Information required for edge device metrics.</p>
66
- */
67
- export interface EdgeMetric {
68
- /**
69
- * <p>The dimension of metrics published.</p>
70
- */
71
- Dimension?: string;
72
-
73
- /**
74
- * <p>Returns the name of the metric.</p>
75
- */
76
- MetricName?: string;
77
-
78
- /**
79
- * <p>Returns the value of the metric.</p>
80
- */
81
- Value?: number;
82
-
83
- /**
84
- * <p>Timestamp of when the metric was requested.</p>
85
- */
86
- Timestamp?: Date;
87
- }
88
-
89
- export namespace EdgeMetric {
90
- /**
91
- * @internal
92
- */
93
- export const filterSensitiveLog = (obj: EdgeMetric): any => ({
94
- ...obj,
95
- });
96
- }
97
-
98
- /**
99
- * <p>Information about a model deployed on an edge device that is registered with SageMaker Edge Manager.</p>
100
- */
101
- export interface Model {
102
- /**
103
- * <p>The name of the model.</p>
104
- */
105
- ModelName?: string;
106
-
107
- /**
108
- * <p>The version of the model.</p>
109
- */
110
- ModelVersion?: string;
111
-
112
- /**
113
- * <p>The timestamp of the last data sample taken.</p>
114
- */
115
- LatestSampleTime?: Date;
116
-
117
- /**
118
- * <p>The timestamp of the last inference that was made.</p>
119
- */
120
- LatestInference?: Date;
121
-
122
- /**
123
- * <p>Information required for model metrics.</p>
124
- */
125
- ModelMetrics?: EdgeMetric[];
126
- }
127
-
128
- export namespace Model {
129
- /**
130
- * @internal
131
- */
132
- export const filterSensitiveLog = (obj: Model): any => ({
133
- ...obj,
134
- });
135
- }
136
-
137
- export interface SendHeartbeatRequest {
138
- /**
139
- * <p>For internal use. Returns a list of SageMaker Edge Manager agent operating metrics.</p>
140
- */
141
- AgentMetrics?: EdgeMetric[];
142
-
143
- /**
144
- * <p>Returns a list of models deployed on the the device.</p>
145
- */
146
- Models?: Model[];
147
-
148
- /**
149
- * <p>Returns the version of the agent.</p>
150
- */
151
- AgentVersion: string | undefined;
152
-
153
- /**
154
- * <p>The unique name of the device.</p>
155
- */
156
- DeviceName: string | undefined;
157
-
158
- /**
159
- * <p>The name of the fleet that the device belongs to.</p>
160
- */
161
- DeviceFleetName: string | undefined;
162
- }
163
-
164
- export namespace SendHeartbeatRequest {
165
- /**
166
- * @internal
167
- */
168
- export const filterSensitiveLog = (obj: SendHeartbeatRequest): any => ({
169
- ...obj,
170
- });
171
- }