@aws-sdk/client-bedrock 3.621.0 → 3.623.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 +24 -0
- package/dist-cjs/index.js +213 -20
- package/dist-es/Bedrock.js +6 -0
- package/dist-es/BedrockClient.js +12 -18
- package/dist-es/commands/CreateModelCopyJobCommand.js +24 -0
- package/dist-es/commands/GetModelCopyJobCommand.js +24 -0
- package/dist-es/commands/ListModelCopyJobsCommand.js +24 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +5 -0
- package/dist-es/pagination/ListModelCopyJobsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +129 -0
- package/dist-types/Bedrock.d.ts +22 -0
- package/dist-types/BedrockClient.d.ts +7 -6
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +4 -4
- package/dist-types/commands/CreateEvaluationJobCommand.d.ts +1 -1
- package/dist-types/commands/CreateModelCopyJobCommand.d.ts +82 -0
- package/dist-types/commands/CreateModelCustomizationJobCommand.d.ts +3 -3
- package/dist-types/commands/CreateProvisionedModelThroughputCommand.d.ts +1 -1
- package/dist-types/commands/DeleteCustomModelCommand.d.ts +1 -1
- package/dist-types/commands/DeleteProvisionedModelThroughputCommand.d.ts +1 -1
- package/dist-types/commands/GetCustomModelCommand.d.ts +1 -1
- package/dist-types/commands/GetEvaluationJobCommand.d.ts +1 -1
- package/dist-types/commands/GetModelCopyJobCommand.d.ts +90 -0
- package/dist-types/commands/GetModelCustomizationJobCommand.d.ts +1 -1
- package/dist-types/commands/GetProvisionedModelThroughputCommand.d.ts +1 -1
- package/dist-types/commands/ListCustomModelsCommand.d.ts +3 -1
- package/dist-types/commands/ListFoundationModelsCommand.d.ts +1 -1
- package/dist-types/commands/ListModelCopyJobsCommand.d.ts +105 -0
- package/dist-types/commands/ListModelCustomizationJobsCommand.d.ts +2 -2
- package/dist-types/commands/ListProvisionedModelThroughputsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/StopModelCustomizationJobCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateProvisionedModelThroughputCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +288 -14
- package/dist-types/pagination/ListModelCopyJobsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/Bedrock.d.ts +52 -0
- package/dist-types/ts3.4/BedrockClient.d.ts +24 -8
- package/dist-types/ts3.4/commands/CreateModelCopyJobCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/GetModelCopyJobCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListModelCopyJobsCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +64 -0
- package/dist-types/ts3.4/pagination/ListModelCopyJobsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
- package/dist-types/ts3.4/runtimeConfig.d.ts +5 -5
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +5 -5
- package/package.json +10 -10
|
@@ -57,6 +57,10 @@ import {
|
|
|
57
57
|
CreateGuardrailVersionCommandInput,
|
|
58
58
|
CreateGuardrailVersionCommandOutput,
|
|
59
59
|
} from "./commands/CreateGuardrailVersionCommand";
|
|
60
|
+
import {
|
|
61
|
+
CreateModelCopyJobCommandInput,
|
|
62
|
+
CreateModelCopyJobCommandOutput,
|
|
63
|
+
} from "./commands/CreateModelCopyJobCommand";
|
|
60
64
|
import {
|
|
61
65
|
CreateModelCustomizationJobCommandInput,
|
|
62
66
|
CreateModelCustomizationJobCommandOutput,
|
|
@@ -97,6 +101,10 @@ import {
|
|
|
97
101
|
GetGuardrailCommandInput,
|
|
98
102
|
GetGuardrailCommandOutput,
|
|
99
103
|
} from "./commands/GetGuardrailCommand";
|
|
104
|
+
import {
|
|
105
|
+
GetModelCopyJobCommandInput,
|
|
106
|
+
GetModelCopyJobCommandOutput,
|
|
107
|
+
} from "./commands/GetModelCopyJobCommand";
|
|
100
108
|
import {
|
|
101
109
|
GetModelCustomizationJobCommandInput,
|
|
102
110
|
GetModelCustomizationJobCommandOutput,
|
|
@@ -125,6 +133,10 @@ import {
|
|
|
125
133
|
ListGuardrailsCommandInput,
|
|
126
134
|
ListGuardrailsCommandOutput,
|
|
127
135
|
} from "./commands/ListGuardrailsCommand";
|
|
136
|
+
import {
|
|
137
|
+
ListModelCopyJobsCommandInput,
|
|
138
|
+
ListModelCopyJobsCommandOutput,
|
|
139
|
+
} from "./commands/ListModelCopyJobsCommand";
|
|
128
140
|
import {
|
|
129
141
|
ListModelCustomizationJobsCommandInput,
|
|
130
142
|
ListModelCustomizationJobsCommandOutput,
|
|
@@ -176,6 +188,7 @@ export type ServiceInputTypes =
|
|
|
176
188
|
| CreateEvaluationJobCommandInput
|
|
177
189
|
| CreateGuardrailCommandInput
|
|
178
190
|
| CreateGuardrailVersionCommandInput
|
|
191
|
+
| CreateModelCopyJobCommandInput
|
|
179
192
|
| CreateModelCustomizationJobCommandInput
|
|
180
193
|
| CreateProvisionedModelThroughputCommandInput
|
|
181
194
|
| DeleteCustomModelCommandInput
|
|
@@ -186,6 +199,7 @@ export type ServiceInputTypes =
|
|
|
186
199
|
| GetEvaluationJobCommandInput
|
|
187
200
|
| GetFoundationModelCommandInput
|
|
188
201
|
| GetGuardrailCommandInput
|
|
202
|
+
| GetModelCopyJobCommandInput
|
|
189
203
|
| GetModelCustomizationJobCommandInput
|
|
190
204
|
| GetModelInvocationLoggingConfigurationCommandInput
|
|
191
205
|
| GetProvisionedModelThroughputCommandInput
|
|
@@ -193,6 +207,7 @@ export type ServiceInputTypes =
|
|
|
193
207
|
| ListEvaluationJobsCommandInput
|
|
194
208
|
| ListFoundationModelsCommandInput
|
|
195
209
|
| ListGuardrailsCommandInput
|
|
210
|
+
| ListModelCopyJobsCommandInput
|
|
196
211
|
| ListModelCustomizationJobsCommandInput
|
|
197
212
|
| ListProvisionedModelThroughputsCommandInput
|
|
198
213
|
| ListTagsForResourceCommandInput
|
|
@@ -207,6 +222,7 @@ export type ServiceOutputTypes =
|
|
|
207
222
|
| CreateEvaluationJobCommandOutput
|
|
208
223
|
| CreateGuardrailCommandOutput
|
|
209
224
|
| CreateGuardrailVersionCommandOutput
|
|
225
|
+
| CreateModelCopyJobCommandOutput
|
|
210
226
|
| CreateModelCustomizationJobCommandOutput
|
|
211
227
|
| CreateProvisionedModelThroughputCommandOutput
|
|
212
228
|
| DeleteCustomModelCommandOutput
|
|
@@ -217,6 +233,7 @@ export type ServiceOutputTypes =
|
|
|
217
233
|
| GetEvaluationJobCommandOutput
|
|
218
234
|
| GetFoundationModelCommandOutput
|
|
219
235
|
| GetGuardrailCommandOutput
|
|
236
|
+
| GetModelCopyJobCommandOutput
|
|
220
237
|
| GetModelCustomizationJobCommandOutput
|
|
221
238
|
| GetModelInvocationLoggingConfigurationCommandOutput
|
|
222
239
|
| GetProvisionedModelThroughputCommandOutput
|
|
@@ -224,6 +241,7 @@ export type ServiceOutputTypes =
|
|
|
224
241
|
| ListEvaluationJobsCommandOutput
|
|
225
242
|
| ListFoundationModelsCommandOutput
|
|
226
243
|
| ListGuardrailsCommandOutput
|
|
244
|
+
| ListModelCopyJobsCommandOutput
|
|
227
245
|
| ListModelCustomizationJobsCommandOutput
|
|
228
246
|
| ListProvisionedModelThroughputsCommandOutput
|
|
229
247
|
| ListTagsForResourceCommandOutput
|
|
@@ -263,11 +281,11 @@ export type BedrockClientConfigType = Partial<
|
|
|
263
281
|
__SmithyConfiguration<__HttpHandlerOptions>
|
|
264
282
|
> &
|
|
265
283
|
ClientDefaults &
|
|
266
|
-
RegionInputConfig &
|
|
267
|
-
EndpointInputConfig<EndpointParameters> &
|
|
268
|
-
HostHeaderInputConfig &
|
|
269
284
|
UserAgentInputConfig &
|
|
270
285
|
RetryInputConfig &
|
|
286
|
+
RegionInputConfig &
|
|
287
|
+
HostHeaderInputConfig &
|
|
288
|
+
EndpointInputConfig<EndpointParameters> &
|
|
271
289
|
HttpAuthSchemeInputConfig &
|
|
272
290
|
ClientInputEndpointParameters;
|
|
273
291
|
export interface BedrockClientConfig extends BedrockClientConfigType {}
|
|
@@ -275,11 +293,11 @@ export type BedrockClientResolvedConfigType =
|
|
|
275
293
|
__SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
276
294
|
Required<ClientDefaults> &
|
|
277
295
|
RuntimeExtensionsConfig &
|
|
278
|
-
RegionResolvedConfig &
|
|
279
|
-
EndpointResolvedConfig<EndpointParameters> &
|
|
280
|
-
HostHeaderResolvedConfig &
|
|
281
296
|
UserAgentResolvedConfig &
|
|
282
297
|
RetryResolvedConfig &
|
|
298
|
+
RegionResolvedConfig &
|
|
299
|
+
HostHeaderResolvedConfig &
|
|
300
|
+
EndpointResolvedConfig<EndpointParameters> &
|
|
283
301
|
HttpAuthSchemeResolvedConfig &
|
|
284
302
|
ClientResolvedEndpointParameters;
|
|
285
303
|
export interface BedrockClientResolvedConfig
|
|
@@ -295,6 +313,4 @@ export declare class BedrockClient extends __Client<
|
|
|
295
313
|
...[configuration]: __CheckOptionalClientConfig<BedrockClientConfig>
|
|
296
314
|
);
|
|
297
315
|
destroy(): void;
|
|
298
|
-
private getDefaultHttpAuthSchemeParametersProvider;
|
|
299
|
-
private getIdentityProviderConfigProvider;
|
|
300
316
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
CreateModelCopyJobRequest,
|
|
10
|
+
CreateModelCopyJobResponse,
|
|
11
|
+
} from "../models/models_0";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface CreateModelCopyJobCommandInput
|
|
15
|
+
extends CreateModelCopyJobRequest {}
|
|
16
|
+
export interface CreateModelCopyJobCommandOutput
|
|
17
|
+
extends CreateModelCopyJobResponse,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
declare const CreateModelCopyJobCommand_base: {
|
|
20
|
+
new (
|
|
21
|
+
input: CreateModelCopyJobCommandInput
|
|
22
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
23
|
+
CreateModelCopyJobCommandInput,
|
|
24
|
+
CreateModelCopyJobCommandOutput,
|
|
25
|
+
BedrockClientResolvedConfig,
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
new (
|
|
30
|
+
__0_0: CreateModelCopyJobCommandInput
|
|
31
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
32
|
+
CreateModelCopyJobCommandInput,
|
|
33
|
+
CreateModelCopyJobCommandOutput,
|
|
34
|
+
BedrockClientResolvedConfig,
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
37
|
+
>;
|
|
38
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
39
|
+
};
|
|
40
|
+
export declare class CreateModelCopyJobCommand extends CreateModelCopyJobCommand_base {}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
GetModelCopyJobRequest,
|
|
10
|
+
GetModelCopyJobResponse,
|
|
11
|
+
} from "../models/models_0";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface GetModelCopyJobCommandInput extends GetModelCopyJobRequest {}
|
|
15
|
+
export interface GetModelCopyJobCommandOutput
|
|
16
|
+
extends GetModelCopyJobResponse,
|
|
17
|
+
__MetadataBearer {}
|
|
18
|
+
declare const GetModelCopyJobCommand_base: {
|
|
19
|
+
new (
|
|
20
|
+
input: GetModelCopyJobCommandInput
|
|
21
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
22
|
+
GetModelCopyJobCommandInput,
|
|
23
|
+
GetModelCopyJobCommandOutput,
|
|
24
|
+
BedrockClientResolvedConfig,
|
|
25
|
+
ServiceInputTypes,
|
|
26
|
+
ServiceOutputTypes
|
|
27
|
+
>;
|
|
28
|
+
new (
|
|
29
|
+
__0_0: GetModelCopyJobCommandInput
|
|
30
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
31
|
+
GetModelCopyJobCommandInput,
|
|
32
|
+
GetModelCopyJobCommandOutput,
|
|
33
|
+
BedrockClientResolvedConfig,
|
|
34
|
+
ServiceInputTypes,
|
|
35
|
+
ServiceOutputTypes
|
|
36
|
+
>;
|
|
37
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
38
|
+
};
|
|
39
|
+
export declare class GetModelCopyJobCommand extends GetModelCopyJobCommand_base {}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
ListModelCopyJobsRequest,
|
|
10
|
+
ListModelCopyJobsResponse,
|
|
11
|
+
} from "../models/models_0";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface ListModelCopyJobsCommandInput
|
|
15
|
+
extends ListModelCopyJobsRequest {}
|
|
16
|
+
export interface ListModelCopyJobsCommandOutput
|
|
17
|
+
extends ListModelCopyJobsResponse,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
declare const ListModelCopyJobsCommand_base: {
|
|
20
|
+
new (
|
|
21
|
+
input: ListModelCopyJobsCommandInput
|
|
22
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
23
|
+
ListModelCopyJobsCommandInput,
|
|
24
|
+
ListModelCopyJobsCommandOutput,
|
|
25
|
+
BedrockClientResolvedConfig,
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
new (
|
|
30
|
+
...[input]: [] | [ListModelCopyJobsCommandInput]
|
|
31
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
32
|
+
ListModelCopyJobsCommandInput,
|
|
33
|
+
ListModelCopyJobsCommandOutput,
|
|
34
|
+
BedrockClientResolvedConfig,
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
37
|
+
>;
|
|
38
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
39
|
+
};
|
|
40
|
+
export declare class ListModelCopyJobsCommand extends ListModelCopyJobsCommand_base {}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./CreateEvaluationJobCommand";
|
|
2
2
|
export * from "./CreateGuardrailCommand";
|
|
3
3
|
export * from "./CreateGuardrailVersionCommand";
|
|
4
|
+
export * from "./CreateModelCopyJobCommand";
|
|
4
5
|
export * from "./CreateModelCustomizationJobCommand";
|
|
5
6
|
export * from "./CreateProvisionedModelThroughputCommand";
|
|
6
7
|
export * from "./DeleteCustomModelCommand";
|
|
@@ -11,6 +12,7 @@ export * from "./GetCustomModelCommand";
|
|
|
11
12
|
export * from "./GetEvaluationJobCommand";
|
|
12
13
|
export * from "./GetFoundationModelCommand";
|
|
13
14
|
export * from "./GetGuardrailCommand";
|
|
15
|
+
export * from "./GetModelCopyJobCommand";
|
|
14
16
|
export * from "./GetModelCustomizationJobCommand";
|
|
15
17
|
export * from "./GetModelInvocationLoggingConfigurationCommand";
|
|
16
18
|
export * from "./GetProvisionedModelThroughputCommand";
|
|
@@ -18,6 +20,7 @@ export * from "./ListCustomModelsCommand";
|
|
|
18
20
|
export * from "./ListEvaluationJobsCommand";
|
|
19
21
|
export * from "./ListFoundationModelsCommand";
|
|
20
22
|
export * from "./ListGuardrailsCommand";
|
|
23
|
+
export * from "./ListModelCopyJobsCommand";
|
|
21
24
|
export * from "./ListModelCustomizationJobsCommand";
|
|
22
25
|
export * from "./ListProvisionedModelThroughputsCommand";
|
|
23
26
|
export * from "./ListTagsForResourceCommand";
|
|
@@ -568,6 +568,68 @@ export interface PutModelInvocationLoggingConfigurationRequest {
|
|
|
568
568
|
loggingConfig: LoggingConfig | undefined;
|
|
569
569
|
}
|
|
570
570
|
export interface PutModelInvocationLoggingConfigurationResponse {}
|
|
571
|
+
export interface CreateModelCopyJobRequest {
|
|
572
|
+
sourceModelArn: string | undefined;
|
|
573
|
+
targetModelName: string | undefined;
|
|
574
|
+
modelKmsKeyId?: string;
|
|
575
|
+
targetModelTags?: Tag[];
|
|
576
|
+
clientRequestToken?: string;
|
|
577
|
+
}
|
|
578
|
+
export interface CreateModelCopyJobResponse {
|
|
579
|
+
jobArn: string | undefined;
|
|
580
|
+
}
|
|
581
|
+
export interface GetModelCopyJobRequest {
|
|
582
|
+
jobArn: string | undefined;
|
|
583
|
+
}
|
|
584
|
+
export declare const ModelCopyJobStatus: {
|
|
585
|
+
readonly COMPLETED: "Completed";
|
|
586
|
+
readonly FAILED: "Failed";
|
|
587
|
+
readonly IN_PROGRESS: "InProgress";
|
|
588
|
+
};
|
|
589
|
+
export type ModelCopyJobStatus =
|
|
590
|
+
(typeof ModelCopyJobStatus)[keyof typeof ModelCopyJobStatus];
|
|
591
|
+
export interface GetModelCopyJobResponse {
|
|
592
|
+
jobArn: string | undefined;
|
|
593
|
+
status: ModelCopyJobStatus | undefined;
|
|
594
|
+
creationTime: Date | undefined;
|
|
595
|
+
targetModelArn: string | undefined;
|
|
596
|
+
targetModelName?: string;
|
|
597
|
+
sourceAccountId: string | undefined;
|
|
598
|
+
sourceModelArn: string | undefined;
|
|
599
|
+
targetModelKmsKeyArn?: string;
|
|
600
|
+
targetModelTags?: Tag[];
|
|
601
|
+
failureMessage?: string;
|
|
602
|
+
sourceModelName?: string;
|
|
603
|
+
}
|
|
604
|
+
export interface ListModelCopyJobsRequest {
|
|
605
|
+
creationTimeAfter?: Date;
|
|
606
|
+
creationTimeBefore?: Date;
|
|
607
|
+
statusEquals?: ModelCopyJobStatus;
|
|
608
|
+
sourceAccountEquals?: string;
|
|
609
|
+
sourceModelArnEquals?: string;
|
|
610
|
+
targetModelNameContains?: string;
|
|
611
|
+
maxResults?: number;
|
|
612
|
+
nextToken?: string;
|
|
613
|
+
sortBy?: SortJobsBy;
|
|
614
|
+
sortOrder?: SortOrder;
|
|
615
|
+
}
|
|
616
|
+
export interface ModelCopyJobSummary {
|
|
617
|
+
jobArn: string | undefined;
|
|
618
|
+
status: ModelCopyJobStatus | undefined;
|
|
619
|
+
creationTime: Date | undefined;
|
|
620
|
+
targetModelArn: string | undefined;
|
|
621
|
+
targetModelName?: string;
|
|
622
|
+
sourceAccountId: string | undefined;
|
|
623
|
+
sourceModelArn: string | undefined;
|
|
624
|
+
targetModelKmsKeyArn?: string;
|
|
625
|
+
targetModelTags?: Tag[];
|
|
626
|
+
failureMessage?: string;
|
|
627
|
+
sourceModelName?: string;
|
|
628
|
+
}
|
|
629
|
+
export interface ListModelCopyJobsResponse {
|
|
630
|
+
nextToken?: string;
|
|
631
|
+
modelCopyJobSummaries?: ModelCopyJobSummary[];
|
|
632
|
+
}
|
|
571
633
|
export interface DeleteCustomModelRequest {
|
|
572
634
|
modelIdentifier: string | undefined;
|
|
573
635
|
}
|
|
@@ -673,6 +735,7 @@ export interface ListCustomModelsRequest {
|
|
|
673
735
|
nextToken?: string;
|
|
674
736
|
sortBy?: SortModelsBy;
|
|
675
737
|
sortOrder?: SortOrder;
|
|
738
|
+
isOwned?: boolean;
|
|
676
739
|
}
|
|
677
740
|
export interface CustomModelSummary {
|
|
678
741
|
modelArn: string | undefined;
|
|
@@ -681,6 +744,7 @@ export interface CustomModelSummary {
|
|
|
681
744
|
baseModelArn: string | undefined;
|
|
682
745
|
baseModelName: string | undefined;
|
|
683
746
|
customizationType?: CustomizationType;
|
|
747
|
+
ownerAccountId?: string;
|
|
684
748
|
}
|
|
685
749
|
export interface ListCustomModelsResponse {
|
|
686
750
|
nextToken?: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
ListModelCopyJobsCommandInput,
|
|
4
|
+
ListModelCopyJobsCommandOutput,
|
|
5
|
+
} from "../commands/ListModelCopyJobsCommand";
|
|
6
|
+
import { BedrockPaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare const paginateListModelCopyJobs: (
|
|
8
|
+
config: BedrockPaginationConfiguration,
|
|
9
|
+
input: ListModelCopyJobsCommandInput,
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListModelCopyJobsCommandOutput>;
|
|
@@ -2,5 +2,6 @@ export * from "./Interfaces";
|
|
|
2
2
|
export * from "./ListCustomModelsPaginator";
|
|
3
3
|
export * from "./ListEvaluationJobsPaginator";
|
|
4
4
|
export * from "./ListGuardrailsPaginator";
|
|
5
|
+
export * from "./ListModelCopyJobsPaginator";
|
|
5
6
|
export * from "./ListModelCustomizationJobsPaginator";
|
|
6
7
|
export * from "./ListProvisionedModelThroughputsPaginator";
|
|
@@ -15,6 +15,10 @@ import {
|
|
|
15
15
|
CreateGuardrailVersionCommandInput,
|
|
16
16
|
CreateGuardrailVersionCommandOutput,
|
|
17
17
|
} from "../commands/CreateGuardrailVersionCommand";
|
|
18
|
+
import {
|
|
19
|
+
CreateModelCopyJobCommandInput,
|
|
20
|
+
CreateModelCopyJobCommandOutput,
|
|
21
|
+
} from "../commands/CreateModelCopyJobCommand";
|
|
18
22
|
import {
|
|
19
23
|
CreateModelCustomizationJobCommandInput,
|
|
20
24
|
CreateModelCustomizationJobCommandOutput,
|
|
@@ -55,6 +59,10 @@ import {
|
|
|
55
59
|
GetGuardrailCommandInput,
|
|
56
60
|
GetGuardrailCommandOutput,
|
|
57
61
|
} from "../commands/GetGuardrailCommand";
|
|
62
|
+
import {
|
|
63
|
+
GetModelCopyJobCommandInput,
|
|
64
|
+
GetModelCopyJobCommandOutput,
|
|
65
|
+
} from "../commands/GetModelCopyJobCommand";
|
|
58
66
|
import {
|
|
59
67
|
GetModelCustomizationJobCommandInput,
|
|
60
68
|
GetModelCustomizationJobCommandOutput,
|
|
@@ -83,6 +91,10 @@ import {
|
|
|
83
91
|
ListGuardrailsCommandInput,
|
|
84
92
|
ListGuardrailsCommandOutput,
|
|
85
93
|
} from "../commands/ListGuardrailsCommand";
|
|
94
|
+
import {
|
|
95
|
+
ListModelCopyJobsCommandInput,
|
|
96
|
+
ListModelCopyJobsCommandOutput,
|
|
97
|
+
} from "../commands/ListModelCopyJobsCommand";
|
|
86
98
|
import {
|
|
87
99
|
ListModelCustomizationJobsCommandInput,
|
|
88
100
|
ListModelCustomizationJobsCommandOutput,
|
|
@@ -135,6 +147,10 @@ export declare const se_CreateGuardrailVersionCommand: (
|
|
|
135
147
|
input: CreateGuardrailVersionCommandInput,
|
|
136
148
|
context: __SerdeContext
|
|
137
149
|
) => Promise<__HttpRequest>;
|
|
150
|
+
export declare const se_CreateModelCopyJobCommand: (
|
|
151
|
+
input: CreateModelCopyJobCommandInput,
|
|
152
|
+
context: __SerdeContext
|
|
153
|
+
) => Promise<__HttpRequest>;
|
|
138
154
|
export declare const se_CreateModelCustomizationJobCommand: (
|
|
139
155
|
input: CreateModelCustomizationJobCommandInput,
|
|
140
156
|
context: __SerdeContext
|
|
@@ -175,6 +191,10 @@ export declare const se_GetGuardrailCommand: (
|
|
|
175
191
|
input: GetGuardrailCommandInput,
|
|
176
192
|
context: __SerdeContext
|
|
177
193
|
) => Promise<__HttpRequest>;
|
|
194
|
+
export declare const se_GetModelCopyJobCommand: (
|
|
195
|
+
input: GetModelCopyJobCommandInput,
|
|
196
|
+
context: __SerdeContext
|
|
197
|
+
) => Promise<__HttpRequest>;
|
|
178
198
|
export declare const se_GetModelCustomizationJobCommand: (
|
|
179
199
|
input: GetModelCustomizationJobCommandInput,
|
|
180
200
|
context: __SerdeContext
|
|
@@ -203,6 +223,10 @@ export declare const se_ListGuardrailsCommand: (
|
|
|
203
223
|
input: ListGuardrailsCommandInput,
|
|
204
224
|
context: __SerdeContext
|
|
205
225
|
) => Promise<__HttpRequest>;
|
|
226
|
+
export declare const se_ListModelCopyJobsCommand: (
|
|
227
|
+
input: ListModelCopyJobsCommandInput,
|
|
228
|
+
context: __SerdeContext
|
|
229
|
+
) => Promise<__HttpRequest>;
|
|
206
230
|
export declare const se_ListModelCustomizationJobsCommand: (
|
|
207
231
|
input: ListModelCustomizationJobsCommandInput,
|
|
208
232
|
context: __SerdeContext
|
|
@@ -255,6 +279,10 @@ export declare const de_CreateGuardrailVersionCommand: (
|
|
|
255
279
|
output: __HttpResponse,
|
|
256
280
|
context: __SerdeContext
|
|
257
281
|
) => Promise<CreateGuardrailVersionCommandOutput>;
|
|
282
|
+
export declare const de_CreateModelCopyJobCommand: (
|
|
283
|
+
output: __HttpResponse,
|
|
284
|
+
context: __SerdeContext
|
|
285
|
+
) => Promise<CreateModelCopyJobCommandOutput>;
|
|
258
286
|
export declare const de_CreateModelCustomizationJobCommand: (
|
|
259
287
|
output: __HttpResponse,
|
|
260
288
|
context: __SerdeContext
|
|
@@ -295,6 +323,10 @@ export declare const de_GetGuardrailCommand: (
|
|
|
295
323
|
output: __HttpResponse,
|
|
296
324
|
context: __SerdeContext
|
|
297
325
|
) => Promise<GetGuardrailCommandOutput>;
|
|
326
|
+
export declare const de_GetModelCopyJobCommand: (
|
|
327
|
+
output: __HttpResponse,
|
|
328
|
+
context: __SerdeContext
|
|
329
|
+
) => Promise<GetModelCopyJobCommandOutput>;
|
|
298
330
|
export declare const de_GetModelCustomizationJobCommand: (
|
|
299
331
|
output: __HttpResponse,
|
|
300
332
|
context: __SerdeContext
|
|
@@ -323,6 +355,10 @@ export declare const de_ListGuardrailsCommand: (
|
|
|
323
355
|
output: __HttpResponse,
|
|
324
356
|
context: __SerdeContext
|
|
325
357
|
) => Promise<ListGuardrailsCommandOutput>;
|
|
358
|
+
export declare const de_ListModelCopyJobsCommand: (
|
|
359
|
+
output: __HttpResponse,
|
|
360
|
+
context: __SerdeContext
|
|
361
|
+
) => Promise<ListModelCopyJobsCommandOutput>;
|
|
326
362
|
export declare const de_ListModelCustomizationJobsCommand: (
|
|
327
363
|
output: __HttpResponse,
|
|
328
364
|
context: __SerdeContext
|
|
@@ -32,6 +32,11 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
32
32
|
serviceId: string;
|
|
33
33
|
logger: import("@smithy/types").Logger;
|
|
34
34
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
35
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
36
|
+
retryStrategy?:
|
|
37
|
+
| import("@smithy/types").RetryStrategy
|
|
38
|
+
| import("@smithy/types").RetryStrategyV2
|
|
39
|
+
| undefined;
|
|
35
40
|
endpoint?:
|
|
36
41
|
| ((
|
|
37
42
|
| string
|
|
@@ -56,11 +61,6 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
56
61
|
}
|
|
57
62
|
) => import("@smithy/types").EndpointV2;
|
|
58
63
|
tls?: boolean | undefined;
|
|
59
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
60
|
-
retryStrategy?:
|
|
61
|
-
| import("@smithy/types").RetryStrategy
|
|
62
|
-
| import("@smithy/types").RetryStrategyV2
|
|
63
|
-
| undefined;
|
|
64
64
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
65
65
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockHttpAuthSchemeProvider;
|
|
66
66
|
credentials?:
|
|
@@ -36,6 +36,11 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
36
36
|
serviceId: string;
|
|
37
37
|
logger: import("@smithy/types").Logger;
|
|
38
38
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
39
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
40
|
+
retryStrategy?:
|
|
41
|
+
| import("@smithy/types").RetryStrategy
|
|
42
|
+
| import("@smithy/types").RetryStrategyV2
|
|
43
|
+
| undefined;
|
|
39
44
|
endpoint?:
|
|
40
45
|
| ((
|
|
41
46
|
| string
|
|
@@ -60,11 +65,6 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
60
65
|
}
|
|
61
66
|
) => import("@smithy/types").EndpointV2;
|
|
62
67
|
tls?: boolean | undefined;
|
|
63
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
64
|
-
retryStrategy?:
|
|
65
|
-
| import("@smithy/types").RetryStrategy
|
|
66
|
-
| import("@smithy/types").RetryStrategyV2
|
|
67
|
-
| undefined;
|
|
68
68
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
69
69
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockHttpAuthSchemeProvider;
|
|
70
70
|
credentials?:
|
|
@@ -36,6 +36,11 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
36
36
|
| import("@smithy/types").Provider<
|
|
37
37
|
import("@smithy/smithy-client").DefaultsMode
|
|
38
38
|
>;
|
|
39
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
40
|
+
retryStrategy?:
|
|
41
|
+
| import("@smithy/types").RetryStrategy
|
|
42
|
+
| import("@smithy/types").RetryStrategyV2
|
|
43
|
+
| undefined;
|
|
39
44
|
endpoint?:
|
|
40
45
|
| string
|
|
41
46
|
| import("@smithy/types").Endpoint
|
|
@@ -50,11 +55,6 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
50
55
|
}
|
|
51
56
|
) => import("@smithy/types").EndpointV2;
|
|
52
57
|
tls?: boolean | undefined;
|
|
53
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
54
|
-
retryStrategy?:
|
|
55
|
-
| import("@smithy/types").RetryStrategy
|
|
56
|
-
| import("@smithy/types").RetryStrategyV2
|
|
57
|
-
| undefined;
|
|
58
58
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
59
59
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockHttpAuthSchemeProvider;
|
|
60
60
|
credentials?:
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.623.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.623.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.623.0",
|
|
25
|
+
"@aws-sdk/core": "3.623.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.623.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.620.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.609.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.620.0",
|
|
@@ -34,26 +34,26 @@
|
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.609.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.614.0",
|
|
36
36
|
"@smithy/config-resolver": "^3.0.5",
|
|
37
|
-
"@smithy/core": "^2.3.
|
|
37
|
+
"@smithy/core": "^2.3.2",
|
|
38
38
|
"@smithy/fetch-http-handler": "^3.2.4",
|
|
39
39
|
"@smithy/hash-node": "^3.0.3",
|
|
40
40
|
"@smithy/invalid-dependency": "^3.0.3",
|
|
41
41
|
"@smithy/middleware-content-length": "^3.0.5",
|
|
42
42
|
"@smithy/middleware-endpoint": "^3.1.0",
|
|
43
|
-
"@smithy/middleware-retry": "^3.0.
|
|
43
|
+
"@smithy/middleware-retry": "^3.0.14",
|
|
44
44
|
"@smithy/middleware-serde": "^3.0.3",
|
|
45
45
|
"@smithy/middleware-stack": "^3.0.3",
|
|
46
46
|
"@smithy/node-config-provider": "^3.1.4",
|
|
47
47
|
"@smithy/node-http-handler": "^3.1.4",
|
|
48
48
|
"@smithy/protocol-http": "^4.1.0",
|
|
49
|
-
"@smithy/smithy-client": "^3.1.
|
|
49
|
+
"@smithy/smithy-client": "^3.1.12",
|
|
50
50
|
"@smithy/types": "^3.3.0",
|
|
51
51
|
"@smithy/url-parser": "^3.0.3",
|
|
52
52
|
"@smithy/util-base64": "^3.0.0",
|
|
53
53
|
"@smithy/util-body-length-browser": "^3.0.0",
|
|
54
54
|
"@smithy/util-body-length-node": "^3.0.0",
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^3.0.
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^3.0.
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^3.0.14",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^3.0.14",
|
|
57
57
|
"@smithy/util-endpoints": "^2.0.5",
|
|
58
58
|
"@smithy/util-middleware": "^3.0.3",
|
|
59
59
|
"@smithy/util-retry": "^3.0.3",
|