@aws-sdk/client-sagemaker-edge 3.31.0 → 3.35.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.
- package/CHANGELOG.md +39 -0
- package/{dist/cjs → dist-cjs}/SagemakerEdge.js +1 -1
- package/dist-cjs/SagemakerEdge.js.map +1 -0
- package/{dist/cjs → dist-cjs}/SagemakerEdgeClient.js +14 -14
- package/dist-cjs/SagemakerEdgeClient.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetDeviceRegistrationCommand.js +5 -5
- package/dist-cjs/commands/GetDeviceRegistrationCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/SendHeartbeatCommand.js +5 -5
- package/dist-cjs/commands/SendHeartbeatCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -1
- package/dist-cjs/endpoints.js.map +1 -0
- package/dist-cjs/index.js +9 -0
- package/dist-cjs/index.js.map +1 -0
- package/{dist/cjs → dist-cjs}/models/index.js +1 -1
- package/{dist/cjs → dist-cjs}/models/index.js.map +1 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -0
- package/dist-cjs/models/models_0.js.map +1 -0
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +7 -7
- package/dist-cjs/protocols/Aws_restJson1.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +5 -4
- package/dist-cjs/runtimeConfig.browser.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +10 -9
- package/dist-cjs/runtimeConfig.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +1 -1
- package/dist-cjs/runtimeConfig.native.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -1
- package/dist-cjs/runtimeConfig.shared.js.map +1 -0
- package/{dist/es → dist-es}/SagemakerEdge.js +2 -5
- package/dist-es/SagemakerEdge.js.map +1 -0
- package/{dist/es → dist-es}/SagemakerEdgeClient.js +2 -10
- package/dist-es/SagemakerEdgeClient.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetDeviceRegistrationCommand.js +4 -29
- package/dist-es/commands/GetDeviceRegistrationCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/SendHeartbeatCommand.js +4 -29
- package/dist-es/commands/SendHeartbeatCommand.js.map +1 -0
- package/{dist/es → dist-es}/endpoints.js +1 -1
- package/dist-es/endpoints.js.map +1 -0
- package/{dist/es → dist-es}/index.js +0 -0
- package/dist-es/index.js.map +1 -0
- package/{dist/es → dist-es}/models/index.js +0 -0
- package/dist-es/models/index.js.map +1 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -18
- package/dist-es/models/models_0.js.map +1 -0
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +25 -30
- package/dist-es/protocols/Aws_restJson1.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -4
- package/dist-es/runtimeConfig.browser.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.js +2 -5
- package/dist-es/runtimeConfig.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -3
- package/dist-es/runtimeConfig.native.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -4
- package/dist-es/runtimeConfig.shared.js.map +1 -0
- package/{dist/types → dist-types}/SagemakerEdge.d.ts +2 -2
- package/{dist/types → dist-types}/SagemakerEdgeClient.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetDeviceRegistrationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/SendHeartbeatCommand.d.ts +3 -3
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/index.d.ts +0 -0
- package/{dist/types → dist-types}/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/SagemakerEdge.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/SagemakerEdgeClient.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetDeviceRegistrationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/SendHeartbeatCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +50 -50
- package/{SagemakerEdge.ts → src/SagemakerEdge.ts} +3 -2
- package/{SagemakerEdgeClient.ts → src/SagemakerEdgeClient.ts} +20 -19
- package/{commands → src/commands}/GetDeviceRegistrationCommand.ts +8 -7
- package/{commands → src/commands}/SendHeartbeatCommand.ts +8 -7
- package/{endpoints.ts → src/endpoints.ts} +1 -1
- package/{index.ts → src/index.ts} +0 -0
- package/{models → src/models}/index.ts +0 -0
- package/{models → src/models}/models_0.ts +0 -0
- package/{protocols → src/protocols}/Aws_restJson1.ts +11 -10
- package/{runtimeConfig.browser.ts → src/runtimeConfig.browser.ts} +4 -3
- package/{runtimeConfig.native.ts → src/runtimeConfig.native.ts} +2 -1
- package/{runtimeConfig.shared.ts → src/runtimeConfig.shared.ts} +2 -1
- package/{runtimeConfig.ts → src/runtimeConfig.ts} +5 -4
- package/tsconfig.es.json +1 -3
- package/tsconfig.json +7 -7
- package/tsconfig.types.json +9 -0
- package/dist/cjs/SagemakerEdge.js.map +0 -1
- package/dist/cjs/SagemakerEdgeClient.js.map +0 -1
- package/dist/cjs/commands/GetDeviceRegistrationCommand.js.map +0 -1
- package/dist/cjs/commands/SendHeartbeatCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js +0 -9
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/SagemakerEdge.js.map +0 -1
- package/dist/es/SagemakerEdgeClient.js.map +0 -1
- package/dist/es/commands/GetDeviceRegistrationCommand.js.map +0 -1
- package/dist/es/commands/SendHeartbeatCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
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 {
|
|
4
|
+
import { SagemakerEdgeClient } from "./SagemakerEdgeClient";
|
|
5
5
|
/**
|
|
6
6
|
* <p>SageMaker Edge Manager dataplane service for communicating with active agents.</p>
|
|
7
7
|
*/
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { GetDeviceRegistrationCommandInput, GetDeviceRegistrationCommandOutput } from "./commands/GetDeviceRegistrationCommand";
|
|
2
|
-
import { SendHeartbeatCommandInput, SendHeartbeatCommandOutput } from "./commands/SendHeartbeatCommand";
|
|
3
1
|
import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
|
|
4
2
|
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
5
3
|
import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
@@ -7,7 +5,9 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
7
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
8
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
9
7
|
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
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
11
|
export declare type ServiceInputTypes = GetDeviceRegistrationCommandInput | SendHeartbeatCommandInput;
|
|
12
12
|
export declare type ServiceOutputTypes = GetDeviceRegistrationCommandOutput | SendHeartbeatCommandOutput;
|
|
13
13
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
@@ -1,7 +1,7 @@
|
|
|
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,
|
|
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 {
|
|
@@ -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,
|
|
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
|
|
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>;
|
|
@@ -32,5 +32,6 @@ export declare const getRuntimeConfig: (config: SagemakerEdgeClientConfig) => {
|
|
|
32
32
|
signingEscapePath?: boolean | undefined;
|
|
33
33
|
systemClockOffset?: number | undefined;
|
|
34
34
|
signingRegion?: string | undefined;
|
|
35
|
+
signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
|
|
35
36
|
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
|
|
36
37
|
};
|
|
@@ -1,36 +1,37 @@
|
|
|
1
|
-
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
2
|
-
import { SagemakerEdgeClientConfig } from "./SagemakerEdgeClient";
|
|
3
|
-
/**
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
6
|
-
export declare const getRuntimeConfig: (config: SagemakerEdgeClientConfig) => {
|
|
7
|
-
runtime: string;
|
|
8
|
-
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
|
-
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
|
-
bodyLengthChecker: (body: any) => number | undefined;
|
|
11
|
-
credentialDefaultProvider: import("@aws-sdk/client-sts/dist
|
|
12
|
-
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
|
-
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
|
-
region: string | import("@aws-sdk/types").Provider<string>;
|
|
15
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
|
|
16
|
-
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
17
|
-
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
|
-
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
19
|
-
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
20
|
-
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
21
|
-
apiVersion: string;
|
|
22
|
-
urlParser: import("@aws-sdk/types").UrlParser;
|
|
23
|
-
disableHostPrefix: boolean;
|
|
24
|
-
logger: import("@aws-sdk/types").Logger;
|
|
25
|
-
serviceId: string;
|
|
26
|
-
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
27
|
-
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
28
|
-
tls?: boolean | undefined;
|
|
29
|
-
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
30
|
-
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
|
|
31
|
-
signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
|
|
32
|
-
signingEscapePath?: boolean | undefined;
|
|
33
|
-
systemClockOffset?: number | undefined;
|
|
34
|
-
signingRegion?: string | undefined;
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
2
|
+
import { SagemakerEdgeClientConfig } from "./SagemakerEdgeClient";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const getRuntimeConfig: (config: SagemakerEdgeClientConfig) => {
|
|
7
|
+
runtime: string;
|
|
8
|
+
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
|
+
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
|
+
bodyLengthChecker: (body: any) => number | undefined;
|
|
11
|
+
credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
|
|
12
|
+
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
|
+
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
|
+
region: string | import("@aws-sdk/types").Provider<string>;
|
|
15
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
|
|
16
|
+
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
17
|
+
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
|
+
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
19
|
+
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
20
|
+
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
21
|
+
apiVersion: string;
|
|
22
|
+
urlParser: import("@aws-sdk/types").UrlParser;
|
|
23
|
+
disableHostPrefix: boolean;
|
|
24
|
+
logger: import("@aws-sdk/types").Logger;
|
|
25
|
+
serviceId: string;
|
|
26
|
+
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
27
|
+
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
28
|
+
tls?: boolean | undefined;
|
|
29
|
+
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
30
|
+
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
|
|
31
|
+
signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
|
|
32
|
+
signingEscapePath?: boolean | undefined;
|
|
33
|
+
systemClockOffset?: number | undefined;
|
|
34
|
+
signingRegion?: string | undefined;
|
|
35
|
+
signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
|
|
36
|
+
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
|
|
37
|
+
};
|
|
@@ -31,5 +31,6 @@ export declare const getRuntimeConfig: (config: SagemakerEdgeClientConfig) => {
|
|
|
31
31
|
signingEscapePath?: boolean | undefined;
|
|
32
32
|
systemClockOffset?: number | undefined;
|
|
33
33
|
signingRegion?: string | undefined;
|
|
34
|
+
signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
|
|
34
35
|
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
|
|
35
36
|
};
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,79 +1,73 @@
|
|
|
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.
|
|
4
|
+
"version": "3.35.0",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"
|
|
7
|
-
"build-documentation": "yarn remove-documentation && typedoc ./",
|
|
8
|
-
"remove-definitions": "rimraf ./types",
|
|
9
|
-
"remove-dist": "rimraf ./dist",
|
|
10
|
-
"remove-documentation": "rimraf ./docs",
|
|
11
|
-
"test": "jest --coverage --passWithNoTests",
|
|
6
|
+
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
12
7
|
"build:cjs": "tsc -p tsconfig.json",
|
|
8
|
+
"build:docs": "yarn clean:docs && typedoc ./",
|
|
13
9
|
"build:es": "tsc -p tsconfig.es.json",
|
|
14
|
-
"build": "
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"browser": {
|
|
21
|
-
"./runtimeConfig": "./runtimeConfig.browser"
|
|
22
|
-
},
|
|
23
|
-
"react-native": {
|
|
24
|
-
"./runtimeConfig": "./runtimeConfig.native"
|
|
10
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
11
|
+
"clean": "yarn clean:dist && yarn clean:docs",
|
|
12
|
+
"clean:dist": "rimraf ./dist",
|
|
13
|
+
"clean:docs": "rimraf ./docs",
|
|
14
|
+
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
|
|
15
|
+
"test": "jest --coverage --passWithNoTests"
|
|
25
16
|
},
|
|
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.
|
|
31
|
-
"@aws-sdk/config-resolver": "3.
|
|
32
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
33
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
34
|
-
"@aws-sdk/hash-node": "3.
|
|
35
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
36
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
37
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
38
|
-
"@aws-sdk/middleware-logger": "3.
|
|
39
|
-
"@aws-sdk/middleware-retry": "3.
|
|
40
|
-
"@aws-sdk/middleware-serde": "3.
|
|
41
|
-
"@aws-sdk/middleware-signing": "3.
|
|
42
|
-
"@aws-sdk/middleware-stack": "3.
|
|
43
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
44
|
-
"@aws-sdk/node-config-provider": "3.
|
|
45
|
-
"@aws-sdk/node-http-handler": "3.
|
|
46
|
-
"@aws-sdk/protocol-http": "3.
|
|
47
|
-
"@aws-sdk/smithy-client": "3.
|
|
48
|
-
"@aws-sdk/types": "3.
|
|
49
|
-
"@aws-sdk/url-parser": "3.
|
|
50
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
51
|
-
"@aws-sdk/util-base64-node": "3.
|
|
52
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
53
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
55
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
56
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
57
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.35.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.35.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.35.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.35.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.35.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.35.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.35.0",
|
|
31
|
+
"@aws-sdk/middleware-host-header": "3.35.0",
|
|
32
|
+
"@aws-sdk/middleware-logger": "3.35.0",
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.35.0",
|
|
34
|
+
"@aws-sdk/middleware-serde": "3.35.0",
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.35.0",
|
|
36
|
+
"@aws-sdk/middleware-stack": "3.35.0",
|
|
37
|
+
"@aws-sdk/middleware-user-agent": "3.35.0",
|
|
38
|
+
"@aws-sdk/node-config-provider": "3.35.0",
|
|
39
|
+
"@aws-sdk/node-http-handler": "3.35.0",
|
|
40
|
+
"@aws-sdk/protocol-http": "3.35.0",
|
|
41
|
+
"@aws-sdk/smithy-client": "3.35.0",
|
|
42
|
+
"@aws-sdk/types": "3.35.0",
|
|
43
|
+
"@aws-sdk/url-parser": "3.35.0",
|
|
44
|
+
"@aws-sdk/util-base64-browser": "3.35.0",
|
|
45
|
+
"@aws-sdk/util-base64-node": "3.35.0",
|
|
46
|
+
"@aws-sdk/util-body-length-browser": "3.35.0",
|
|
47
|
+
"@aws-sdk/util-body-length-node": "3.35.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.35.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.35.0",
|
|
50
|
+
"@aws-sdk/util-utf8-browser": "3.35.0",
|
|
51
|
+
"@aws-sdk/util-utf8-node": "3.35.0",
|
|
58
52
|
"tslib": "^2.3.0"
|
|
59
53
|
},
|
|
60
54
|
"devDependencies": {
|
|
61
|
-
"@aws-sdk/client-documentation-generator": "3.
|
|
55
|
+
"@aws-sdk/client-documentation-generator": "3.35.0",
|
|
62
56
|
"@types/node": "^12.7.5",
|
|
63
57
|
"downlevel-dts": "0.7.0",
|
|
64
58
|
"jest": "^26.1.0",
|
|
65
59
|
"rimraf": "^3.0.0",
|
|
66
60
|
"ts-jest": "^26.4.1",
|
|
67
61
|
"typedoc": "^0.19.2",
|
|
68
|
-
"typescript": "~4.
|
|
62
|
+
"typescript": "~4.3.5"
|
|
69
63
|
},
|
|
70
64
|
"engines": {
|
|
71
65
|
"node": ">=10.0.0"
|
|
72
66
|
},
|
|
73
67
|
"typesVersions": {
|
|
74
68
|
"<4.0": {
|
|
75
|
-
"dist
|
|
76
|
-
"dist
|
|
69
|
+
"dist-types/*": [
|
|
70
|
+
"dist-types/ts3.4/*"
|
|
77
71
|
]
|
|
78
72
|
}
|
|
79
73
|
},
|
|
@@ -82,6 +76,12 @@
|
|
|
82
76
|
"url": "https://aws.amazon.com/javascript/"
|
|
83
77
|
},
|
|
84
78
|
"license": "Apache-2.0",
|
|
79
|
+
"browser": {
|
|
80
|
+
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
|
81
|
+
},
|
|
82
|
+
"react-native": {
|
|
83
|
+
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
84
|
+
},
|
|
85
85
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sagemaker-edge",
|
|
86
86
|
"repository": {
|
|
87
87
|
"type": "git",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
|
+
|
|
2
3
|
import {
|
|
3
4
|
GetDeviceRegistrationCommand,
|
|
4
5
|
GetDeviceRegistrationCommandInput,
|
|
@@ -9,7 +10,7 @@ import {
|
|
|
9
10
|
SendHeartbeatCommandInput,
|
|
10
11
|
SendHeartbeatCommandOutput,
|
|
11
12
|
} from "./commands/SendHeartbeatCommand";
|
|
12
|
-
import {
|
|
13
|
+
import { SagemakerEdgeClient } from "./SagemakerEdgeClient";
|
|
13
14
|
|
|
14
15
|
/**
|
|
15
16
|
* <p>SageMaker Edge Manager dataplane service for communicating with active agents.</p>
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
GetDeviceRegistrationCommandInput,
|
|
3
|
-
GetDeviceRegistrationCommandOutput,
|
|
4
|
-
} from "./commands/GetDeviceRegistrationCommand";
|
|
5
|
-
import { SendHeartbeatCommandInput, SendHeartbeatCommandOutput } from "./commands/SendHeartbeatCommand";
|
|
6
|
-
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
7
1
|
import {
|
|
8
2
|
EndpointsInputConfig,
|
|
9
3
|
EndpointsResolvedConfig,
|
|
@@ -14,13 +8,13 @@ import {
|
|
|
14
8
|
} from "@aws-sdk/config-resolver";
|
|
15
9
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
16
10
|
import {
|
|
11
|
+
getHostHeaderPlugin,
|
|
17
12
|
HostHeaderInputConfig,
|
|
18
13
|
HostHeaderResolvedConfig,
|
|
19
|
-
getHostHeaderPlugin,
|
|
20
14
|
resolveHostHeaderConfig,
|
|
21
15
|
} from "@aws-sdk/middleware-host-header";
|
|
22
16
|
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
23
|
-
import {
|
|
17
|
+
import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
24
18
|
import {
|
|
25
19
|
AwsAuthInputConfig,
|
|
26
20
|
AwsAuthResolvedConfig,
|
|
@@ -28,10 +22,10 @@ import {
|
|
|
28
22
|
resolveAwsAuthConfig,
|
|
29
23
|
} from "@aws-sdk/middleware-signing";
|
|
30
24
|
import {
|
|
31
|
-
UserAgentInputConfig,
|
|
32
|
-
UserAgentResolvedConfig,
|
|
33
25
|
getUserAgentPlugin,
|
|
34
26
|
resolveUserAgentConfig,
|
|
27
|
+
UserAgentInputConfig,
|
|
28
|
+
UserAgentResolvedConfig,
|
|
35
29
|
} from "@aws-sdk/middleware-user-agent";
|
|
36
30
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
37
31
|
import {
|
|
@@ -40,8 +34,6 @@ import {
|
|
|
40
34
|
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
41
35
|
} from "@aws-sdk/smithy-client";
|
|
42
36
|
import {
|
|
43
|
-
Provider,
|
|
44
|
-
RegionInfoProvider,
|
|
45
37
|
Credentials as __Credentials,
|
|
46
38
|
Decoder as __Decoder,
|
|
47
39
|
Encoder as __Encoder,
|
|
@@ -50,11 +42,20 @@ import {
|
|
|
50
42
|
HttpHandlerOptions as __HttpHandlerOptions,
|
|
51
43
|
Logger as __Logger,
|
|
52
44
|
Provider as __Provider,
|
|
45
|
+
Provider,
|
|
46
|
+
RegionInfoProvider,
|
|
53
47
|
StreamCollector as __StreamCollector,
|
|
54
48
|
UrlParser as __UrlParser,
|
|
55
49
|
UserAgent as __UserAgent,
|
|
56
50
|
} from "@aws-sdk/types";
|
|
57
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
|
+
|
|
58
59
|
export type ServiceInputTypes = GetDeviceRegistrationCommandInput | SendHeartbeatCommandInput;
|
|
59
60
|
|
|
60
61
|
export type ServiceOutputTypes = GetDeviceRegistrationCommandOutput | SendHeartbeatCommandOutput;
|
|
@@ -212,13 +213,13 @@ export class SagemakerEdgeClient extends __Client<
|
|
|
212
213
|
readonly config: SagemakerEdgeClientResolvedConfig;
|
|
213
214
|
|
|
214
215
|
constructor(configuration: SagemakerEdgeClientConfig) {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
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);
|
|
222
223
|
super(_config_6);
|
|
223
224
|
this.config = _config_6;
|
|
224
225
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import { SagemakerEdgeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SagemakerEdgeClient";
|
|
2
|
-
import { GetDeviceRegistrationRequest, GetDeviceRegistrationResult } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_restJson1GetDeviceRegistrationCommand,
|
|
5
|
-
serializeAws_restJson1GetDeviceRegistrationCommand,
|
|
6
|
-
} from "../protocols/Aws_restJson1";
|
|
7
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
2
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
@@ -11,12 +5,19 @@ import {
|
|
|
11
5
|
FinalizeHandlerArguments,
|
|
12
6
|
Handler,
|
|
13
7
|
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
8
|
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
9
|
MetadataBearer as __MetadataBearer,
|
|
10
|
+
MiddlewareStack,
|
|
17
11
|
SerdeContext as __SerdeContext,
|
|
18
12
|
} from "@aws-sdk/types";
|
|
19
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
|
+
|
|
20
21
|
export interface GetDeviceRegistrationCommandInput extends GetDeviceRegistrationRequest {}
|
|
21
22
|
export interface GetDeviceRegistrationCommandOutput extends GetDeviceRegistrationResult, __MetadataBearer {}
|
|
22
23
|
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import { SagemakerEdgeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SagemakerEdgeClient";
|
|
2
|
-
import { SendHeartbeatRequest } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_restJson1SendHeartbeatCommand,
|
|
5
|
-
serializeAws_restJson1SendHeartbeatCommand,
|
|
6
|
-
} from "../protocols/Aws_restJson1";
|
|
7
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
2
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
@@ -11,12 +5,19 @@ import {
|
|
|
11
5
|
FinalizeHandlerArguments,
|
|
12
6
|
Handler,
|
|
13
7
|
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
8
|
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
9
|
MetadataBearer as __MetadataBearer,
|
|
10
|
+
MiddlewareStack,
|
|
17
11
|
SerdeContext as __SerdeContext,
|
|
18
12
|
} from "@aws-sdk/types";
|
|
19
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
|
+
|
|
20
21
|
export interface SendHeartbeatCommandInput extends SendHeartbeatRequest {}
|
|
21
22
|
export interface SendHeartbeatCommandOutput extends __MetadataBearer {}
|
|
22
23
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
GetDeviceRegistrationCommandInput,
|
|
3
|
-
GetDeviceRegistrationCommandOutput,
|
|
4
|
-
} from "../commands/GetDeviceRegistrationCommand";
|
|
5
|
-
import { SendHeartbeatCommandInput, SendHeartbeatCommandOutput } from "../commands/SendHeartbeatCommand";
|
|
6
|
-
import { EdgeMetric, InternalServiceException, Model } from "../models/models_0";
|
|
7
1
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
8
2
|
import {
|
|
9
3
|
expectNonNull as __expectNonNull,
|
|
@@ -19,6 +13,13 @@ import {
|
|
|
19
13
|
SmithyException as __SmithyException,
|
|
20
14
|
} from "@aws-sdk/types";
|
|
21
15
|
|
|
16
|
+
import {
|
|
17
|
+
GetDeviceRegistrationCommandInput,
|
|
18
|
+
GetDeviceRegistrationCommandOutput,
|
|
19
|
+
} from "../commands/GetDeviceRegistrationCommand";
|
|
20
|
+
import { SendHeartbeatCommandInput, SendHeartbeatCommandOutput } from "../commands/SendHeartbeatCommand";
|
|
21
|
+
import { EdgeMetric, InternalServiceException, Model } from "../models/models_0";
|
|
22
|
+
|
|
22
23
|
export const serializeAws_restJson1GetDeviceRegistrationCommand = async (
|
|
23
24
|
input: GetDeviceRegistrationCommandInput,
|
|
24
25
|
context: __SerdeContext
|
|
@@ -27,7 +28,7 @@ export const serializeAws_restJson1GetDeviceRegistrationCommand = async (
|
|
|
27
28
|
const headers: any = {
|
|
28
29
|
"content-type": "application/json",
|
|
29
30
|
};
|
|
30
|
-
|
|
31
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetDeviceRegistration";
|
|
31
32
|
let body: any;
|
|
32
33
|
body = JSON.stringify({
|
|
33
34
|
...(input.DeviceFleetName !== undefined &&
|
|
@@ -53,7 +54,7 @@ export const serializeAws_restJson1SendHeartbeatCommand = async (
|
|
|
53
54
|
const headers: any = {
|
|
54
55
|
"content-type": "application/json",
|
|
55
56
|
};
|
|
56
|
-
|
|
57
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/SendHeartbeat";
|
|
57
58
|
let body: any;
|
|
58
59
|
body = JSON.stringify({
|
|
59
60
|
...(input.AgentMetrics !== undefined &&
|
|
@@ -107,7 +108,7 @@ const deserializeAws_restJson1GetDeviceRegistrationCommandError = async (
|
|
|
107
108
|
body: await parseBody(output.body, context),
|
|
108
109
|
};
|
|
109
110
|
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
110
|
-
let errorCode
|
|
111
|
+
let errorCode = "UnknownError";
|
|
111
112
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
112
113
|
switch (errorCode) {
|
|
113
114
|
case "InternalServiceException":
|
|
@@ -158,7 +159,7 @@ const deserializeAws_restJson1SendHeartbeatCommandError = async (
|
|
|
158
159
|
body: await parseBody(output.body, context),
|
|
159
160
|
};
|
|
160
161
|
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
161
|
-
let errorCode
|
|
162
|
+
let errorCode = "UnknownError";
|
|
162
163
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
163
164
|
switch (errorCode) {
|
|
164
165
|
case "InternalServiceException":
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import packageInfo from "./package.json";
|
|
2
|
-
|
|
3
1
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
2
|
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
3
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
@@ -8,8 +6,11 @@ import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
|
8
6
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
9
7
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
10
8
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
11
|
-
|
|
9
|
+
|
|
10
|
+
// @ts-ignore: package.json will be imported from dist folders
|
|
11
|
+
import packageInfo from "../package.json";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { SagemakerEdgeClientConfig } from "./SagemakerEdgeClient";
|
|
13
14
|
|
|
14
15
|
/**
|
|
15
16
|
* @internal
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
4
|
+
import { SagemakerEdgeClientConfig } from "./SagemakerEdgeClient";
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* @internal
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defaultRegionInfoProvider } from "./endpoints";
|
|
2
1
|
import { Logger as __Logger } from "@aws-sdk/types";
|
|
3
2
|
import { parseUrl } from "@aws-sdk/url-parser";
|
|
3
|
+
|
|
4
|
+
import { defaultRegionInfoProvider } from "./endpoints";
|
|
4
5
|
import { SagemakerEdgeClientConfig } from "./SagemakerEdgeClient";
|
|
5
6
|
|
|
6
7
|
/**
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import packageInfo from "./package.json";
|
|
2
|
-
|
|
3
1
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
2
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
|
|
5
3
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
@@ -7,13 +5,16 @@ import { Hash } from "@aws-sdk/hash-node";
|
|
|
7
5
|
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
8
6
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
7
|
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
8
|
+
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
10
9
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
10
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
11
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
12
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
|
-
|
|
13
|
+
|
|
14
|
+
// @ts-ignore: package.json will be imported from dist folders
|
|
15
|
+
import packageInfo from "../package.json";
|
|
15
16
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
16
|
-
import {
|
|
17
|
+
import { SagemakerEdgeClientConfig } from "./SagemakerEdgeClient";
|
|
17
18
|
|
|
18
19
|
/**
|
|
19
20
|
* @internal
|
package/tsconfig.es.json
CHANGED
|
@@ -4,9 +4,7 @@
|
|
|
4
4
|
"target": "es5",
|
|
5
5
|
"module": "esnext",
|
|
6
6
|
"moduleResolution": "node",
|
|
7
|
-
"declaration": false,
|
|
8
|
-
"declarationDir": null,
|
|
9
7
|
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
|
|
10
|
-
"outDir": "dist
|
|
8
|
+
"outDir": "dist-es"
|
|
11
9
|
}
|
|
12
10
|
}
|