@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,124 @@
|
|
|
1
|
+
import type { BlobPayloadInputTypes, MetadataBearer as __MetadataBearer, StreamingBlobPayloadOutputTypes } from "@smithy/types";
|
|
2
|
+
import type { SampleTrainingSessionWithResponseStreamInput, SampleTrainingSessionWithResponseStreamOutput } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export type SampleTrainingSessionWithResponseStreamCommandInputType = Omit<SampleTrainingSessionWithResponseStreamInput, "body"> & {
|
|
11
|
+
body?: BlobPayloadInputTypes;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
16
|
+
* The input for {@link SampleTrainingSessionWithResponseStreamCommand}.
|
|
17
|
+
*/
|
|
18
|
+
export interface SampleTrainingSessionWithResponseStreamCommandInput extends SampleTrainingSessionWithResponseStreamCommandInputType {
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @public
|
|
22
|
+
*
|
|
23
|
+
* The output of {@link SampleTrainingSessionWithResponseStreamCommand}.
|
|
24
|
+
*/
|
|
25
|
+
export interface SampleTrainingSessionWithResponseStreamCommandOutput extends Omit<SampleTrainingSessionWithResponseStreamOutput, "body">, __MetadataBearer {
|
|
26
|
+
body: StreamingBlobPayloadOutputTypes;
|
|
27
|
+
}
|
|
28
|
+
declare const SampleTrainingSessionWithResponseStreamCommand_base: {
|
|
29
|
+
new (input: SampleTrainingSessionWithResponseStreamCommandInput): import("@smithy/core/client").CommandImpl<SampleTrainingSessionWithResponseStreamCommandInput, SampleTrainingSessionWithResponseStreamCommandOutput, import("..").SageMakerTrainingSessionRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
30
|
+
new (input: SampleTrainingSessionWithResponseStreamCommandInput): import("@smithy/core/client").CommandImpl<SampleTrainingSessionWithResponseStreamCommandInput, SampleTrainingSessionWithResponseStreamCommandOutput, import("..").SageMakerTrainingSessionRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
31
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* <p>Streams inference responses from the model associated with the specified training session. Use this operation for real-time token-by-token generation. The service passes the request body to the model without modification.</p>
|
|
35
|
+
* @example
|
|
36
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
+
* ```javascript
|
|
38
|
+
* import { SageMakerTrainingSessionRuntimeClient, SampleTrainingSessionWithResponseStreamCommand } from "@aws-sdk/client-sagemakertrainingsessionruntime"; // ES Modules import
|
|
39
|
+
* // const { SageMakerTrainingSessionRuntimeClient, SampleTrainingSessionWithResponseStreamCommand } = require("@aws-sdk/client-sagemakertrainingsessionruntime"); // CommonJS import
|
|
40
|
+
* // import type { SageMakerTrainingSessionRuntimeClientConfig } from "@aws-sdk/client-sagemakertrainingsessionruntime";
|
|
41
|
+
* const config = {}; // type is SageMakerTrainingSessionRuntimeClientConfig
|
|
42
|
+
* const client = new SageMakerTrainingSessionRuntimeClient(config);
|
|
43
|
+
* const input = { // SampleTrainingSessionWithResponseStreamInput
|
|
44
|
+
* trainingSessionName: "STRING_VALUE", // required
|
|
45
|
+
* contentType: "STRING_VALUE",
|
|
46
|
+
* accept: "STRING_VALUE",
|
|
47
|
+
* modelPackageArn: "STRING_VALUE",
|
|
48
|
+
* body: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
49
|
+
* };
|
|
50
|
+
* const command = new SampleTrainingSessionWithResponseStreamCommand(input);
|
|
51
|
+
* const response = await client.send(command);
|
|
52
|
+
* // consume or destroy the stream to free the socket.
|
|
53
|
+
* const bytes = await response.body.transformToByteArray();
|
|
54
|
+
* // const str = await response.body.transformToString();
|
|
55
|
+
* // response.body.destroy(); // only applicable to Node.js Readable streams.
|
|
56
|
+
*
|
|
57
|
+
* // { // SampleTrainingSessionWithResponseStreamOutput
|
|
58
|
+
* // contentType: "STRING_VALUE",
|
|
59
|
+
* // body: "<SdkStream>", // see \@smithy/types -> StreamingBlobPayloadOutputTypes // required
|
|
60
|
+
* // };
|
|
61
|
+
*
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* @param SampleTrainingSessionWithResponseStreamCommandInput - {@link SampleTrainingSessionWithResponseStreamCommandInput}
|
|
65
|
+
* @returns {@link SampleTrainingSessionWithResponseStreamCommandOutput}
|
|
66
|
+
* @see {@link SampleTrainingSessionWithResponseStreamCommandInput} for command's `input` shape.
|
|
67
|
+
* @see {@link SampleTrainingSessionWithResponseStreamCommandOutput} for command's `response` shape.
|
|
68
|
+
* @see {@link SageMakerTrainingSessionRuntimeClientResolvedConfig | config} for SageMakerTrainingSessionRuntimeClient's `config` shape.
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ConflictException} (client fault)
|
|
71
|
+
* <p>The training session is in a state that cannot accept new operations. The session must be in <code>Running</code> or <code>Blocked</code> state to accept requests.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link InternalServerException} (server fault)
|
|
74
|
+
* <p>An internal service error occurred. Retry the request using exponential backoff.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
77
|
+
* <p>The specified training session or operation does not exist, or the operation does not belong to the specified training session.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
80
|
+
* <p>The request was throttled. Retry the request after a brief wait using exponential backoff.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link ValidationException} (client fault)
|
|
83
|
+
* <p>The request is not valid. Check the request syntax and parameters. Examples include invalid sequence numbers, malformed client tokens, missing required fields, or invalid operation configuration.</p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link SageMakerTrainingSessionRuntimeServiceException}
|
|
86
|
+
* <p>Base exception class for all service exceptions from SageMakerTrainingSessionRuntime service.</p>
|
|
87
|
+
*
|
|
88
|
+
*
|
|
89
|
+
* @example Stream samples from a training session
|
|
90
|
+
* ```javascript
|
|
91
|
+
* // Sends a chat completion request to the session's current weights and receives the response as a stream of payload chunks.
|
|
92
|
+
* const input = {
|
|
93
|
+
* accept: "application/json",
|
|
94
|
+
* body: "eyJtZXNzYWdlcyI6W3sicm9sZSI6InVzZXIiLCJjb250ZW50IjoiV2hhdCBpcyB0aGUgY2FwaXRhbCBvZiBGcmFuY2U/In1dLCJtYXhfdG9rZW5zIjoxMjgsInN0cmVhbSI6dHJ1ZX0=",
|
|
95
|
+
* contentType: "application/json",
|
|
96
|
+
* trainingSessionName: "my-training-session"
|
|
97
|
+
* };
|
|
98
|
+
* const command = new SampleTrainingSessionWithResponseStreamCommand(input);
|
|
99
|
+
* const response = await client.send(command);
|
|
100
|
+
* // consume or destroy the stream to free the socket.
|
|
101
|
+
* const bytes = await response.body.transformToByteArray();
|
|
102
|
+
* // const str = await response.body.transformToString();
|
|
103
|
+
* // response.body.destroy(); // only applicable to Node.js Readable streams.
|
|
104
|
+
*
|
|
105
|
+
* /* response is
|
|
106
|
+
* { /* metadata only *\/ }
|
|
107
|
+
* *\/
|
|
108
|
+
* ```
|
|
109
|
+
*
|
|
110
|
+
* @public
|
|
111
|
+
*/
|
|
112
|
+
export declare class SampleTrainingSessionWithResponseStreamCommand extends SampleTrainingSessionWithResponseStreamCommand_base {
|
|
113
|
+
/** @internal type navigation helper, not in runtime. */
|
|
114
|
+
protected static __types: {
|
|
115
|
+
api: {
|
|
116
|
+
input: SampleTrainingSessionWithResponseStreamInput;
|
|
117
|
+
output: SampleTrainingSessionWithResponseStreamOutput;
|
|
118
|
+
};
|
|
119
|
+
sdk: {
|
|
120
|
+
input: SampleTrainingSessionWithResponseStreamCommandInput;
|
|
121
|
+
output: SampleTrainingSessionWithResponseStreamCommandOutput;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from "./ExecuteSamplingOperationCommand";
|
|
2
|
+
export * from "./ExecuteTrainingOperationCommand";
|
|
3
|
+
export * from "./GetSamplingOperationResultCommand";
|
|
4
|
+
export * from "./GetTrainingOperationResultCommand";
|
|
5
|
+
export * from "./SampleTrainingSessionCommand";
|
|
6
|
+
export * from "./SampleTrainingSessionWithResponseStreamCommand";
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface ClientInputEndpointParameters {
|
|
6
|
+
useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
7
|
+
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
|
8
|
+
region?: string | undefined | Provider<string | undefined>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
|
|
14
|
+
defaultSigningName: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
export declare const commonParams: {
|
|
24
|
+
readonly UseFIPS: {
|
|
25
|
+
readonly type: "builtInParams";
|
|
26
|
+
readonly name: "useFipsEndpoint";
|
|
27
|
+
};
|
|
28
|
+
readonly Endpoint: {
|
|
29
|
+
readonly type: "builtInParams";
|
|
30
|
+
readonly name: "endpoint";
|
|
31
|
+
};
|
|
32
|
+
readonly Region: {
|
|
33
|
+
readonly type: "builtInParams";
|
|
34
|
+
readonly name: "region";
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
export interface EndpointParameters extends __EndpointParameters {
|
|
41
|
+
UseFIPS?: boolean | undefined;
|
|
42
|
+
Endpoint?: string | undefined;
|
|
43
|
+
Region?: string | undefined;
|
|
44
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { EndpointV2, Logger } from "@smithy/types";
|
|
2
|
+
import type { EndpointParameters } from "./EndpointParameters";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
|
|
7
|
+
logger?: Logger;
|
|
8
|
+
}) => EndpointV2;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
|
2
|
+
import type { HttpHandlerExtensionConfiguration } from "@smithy/core/protocols";
|
|
3
|
+
import type { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
|
+
import type { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export interface SageMakerTrainingSessionRuntimeExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
|
|
9
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <p>Amazon SageMaker Training Session Runtime provides APIs for executing training operations and sampling operations against a running training session. Use these APIs to submit asynchronous training steps (such as forward-backward passes, optimizer steps, and checkpoint saves) and to generate text samples from the model being trained.</p>
|
|
3
|
+
*
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
*/
|
|
6
|
+
export * from "./SageMakerTrainingSessionRuntimeClient";
|
|
7
|
+
export * from "./SageMakerTrainingSessionRuntime";
|
|
8
|
+
export type { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
9
|
+
export type { RuntimeExtension } from "./runtimeExtensions";
|
|
10
|
+
export type { SageMakerTrainingSessionRuntimeExtensionConfiguration } from "./extensionConfiguration";
|
|
11
|
+
export * from "./commands";
|
|
12
|
+
export { Command as $Command } from "@smithy/core/client";
|
|
13
|
+
export * from "./schemas/schemas_0";
|
|
14
|
+
export * from "./models/enums";
|
|
15
|
+
export * from "./models/errors";
|
|
16
|
+
export * from "./models/models_0";
|
|
17
|
+
export { SageMakerTrainingSessionRuntimeServiceException } from "./models/SageMakerTrainingSessionRuntimeServiceException";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ServiceExceptionOptions as __ServiceExceptionOptions, ServiceException as __ServiceException } from "@smithy/core/client";
|
|
2
|
+
export type { __ServiceExceptionOptions };
|
|
3
|
+
export { __ServiceException };
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*
|
|
7
|
+
* Base exception class for all service exceptions from SageMakerTrainingSessionRuntime service.
|
|
8
|
+
*/
|
|
9
|
+
export declare class SageMakerTrainingSessionRuntimeServiceException extends __ServiceException {
|
|
10
|
+
static readonly shapeId: string;
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
constructor(options: __ServiceExceptionOptions);
|
|
15
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* @enum
|
|
4
|
+
*/
|
|
5
|
+
export declare const EncodedTextChunkType: {
|
|
6
|
+
readonly ENCODED_TEXT: "encoded_text";
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export type EncodedTextChunkType = (typeof EncodedTextChunkType)[keyof typeof EncodedTextChunkType];
|
|
12
|
+
/**
|
|
13
|
+
* @public
|
|
14
|
+
* @enum
|
|
15
|
+
*/
|
|
16
|
+
export declare const LossFnName: {
|
|
17
|
+
readonly CISPO: "cispo";
|
|
18
|
+
readonly CROSS_ENTROPY: "cross_entropy";
|
|
19
|
+
readonly IMPORTANCE_SAMPLING: "importance_sampling";
|
|
20
|
+
readonly PPO: "ppo";
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export type LossFnName = (typeof LossFnName)[keyof typeof LossFnName];
|
|
26
|
+
/**
|
|
27
|
+
* @public
|
|
28
|
+
* @enum
|
|
29
|
+
*/
|
|
30
|
+
export declare const StopReason: {
|
|
31
|
+
readonly LENGTH: "length";
|
|
32
|
+
readonly STOP: "stop";
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
export type StopReason = (typeof StopReason)[keyof typeof StopReason];
|
|
38
|
+
/**
|
|
39
|
+
* @public
|
|
40
|
+
* @enum
|
|
41
|
+
*/
|
|
42
|
+
export declare const RequestStatus: {
|
|
43
|
+
readonly COMPLETED: "Completed";
|
|
44
|
+
readonly FAILED: "Failed";
|
|
45
|
+
readonly IN_PROGRESS: "InProgress";
|
|
46
|
+
readonly PENDING: "Pending";
|
|
47
|
+
readonly SKIPPED: "Skipped";
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* @public
|
|
51
|
+
*/
|
|
52
|
+
export type RequestStatus = (typeof RequestStatus)[keyof typeof RequestStatus];
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
|
|
2
|
+
import { SageMakerTrainingSessionRuntimeServiceException as __BaseException } from "./SageMakerTrainingSessionRuntimeServiceException";
|
|
3
|
+
/**
|
|
4
|
+
* <p>The training session is in a state that cannot accept new operations. The session must be in <code>Running</code> or <code>Blocked</code> state to accept requests.</p>
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare class ConflictException extends __BaseException {
|
|
8
|
+
static readonly shapeId: string;
|
|
9
|
+
readonly name: "ConflictException";
|
|
10
|
+
readonly $fault: "client";
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* <p>An internal service error occurred. Retry the request using exponential backoff.</p>
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
export declare class InternalServerException extends __BaseException {
|
|
21
|
+
static readonly shapeId: string;
|
|
22
|
+
readonly name: "InternalServerException";
|
|
23
|
+
readonly $fault: "server";
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* <p>The specified training session or operation does not exist, or the operation does not belong to the specified training session.</p>
|
|
31
|
+
* @public
|
|
32
|
+
*/
|
|
33
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
34
|
+
static readonly shapeId: string;
|
|
35
|
+
readonly name: "ResourceNotFoundException";
|
|
36
|
+
readonly $fault: "client";
|
|
37
|
+
/**
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* <p>The request was throttled. Retry the request after a brief wait using exponential backoff.</p>
|
|
44
|
+
* @public
|
|
45
|
+
*/
|
|
46
|
+
export declare class ThrottlingException extends __BaseException {
|
|
47
|
+
static readonly shapeId: string;
|
|
48
|
+
readonly name: "ThrottlingException";
|
|
49
|
+
readonly $fault: "client";
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* <p>The request is not valid. Check the request syntax and parameters. Examples include invalid sequence numbers, malformed client tokens, missing required fields, or invalid operation configuration.</p>
|
|
57
|
+
* @public
|
|
58
|
+
*/
|
|
59
|
+
export declare class ValidationException extends __BaseException {
|
|
60
|
+
static readonly shapeId: string;
|
|
61
|
+
readonly name: "ValidationException";
|
|
62
|
+
readonly $fault: "client";
|
|
63
|
+
/**
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
66
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
67
|
+
}
|