@aws-sdk/client-sagemakertrainingsessionruntime 0.0.0-stage → 3.1150.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/LICENSE +201 -0
- package/README.md +222 -2
- package/dist-cjs/index.js +913 -0
- package/dist-es/SageMakerTrainingSessionRuntime.js +19 -0
- package/dist-es/SageMakerTrainingSessionRuntimeClient.js +47 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commandBuilder.js +6 -0
- package/dist-es/commands/ExecuteSamplingOperationCommand.js +4 -0
- package/dist-es/commands/ExecuteTrainingOperationCommand.js +4 -0
- package/dist-es/commands/GetSamplingOperationResultCommand.js +4 -0
- package/dist-es/commands/GetTrainingOperationResultCommand.js +4 -0
- package/dist-es/commands/SampleTrainingSessionCommand.js +4 -0
- package/dist-es/commands/SampleTrainingSessionWithResponseStreamCommand.js +4 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/endpoint/EndpointParameters.js +11 -0
- package/dist-es/endpoint/bdd.js +29 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +9 -0
- package/dist-es/models/SageMakerTrainingSessionRuntimeServiceException.js +9 -0
- package/dist-es/models/enums.js +20 -0
- package/dist-es/models/errors.js +66 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/runtimeConfig.browser.js +29 -0
- package/dist-es/runtimeConfig.js +43 -0
- package/dist-es/runtimeConfig.native.js +9 -0
- package/dist-es/runtimeConfig.shared.js +41 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +454 -0
- package/dist-types/SageMakerTrainingSessionRuntime.d.ts +58 -0
- package/dist-types/SageMakerTrainingSessionRuntimeClient.d.ts +197 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commandBuilder.d.ts +18 -0
- package/dist-types/commands/ExecuteSamplingOperationCommand.d.ts +169 -0
- package/dist-types/commands/ExecuteTrainingOperationCommand.d.ts +206 -0
- package/dist-types/commands/GetSamplingOperationResultCommand.d.ts +159 -0
- package/dist-types/commands/GetTrainingOperationResultCommand.d.ts +169 -0
- package/dist-types/commands/SampleTrainingSessionCommand.d.ts +123 -0
- package/dist-types/commands/SampleTrainingSessionWithResponseStreamCommand.d.ts +124 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +17 -0
- package/dist-types/models/SageMakerTrainingSessionRuntimeServiceException.d.ts +15 -0
- package/dist-types/models/enums.d.ts +52 -0
- package/dist-types/models/errors.d.ts +67 -0
- package/dist-types/models/models_0.d.ts +1069 -0
- package/dist-types/runtimeConfig.browser.d.ts +58 -0
- package/dist-types/runtimeConfig.d.ts +58 -0
- package/dist-types/runtimeConfig.native.d.ts +57 -0
- package/dist-types/runtimeConfig.shared.d.ts +29 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +64 -0
- package/dist-types/ts3.4/SageMakerTrainingSessionRuntime.d.ts +115 -0
- package/dist-types/ts3.4/SageMakerTrainingSessionRuntimeClient.d.ts +143 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +27 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
- package/dist-types/ts3.4/commands/ExecuteSamplingOperationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ExecuteTrainingOperationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetSamplingOperationResultCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetTrainingOperationResultCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/SampleTrainingSessionCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/SampleTrainingSessionWithResponseStreamCommand.d.ts +59 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
- package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
- package/dist-types/ts3.4/index.d.ts +12 -0
- package/dist-types/ts3.4/models/SageMakerTrainingSessionRuntimeServiceException.d.ts +10 -0
- package/dist-types/ts3.4/models/enums.d.ts +24 -0
- package/dist-types/ts3.4/models/errors.d.ts +32 -0
- package/dist-types/ts3.4/models/models_0.d.ts +417 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +94 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +96 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +98 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +32 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +64 -0
- package/package.json +67 -4
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
|
|
2
|
+
import type { SageMakerTrainingSessionRuntimeClientConfig } from "./SageMakerTrainingSessionRuntimeClient";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const getRuntimeConfig: (config: SageMakerTrainingSessionRuntimeClientConfig) => {
|
|
7
|
+
cacheMiddleware?: boolean;
|
|
8
|
+
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Endpoint | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<string> | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
9
|
+
tls?: boolean;
|
|
10
|
+
ignoreConfiguredEndpointUrls?: boolean;
|
|
11
|
+
serviceConfiguredEndpoint?: never;
|
|
12
|
+
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
13
|
+
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
14
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
15
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider;
|
|
16
|
+
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme) => Promise<import("@smithy/types").RequestSigner>);
|
|
17
|
+
signingEscapePath?: boolean;
|
|
18
|
+
systemClockOffset?: number;
|
|
19
|
+
signingRegion?: string;
|
|
20
|
+
signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
|
|
21
|
+
disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
|
|
22
|
+
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
23
|
+
apiVersion: string;
|
|
24
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
25
|
+
base64Encoder: (_input: Uint8Array | string) => string;
|
|
26
|
+
disableHostPrefix: boolean;
|
|
27
|
+
endpointProvider: (params: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
28
|
+
logger?: import("@smithy/types").Logger;
|
|
29
|
+
}) => import("@smithy/types").EndpointV2;
|
|
30
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
31
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SageMakerTrainingSessionRuntimeHttpAuthSchemeProvider;
|
|
32
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
33
|
+
logger: import("@smithy/types").Logger;
|
|
34
|
+
protocol: import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
|
|
35
|
+
protocolSettings: {
|
|
36
|
+
[setting: string]: unknown;
|
|
37
|
+
defaultNamespace?: string;
|
|
38
|
+
};
|
|
39
|
+
sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
|
|
40
|
+
serviceId: string;
|
|
41
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
42
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
43
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
44
|
+
utf8Encoder: (input: Uint8Array | string) => string;
|
|
45
|
+
profile?: string;
|
|
46
|
+
runtime: string;
|
|
47
|
+
defaultsMode: import("@smithy/types").Provider<import("@smithy/core/client").ResolvedDefaultsMode>;
|
|
48
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
49
|
+
credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
50
|
+
defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
|
|
51
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
52
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
53
|
+
requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
|
|
54
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
55
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
56
|
+
useDualstackEndpoint: boolean | (() => Promise<boolean>);
|
|
57
|
+
useFipsEndpoint: boolean | (() => Promise<boolean>);
|
|
58
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
|
|
2
|
+
import type { SageMakerTrainingSessionRuntimeClientConfig } from "./SageMakerTrainingSessionRuntimeClient";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const getRuntimeConfig: (config: SageMakerTrainingSessionRuntimeClientConfig) => {
|
|
7
|
+
cacheMiddleware?: boolean;
|
|
8
|
+
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Endpoint | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<string> | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
9
|
+
tls?: boolean;
|
|
10
|
+
ignoreConfiguredEndpointUrls?: boolean;
|
|
11
|
+
serviceConfiguredEndpoint?: never;
|
|
12
|
+
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
13
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
14
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider;
|
|
15
|
+
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme) => Promise<import("@smithy/types").RequestSigner>);
|
|
16
|
+
signingEscapePath?: boolean;
|
|
17
|
+
systemClockOffset?: number;
|
|
18
|
+
signingRegion?: string;
|
|
19
|
+
signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
|
|
20
|
+
disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
|
|
21
|
+
apiVersion: string;
|
|
22
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
23
|
+
base64Encoder: (_input: Uint8Array | string) => string;
|
|
24
|
+
disableHostPrefix: boolean;
|
|
25
|
+
endpointProvider: (params: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
26
|
+
logger?: import("@smithy/types").Logger;
|
|
27
|
+
}) => import("@smithy/types").EndpointV2;
|
|
28
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
29
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SageMakerTrainingSessionRuntimeHttpAuthSchemeProvider;
|
|
30
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
31
|
+
logger: import("@smithy/types").Logger;
|
|
32
|
+
protocol: import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
|
|
33
|
+
protocolSettings: {
|
|
34
|
+
[setting: string]: unknown;
|
|
35
|
+
defaultNamespace?: string;
|
|
36
|
+
};
|
|
37
|
+
sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
|
|
38
|
+
serviceId: string;
|
|
39
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
40
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
41
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
42
|
+
utf8Encoder: (input: Uint8Array | string) => string;
|
|
43
|
+
runtime: string;
|
|
44
|
+
defaultsMode: import("@smithy/types").Provider<import("@smithy/core/client").ResolvedDefaultsMode>;
|
|
45
|
+
authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
|
|
46
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
47
|
+
credentialDefaultProvider: ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit) => import("@aws-sdk/credential-provider-node").MemoizedRuntimeConfigAwsCredentialIdentityProvider) | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider);
|
|
48
|
+
defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
|
|
49
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
50
|
+
region: string | import("@smithy/types").Provider<string>;
|
|
51
|
+
requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
|
|
52
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
53
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
54
|
+
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
55
|
+
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
56
|
+
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
57
|
+
profile?: string;
|
|
58
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { SageMakerTrainingSessionRuntimeClientConfig } from "./SageMakerTrainingSessionRuntimeClient";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const getRuntimeConfig: (config: SageMakerTrainingSessionRuntimeClientConfig) => {
|
|
6
|
+
cacheMiddleware?: boolean;
|
|
7
|
+
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Endpoint | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<string> | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
8
|
+
tls?: boolean;
|
|
9
|
+
ignoreConfiguredEndpointUrls?: boolean;
|
|
10
|
+
serviceConfiguredEndpoint?: never;
|
|
11
|
+
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
12
|
+
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
13
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
14
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider;
|
|
15
|
+
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme) => Promise<import("@smithy/types").RequestSigner>);
|
|
16
|
+
signingEscapePath?: boolean;
|
|
17
|
+
systemClockOffset?: number;
|
|
18
|
+
signingRegion?: string;
|
|
19
|
+
signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
|
|
20
|
+
disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
|
|
21
|
+
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
22
|
+
apiVersion: string;
|
|
23
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
24
|
+
base64Encoder: (_input: Uint8Array | string) => string;
|
|
25
|
+
disableHostPrefix: boolean;
|
|
26
|
+
endpointProvider: (params: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
27
|
+
logger?: import("@smithy/types").Logger;
|
|
28
|
+
}) => import("@smithy/types").EndpointV2;
|
|
29
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
30
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SageMakerTrainingSessionRuntimeHttpAuthSchemeProvider;
|
|
31
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
32
|
+
logger: import("@smithy/types").Logger;
|
|
33
|
+
protocol: import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
|
|
34
|
+
protocolSettings: {
|
|
35
|
+
[setting: string]: unknown;
|
|
36
|
+
defaultNamespace?: string;
|
|
37
|
+
};
|
|
38
|
+
sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
|
|
39
|
+
serviceId: string;
|
|
40
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
41
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
42
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
43
|
+
utf8Encoder: (input: Uint8Array | string) => string;
|
|
44
|
+
profile?: string;
|
|
45
|
+
defaultsMode: import("@smithy/types").Provider<import("@smithy/core/client").DefaultsMode> | import("@smithy/core/client").DefaultsMode;
|
|
46
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
47
|
+
credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
48
|
+
defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
|
|
49
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
50
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
51
|
+
requestHandler: import("@smithy/fetch-http-handler").FetchHttpHandler | import("@smithy/types").FetchHttpHandlerOptions | import("@smithy/types").NodeHttpHandlerOptions | Record<string, unknown> | import("@smithy/core/protocols").HttpHandler<any>;
|
|
52
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
53
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
54
|
+
useDualstackEndpoint: boolean | (() => Promise<boolean>);
|
|
55
|
+
useFipsEndpoint: boolean | (() => Promise<boolean>);
|
|
56
|
+
runtime: string;
|
|
57
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
2
|
+
import type { SageMakerTrainingSessionRuntimeClientConfig } from "./SageMakerTrainingSessionRuntimeClient";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const getRuntimeConfig: (config: SageMakerTrainingSessionRuntimeClientConfig) => {
|
|
7
|
+
apiVersion: string;
|
|
8
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
9
|
+
base64Encoder: (_input: Uint8Array | string) => string;
|
|
10
|
+
disableHostPrefix: boolean;
|
|
11
|
+
endpointProvider: (params: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
12
|
+
logger?: import("@smithy/types").Logger;
|
|
13
|
+
}) => import("@smithy/types").EndpointV2;
|
|
14
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
15
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SageMakerTrainingSessionRuntimeHttpAuthSchemeProvider;
|
|
16
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
17
|
+
logger: import("@smithy/types").Logger;
|
|
18
|
+
protocol: import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | typeof AwsRestJsonProtocol;
|
|
19
|
+
protocolSettings: {
|
|
20
|
+
[setting: string]: unknown;
|
|
21
|
+
defaultNamespace?: string;
|
|
22
|
+
};
|
|
23
|
+
sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
|
|
24
|
+
serviceId: string;
|
|
25
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
26
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
27
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
28
|
+
utf8Encoder: (input: Uint8Array | string) => string;
|
|
29
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { SageMakerTrainingSessionRuntimeExtensionConfiguration } from "./extensionConfiguration";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface RuntimeExtension {
|
|
6
|
+
configure(extensionConfiguration: SageMakerTrainingSessionRuntimeExtensionConfiguration): void;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export interface RuntimeExtensionsConfig {
|
|
12
|
+
extensions: RuntimeExtension[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export declare const resolveRuntimeExtensions: (runtimeConfig: any, extensions: RuntimeExtension[]) => any;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
2
|
+
import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema, StaticUnionSchema } from "@smithy/types";
|
|
3
|
+
export declare var SageMakerTrainingSessionRuntimeServiceException$: StaticErrorSchema;
|
|
4
|
+
export declare var ConflictException$: StaticErrorSchema;
|
|
5
|
+
export declare var InternalServerException$: StaticErrorSchema;
|
|
6
|
+
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
7
|
+
export declare var ThrottlingException$: StaticErrorSchema;
|
|
8
|
+
export declare var ValidationException$: StaticErrorSchema;
|
|
9
|
+
/**
|
|
10
|
+
* TypeRegistry instances containing modeled errors.
|
|
11
|
+
* @internal
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
15
|
+
export declare var AdamParamsConfig$: StaticStructureSchema;
|
|
16
|
+
export declare var ComputeLogprobsConfig$: StaticStructureSchema;
|
|
17
|
+
export declare var ComputeLogprobsResult$: StaticStructureSchema;
|
|
18
|
+
export declare var Datum$: StaticStructureSchema;
|
|
19
|
+
export declare var EncodedTextChunk$: StaticStructureSchema;
|
|
20
|
+
export declare var ExecuteSamplingOperationInput$: StaticStructureSchema;
|
|
21
|
+
export declare var ExecuteSamplingOperationOutput$: StaticStructureSchema;
|
|
22
|
+
export declare var ExecuteTrainingOperationInput$: StaticStructureSchema;
|
|
23
|
+
export declare var ExecuteTrainingOperationOutput$: StaticStructureSchema;
|
|
24
|
+
export declare var ForwardBackwardConfig$: StaticStructureSchema;
|
|
25
|
+
export declare var ForwardBackwardResult$: StaticStructureSchema;
|
|
26
|
+
export declare var ForwardConfig$: StaticStructureSchema;
|
|
27
|
+
export declare var ForwardResult$: StaticStructureSchema;
|
|
28
|
+
export declare var GetSamplingOperationResultInput$: StaticStructureSchema;
|
|
29
|
+
export declare var GetSamplingOperationResultOutput$: StaticStructureSchema;
|
|
30
|
+
export declare var GetTrainingOperationResultInput$: StaticStructureSchema;
|
|
31
|
+
export declare var GetTrainingOperationResultOutput$: StaticStructureSchema;
|
|
32
|
+
export declare var LoadStateConfig$: StaticStructureSchema;
|
|
33
|
+
export declare var LoadStateResult$: StaticStructureSchema;
|
|
34
|
+
export declare var LoadWeightsForSamplingConfig$: StaticStructureSchema;
|
|
35
|
+
export declare var LoadWeightsForSamplingResult$: StaticStructureSchema;
|
|
36
|
+
export declare var ModelInput$: StaticStructureSchema;
|
|
37
|
+
export declare var OptimizerStepConfig$: StaticStructureSchema;
|
|
38
|
+
export declare var OptimizerStepResult$: StaticStructureSchema;
|
|
39
|
+
export declare var SampleConfig$: StaticStructureSchema;
|
|
40
|
+
export declare var SampledSequence$: StaticStructureSchema;
|
|
41
|
+
export declare var SampleResponse$: StaticStructureSchema;
|
|
42
|
+
export declare var SampleTokenUsage$: StaticStructureSchema;
|
|
43
|
+
export declare var SampleTrainingSessionInput$: StaticStructureSchema;
|
|
44
|
+
export declare var SampleTrainingSessionOutput$: StaticStructureSchema;
|
|
45
|
+
export declare var SampleTrainingSessionWithResponseStreamInput$: StaticStructureSchema;
|
|
46
|
+
export declare var SampleTrainingSessionWithResponseStreamOutput$: StaticStructureSchema;
|
|
47
|
+
export declare var SamplingParams$: StaticStructureSchema;
|
|
48
|
+
export declare var SaveStateConfig$: StaticStructureSchema;
|
|
49
|
+
export declare var SaveStateResult$: StaticStructureSchema;
|
|
50
|
+
export declare var SaveWeightsConfig$: StaticStructureSchema;
|
|
51
|
+
export declare var SaveWeightsResult$: StaticStructureSchema;
|
|
52
|
+
export declare var TensorData$: StaticStructureSchema;
|
|
53
|
+
export declare var TokenLogprob$: StaticStructureSchema;
|
|
54
|
+
export declare var TrainingTokenUsage$: StaticStructureSchema;
|
|
55
|
+
export declare var OperationConfig$: StaticUnionSchema;
|
|
56
|
+
export declare var OperationResult$: StaticUnionSchema;
|
|
57
|
+
export declare var SampleOperationConfig$: StaticUnionSchema;
|
|
58
|
+
export declare var SampleOperationResult$: StaticUnionSchema;
|
|
59
|
+
export declare var ExecuteSamplingOperation$: StaticOperationSchema;
|
|
60
|
+
export declare var ExecuteTrainingOperation$: StaticOperationSchema;
|
|
61
|
+
export declare var GetSamplingOperationResult$: StaticOperationSchema;
|
|
62
|
+
export declare var GetTrainingOperationResult$: StaticOperationSchema;
|
|
63
|
+
export declare var SampleTrainingSession$: StaticOperationSchema;
|
|
64
|
+
export declare var SampleTrainingSessionWithResponseStream$: StaticOperationSchema;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
MetricsRecorder as __MetricsRecorder,
|
|
4
|
+
} from "@smithy/types";
|
|
5
|
+
import {
|
|
6
|
+
ExecuteSamplingOperationCommandInput,
|
|
7
|
+
ExecuteSamplingOperationCommandOutput,
|
|
8
|
+
} from "./commands/ExecuteSamplingOperationCommand";
|
|
9
|
+
import {
|
|
10
|
+
ExecuteTrainingOperationCommandInput,
|
|
11
|
+
ExecuteTrainingOperationCommandOutput,
|
|
12
|
+
} from "./commands/ExecuteTrainingOperationCommand";
|
|
13
|
+
import {
|
|
14
|
+
GetSamplingOperationResultCommandInput,
|
|
15
|
+
GetSamplingOperationResultCommandOutput,
|
|
16
|
+
} from "./commands/GetSamplingOperationResultCommand";
|
|
17
|
+
import {
|
|
18
|
+
GetTrainingOperationResultCommandInput,
|
|
19
|
+
GetTrainingOperationResultCommandOutput,
|
|
20
|
+
} from "./commands/GetTrainingOperationResultCommand";
|
|
21
|
+
import {
|
|
22
|
+
SampleTrainingSessionCommandInput,
|
|
23
|
+
SampleTrainingSessionCommandOutput,
|
|
24
|
+
} from "./commands/SampleTrainingSessionCommand";
|
|
25
|
+
import {
|
|
26
|
+
SampleTrainingSessionWithResponseStreamCommandInput,
|
|
27
|
+
SampleTrainingSessionWithResponseStreamCommandOutput,
|
|
28
|
+
} from "./commands/SampleTrainingSessionWithResponseStreamCommand";
|
|
29
|
+
import { SageMakerTrainingSessionRuntimeClient } from "./SageMakerTrainingSessionRuntimeClient";
|
|
30
|
+
export interface SageMakerTrainingSessionRuntimeRequestOptions extends __HttpHandlerOptions {
|
|
31
|
+
metricsRecorder?: __MetricsRecorder<unknown>;
|
|
32
|
+
}
|
|
33
|
+
export interface SageMakerTrainingSessionRuntime {
|
|
34
|
+
executeSamplingOperation(
|
|
35
|
+
args: ExecuteSamplingOperationCommandInput,
|
|
36
|
+
options?: SageMakerTrainingSessionRuntimeRequestOptions,
|
|
37
|
+
): Promise<ExecuteSamplingOperationCommandOutput>;
|
|
38
|
+
executeSamplingOperation(
|
|
39
|
+
args: ExecuteSamplingOperationCommandInput,
|
|
40
|
+
cb: (err: any, data?: ExecuteSamplingOperationCommandOutput) => void,
|
|
41
|
+
): void;
|
|
42
|
+
executeSamplingOperation(
|
|
43
|
+
args: ExecuteSamplingOperationCommandInput,
|
|
44
|
+
options: SageMakerTrainingSessionRuntimeRequestOptions,
|
|
45
|
+
cb: (err: any, data?: ExecuteSamplingOperationCommandOutput) => void,
|
|
46
|
+
): void;
|
|
47
|
+
executeTrainingOperation(
|
|
48
|
+
args: ExecuteTrainingOperationCommandInput,
|
|
49
|
+
options?: SageMakerTrainingSessionRuntimeRequestOptions,
|
|
50
|
+
): Promise<ExecuteTrainingOperationCommandOutput>;
|
|
51
|
+
executeTrainingOperation(
|
|
52
|
+
args: ExecuteTrainingOperationCommandInput,
|
|
53
|
+
cb: (err: any, data?: ExecuteTrainingOperationCommandOutput) => void,
|
|
54
|
+
): void;
|
|
55
|
+
executeTrainingOperation(
|
|
56
|
+
args: ExecuteTrainingOperationCommandInput,
|
|
57
|
+
options: SageMakerTrainingSessionRuntimeRequestOptions,
|
|
58
|
+
cb: (err: any, data?: ExecuteTrainingOperationCommandOutput) => void,
|
|
59
|
+
): void;
|
|
60
|
+
getSamplingOperationResult(
|
|
61
|
+
args: GetSamplingOperationResultCommandInput,
|
|
62
|
+
options?: SageMakerTrainingSessionRuntimeRequestOptions,
|
|
63
|
+
): Promise<GetSamplingOperationResultCommandOutput>;
|
|
64
|
+
getSamplingOperationResult(
|
|
65
|
+
args: GetSamplingOperationResultCommandInput,
|
|
66
|
+
cb: (err: any, data?: GetSamplingOperationResultCommandOutput) => void,
|
|
67
|
+
): void;
|
|
68
|
+
getSamplingOperationResult(
|
|
69
|
+
args: GetSamplingOperationResultCommandInput,
|
|
70
|
+
options: SageMakerTrainingSessionRuntimeRequestOptions,
|
|
71
|
+
cb: (err: any, data?: GetSamplingOperationResultCommandOutput) => void,
|
|
72
|
+
): void;
|
|
73
|
+
getTrainingOperationResult(
|
|
74
|
+
args: GetTrainingOperationResultCommandInput,
|
|
75
|
+
options?: SageMakerTrainingSessionRuntimeRequestOptions,
|
|
76
|
+
): Promise<GetTrainingOperationResultCommandOutput>;
|
|
77
|
+
getTrainingOperationResult(
|
|
78
|
+
args: GetTrainingOperationResultCommandInput,
|
|
79
|
+
cb: (err: any, data?: GetTrainingOperationResultCommandOutput) => void,
|
|
80
|
+
): void;
|
|
81
|
+
getTrainingOperationResult(
|
|
82
|
+
args: GetTrainingOperationResultCommandInput,
|
|
83
|
+
options: SageMakerTrainingSessionRuntimeRequestOptions,
|
|
84
|
+
cb: (err: any, data?: GetTrainingOperationResultCommandOutput) => void,
|
|
85
|
+
): void;
|
|
86
|
+
sampleTrainingSession(
|
|
87
|
+
args: SampleTrainingSessionCommandInput,
|
|
88
|
+
options?: SageMakerTrainingSessionRuntimeRequestOptions,
|
|
89
|
+
): Promise<SampleTrainingSessionCommandOutput>;
|
|
90
|
+
sampleTrainingSession(
|
|
91
|
+
args: SampleTrainingSessionCommandInput,
|
|
92
|
+
cb: (err: any, data?: SampleTrainingSessionCommandOutput) => void,
|
|
93
|
+
): void;
|
|
94
|
+
sampleTrainingSession(
|
|
95
|
+
args: SampleTrainingSessionCommandInput,
|
|
96
|
+
options: SageMakerTrainingSessionRuntimeRequestOptions,
|
|
97
|
+
cb: (err: any, data?: SampleTrainingSessionCommandOutput) => void,
|
|
98
|
+
): void;
|
|
99
|
+
sampleTrainingSessionWithResponseStream(
|
|
100
|
+
args: SampleTrainingSessionWithResponseStreamCommandInput,
|
|
101
|
+
options?: SageMakerTrainingSessionRuntimeRequestOptions,
|
|
102
|
+
): Promise<SampleTrainingSessionWithResponseStreamCommandOutput>;
|
|
103
|
+
sampleTrainingSessionWithResponseStream(
|
|
104
|
+
args: SampleTrainingSessionWithResponseStreamCommandInput,
|
|
105
|
+
cb: (err: any, data?: SampleTrainingSessionWithResponseStreamCommandOutput) => void,
|
|
106
|
+
): void;
|
|
107
|
+
sampleTrainingSessionWithResponseStream(
|
|
108
|
+
args: SampleTrainingSessionWithResponseStreamCommandInput,
|
|
109
|
+
options: SageMakerTrainingSessionRuntimeRequestOptions,
|
|
110
|
+
cb: (err: any, data?: SampleTrainingSessionWithResponseStreamCommandOutput) => void,
|
|
111
|
+
): void;
|
|
112
|
+
}
|
|
113
|
+
export declare class SageMakerTrainingSessionRuntime
|
|
114
|
+
extends SageMakerTrainingSessionRuntimeClient
|
|
115
|
+
implements SageMakerTrainingSessionRuntime {}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import {
|
|
2
|
+
HostHeaderInputConfig,
|
|
3
|
+
HostHeaderResolvedConfig,
|
|
4
|
+
UserAgentInputConfig,
|
|
5
|
+
UserAgentResolvedConfig,
|
|
6
|
+
} from "@aws-sdk/core/client";
|
|
7
|
+
import {
|
|
8
|
+
DefaultsMode as __DefaultsMode,
|
|
9
|
+
SmithyConfiguration as __SmithyConfiguration,
|
|
10
|
+
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
11
|
+
Client as __Client,
|
|
12
|
+
} from "@smithy/core/client";
|
|
13
|
+
import { RegionInputConfig, RegionResolvedConfig } from "@smithy/core/config";
|
|
14
|
+
import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/core/endpoints";
|
|
15
|
+
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/core/protocols";
|
|
16
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/core/retry";
|
|
17
|
+
import {
|
|
18
|
+
AwsCredentialIdentityProvider,
|
|
19
|
+
BodyLengthCalculator as __BodyLengthCalculator,
|
|
20
|
+
CheckOptionalClientConfig as __CheckOptionalClientConfig,
|
|
21
|
+
ChecksumConstructor as __ChecksumConstructor,
|
|
22
|
+
Decoder as __Decoder,
|
|
23
|
+
Encoder as __Encoder,
|
|
24
|
+
HashConstructor as __HashConstructor,
|
|
25
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
26
|
+
Logger as __Logger,
|
|
27
|
+
Provider as __Provider,
|
|
28
|
+
SdkStreamMixinInjector as __SdkStreamMixinInjector,
|
|
29
|
+
StreamCollector as __StreamCollector,
|
|
30
|
+
UrlParser as __UrlParser,
|
|
31
|
+
UserAgent as __UserAgent,
|
|
32
|
+
} from "@smithy/types";
|
|
33
|
+
import {
|
|
34
|
+
HttpAuthSchemeInputConfig,
|
|
35
|
+
HttpAuthSchemeResolvedConfig,
|
|
36
|
+
} from "./auth/httpAuthSchemeProvider";
|
|
37
|
+
import {
|
|
38
|
+
ExecuteSamplingOperationCommandInput,
|
|
39
|
+
ExecuteSamplingOperationCommandOutput,
|
|
40
|
+
} from "./commands/ExecuteSamplingOperationCommand";
|
|
41
|
+
import {
|
|
42
|
+
ExecuteTrainingOperationCommandInput,
|
|
43
|
+
ExecuteTrainingOperationCommandOutput,
|
|
44
|
+
} from "./commands/ExecuteTrainingOperationCommand";
|
|
45
|
+
import {
|
|
46
|
+
GetSamplingOperationResultCommandInput,
|
|
47
|
+
GetSamplingOperationResultCommandOutput,
|
|
48
|
+
} from "./commands/GetSamplingOperationResultCommand";
|
|
49
|
+
import {
|
|
50
|
+
GetTrainingOperationResultCommandInput,
|
|
51
|
+
GetTrainingOperationResultCommandOutput,
|
|
52
|
+
} from "./commands/GetTrainingOperationResultCommand";
|
|
53
|
+
import {
|
|
54
|
+
SampleTrainingSessionCommandInput,
|
|
55
|
+
SampleTrainingSessionCommandOutput,
|
|
56
|
+
} from "./commands/SampleTrainingSessionCommand";
|
|
57
|
+
import {
|
|
58
|
+
SampleTrainingSessionWithResponseStreamCommandInput,
|
|
59
|
+
SampleTrainingSessionWithResponseStreamCommandOutput,
|
|
60
|
+
} from "./commands/SampleTrainingSessionWithResponseStreamCommand";
|
|
61
|
+
import {
|
|
62
|
+
ClientInputEndpointParameters,
|
|
63
|
+
ClientResolvedEndpointParameters,
|
|
64
|
+
EndpointParameters,
|
|
65
|
+
} from "./endpoint/EndpointParameters";
|
|
66
|
+
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
67
|
+
export { __Client };
|
|
68
|
+
export type ServiceInputTypes =
|
|
69
|
+
| ExecuteSamplingOperationCommandInput
|
|
70
|
+
| ExecuteTrainingOperationCommandInput
|
|
71
|
+
| GetSamplingOperationResultCommandInput
|
|
72
|
+
| GetTrainingOperationResultCommandInput
|
|
73
|
+
| SampleTrainingSessionCommandInput
|
|
74
|
+
| SampleTrainingSessionWithResponseStreamCommandInput;
|
|
75
|
+
export type ServiceOutputTypes =
|
|
76
|
+
| ExecuteSamplingOperationCommandOutput
|
|
77
|
+
| ExecuteTrainingOperationCommandOutput
|
|
78
|
+
| GetSamplingOperationResultCommandOutput
|
|
79
|
+
| GetTrainingOperationResultCommandOutput
|
|
80
|
+
| SampleTrainingSessionCommandOutput
|
|
81
|
+
| SampleTrainingSessionWithResponseStreamCommandOutput;
|
|
82
|
+
export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
83
|
+
requestHandler?: __HttpHandlerUserInput;
|
|
84
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
85
|
+
urlParser?: __UrlParser;
|
|
86
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
87
|
+
streamCollector?: __StreamCollector;
|
|
88
|
+
base64Decoder?: __Decoder;
|
|
89
|
+
base64Encoder?: __Encoder;
|
|
90
|
+
utf8Decoder?: __Decoder;
|
|
91
|
+
utf8Encoder?: __Encoder;
|
|
92
|
+
runtime?: string;
|
|
93
|
+
disableHostPrefix?: boolean;
|
|
94
|
+
serviceId?: string;
|
|
95
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
96
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
97
|
+
region?: string | __Provider<string>;
|
|
98
|
+
profile?: string;
|
|
99
|
+
defaultUserAgentProvider?: __Provider<__UserAgent>;
|
|
100
|
+
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
|
|
101
|
+
maxAttempts?: number | __Provider<number>;
|
|
102
|
+
retryMode?: string | __Provider<string>;
|
|
103
|
+
logger?: __Logger;
|
|
104
|
+
extensions?: RuntimeExtension[];
|
|
105
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
106
|
+
sdkStreamMixin?: __SdkStreamMixinInjector;
|
|
107
|
+
}
|
|
108
|
+
export type SageMakerTrainingSessionRuntimeClientConfigType = Partial<
|
|
109
|
+
__SmithyConfiguration<__HttpHandlerOptions>
|
|
110
|
+
> &
|
|
111
|
+
ClientDefaults &
|
|
112
|
+
UserAgentInputConfig &
|
|
113
|
+
RetryInputConfig &
|
|
114
|
+
RegionInputConfig &
|
|
115
|
+
HostHeaderInputConfig &
|
|
116
|
+
EndpointInputConfig<EndpointParameters> &
|
|
117
|
+
HttpAuthSchemeInputConfig &
|
|
118
|
+
ClientInputEndpointParameters;
|
|
119
|
+
export interface SageMakerTrainingSessionRuntimeClientConfig extends SageMakerTrainingSessionRuntimeClientConfigType {}
|
|
120
|
+
export type SageMakerTrainingSessionRuntimeClientResolvedConfigType =
|
|
121
|
+
__SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
122
|
+
Required<ClientDefaults> &
|
|
123
|
+
RuntimeExtensionsConfig &
|
|
124
|
+
UserAgentResolvedConfig &
|
|
125
|
+
RetryResolvedConfig &
|
|
126
|
+
RegionResolvedConfig &
|
|
127
|
+
HostHeaderResolvedConfig &
|
|
128
|
+
EndpointResolvedConfig<EndpointParameters> &
|
|
129
|
+
HttpAuthSchemeResolvedConfig &
|
|
130
|
+
ClientResolvedEndpointParameters;
|
|
131
|
+
export interface SageMakerTrainingSessionRuntimeClientResolvedConfig extends SageMakerTrainingSessionRuntimeClientResolvedConfigType {}
|
|
132
|
+
export declare class SageMakerTrainingSessionRuntimeClient extends __Client<
|
|
133
|
+
__HttpHandlerOptions,
|
|
134
|
+
ServiceInputTypes,
|
|
135
|
+
ServiceOutputTypes,
|
|
136
|
+
SageMakerTrainingSessionRuntimeClientResolvedConfig
|
|
137
|
+
> {
|
|
138
|
+
readonly config: SageMakerTrainingSessionRuntimeClientResolvedConfig;
|
|
139
|
+
constructor(
|
|
140
|
+
...[configuration]: __CheckOptionalClientConfig<SageMakerTrainingSessionRuntimeClientConfig>
|
|
141
|
+
);
|
|
142
|
+
destroy(): void;
|
|
143
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AwsCredentialIdentity,
|
|
3
|
+
AwsCredentialIdentityProvider,
|
|
4
|
+
HttpAuthScheme,
|
|
5
|
+
} from "@smithy/types";
|
|
6
|
+
import { SageMakerTrainingSessionRuntimeHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
7
|
+
export interface HttpAuthExtensionConfiguration {
|
|
8
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
9
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
10
|
+
setHttpAuthSchemeProvider(
|
|
11
|
+
httpAuthSchemeProvider: SageMakerTrainingSessionRuntimeHttpAuthSchemeProvider,
|
|
12
|
+
): void;
|
|
13
|
+
httpAuthSchemeProvider(): SageMakerTrainingSessionRuntimeHttpAuthSchemeProvider;
|
|
14
|
+
setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
|
|
15
|
+
credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
|
|
16
|
+
}
|
|
17
|
+
export type HttpAuthRuntimeConfig = Partial<{
|
|
18
|
+
httpAuthSchemes: HttpAuthScheme[];
|
|
19
|
+
httpAuthSchemeProvider: SageMakerTrainingSessionRuntimeHttpAuthSchemeProvider;
|
|
20
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
21
|
+
}>;
|
|
22
|
+
export declare const getHttpAuthExtensionConfiguration: (
|
|
23
|
+
runtimeConfig: HttpAuthRuntimeConfig,
|
|
24
|
+
) => HttpAuthExtensionConfiguration;
|
|
25
|
+
export declare const resolveHttpAuthRuntimeConfig: (
|
|
26
|
+
config: HttpAuthExtensionConfiguration,
|
|
27
|
+
) => HttpAuthRuntimeConfig;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AwsSdkSigV4AuthInputConfig,
|
|
3
|
+
AwsSdkSigV4AuthResolvedConfig,
|
|
4
|
+
AwsSdkSigV4PreviouslyResolved,
|
|
5
|
+
} from "@aws-sdk/core/httpAuthSchemes";
|
|
6
|
+
import {
|
|
7
|
+
HandlerExecutionContext,
|
|
8
|
+
HttpAuthScheme,
|
|
9
|
+
HttpAuthSchemeParameters,
|
|
10
|
+
HttpAuthSchemeParametersProvider,
|
|
11
|
+
HttpAuthSchemeProvider,
|
|
12
|
+
Provider,
|
|
13
|
+
} from "@smithy/types";
|
|
14
|
+
import { SageMakerTrainingSessionRuntimeClientResolvedConfig } from "../SageMakerTrainingSessionRuntimeClient";
|
|
15
|
+
export interface SageMakerTrainingSessionRuntimeHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
16
|
+
region?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface SageMakerTrainingSessionRuntimeHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<
|
|
19
|
+
SageMakerTrainingSessionRuntimeClientResolvedConfig,
|
|
20
|
+
HandlerExecutionContext,
|
|
21
|
+
SageMakerTrainingSessionRuntimeHttpAuthSchemeParameters,
|
|
22
|
+
object
|
|
23
|
+
> {}
|
|
24
|
+
export declare const defaultSageMakerTrainingSessionRuntimeHttpAuthSchemeParametersProvider: (
|
|
25
|
+
config: SageMakerTrainingSessionRuntimeClientResolvedConfig,
|
|
26
|
+
context: HandlerExecutionContext,
|
|
27
|
+
input: object,
|
|
28
|
+
) => Promise<SageMakerTrainingSessionRuntimeHttpAuthSchemeParameters>;
|
|
29
|
+
export interface SageMakerTrainingSessionRuntimeHttpAuthSchemeProvider extends HttpAuthSchemeProvider<SageMakerTrainingSessionRuntimeHttpAuthSchemeParameters> {}
|
|
30
|
+
export declare const defaultSageMakerTrainingSessionRuntimeHttpAuthSchemeProvider: SageMakerTrainingSessionRuntimeHttpAuthSchemeProvider;
|
|
31
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
32
|
+
authSchemePreference?: string[] | Provider<string[]>;
|
|
33
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
|
34
|
+
httpAuthSchemeProvider?: SageMakerTrainingSessionRuntimeHttpAuthSchemeProvider;
|
|
35
|
+
}
|
|
36
|
+
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
|
37
|
+
readonly authSchemePreference: Provider<string[]>;
|
|
38
|
+
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
39
|
+
readonly httpAuthSchemeProvider: SageMakerTrainingSessionRuntimeHttpAuthSchemeProvider;
|
|
40
|
+
}
|
|
41
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(
|
|
42
|
+
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
|
|
43
|
+
) => T & HttpAuthSchemeResolvedConfig;
|