@aws-sdk/client-sagemakerjobruntime 3.1059.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 +210 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +46 -0
- package/dist-cjs/endpoint/bdd.js +32 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/index.js +201 -0
- package/dist-cjs/models/SagemakerJobRuntimeServiceException.js +12 -0
- package/dist-cjs/models/errors.js +111 -0
- package/dist-cjs/runtimeConfig.browser.js +36 -0
- package/dist-cjs/runtimeConfig.js +49 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +43 -0
- package/dist-cjs/schemas/schemas_0.js +155 -0
- package/dist-es/SagemakerJobRuntime.js +15 -0
- package/dist-es/SagemakerJobRuntimeClient.js +47 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commands/CompleteRolloutCommand.js +16 -0
- package/dist-es/commands/SampleCommand.js +16 -0
- package/dist-es/commands/SampleWithResponseStreamCommand.js +16 -0
- package/dist-es/commands/UpdateRewardCommand.js +16 -0
- package/dist-es/commands/index.js +4 -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 +8 -0
- package/dist-es/models/SagemakerJobRuntimeServiceException.js +8 -0
- package/dist-es/models/enums.js +4 -0
- package/dist-es/models/errors.js +101 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/runtimeConfig.browser.js +31 -0
- package/dist-es/runtimeConfig.js +44 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +39 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +152 -0
- package/dist-types/SagemakerJobRuntime.d.ts +39 -0
- package/dist-types/SagemakerJobRuntimeClient.d.ts +196 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commands/CompleteRolloutCommand.d.ts +115 -0
- package/dist-types/commands/SampleCommand.d.ts +127 -0
- package/dist-types/commands/SampleWithResponseStreamCommand.d.ts +131 -0
- package/dist-types/commands/UpdateRewardCommand.d.ts +121 -0
- package/dist-types/commands/index.d.ts +4 -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/SagemakerJobRuntimeServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +18 -0
- package/dist-types/models/errors.d.ts +95 -0
- package/dist-types/models/models_0.d.ts +141 -0
- package/dist-types/runtimeConfig.browser.d.ts +56 -0
- package/dist-types/runtimeConfig.d.ts +56 -0
- package/dist-types/runtimeConfig.native.d.ts +55 -0
- package/dist-types/runtimeConfig.shared.d.ts +28 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +28 -0
- package/dist-types/ts3.4/SagemakerJobRuntime.d.ts +75 -0
- package/dist-types/ts3.4/SagemakerJobRuntimeClient.d.ts +139 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/commands/CompleteRolloutCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/SampleCommand.d.ts +61 -0
- package/dist-types/ts3.4/commands/SampleWithResponseStreamCommand.d.ts +68 -0
- package/dist-types/ts3.4/commands/UpdateRewardCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -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 +9 -0
- package/dist-types/ts3.4/index.d.ts +11 -0
- package/dist-types/ts3.4/models/SagemakerJobRuntimeServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +6 -0
- package/dist-types/ts3.4/models/errors.d.ts +58 -0
- package/dist-types/ts3.4/models/models_0.d.ts +34 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +103 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +98 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +107 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +33 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +27 -0
- package/package.json +71 -0
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
const _ADE = "AccessDeniedException";
|
|
2
|
+
const _B = "Body";
|
|
3
|
+
const _CE = "ConflictException";
|
|
4
|
+
const _CR = "CompleteRollout";
|
|
5
|
+
const _CRR = "CompleteRolloutRequest";
|
|
6
|
+
const _CRRo = "CompleteRolloutResponse";
|
|
7
|
+
const _CT = "ClientToken";
|
|
8
|
+
const _CT_ = "Content-Type";
|
|
9
|
+
const _CTo = "ContentType";
|
|
10
|
+
const _IRB = "InferenceRequestBody";
|
|
11
|
+
const _IRBn = "InferenceResponseBody";
|
|
12
|
+
const _ISE = "InternalServiceError";
|
|
13
|
+
const _JA = "JobArn";
|
|
14
|
+
const _M = "Message";
|
|
15
|
+
const _R = "Rewards";
|
|
16
|
+
const _RNFE = "ResourceNotFoundException";
|
|
17
|
+
const _RS = "ResponseStream";
|
|
18
|
+
const _S = "Status";
|
|
19
|
+
const _SQEE = "ServiceQuotaExceededException";
|
|
20
|
+
const _SR = "SampleRequest";
|
|
21
|
+
const _SRa = "SampleResponse";
|
|
22
|
+
const _SWRS = "SampleWithResponseStream";
|
|
23
|
+
const _SWRSR = "SampleWithResponseStreamRequest";
|
|
24
|
+
const _SWRSRa = "SampleWithResponseStreamResponse";
|
|
25
|
+
const _Sa = "Sample";
|
|
26
|
+
const _TE = "ThrottlingException";
|
|
27
|
+
const _TI = "TrajectoryId";
|
|
28
|
+
const _UR = "UpdateReward";
|
|
29
|
+
const _URR = "UpdateRewardRequest";
|
|
30
|
+
const _URRp = "UpdateRewardResponse";
|
|
31
|
+
const _VE = "ValidationException";
|
|
32
|
+
const _XASJA = "X-Amzn-SageMaker-Job-Arn";
|
|
33
|
+
const _XASTI = "X-Amzn-SageMaker-Trajectory-Id";
|
|
34
|
+
const _c = "client";
|
|
35
|
+
const _e = "error";
|
|
36
|
+
const _h = "http";
|
|
37
|
+
const _hE = "httpError";
|
|
38
|
+
const _hH = "httpHeader";
|
|
39
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sagemakerjobruntime";
|
|
40
|
+
const _se = "server";
|
|
41
|
+
const _sen = "sensitive";
|
|
42
|
+
const _st = "streaming";
|
|
43
|
+
const n0 = "com.amazonaws.sagemakerjobruntime";
|
|
44
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
45
|
+
import { AccessDeniedException, ConflictException, InternalServiceError, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/errors";
|
|
46
|
+
import { SagemakerJobRuntimeServiceException } from "../models/SagemakerJobRuntimeServiceException";
|
|
47
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
48
|
+
export var SagemakerJobRuntimeServiceException$ = [-3, _s, "SagemakerJobRuntimeServiceException", 0, [], []];
|
|
49
|
+
_s_registry.registerError(SagemakerJobRuntimeServiceException$, SagemakerJobRuntimeServiceException);
|
|
50
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
51
|
+
export var AccessDeniedException$ = [-3, n0, _ADE,
|
|
52
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
53
|
+
[_M],
|
|
54
|
+
[0], 1
|
|
55
|
+
];
|
|
56
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
57
|
+
export var ConflictException$ = [-3, n0, _CE,
|
|
58
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
59
|
+
[_M],
|
|
60
|
+
[0], 1
|
|
61
|
+
];
|
|
62
|
+
n0_registry.registerError(ConflictException$, ConflictException);
|
|
63
|
+
export var InternalServiceError$ = [-3, n0, _ISE,
|
|
64
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
65
|
+
[_M],
|
|
66
|
+
[0], 1
|
|
67
|
+
];
|
|
68
|
+
n0_registry.registerError(InternalServiceError$, InternalServiceError);
|
|
69
|
+
export var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
70
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
71
|
+
[_M],
|
|
72
|
+
[0], 1
|
|
73
|
+
];
|
|
74
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
75
|
+
export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
76
|
+
{ [_e]: _c, [_hE]: 402 },
|
|
77
|
+
[_M],
|
|
78
|
+
[0], 1
|
|
79
|
+
];
|
|
80
|
+
n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
|
|
81
|
+
export var ThrottlingException$ = [-3, n0, _TE,
|
|
82
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
83
|
+
[_M],
|
|
84
|
+
[0], 1
|
|
85
|
+
];
|
|
86
|
+
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
87
|
+
export var ValidationException$ = [-3, n0, _VE,
|
|
88
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
89
|
+
[_M],
|
|
90
|
+
[0], 1
|
|
91
|
+
];
|
|
92
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
93
|
+
export const errorTypeRegistries = [
|
|
94
|
+
_s_registry,
|
|
95
|
+
n0_registry,
|
|
96
|
+
];
|
|
97
|
+
var InferenceRequestBody = [0, n0, _IRB, 8, 21];
|
|
98
|
+
var InferenceResponseBody = [0, n0, _IRBn, 8, 21];
|
|
99
|
+
var ResponseStream = [0, n0, _RS, { [_sen]: 1, [_st]: 1 }, 42];
|
|
100
|
+
export var CompleteRolloutRequest$ = [3, n0, _CRR,
|
|
101
|
+
0,
|
|
102
|
+
[_JA, _TI, _S, _CT],
|
|
103
|
+
[[0, { [_hH]: _XASJA }], 0, 0, [0, 4]], 2
|
|
104
|
+
];
|
|
105
|
+
export var CompleteRolloutResponse$ = [3, n0, _CRRo,
|
|
106
|
+
0,
|
|
107
|
+
[],
|
|
108
|
+
[]
|
|
109
|
+
];
|
|
110
|
+
export var SampleRequest$ = [3, n0, _SR,
|
|
111
|
+
0,
|
|
112
|
+
[_JA, _TI, _B],
|
|
113
|
+
[[0, { [_hH]: _XASJA }], [0, { [_hH]: _XASTI }], [() => InferenceRequestBody, 16]], 3
|
|
114
|
+
];
|
|
115
|
+
export var SampleResponse$ = [3, n0, _SRa,
|
|
116
|
+
0,
|
|
117
|
+
[_B, _CTo],
|
|
118
|
+
[[() => InferenceResponseBody, 16], [0, { [_hH]: _CT_ }]], 1
|
|
119
|
+
];
|
|
120
|
+
export var SampleWithResponseStreamRequest$ = [3, n0, _SWRSR,
|
|
121
|
+
0,
|
|
122
|
+
[_JA, _TI, _B],
|
|
123
|
+
[[0, { [_hH]: _XASJA }], [0, { [_hH]: _XASTI }], [() => InferenceRequestBody, 16]], 3
|
|
124
|
+
];
|
|
125
|
+
export var SampleWithResponseStreamResponse$ = [3, n0, _SWRSRa,
|
|
126
|
+
0,
|
|
127
|
+
[_B, _CTo],
|
|
128
|
+
[[() => ResponseStream, 16], [0, { [_hH]: _CT_ }]], 1
|
|
129
|
+
];
|
|
130
|
+
export var UpdateRewardRequest$ = [3, n0, _URR,
|
|
131
|
+
0,
|
|
132
|
+
[_JA, _TI, _R, _CT],
|
|
133
|
+
[[0, { [_hH]: _XASJA }], 0, 64 | 1, [0, 4]], 3
|
|
134
|
+
];
|
|
135
|
+
export var UpdateRewardResponse$ = [3, n0, _URRp,
|
|
136
|
+
0,
|
|
137
|
+
[],
|
|
138
|
+
[]
|
|
139
|
+
];
|
|
140
|
+
var DoubleList = 64 | 1;
|
|
141
|
+
export var CompleteRollout$ = [9, n0, _CR,
|
|
142
|
+
{ [_h]: ["POST", "/complete-rollout", 200] }, () => CompleteRolloutRequest$, () => CompleteRolloutResponse$
|
|
143
|
+
];
|
|
144
|
+
export var Sample$ = [9, n0, _Sa,
|
|
145
|
+
{ [_h]: ["POST", "/sample", 200] }, () => SampleRequest$, () => SampleResponse$
|
|
146
|
+
];
|
|
147
|
+
export var SampleWithResponseStream$ = [9, n0, _SWRS,
|
|
148
|
+
{ [_h]: ["POST", "/sample-with-response-stream", 200] }, () => SampleWithResponseStreamRequest$, () => SampleWithResponseStreamResponse$
|
|
149
|
+
];
|
|
150
|
+
export var UpdateReward$ = [9, n0, _UR,
|
|
151
|
+
{ [_h]: ["POST", "/update-reward", 200] }, () => UpdateRewardRequest$, () => UpdateRewardResponse$
|
|
152
|
+
];
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
|
+
import { type CompleteRolloutCommandInput, type CompleteRolloutCommandOutput } from "./commands/CompleteRolloutCommand";
|
|
3
|
+
import { type SampleCommandInput, type SampleCommandOutput } from "./commands/SampleCommand";
|
|
4
|
+
import { type SampleWithResponseStreamCommandInput, type SampleWithResponseStreamCommandOutput } from "./commands/SampleWithResponseStreamCommand";
|
|
5
|
+
import { type UpdateRewardCommandInput, type UpdateRewardCommandOutput } from "./commands/UpdateRewardCommand";
|
|
6
|
+
import { SagemakerJobRuntimeClient } from "./SagemakerJobRuntimeClient";
|
|
7
|
+
export interface SagemakerJobRuntime {
|
|
8
|
+
/**
|
|
9
|
+
* @see {@link CompleteRolloutCommand}
|
|
10
|
+
*/
|
|
11
|
+
completeRollout(args: CompleteRolloutCommandInput, options?: __HttpHandlerOptions): Promise<CompleteRolloutCommandOutput>;
|
|
12
|
+
completeRollout(args: CompleteRolloutCommandInput, cb: (err: any, data?: CompleteRolloutCommandOutput) => void): void;
|
|
13
|
+
completeRollout(args: CompleteRolloutCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CompleteRolloutCommandOutput) => void): void;
|
|
14
|
+
/**
|
|
15
|
+
* @see {@link SampleCommand}
|
|
16
|
+
*/
|
|
17
|
+
sample(args: SampleCommandInput, options?: __HttpHandlerOptions): Promise<SampleCommandOutput>;
|
|
18
|
+
sample(args: SampleCommandInput, cb: (err: any, data?: SampleCommandOutput) => void): void;
|
|
19
|
+
sample(args: SampleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SampleCommandOutput) => void): void;
|
|
20
|
+
/**
|
|
21
|
+
* @see {@link SampleWithResponseStreamCommand}
|
|
22
|
+
*/
|
|
23
|
+
sampleWithResponseStream(args: SampleWithResponseStreamCommandInput, options?: __HttpHandlerOptions): Promise<SampleWithResponseStreamCommandOutput>;
|
|
24
|
+
sampleWithResponseStream(args: SampleWithResponseStreamCommandInput, cb: (err: any, data?: SampleWithResponseStreamCommandOutput) => void): void;
|
|
25
|
+
sampleWithResponseStream(args: SampleWithResponseStreamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SampleWithResponseStreamCommandOutput) => void): void;
|
|
26
|
+
/**
|
|
27
|
+
* @see {@link UpdateRewardCommand}
|
|
28
|
+
*/
|
|
29
|
+
updateReward(args: UpdateRewardCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRewardCommandOutput>;
|
|
30
|
+
updateReward(args: UpdateRewardCommandInput, cb: (err: any, data?: UpdateRewardCommandOutput) => void): void;
|
|
31
|
+
updateReward(args: UpdateRewardCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRewardCommandOutput) => void): void;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Agentic RFT Runtime Service - manages trajectory and transition data
|
|
35
|
+
* for reinforcement fine-tuning jobs.
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
export declare class SagemakerJobRuntime extends SagemakerJobRuntimeClient implements SagemakerJobRuntime {
|
|
39
|
+
}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { type HostHeaderInputConfig, type HostHeaderResolvedConfig, type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/core/client";
|
|
2
|
+
import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/core/client";
|
|
3
|
+
import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/core/config";
|
|
4
|
+
import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/core/endpoints";
|
|
5
|
+
import { type HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/core/protocols";
|
|
6
|
+
import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/retry";
|
|
7
|
+
import type { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, SdkStreamMixinInjector as __SdkStreamMixinInjector, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
8
|
+
import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
9
|
+
import type { CompleteRolloutCommandInput, CompleteRolloutCommandOutput } from "./commands/CompleteRolloutCommand";
|
|
10
|
+
import type { SampleCommandInput, SampleCommandOutput } from "./commands/SampleCommand";
|
|
11
|
+
import type { SampleWithResponseStreamCommandInput, SampleWithResponseStreamCommandOutput } from "./commands/SampleWithResponseStreamCommand";
|
|
12
|
+
import type { UpdateRewardCommandInput, UpdateRewardCommandOutput } from "./commands/UpdateRewardCommand";
|
|
13
|
+
import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
|
|
14
|
+
import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
15
|
+
export { __Client };
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
export type ServiceInputTypes = CompleteRolloutCommandInput | SampleCommandInput | SampleWithResponseStreamCommandInput | UpdateRewardCommandInput;
|
|
20
|
+
/**
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
export type ServiceOutputTypes = CompleteRolloutCommandOutput | SampleCommandOutput | SampleWithResponseStreamCommandOutput | UpdateRewardCommandOutput;
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
28
|
+
/**
|
|
29
|
+
* The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
|
|
30
|
+
*/
|
|
31
|
+
requestHandler?: __HttpHandlerUserInput;
|
|
32
|
+
/**
|
|
33
|
+
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
|
|
34
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
38
|
+
/**
|
|
39
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
42
|
+
urlParser?: __UrlParser;
|
|
43
|
+
/**
|
|
44
|
+
* A function that can calculate the length of a request body.
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
47
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
48
|
+
/**
|
|
49
|
+
* A function that converts a stream into an array of bytes.
|
|
50
|
+
* @internal
|
|
51
|
+
*/
|
|
52
|
+
streamCollector?: __StreamCollector;
|
|
53
|
+
/**
|
|
54
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
55
|
+
* @internal
|
|
56
|
+
*/
|
|
57
|
+
base64Decoder?: __Decoder;
|
|
58
|
+
/**
|
|
59
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
60
|
+
* @internal
|
|
61
|
+
*/
|
|
62
|
+
base64Encoder?: __Encoder;
|
|
63
|
+
/**
|
|
64
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
65
|
+
* @internal
|
|
66
|
+
*/
|
|
67
|
+
utf8Decoder?: __Decoder;
|
|
68
|
+
/**
|
|
69
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
72
|
+
utf8Encoder?: __Encoder;
|
|
73
|
+
/**
|
|
74
|
+
* The runtime environment.
|
|
75
|
+
* @internal
|
|
76
|
+
*/
|
|
77
|
+
runtime?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
80
|
+
* trait of an operation.
|
|
81
|
+
*/
|
|
82
|
+
disableHostPrefix?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Unique service identifier.
|
|
85
|
+
* @internal
|
|
86
|
+
*/
|
|
87
|
+
serviceId?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
90
|
+
*/
|
|
91
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
92
|
+
/**
|
|
93
|
+
* Enables FIPS compatible endpoints.
|
|
94
|
+
*/
|
|
95
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
96
|
+
/**
|
|
97
|
+
* The AWS region to which this client will send requests
|
|
98
|
+
*/
|
|
99
|
+
region?: string | __Provider<string>;
|
|
100
|
+
/**
|
|
101
|
+
* Setting a client profile is similar to setting a value for the
|
|
102
|
+
* AWS_PROFILE environment variable. Setting a profile on a client
|
|
103
|
+
* in code only affects the single client instance, unlike AWS_PROFILE.
|
|
104
|
+
*
|
|
105
|
+
* When set, and only for environments where an AWS configuration
|
|
106
|
+
* file exists, fields configurable by this file will be retrieved
|
|
107
|
+
* from the specified profile within that file.
|
|
108
|
+
* Conflicting code configuration and environment variables will
|
|
109
|
+
* still have higher priority.
|
|
110
|
+
*
|
|
111
|
+
* For client credential resolution that involves checking the AWS
|
|
112
|
+
* configuration file, the client's profile (this value) will be
|
|
113
|
+
* used unless a different profile is set in the credential
|
|
114
|
+
* provider options.
|
|
115
|
+
*
|
|
116
|
+
*/
|
|
117
|
+
profile?: string;
|
|
118
|
+
/**
|
|
119
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
120
|
+
* @internal
|
|
121
|
+
*/
|
|
122
|
+
defaultUserAgentProvider?: __Provider<__UserAgent>;
|
|
123
|
+
/**
|
|
124
|
+
* Default credentials provider; Not available in browser runtime.
|
|
125
|
+
* @deprecated
|
|
126
|
+
* @internal
|
|
127
|
+
*/
|
|
128
|
+
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
|
|
129
|
+
/**
|
|
130
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
131
|
+
*/
|
|
132
|
+
maxAttempts?: number | __Provider<number>;
|
|
133
|
+
/**
|
|
134
|
+
* Specifies which retry algorithm to use.
|
|
135
|
+
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
|
|
136
|
+
*
|
|
137
|
+
*/
|
|
138
|
+
retryMode?: string | __Provider<string>;
|
|
139
|
+
/**
|
|
140
|
+
* Optional logger for logging debug/info/warn/error.
|
|
141
|
+
*/
|
|
142
|
+
logger?: __Logger;
|
|
143
|
+
/**
|
|
144
|
+
* Optional extensions
|
|
145
|
+
*/
|
|
146
|
+
extensions?: RuntimeExtension[];
|
|
147
|
+
/**
|
|
148
|
+
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
149
|
+
*/
|
|
150
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
151
|
+
/**
|
|
152
|
+
* The internal function that inject utilities to runtime-specific stream to help users consume the data
|
|
153
|
+
* @internal
|
|
154
|
+
*/
|
|
155
|
+
sdkStreamMixin?: __SdkStreamMixinInjector;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* @public
|
|
159
|
+
*/
|
|
160
|
+
export type SagemakerJobRuntimeClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
|
|
161
|
+
/**
|
|
162
|
+
* @public
|
|
163
|
+
*
|
|
164
|
+
* The configuration interface of SagemakerJobRuntimeClient class constructor that set the region, credentials and other options.
|
|
165
|
+
*/
|
|
166
|
+
export interface SagemakerJobRuntimeClientConfig extends SagemakerJobRuntimeClientConfigType {
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* @public
|
|
170
|
+
*/
|
|
171
|
+
export type SagemakerJobRuntimeClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
|
|
172
|
+
/**
|
|
173
|
+
* @public
|
|
174
|
+
*
|
|
175
|
+
* The resolved configuration interface of SagemakerJobRuntimeClient class. This is resolved and normalized from the {@link SagemakerJobRuntimeClientConfig | constructor configuration interface}.
|
|
176
|
+
*/
|
|
177
|
+
export interface SagemakerJobRuntimeClientResolvedConfig extends SagemakerJobRuntimeClientResolvedConfigType {
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Agentic RFT Runtime Service - manages trajectory and transition data
|
|
181
|
+
* for reinforcement fine-tuning jobs.
|
|
182
|
+
* @public
|
|
183
|
+
*/
|
|
184
|
+
export declare class SagemakerJobRuntimeClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, SagemakerJobRuntimeClientResolvedConfig> {
|
|
185
|
+
/**
|
|
186
|
+
* The resolved configuration of SagemakerJobRuntimeClient class. This is resolved and normalized from the {@link SagemakerJobRuntimeClientConfig | constructor configuration interface}.
|
|
187
|
+
*/
|
|
188
|
+
readonly config: SagemakerJobRuntimeClientResolvedConfig;
|
|
189
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<SagemakerJobRuntimeClientConfig>);
|
|
190
|
+
/**
|
|
191
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
192
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
193
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
194
|
+
*/
|
|
195
|
+
destroy(): void;
|
|
196
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
|
|
2
|
+
import type { SagemakerJobRuntimeHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface HttpAuthExtensionConfiguration {
|
|
7
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
8
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
9
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider: SagemakerJobRuntimeHttpAuthSchemeProvider): void;
|
|
10
|
+
httpAuthSchemeProvider(): SagemakerJobRuntimeHttpAuthSchemeProvider;
|
|
11
|
+
setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
|
|
12
|
+
credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export type HttpAuthRuntimeConfig = Partial<{
|
|
18
|
+
httpAuthSchemes: HttpAuthScheme[];
|
|
19
|
+
httpAuthSchemeProvider: SagemakerJobRuntimeHttpAuthSchemeProvider;
|
|
20
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
|
+
import type { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
|
|
3
|
+
import { type SagemakerJobRuntimeClientResolvedConfig } from "../SagemakerJobRuntimeClient";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface SagemakerJobRuntimeHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
8
|
+
region?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export interface SagemakerJobRuntimeHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<SagemakerJobRuntimeClientResolvedConfig, HandlerExecutionContext, SagemakerJobRuntimeHttpAuthSchemeParameters, object> {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const defaultSagemakerJobRuntimeHttpAuthSchemeParametersProvider: (config: SagemakerJobRuntimeClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<SagemakerJobRuntimeHttpAuthSchemeParameters>;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export interface SagemakerJobRuntimeHttpAuthSchemeProvider extends HttpAuthSchemeProvider<SagemakerJobRuntimeHttpAuthSchemeParameters> {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export declare const defaultSagemakerJobRuntimeHttpAuthSchemeProvider: SagemakerJobRuntimeHttpAuthSchemeProvider;
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
32
|
+
/**
|
|
33
|
+
* A comma-separated list of case-sensitive auth scheme names.
|
|
34
|
+
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
35
|
+
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
authSchemePreference?: string[] | Provider<string[]>;
|
|
39
|
+
/**
|
|
40
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
|
44
|
+
/**
|
|
45
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
httpAuthSchemeProvider?: SagemakerJobRuntimeHttpAuthSchemeProvider;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
|
54
|
+
/**
|
|
55
|
+
* A comma-separated list of case-sensitive auth scheme names.
|
|
56
|
+
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
57
|
+
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
readonly authSchemePreference: Provider<string[]>;
|
|
61
|
+
/**
|
|
62
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
66
|
+
/**
|
|
67
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
readonly httpAuthSchemeProvider: SagemakerJobRuntimeHttpAuthSchemeProvider;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { CompleteRolloutRequest, CompleteRolloutResponse } from "../models/models_0";
|
|
4
|
+
import type { SagemakerJobRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SagemakerJobRuntimeClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CompleteRolloutCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CompleteRolloutCommandInput extends CompleteRolloutRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CompleteRolloutCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CompleteRolloutCommandOutput extends CompleteRolloutResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CompleteRolloutCommand_base: {
|
|
25
|
+
new (input: CompleteRolloutCommandInput): import("@smithy/core/client").CommandImpl<CompleteRolloutCommandInput, CompleteRolloutCommandOutput, SagemakerJobRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: CompleteRolloutCommandInput): import("@smithy/core/client").CommandImpl<CompleteRolloutCommandInput, CompleteRolloutCommandOutput, SagemakerJobRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Marks a rollout as complete, indicating that no further turns will be appended
|
|
33
|
+
* to the trajectory. After calling this operation, the trajectory is sealed and
|
|
34
|
+
* eligible for reward submission via the UpdateReward operation.
|
|
35
|
+
* @example
|
|
36
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
+
* ```javascript
|
|
38
|
+
* import { SagemakerJobRuntimeClient, CompleteRolloutCommand } from "@aws-sdk/client-sagemakerjobruntime"; // ES Modules import
|
|
39
|
+
* // const { SagemakerJobRuntimeClient, CompleteRolloutCommand } = require("@aws-sdk/client-sagemakerjobruntime"); // CommonJS import
|
|
40
|
+
* // import type { SagemakerJobRuntimeClientConfig } from "@aws-sdk/client-sagemakerjobruntime";
|
|
41
|
+
* const config = {}; // type is SagemakerJobRuntimeClientConfig
|
|
42
|
+
* const client = new SagemakerJobRuntimeClient(config);
|
|
43
|
+
* const input = { // CompleteRolloutRequest
|
|
44
|
+
* JobArn: "STRING_VALUE", // required
|
|
45
|
+
* TrajectoryId: "STRING_VALUE", // required
|
|
46
|
+
* Status: "ready" || "failed",
|
|
47
|
+
* ClientToken: "STRING_VALUE",
|
|
48
|
+
* };
|
|
49
|
+
* const command = new CompleteRolloutCommand(input);
|
|
50
|
+
* const response = await client.send(command);
|
|
51
|
+
* // {};
|
|
52
|
+
*
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @param CompleteRolloutCommandInput - {@link CompleteRolloutCommandInput}
|
|
56
|
+
* @returns {@link CompleteRolloutCommandOutput}
|
|
57
|
+
* @see {@link CompleteRolloutCommandInput} for command's `input` shape.
|
|
58
|
+
* @see {@link CompleteRolloutCommandOutput} for command's `response` shape.
|
|
59
|
+
* @see {@link SagemakerJobRuntimeClientResolvedConfig | config} for SagemakerJobRuntimeClient's `config` shape.
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
62
|
+
* You do not have permission to perform this operation.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ConflictException} (client fault)
|
|
65
|
+
* The request conflicts with the current state of the resource.
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link InternalServiceError} (server fault)
|
|
68
|
+
* An internal service error occurred. Retry the request.
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
71
|
+
* The specified resource was not found.
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
74
|
+
* You have exceeded a service quota.
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
77
|
+
* The request was throttled. Retry the request after a brief wait.
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ValidationException} (client fault)
|
|
80
|
+
* The request is not valid. Check the request syntax and parameters
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link SagemakerJobRuntimeServiceException}
|
|
83
|
+
* <p>Base exception class for all service exceptions from SagemakerJobRuntime service.</p>
|
|
84
|
+
*
|
|
85
|
+
*
|
|
86
|
+
* @example Invoke CompleteRollout
|
|
87
|
+
* ```javascript
|
|
88
|
+
* // Marks a rollout as complete so the trajectory is sealed and eligible for reward submission.
|
|
89
|
+
* const input = {
|
|
90
|
+
* JobArn: "arn:aws:sagemaker:us-east-1:123456789012:job/AgentRFT/my-training-job",
|
|
91
|
+
* Status: "ready",
|
|
92
|
+
* TrajectoryId: "trajectory-001"
|
|
93
|
+
* };
|
|
94
|
+
* const command = new CompleteRolloutCommand(input);
|
|
95
|
+
* const response = await client.send(command);
|
|
96
|
+
* /* response is
|
|
97
|
+
* { /* empty *\/ }
|
|
98
|
+
* *\/
|
|
99
|
+
* ```
|
|
100
|
+
*
|
|
101
|
+
* @public
|
|
102
|
+
*/
|
|
103
|
+
export declare class CompleteRolloutCommand extends CompleteRolloutCommand_base {
|
|
104
|
+
/** @internal type navigation helper, not in runtime. */
|
|
105
|
+
protected static __types: {
|
|
106
|
+
api: {
|
|
107
|
+
input: CompleteRolloutRequest;
|
|
108
|
+
output: {};
|
|
109
|
+
};
|
|
110
|
+
sdk: {
|
|
111
|
+
input: CompleteRolloutCommandInput;
|
|
112
|
+
output: CompleteRolloutCommandOutput;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
}
|