@aws-sdk/client-bedrock 3.828.0 → 3.830.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/README.md +8 -0
- package/dist-cjs/index.js +218 -153
- package/dist-es/Bedrock.js +2 -0
- package/dist-es/commands/CreateCustomModelCommand.js +22 -0
- package/dist-es/commands/CreateEvaluationJobCommand.js +1 -1
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +105 -141
- package/dist-es/models/models_1.js +43 -1
- package/dist-es/protocols/Aws_restJson1.js +39 -1
- package/dist-types/Bedrock.d.ts +7 -0
- package/dist-types/BedrockClient.d.ts +3 -2
- package/dist-types/commands/BatchDeleteEvaluationJobCommand.d.ts +1 -3
- package/dist-types/commands/CreateCustomModelCommand.d.ts +143 -0
- package/dist-types/commands/CreateEvaluationJobCommand.d.ts +2 -1
- package/dist-types/commands/CreateGuardrailCommand.d.ts +2 -34
- package/dist-types/commands/CreateGuardrailVersionCommand.d.ts +1 -2
- package/dist-types/commands/CreateInferenceProfileCommand.d.ts +1 -2
- package/dist-types/commands/CreateMarketplaceModelEndpointCommand.d.ts +1 -2
- package/dist-types/commands/CreateModelCopyJobCommand.d.ts +1 -2
- package/dist-types/commands/CreateModelCustomizationJobCommand.d.ts +3 -12
- package/dist-types/commands/CreateModelImportJobCommand.d.ts +2 -5
- package/dist-types/commands/CreateModelInvocationJobCommand.d.ts +1 -2
- package/dist-types/commands/CreatePromptRouterCommand.d.ts +1 -2
- package/dist-types/commands/CreateProvisionedModelThroughputCommand.d.ts +1 -2
- package/dist-types/commands/DeleteGuardrailCommand.d.ts +1 -9
- package/dist-types/commands/DeleteImportedModelCommand.d.ts +1 -3
- package/dist-types/commands/DeregisterMarketplaceModelEndpointCommand.d.ts +1 -3
- package/dist-types/commands/GetCustomModelCommand.d.ts +6 -4
- package/dist-types/commands/GetModelCustomizationJobCommand.d.ts +3 -4
- package/dist-types/commands/GetModelImportJobCommand.d.ts +1 -3
- package/dist-types/commands/GetModelInvocationJobCommand.d.ts +1 -2
- package/dist-types/commands/ListCustomModelsCommand.d.ts +4 -3
- package/dist-types/commands/ListGuardrailsCommand.d.ts +1 -2
- package/dist-types/commands/ListImportedModelsCommand.d.ts +1 -3
- package/dist-types/commands/ListMarketplaceModelEndpointsCommand.d.ts +1 -2
- package/dist-types/commands/ListModelCopyJobsCommand.d.ts +1 -2
- package/dist-types/commands/ListModelCustomizationJobsCommand.d.ts +3 -5
- package/dist-types/commands/ListModelImportJobsCommand.d.ts +1 -3
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -2
- package/dist-types/commands/RegisterMarketplaceModelEndpointCommand.d.ts +1 -2
- package/dist-types/commands/TagResourceCommand.d.ts +2 -3
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateGuardrailCommand.d.ts +1 -37
- package/dist-types/commands/UpdateMarketplaceModelEndpointCommand.d.ts +1 -2
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +7 -7
- package/dist-types/models/models_0.d.ts +1188 -2462
- package/dist-types/models/models_1.d.ts +153 -3
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/Bedrock.d.ts +17 -0
- package/dist-types/ts3.4/BedrockClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/CreateCustomModelCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateEvaluationJobCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +7 -7
- package/dist-types/ts3.4/models/models_0.d.ts +255 -308
- package/dist-types/ts3.4/models/models_1.d.ts +79 -1
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -2
- package/package.json +2 -2
|
@@ -1,4 +1,143 @@
|
|
|
1
|
-
import { ApplicationType, EvaluationConfig,
|
|
1
|
+
import { ApplicationType, EvaluationConfig, EvaluationJobStatus, EvaluationJobType, EvaluationModelConfig, EvaluationOutputDataConfig, EvaluationPrecomputedRagSourceConfig, KnowledgeBaseConfig, Tag } from "./models_0";
|
|
2
|
+
/**
|
|
3
|
+
* <p>Contains configuration details for retrieval of information and response generation.</p>
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type RAGConfig = RAGConfig.KnowledgeBaseConfigMember | RAGConfig.PrecomputedRagSourceConfigMember | RAGConfig.$UnknownMember;
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export declare namespace RAGConfig {
|
|
11
|
+
/**
|
|
12
|
+
* <p>Contains configuration details for knowledge base retrieval and response generation.</p>
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
interface KnowledgeBaseConfigMember {
|
|
16
|
+
knowledgeBaseConfig: KnowledgeBaseConfig;
|
|
17
|
+
precomputedRagSourceConfig?: never;
|
|
18
|
+
$unknown?: never;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* <p>Contains configuration details about the RAG source used to generate inference response data for a Knowledge Base evaluation job.</p>
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
interface PrecomputedRagSourceConfigMember {
|
|
25
|
+
knowledgeBaseConfig?: never;
|
|
26
|
+
precomputedRagSourceConfig: EvaluationPrecomputedRagSourceConfig;
|
|
27
|
+
$unknown?: never;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
interface $UnknownMember {
|
|
33
|
+
knowledgeBaseConfig?: never;
|
|
34
|
+
precomputedRagSourceConfig?: never;
|
|
35
|
+
$unknown: [string, any];
|
|
36
|
+
}
|
|
37
|
+
interface Visitor<T> {
|
|
38
|
+
knowledgeBaseConfig: (value: KnowledgeBaseConfig) => T;
|
|
39
|
+
precomputedRagSourceConfig: (value: EvaluationPrecomputedRagSourceConfig) => T;
|
|
40
|
+
_: (name: string, value: any) => T;
|
|
41
|
+
}
|
|
42
|
+
const visit: <T>(value: RAGConfig, visitor: Visitor<T>) => T;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* <p>The configuration details of the inference model for an evaluation job.</p> <p>For automated model evaluation jobs, only a single model is supported.</p> <p>For human-based model evaluation jobs, your annotator can compare the responses for up to two different models.</p>
|
|
46
|
+
* @public
|
|
47
|
+
*/
|
|
48
|
+
export type EvaluationInferenceConfig = EvaluationInferenceConfig.ModelsMember | EvaluationInferenceConfig.RagConfigsMember | EvaluationInferenceConfig.$UnknownMember;
|
|
49
|
+
/**
|
|
50
|
+
* @public
|
|
51
|
+
*/
|
|
52
|
+
export declare namespace EvaluationInferenceConfig {
|
|
53
|
+
/**
|
|
54
|
+
* <p>Specifies the inference models.</p>
|
|
55
|
+
* @public
|
|
56
|
+
*/
|
|
57
|
+
interface ModelsMember {
|
|
58
|
+
models: EvaluationModelConfig[];
|
|
59
|
+
ragConfigs?: never;
|
|
60
|
+
$unknown?: never;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* <p>Contains the configuration details of the inference for a knowledge base evaluation job, including either the retrieval only configuration or the retrieval with response generation configuration.</p>
|
|
64
|
+
* @public
|
|
65
|
+
*/
|
|
66
|
+
interface RagConfigsMember {
|
|
67
|
+
models?: never;
|
|
68
|
+
ragConfigs: RAGConfig[];
|
|
69
|
+
$unknown?: never;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
interface $UnknownMember {
|
|
75
|
+
models?: never;
|
|
76
|
+
ragConfigs?: never;
|
|
77
|
+
$unknown: [string, any];
|
|
78
|
+
}
|
|
79
|
+
interface Visitor<T> {
|
|
80
|
+
models: (value: EvaluationModelConfig[]) => T;
|
|
81
|
+
ragConfigs: (value: RAGConfig[]) => T;
|
|
82
|
+
_: (name: string, value: any) => T;
|
|
83
|
+
}
|
|
84
|
+
const visit: <T>(value: EvaluationInferenceConfig, visitor: Visitor<T>) => T;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
export interface CreateEvaluationJobRequest {
|
|
90
|
+
/**
|
|
91
|
+
* <p>A name for the evaluation job. Names must unique with your Amazon Web Services account, and your account's Amazon Web Services region.</p>
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
jobName: string | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* <p>A description of the evaluation job.</p>
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
99
|
+
jobDescription?: string | undefined;
|
|
100
|
+
/**
|
|
101
|
+
* <p>A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a>.</p>
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
clientRequestToken?: string | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* <p>The Amazon Resource Name (ARN) of an IAM service role that Amazon Bedrock can assume to perform tasks on your behalf. To learn more about the required permissions, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-evaluation-security.html">Required permissions for model evaluations</a>.</p>
|
|
107
|
+
* @public
|
|
108
|
+
*/
|
|
109
|
+
roleArn: string | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* <p>Specify your customer managed encryption key Amazon Resource Name (ARN) that will be used to encrypt your evaluation job.</p>
|
|
112
|
+
* @public
|
|
113
|
+
*/
|
|
114
|
+
customerEncryptionKeyId?: string | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* <p>Tags to attach to the model evaluation job.</p>
|
|
117
|
+
* @public
|
|
118
|
+
*/
|
|
119
|
+
jobTags?: Tag[] | undefined;
|
|
120
|
+
/**
|
|
121
|
+
* <p>Specifies whether the evaluation job is for evaluating a model or evaluating a knowledge base (retrieval and response generation).</p>
|
|
122
|
+
* @public
|
|
123
|
+
*/
|
|
124
|
+
applicationType?: ApplicationType | undefined;
|
|
125
|
+
/**
|
|
126
|
+
* <p>Contains the configuration details of either an automated or human-based evaluation job.</p>
|
|
127
|
+
* @public
|
|
128
|
+
*/
|
|
129
|
+
evaluationConfig: EvaluationConfig | undefined;
|
|
130
|
+
/**
|
|
131
|
+
* <p>Contains the configuration details of the inference model for the evaluation job.</p> <p>For model evaluation jobs, automated jobs support a single model or <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html">inference profile</a>, and jobs that use human workers support two models or inference profiles.</p>
|
|
132
|
+
* @public
|
|
133
|
+
*/
|
|
134
|
+
inferenceConfig: EvaluationInferenceConfig | undefined;
|
|
135
|
+
/**
|
|
136
|
+
* <p>Contains the configuration details of the Amazon S3 bucket for storing the results of the evaluation job.</p>
|
|
137
|
+
* @public
|
|
138
|
+
*/
|
|
139
|
+
outputDataConfig: EvaluationOutputDataConfig | undefined;
|
|
140
|
+
}
|
|
2
141
|
/**
|
|
3
142
|
* @public
|
|
4
143
|
*/
|
|
@@ -54,8 +193,7 @@ export interface GetEvaluationJobResponse {
|
|
|
54
193
|
*/
|
|
55
194
|
inferenceConfig: EvaluationInferenceConfig | undefined;
|
|
56
195
|
/**
|
|
57
|
-
* <p>Contains the configuration details of the Amazon S3 bucket for
|
|
58
|
-
* storing the results of the evaluation job.</p>
|
|
196
|
+
* <p>Contains the configuration details of the Amazon S3 bucket for storing the results of the evaluation job.</p>
|
|
59
197
|
* @public
|
|
60
198
|
*/
|
|
61
199
|
outputDataConfig: EvaluationOutputDataConfig | undefined;
|
|
@@ -75,6 +213,18 @@ export interface GetEvaluationJobResponse {
|
|
|
75
213
|
*/
|
|
76
214
|
failureMessages?: string[] | undefined;
|
|
77
215
|
}
|
|
216
|
+
/**
|
|
217
|
+
* @internal
|
|
218
|
+
*/
|
|
219
|
+
export declare const RAGConfigFilterSensitiveLog: (obj: RAGConfig) => any;
|
|
220
|
+
/**
|
|
221
|
+
* @internal
|
|
222
|
+
*/
|
|
223
|
+
export declare const EvaluationInferenceConfigFilterSensitiveLog: (obj: EvaluationInferenceConfig) => any;
|
|
224
|
+
/**
|
|
225
|
+
* @internal
|
|
226
|
+
*/
|
|
227
|
+
export declare const CreateEvaluationJobRequestFilterSensitiveLog: (obj: CreateEvaluationJobRequest) => any;
|
|
78
228
|
/**
|
|
79
229
|
* @internal
|
|
80
230
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
2
|
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
3
|
import { BatchDeleteEvaluationJobCommandInput, BatchDeleteEvaluationJobCommandOutput } from "../commands/BatchDeleteEvaluationJobCommand";
|
|
4
|
+
import { CreateCustomModelCommandInput, CreateCustomModelCommandOutput } from "../commands/CreateCustomModelCommand";
|
|
4
5
|
import { CreateEvaluationJobCommandInput, CreateEvaluationJobCommandOutput } from "../commands/CreateEvaluationJobCommand";
|
|
5
6
|
import { CreateGuardrailCommandInput, CreateGuardrailCommandOutput } from "../commands/CreateGuardrailCommand";
|
|
6
7
|
import { CreateGuardrailVersionCommandInput, CreateGuardrailVersionCommandOutput } from "../commands/CreateGuardrailVersionCommand";
|
|
@@ -63,6 +64,10 @@ import { UpdateProvisionedModelThroughputCommandInput, UpdateProvisionedModelThr
|
|
|
63
64
|
* serializeAws_restJson1BatchDeleteEvaluationJobCommand
|
|
64
65
|
*/
|
|
65
66
|
export declare const se_BatchDeleteEvaluationJobCommand: (input: BatchDeleteEvaluationJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
67
|
+
/**
|
|
68
|
+
* serializeAws_restJson1CreateCustomModelCommand
|
|
69
|
+
*/
|
|
70
|
+
export declare const se_CreateCustomModelCommand: (input: CreateCustomModelCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
66
71
|
/**
|
|
67
72
|
* serializeAws_restJson1CreateEvaluationJobCommand
|
|
68
73
|
*/
|
|
@@ -299,6 +304,10 @@ export declare const se_UpdateProvisionedModelThroughputCommand: (input: UpdateP
|
|
|
299
304
|
* deserializeAws_restJson1BatchDeleteEvaluationJobCommand
|
|
300
305
|
*/
|
|
301
306
|
export declare const de_BatchDeleteEvaluationJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchDeleteEvaluationJobCommandOutput>;
|
|
307
|
+
/**
|
|
308
|
+
* deserializeAws_restJson1CreateCustomModelCommand
|
|
309
|
+
*/
|
|
310
|
+
export declare const de_CreateCustomModelCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateCustomModelCommandOutput>;
|
|
302
311
|
/**
|
|
303
312
|
* deserializeAws_restJson1CreateEvaluationJobCommand
|
|
304
313
|
*/
|
|
@@ -15,8 +15,8 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
15
15
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
16
16
|
sha256: import("@smithy/types").HashConstructor;
|
|
17
17
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
18
|
-
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean
|
|
19
|
-
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean
|
|
18
|
+
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
19
|
+
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
20
20
|
apiVersion: string;
|
|
21
21
|
cacheMiddleware?: boolean | undefined;
|
|
22
22
|
urlParser: import("@smithy/types").UrlParser;
|
|
@@ -17,8 +17,8 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
17
17
|
utf8Encoder: (input: Uint8Array | string) => string;
|
|
18
18
|
disableHostPrefix: boolean;
|
|
19
19
|
serviceId: string;
|
|
20
|
-
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean
|
|
21
|
-
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean
|
|
20
|
+
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
21
|
+
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
22
22
|
region: string | import("@smithy/types").Provider<any>;
|
|
23
23
|
profile?: string;
|
|
24
24
|
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
|
|
@@ -4,6 +4,10 @@ import {
|
|
|
4
4
|
BatchDeleteEvaluationJobCommandInput,
|
|
5
5
|
BatchDeleteEvaluationJobCommandOutput,
|
|
6
6
|
} from "./commands/BatchDeleteEvaluationJobCommand";
|
|
7
|
+
import {
|
|
8
|
+
CreateCustomModelCommandInput,
|
|
9
|
+
CreateCustomModelCommandOutput,
|
|
10
|
+
} from "./commands/CreateCustomModelCommand";
|
|
7
11
|
import {
|
|
8
12
|
CreateEvaluationJobCommandInput,
|
|
9
13
|
CreateEvaluationJobCommandOutput,
|
|
@@ -250,6 +254,19 @@ export interface Bedrock {
|
|
|
250
254
|
options: __HttpHandlerOptions,
|
|
251
255
|
cb: (err: any, data?: BatchDeleteEvaluationJobCommandOutput) => void
|
|
252
256
|
): void;
|
|
257
|
+
createCustomModel(
|
|
258
|
+
args: CreateCustomModelCommandInput,
|
|
259
|
+
options?: __HttpHandlerOptions
|
|
260
|
+
): Promise<CreateCustomModelCommandOutput>;
|
|
261
|
+
createCustomModel(
|
|
262
|
+
args: CreateCustomModelCommandInput,
|
|
263
|
+
cb: (err: any, data?: CreateCustomModelCommandOutput) => void
|
|
264
|
+
): void;
|
|
265
|
+
createCustomModel(
|
|
266
|
+
args: CreateCustomModelCommandInput,
|
|
267
|
+
options: __HttpHandlerOptions,
|
|
268
|
+
cb: (err: any, data?: CreateCustomModelCommandOutput) => void
|
|
269
|
+
): void;
|
|
253
270
|
createEvaluationJob(
|
|
254
271
|
args: CreateEvaluationJobCommandInput,
|
|
255
272
|
options?: __HttpHandlerOptions
|
|
@@ -49,6 +49,10 @@ import {
|
|
|
49
49
|
BatchDeleteEvaluationJobCommandInput,
|
|
50
50
|
BatchDeleteEvaluationJobCommandOutput,
|
|
51
51
|
} from "./commands/BatchDeleteEvaluationJobCommand";
|
|
52
|
+
import {
|
|
53
|
+
CreateCustomModelCommandInput,
|
|
54
|
+
CreateCustomModelCommandOutput,
|
|
55
|
+
} from "./commands/CreateCustomModelCommand";
|
|
52
56
|
import {
|
|
53
57
|
CreateEvaluationJobCommandInput,
|
|
54
58
|
CreateEvaluationJobCommandOutput,
|
|
@@ -290,6 +294,7 @@ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
|
290
294
|
export { __Client };
|
|
291
295
|
export type ServiceInputTypes =
|
|
292
296
|
| BatchDeleteEvaluationJobCommandInput
|
|
297
|
+
| CreateCustomModelCommandInput
|
|
293
298
|
| CreateEvaluationJobCommandInput
|
|
294
299
|
| CreateGuardrailCommandInput
|
|
295
300
|
| CreateGuardrailVersionCommandInput
|
|
@@ -350,6 +355,7 @@ export type ServiceInputTypes =
|
|
|
350
355
|
| UpdateProvisionedModelThroughputCommandInput;
|
|
351
356
|
export type ServiceOutputTypes =
|
|
352
357
|
| BatchDeleteEvaluationJobCommandOutput
|
|
358
|
+
| CreateCustomModelCommandOutput
|
|
353
359
|
| CreateEvaluationJobCommandOutput
|
|
354
360
|
| CreateGuardrailCommandOutput
|
|
355
361
|
| CreateGuardrailVersionCommandOutput
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
BedrockClientResolvedConfig,
|
|
5
|
+
ServiceInputTypes,
|
|
6
|
+
ServiceOutputTypes,
|
|
7
|
+
} from "../BedrockClient";
|
|
8
|
+
import {
|
|
9
|
+
CreateCustomModelRequest,
|
|
10
|
+
CreateCustomModelResponse,
|
|
11
|
+
} from "../models/models_0";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface CreateCustomModelCommandInput
|
|
15
|
+
extends CreateCustomModelRequest {}
|
|
16
|
+
export interface CreateCustomModelCommandOutput
|
|
17
|
+
extends CreateCustomModelResponse,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
declare const CreateCustomModelCommand_base: {
|
|
20
|
+
new (
|
|
21
|
+
input: CreateCustomModelCommandInput
|
|
22
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
23
|
+
CreateCustomModelCommandInput,
|
|
24
|
+
CreateCustomModelCommandOutput,
|
|
25
|
+
BedrockClientResolvedConfig,
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
new (
|
|
30
|
+
input: CreateCustomModelCommandInput
|
|
31
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
32
|
+
CreateCustomModelCommandInput,
|
|
33
|
+
CreateCustomModelCommandOutput,
|
|
34
|
+
BedrockClientResolvedConfig,
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
37
|
+
>;
|
|
38
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
39
|
+
};
|
|
40
|
+
export declare class CreateCustomModelCommand extends CreateCustomModelCommand_base {
|
|
41
|
+
protected static __types: {
|
|
42
|
+
api: {
|
|
43
|
+
input: CreateCustomModelRequest;
|
|
44
|
+
output: CreateCustomModelResponse;
|
|
45
|
+
};
|
|
46
|
+
sdk: {
|
|
47
|
+
input: CreateCustomModelCommandInput;
|
|
48
|
+
output: CreateCustomModelCommandOutput;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -5,10 +5,8 @@ import {
|
|
|
5
5
|
ServiceInputTypes,
|
|
6
6
|
ServiceOutputTypes,
|
|
7
7
|
} from "../BedrockClient";
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
CreateEvaluationJobResponse,
|
|
11
|
-
} from "../models/models_0";
|
|
8
|
+
import { CreateEvaluationJobResponse } from "../models/models_0";
|
|
9
|
+
import { CreateEvaluationJobRequest } from "../models/models_1";
|
|
12
10
|
export { __MetadataBearer };
|
|
13
11
|
export { $Command };
|
|
14
12
|
export interface CreateEvaluationJobCommandInput
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
Provider,
|
|
6
6
|
} from "@smithy/types";
|
|
7
7
|
export interface ClientInputEndpointParameters {
|
|
8
|
-
region?: string | Provider<string>;
|
|
9
|
-
useDualstackEndpoint?: boolean | Provider<boolean>;
|
|
10
|
-
useFipsEndpoint?: boolean | Provider<boolean>;
|
|
8
|
+
region?: string | undefined | Provider<string | undefined>;
|
|
9
|
+
useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
10
|
+
useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
11
11
|
endpoint?:
|
|
12
12
|
| string
|
|
13
13
|
| Provider<string>
|
|
@@ -41,8 +41,8 @@ export declare const commonParams: {
|
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
export interface EndpointParameters extends __EndpointParameters {
|
|
44
|
-
Region?: string;
|
|
45
|
-
UseDualStack?: boolean;
|
|
46
|
-
UseFIPS?: boolean;
|
|
47
|
-
Endpoint?: string;
|
|
44
|
+
Region?: string | undefined;
|
|
45
|
+
UseDualStack?: boolean | undefined;
|
|
46
|
+
UseFIPS?: boolean | undefined;
|
|
47
|
+
Endpoint?: string | undefined;
|
|
48
48
|
}
|