@aws-sdk/client-sagemaker-edge 3.35.0 → 3.36.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 (71) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist-cjs/SagemakerEdge.js +0 -1
  3. package/dist-cjs/SagemakerEdgeClient.js +0 -1
  4. package/dist-cjs/commands/GetDeviceRegistrationCommand.js +0 -1
  5. package/dist-cjs/commands/SendHeartbeatCommand.js +0 -1
  6. package/dist-cjs/endpoints.js +0 -1
  7. package/dist-cjs/index.js +0 -1
  8. package/dist-cjs/models/index.js +0 -1
  9. package/dist-cjs/models/models_0.js +0 -1
  10. package/dist-cjs/protocols/Aws_restJson1.js +0 -1
  11. package/dist-cjs/runtimeConfig.browser.js +2 -3
  12. package/dist-cjs/runtimeConfig.js +3 -4
  13. package/dist-cjs/runtimeConfig.native.js +0 -1
  14. package/dist-cjs/runtimeConfig.shared.js +0 -1
  15. package/dist-es/SagemakerEdge.js +0 -1
  16. package/dist-es/SagemakerEdgeClient.js +0 -1
  17. package/dist-es/commands/GetDeviceRegistrationCommand.js +0 -1
  18. package/dist-es/commands/SendHeartbeatCommand.js +0 -1
  19. package/dist-es/endpoints.js +0 -1
  20. package/dist-es/index.js +0 -1
  21. package/dist-es/models/index.js +0 -1
  22. package/dist-es/models/models_0.js +0 -1
  23. package/dist-es/protocols/Aws_restJson1.js +0 -1
  24. package/dist-es/runtimeConfig.browser.js +1 -2
  25. package/dist-es/runtimeConfig.js +2 -3
  26. package/dist-es/runtimeConfig.native.js +0 -1
  27. package/dist-es/runtimeConfig.shared.js +0 -1
  28. package/package.json +33 -30
  29. package/dist-cjs/SagemakerEdge.js.map +0 -1
  30. package/dist-cjs/SagemakerEdgeClient.js.map +0 -1
  31. package/dist-cjs/commands/GetDeviceRegistrationCommand.js.map +0 -1
  32. package/dist-cjs/commands/SendHeartbeatCommand.js.map +0 -1
  33. package/dist-cjs/endpoints.js.map +0 -1
  34. package/dist-cjs/index.js.map +0 -1
  35. package/dist-cjs/models/index.js.map +0 -1
  36. package/dist-cjs/models/models_0.js.map +0 -1
  37. package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
  38. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  39. package/dist-cjs/runtimeConfig.js.map +0 -1
  40. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  41. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  42. package/dist-es/SagemakerEdge.js.map +0 -1
  43. package/dist-es/SagemakerEdgeClient.js.map +0 -1
  44. package/dist-es/commands/GetDeviceRegistrationCommand.js.map +0 -1
  45. package/dist-es/commands/SendHeartbeatCommand.js.map +0 -1
  46. package/dist-es/endpoints.js.map +0 -1
  47. package/dist-es/index.js.map +0 -1
  48. package/dist-es/models/index.js.map +0 -1
  49. package/dist-es/models/models_0.js.map +0 -1
  50. package/dist-es/protocols/Aws_restJson1.js.map +0 -1
  51. package/dist-es/runtimeConfig.browser.js.map +0 -1
  52. package/dist-es/runtimeConfig.js.map +0 -1
  53. package/dist-es/runtimeConfig.native.js.map +0 -1
  54. package/dist-es/runtimeConfig.shared.js.map +0 -1
  55. package/jest.config.js +0 -4
  56. package/src/SagemakerEdge.ts +0 -82
  57. package/src/SagemakerEdgeClient.ts +0 -241
  58. package/src/commands/GetDeviceRegistrationCommand.ts +0 -95
  59. package/src/commands/SendHeartbeatCommand.ts +0 -95
  60. package/src/endpoints.ts +0 -57
  61. package/src/index.ts +0 -5
  62. package/src/models/index.ts +0 -1
  63. package/src/models/models_0.ts +0 -171
  64. package/src/protocols/Aws_restJson1.ts +0 -317
  65. package/src/runtimeConfig.browser.ts +0 -41
  66. package/src/runtimeConfig.native.ts +0 -17
  67. package/src/runtimeConfig.shared.ts +0 -17
  68. package/src/runtimeConfig.ts +0 -46
  69. package/tsconfig.es.json +0 -10
  70. package/tsconfig.json +0 -33
  71. package/tsconfig.types.json +0 -9
@@ -1,82 +0,0 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
-
3
- import {
4
- GetDeviceRegistrationCommand,
5
- GetDeviceRegistrationCommandInput,
6
- GetDeviceRegistrationCommandOutput,
7
- } from "./commands/GetDeviceRegistrationCommand";
8
- import {
9
- SendHeartbeatCommand,
10
- SendHeartbeatCommandInput,
11
- SendHeartbeatCommandOutput,
12
- } from "./commands/SendHeartbeatCommand";
13
- import { SagemakerEdgeClient } from "./SagemakerEdgeClient";
14
-
15
- /**
16
- * <p>SageMaker Edge Manager dataplane service for communicating with active agents.</p>
17
- */
18
- export class SagemakerEdge extends SagemakerEdgeClient {
19
- /**
20
- * <p>Use to check if a device is registered with SageMaker Edge Manager.</p>
21
- */
22
- public getDeviceRegistration(
23
- args: GetDeviceRegistrationCommandInput,
24
- options?: __HttpHandlerOptions
25
- ): Promise<GetDeviceRegistrationCommandOutput>;
26
- public getDeviceRegistration(
27
- args: GetDeviceRegistrationCommandInput,
28
- cb: (err: any, data?: GetDeviceRegistrationCommandOutput) => void
29
- ): void;
30
- public getDeviceRegistration(
31
- args: GetDeviceRegistrationCommandInput,
32
- options: __HttpHandlerOptions,
33
- cb: (err: any, data?: GetDeviceRegistrationCommandOutput) => void
34
- ): void;
35
- public getDeviceRegistration(
36
- args: GetDeviceRegistrationCommandInput,
37
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetDeviceRegistrationCommandOutput) => void),
38
- cb?: (err: any, data?: GetDeviceRegistrationCommandOutput) => void
39
- ): Promise<GetDeviceRegistrationCommandOutput> | void {
40
- const command = new GetDeviceRegistrationCommand(args);
41
- if (typeof optionsOrCb === "function") {
42
- this.send(command, optionsOrCb);
43
- } else if (typeof cb === "function") {
44
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
45
- this.send(command, optionsOrCb || {}, cb);
46
- } else {
47
- return this.send(command, optionsOrCb);
48
- }
49
- }
50
-
51
- /**
52
- * <p>Use to get the current status of devices registered on SageMaker Edge Manager.</p>
53
- */
54
- public sendHeartbeat(
55
- args: SendHeartbeatCommandInput,
56
- options?: __HttpHandlerOptions
57
- ): Promise<SendHeartbeatCommandOutput>;
58
- public sendHeartbeat(
59
- args: SendHeartbeatCommandInput,
60
- cb: (err: any, data?: SendHeartbeatCommandOutput) => void
61
- ): void;
62
- public sendHeartbeat(
63
- args: SendHeartbeatCommandInput,
64
- options: __HttpHandlerOptions,
65
- cb: (err: any, data?: SendHeartbeatCommandOutput) => void
66
- ): void;
67
- public sendHeartbeat(
68
- args: SendHeartbeatCommandInput,
69
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: SendHeartbeatCommandOutput) => void),
70
- cb?: (err: any, data?: SendHeartbeatCommandOutput) => void
71
- ): Promise<SendHeartbeatCommandOutput> | void {
72
- const command = new SendHeartbeatCommand(args);
73
- if (typeof optionsOrCb === "function") {
74
- this.send(command, optionsOrCb);
75
- } else if (typeof cb === "function") {
76
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
77
- this.send(command, optionsOrCb || {}, cb);
78
- } else {
79
- return this.send(command, optionsOrCb);
80
- }
81
- }
82
- }
@@ -1,241 +0,0 @@
1
- import {
2
- EndpointsInputConfig,
3
- EndpointsResolvedConfig,
4
- RegionInputConfig,
5
- RegionResolvedConfig,
6
- resolveEndpointsConfig,
7
- resolveRegionConfig,
8
- } from "@aws-sdk/config-resolver";
9
- import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
10
- import {
11
- getHostHeaderPlugin,
12
- HostHeaderInputConfig,
13
- HostHeaderResolvedConfig,
14
- resolveHostHeaderConfig,
15
- } from "@aws-sdk/middleware-host-header";
16
- import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
17
- import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
18
- import {
19
- AwsAuthInputConfig,
20
- AwsAuthResolvedConfig,
21
- getAwsAuthPlugin,
22
- resolveAwsAuthConfig,
23
- } from "@aws-sdk/middleware-signing";
24
- import {
25
- getUserAgentPlugin,
26
- resolveUserAgentConfig,
27
- UserAgentInputConfig,
28
- UserAgentResolvedConfig,
29
- } from "@aws-sdk/middleware-user-agent";
30
- import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
31
- import {
32
- Client as __Client,
33
- SmithyConfiguration as __SmithyConfiguration,
34
- SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
35
- } from "@aws-sdk/smithy-client";
36
- import {
37
- Credentials as __Credentials,
38
- Decoder as __Decoder,
39
- Encoder as __Encoder,
40
- Hash as __Hash,
41
- HashConstructor as __HashConstructor,
42
- HttpHandlerOptions as __HttpHandlerOptions,
43
- Logger as __Logger,
44
- Provider as __Provider,
45
- Provider,
46
- RegionInfoProvider,
47
- StreamCollector as __StreamCollector,
48
- UrlParser as __UrlParser,
49
- UserAgent as __UserAgent,
50
- } from "@aws-sdk/types";
51
-
52
- import {
53
- GetDeviceRegistrationCommandInput,
54
- GetDeviceRegistrationCommandOutput,
55
- } from "./commands/GetDeviceRegistrationCommand";
56
- import { SendHeartbeatCommandInput, SendHeartbeatCommandOutput } from "./commands/SendHeartbeatCommand";
57
- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
58
-
59
- export type ServiceInputTypes = GetDeviceRegistrationCommandInput | SendHeartbeatCommandInput;
60
-
61
- export type ServiceOutputTypes = GetDeviceRegistrationCommandOutput | SendHeartbeatCommandOutput;
62
-
63
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
64
- /**
65
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
66
- */
67
- requestHandler?: __HttpHandler;
68
-
69
- /**
70
- * A constructor for a class implementing the {@link __Hash} interface
71
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
72
- * @internal
73
- */
74
- sha256?: __HashConstructor;
75
-
76
- /**
77
- * The function that will be used to convert strings into HTTP endpoints.
78
- * @internal
79
- */
80
- urlParser?: __UrlParser;
81
-
82
- /**
83
- * A function that can calculate the length of a request body.
84
- * @internal
85
- */
86
- bodyLengthChecker?: (body: any) => number | undefined;
87
-
88
- /**
89
- * A function that converts a stream into an array of bytes.
90
- * @internal
91
- */
92
- streamCollector?: __StreamCollector;
93
-
94
- /**
95
- * The function that will be used to convert a base64-encoded string to a byte array.
96
- * @internal
97
- */
98
- base64Decoder?: __Decoder;
99
-
100
- /**
101
- * The function that will be used to convert binary data to a base64-encoded string.
102
- * @internal
103
- */
104
- base64Encoder?: __Encoder;
105
-
106
- /**
107
- * The function that will be used to convert a UTF8-encoded string to a byte array.
108
- * @internal
109
- */
110
- utf8Decoder?: __Decoder;
111
-
112
- /**
113
- * The function that will be used to convert binary data to a UTF-8 encoded string.
114
- * @internal
115
- */
116
- utf8Encoder?: __Encoder;
117
-
118
- /**
119
- * The runtime environment.
120
- * @internal
121
- */
122
- runtime?: string;
123
-
124
- /**
125
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
126
- * trait of an operation.
127
- */
128
- disableHostPrefix?: boolean;
129
-
130
- /**
131
- * Value for how many times a request will be made at most in case of retry.
132
- */
133
- maxAttempts?: number | __Provider<number>;
134
-
135
- /**
136
- * Specifies which retry algorithm to use.
137
- */
138
- retryMode?: string | __Provider<string>;
139
-
140
- /**
141
- * Optional logger for logging debug/info/warn/error.
142
- */
143
- logger?: __Logger;
144
-
145
- /**
146
- * Unique service identifier.
147
- * @internal
148
- */
149
- serviceId?: string;
150
-
151
- /**
152
- * The AWS region to which this client will send requests
153
- */
154
- region?: string | __Provider<string>;
155
-
156
- /**
157
- * Default credentials provider; Not available in browser runtime.
158
- * @internal
159
- */
160
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
161
-
162
- /**
163
- * Fetch related hostname, signing name or signing region with given region.
164
- * @internal
165
- */
166
- regionInfoProvider?: RegionInfoProvider;
167
-
168
- /**
169
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
170
- * @internal
171
- */
172
- defaultUserAgentProvider?: Provider<__UserAgent>;
173
- }
174
-
175
- type SagemakerEdgeClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
176
- ClientDefaults &
177
- RegionInputConfig &
178
- EndpointsInputConfig &
179
- RetryInputConfig &
180
- HostHeaderInputConfig &
181
- AwsAuthInputConfig &
182
- UserAgentInputConfig;
183
- /**
184
- * The configuration interface of SagemakerEdgeClient class constructor that set the region, credentials and other options.
185
- */
186
- export interface SagemakerEdgeClientConfig extends SagemakerEdgeClientConfigType {}
187
-
188
- type SagemakerEdgeClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
189
- Required<ClientDefaults> &
190
- RegionResolvedConfig &
191
- EndpointsResolvedConfig &
192
- RetryResolvedConfig &
193
- HostHeaderResolvedConfig &
194
- AwsAuthResolvedConfig &
195
- UserAgentResolvedConfig;
196
- /**
197
- * The resolved configuration interface of SagemakerEdgeClient class. This is resolved and normalized from the {@link SagemakerEdgeClientConfig | constructor configuration interface}.
198
- */
199
- export interface SagemakerEdgeClientResolvedConfig extends SagemakerEdgeClientResolvedConfigType {}
200
-
201
- /**
202
- * <p>SageMaker Edge Manager dataplane service for communicating with active agents.</p>
203
- */
204
- export class SagemakerEdgeClient extends __Client<
205
- __HttpHandlerOptions,
206
- ServiceInputTypes,
207
- ServiceOutputTypes,
208
- SagemakerEdgeClientResolvedConfig
209
- > {
210
- /**
211
- * The resolved configuration of SagemakerEdgeClient class. This is resolved and normalized from the {@link SagemakerEdgeClientConfig | constructor configuration interface}.
212
- */
213
- readonly config: SagemakerEdgeClientResolvedConfig;
214
-
215
- constructor(configuration: SagemakerEdgeClientConfig) {
216
- const _config_0 = __getRuntimeConfig(configuration);
217
- const _config_1 = resolveRegionConfig(_config_0);
218
- const _config_2 = resolveEndpointsConfig(_config_1);
219
- const _config_3 = resolveRetryConfig(_config_2);
220
- const _config_4 = resolveHostHeaderConfig(_config_3);
221
- const _config_5 = resolveAwsAuthConfig(_config_4);
222
- const _config_6 = resolveUserAgentConfig(_config_5);
223
- super(_config_6);
224
- this.config = _config_6;
225
- this.middlewareStack.use(getRetryPlugin(this.config));
226
- this.middlewareStack.use(getContentLengthPlugin(this.config));
227
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
228
- this.middlewareStack.use(getLoggerPlugin(this.config));
229
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
230
- this.middlewareStack.use(getUserAgentPlugin(this.config));
231
- }
232
-
233
- /**
234
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
235
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
236
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
237
- */
238
- destroy(): void {
239
- super.destroy();
240
- }
241
- }
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { GetDeviceRegistrationRequest, GetDeviceRegistrationResult } from "../models/models_0";
15
- import {
16
- deserializeAws_restJson1GetDeviceRegistrationCommand,
17
- serializeAws_restJson1GetDeviceRegistrationCommand,
18
- } from "../protocols/Aws_restJson1";
19
- import { SagemakerEdgeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SagemakerEdgeClient";
20
-
21
- export interface GetDeviceRegistrationCommandInput extends GetDeviceRegistrationRequest {}
22
- export interface GetDeviceRegistrationCommandOutput extends GetDeviceRegistrationResult, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Use to check if a device is registered with SageMaker Edge Manager.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { SagemakerEdgeClient, GetDeviceRegistrationCommand } from "@aws-sdk/client-sagemaker-edge"; // ES Modules import
30
- * // const { SagemakerEdgeClient, GetDeviceRegistrationCommand } = require("@aws-sdk/client-sagemaker-edge"); // CommonJS import
31
- * const client = new SagemakerEdgeClient(config);
32
- * const command = new GetDeviceRegistrationCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link GetDeviceRegistrationCommandInput} for command's `input` shape.
37
- * @see {@link GetDeviceRegistrationCommandOutput} for command's `response` shape.
38
- * @see {@link SagemakerEdgeClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class GetDeviceRegistrationCommand extends $Command<
42
- GetDeviceRegistrationCommandInput,
43
- GetDeviceRegistrationCommandOutput,
44
- SagemakerEdgeClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: GetDeviceRegistrationCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: SagemakerEdgeClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<GetDeviceRegistrationCommandInput, GetDeviceRegistrationCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "SagemakerEdgeClient";
69
- const commandName = "GetDeviceRegistrationCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: GetDeviceRegistrationRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: GetDeviceRegistrationResult.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: GetDeviceRegistrationCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_restJson1GetDeviceRegistrationCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetDeviceRegistrationCommandOutput> {
90
- return deserializeAws_restJson1GetDeviceRegistrationCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { SendHeartbeatRequest } from "../models/models_0";
15
- import {
16
- deserializeAws_restJson1SendHeartbeatCommand,
17
- serializeAws_restJson1SendHeartbeatCommand,
18
- } from "../protocols/Aws_restJson1";
19
- import { SagemakerEdgeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SagemakerEdgeClient";
20
-
21
- export interface SendHeartbeatCommandInput extends SendHeartbeatRequest {}
22
- export interface SendHeartbeatCommandOutput extends __MetadataBearer {}
23
-
24
- /**
25
- * <p>Use to get the current status of devices registered on SageMaker Edge Manager.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { SagemakerEdgeClient, SendHeartbeatCommand } from "@aws-sdk/client-sagemaker-edge"; // ES Modules import
30
- * // const { SagemakerEdgeClient, SendHeartbeatCommand } = require("@aws-sdk/client-sagemaker-edge"); // CommonJS import
31
- * const client = new SagemakerEdgeClient(config);
32
- * const command = new SendHeartbeatCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link SendHeartbeatCommandInput} for command's `input` shape.
37
- * @see {@link SendHeartbeatCommandOutput} for command's `response` shape.
38
- * @see {@link SagemakerEdgeClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class SendHeartbeatCommand extends $Command<
42
- SendHeartbeatCommandInput,
43
- SendHeartbeatCommandOutput,
44
- SagemakerEdgeClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: SendHeartbeatCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: SagemakerEdgeClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<SendHeartbeatCommandInput, SendHeartbeatCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "SagemakerEdgeClient";
69
- const commandName = "SendHeartbeatCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: SendHeartbeatRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: (output: any) => output,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: SendHeartbeatCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_restJson1SendHeartbeatCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<SendHeartbeatCommandOutput> {
90
- return deserializeAws_restJson1SendHeartbeatCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
package/src/endpoints.ts DELETED
@@ -1,57 +0,0 @@
1
- import { getRegionInfo, PartitionHash, RegionHash } 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/src/index.ts DELETED
@@ -1,5 +0,0 @@
1
- export * from "./SagemakerEdgeClient";
2
- export * from "./SagemakerEdge";
3
- export * from "./commands/GetDeviceRegistrationCommand";
4
- export * from "./commands/SendHeartbeatCommand";
5
- export * from "./models/index";
@@ -1 +0,0 @@
1
- export * from "./models_0";