diff --git a/clients/client-bedrock/README.md b/clients/client-bedrock/README.md index 1634ccd37657..431d094d2f77 100644 --- a/clients/client-bedrock/README.md +++ b/clients/client-bedrock/README.md @@ -226,6 +226,14 @@ CreateGuardrailVersion [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/CreateGuardrailVersionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateGuardrailVersionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateGuardrailVersionCommandOutput/) + +
+ +CreateModelCopyJob + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/CreateModelCopyJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateModelCopyJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateModelCopyJobCommandOutput/) +
@@ -306,6 +314,14 @@ GetGuardrail [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/GetGuardrailCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetGuardrailCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetGuardrailCommandOutput/) +
+
+ +GetModelCopyJob + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/GetModelCopyJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetModelCopyJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetModelCopyJobCommandOutput/) +
@@ -362,6 +378,14 @@ ListGuardrails [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/ListGuardrailsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListGuardrailsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListGuardrailsCommandOutput/) +
+
+ +ListModelCopyJobs + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/ListModelCopyJobsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListModelCopyJobsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListModelCopyJobsCommandOutput/) +
diff --git a/clients/client-bedrock/src/Bedrock.ts b/clients/client-bedrock/src/Bedrock.ts index c8a95ae6c1cd..6d2cfb92e79e 100644 --- a/clients/client-bedrock/src/Bedrock.ts +++ b/clients/client-bedrock/src/Bedrock.ts @@ -18,6 +18,11 @@ import { CreateGuardrailVersionCommandInput, CreateGuardrailVersionCommandOutput, } from "./commands/CreateGuardrailVersionCommand"; +import { + CreateModelCopyJobCommand, + CreateModelCopyJobCommandInput, + CreateModelCopyJobCommandOutput, +} from "./commands/CreateModelCopyJobCommand"; import { CreateModelCustomizationJobCommand, CreateModelCustomizationJobCommandInput, @@ -68,6 +73,11 @@ import { GetGuardrailCommandInput, GetGuardrailCommandOutput, } from "./commands/GetGuardrailCommand"; +import { + GetModelCopyJobCommand, + GetModelCopyJobCommandInput, + GetModelCopyJobCommandOutput, +} from "./commands/GetModelCopyJobCommand"; import { GetModelCustomizationJobCommand, GetModelCustomizationJobCommandInput, @@ -103,6 +113,11 @@ import { ListGuardrailsCommandInput, ListGuardrailsCommandOutput, } from "./commands/ListGuardrailsCommand"; +import { + ListModelCopyJobsCommand, + ListModelCopyJobsCommandInput, + ListModelCopyJobsCommandOutput, +} from "./commands/ListModelCopyJobsCommand"; import { ListModelCustomizationJobsCommand, ListModelCustomizationJobsCommandInput, @@ -154,6 +169,7 @@ const commands = { CreateEvaluationJobCommand, CreateGuardrailCommand, CreateGuardrailVersionCommand, + CreateModelCopyJobCommand, CreateModelCustomizationJobCommand, CreateProvisionedModelThroughputCommand, DeleteCustomModelCommand, @@ -164,6 +180,7 @@ const commands = { GetEvaluationJobCommand, GetFoundationModelCommand, GetGuardrailCommand, + GetModelCopyJobCommand, GetModelCustomizationJobCommand, GetModelInvocationLoggingConfigurationCommand, GetProvisionedModelThroughputCommand, @@ -171,6 +188,7 @@ const commands = { ListEvaluationJobsCommand, ListFoundationModelsCommand, ListGuardrailsCommand, + ListModelCopyJobsCommand, ListModelCustomizationJobsCommand, ListProvisionedModelThroughputsCommand, ListTagsForResourceCommand, @@ -232,6 +250,23 @@ export interface Bedrock { cb: (err: any, data?: CreateGuardrailVersionCommandOutput) => void ): void; + /** + * @see {@link CreateModelCopyJobCommand} + */ + createModelCopyJob( + args: CreateModelCopyJobCommandInput, + options?: __HttpHandlerOptions + ): Promise; + createModelCopyJob( + args: CreateModelCopyJobCommandInput, + cb: (err: any, data?: CreateModelCopyJobCommandOutput) => void + ): void; + createModelCopyJob( + args: CreateModelCopyJobCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateModelCopyJobCommandOutput) => void + ): void; + /** * @see {@link CreateModelCustomizationJobCommand} */ @@ -391,6 +426,20 @@ export interface Bedrock { cb: (err: any, data?: GetGuardrailCommandOutput) => void ): void; + /** + * @see {@link GetModelCopyJobCommand} + */ + getModelCopyJob( + args: GetModelCopyJobCommandInput, + options?: __HttpHandlerOptions + ): Promise; + getModelCopyJob(args: GetModelCopyJobCommandInput, cb: (err: any, data?: GetModelCopyJobCommandOutput) => void): void; + getModelCopyJob( + args: GetModelCopyJobCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: GetModelCopyJobCommandOutput) => void + ): void; + /** * @see {@link GetModelCustomizationJobCommand} */ @@ -512,6 +561,24 @@ export interface Bedrock { cb: (err: any, data?: ListGuardrailsCommandOutput) => void ): void; + /** + * @see {@link ListModelCopyJobsCommand} + */ + listModelCopyJobs(): Promise; + listModelCopyJobs( + args: ListModelCopyJobsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + listModelCopyJobs( + args: ListModelCopyJobsCommandInput, + cb: (err: any, data?: ListModelCopyJobsCommandOutput) => void + ): void; + listModelCopyJobs( + args: ListModelCopyJobsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListModelCopyJobsCommandOutput) => void + ): void; + /** * @see {@link ListModelCustomizationJobsCommand} */ diff --git a/clients/client-bedrock/src/BedrockClient.ts b/clients/client-bedrock/src/BedrockClient.ts index 6db568b69e52..296a410805d2 100644 --- a/clients/client-bedrock/src/BedrockClient.ts +++ b/clients/client-bedrock/src/BedrockClient.ts @@ -62,6 +62,7 @@ import { CreateGuardrailVersionCommandInput, CreateGuardrailVersionCommandOutput, } from "./commands/CreateGuardrailVersionCommand"; +import { CreateModelCopyJobCommandInput, CreateModelCopyJobCommandOutput } from "./commands/CreateModelCopyJobCommand"; import { CreateModelCustomizationJobCommandInput, CreateModelCustomizationJobCommandOutput, @@ -84,6 +85,7 @@ import { GetCustomModelCommandInput, GetCustomModelCommandOutput } from "./comma import { GetEvaluationJobCommandInput, GetEvaluationJobCommandOutput } from "./commands/GetEvaluationJobCommand"; import { GetFoundationModelCommandInput, GetFoundationModelCommandOutput } from "./commands/GetFoundationModelCommand"; import { GetGuardrailCommandInput, GetGuardrailCommandOutput } from "./commands/GetGuardrailCommand"; +import { GetModelCopyJobCommandInput, GetModelCopyJobCommandOutput } from "./commands/GetModelCopyJobCommand"; import { GetModelCustomizationJobCommandInput, GetModelCustomizationJobCommandOutput, @@ -103,6 +105,7 @@ import { ListFoundationModelsCommandOutput, } from "./commands/ListFoundationModelsCommand"; import { ListGuardrailsCommandInput, ListGuardrailsCommandOutput } from "./commands/ListGuardrailsCommand"; +import { ListModelCopyJobsCommandInput, ListModelCopyJobsCommandOutput } from "./commands/ListModelCopyJobsCommand"; import { ListModelCustomizationJobsCommandInput, ListModelCustomizationJobsCommandOutput, @@ -149,6 +152,7 @@ export type ServiceInputTypes = | CreateEvaluationJobCommandInput | CreateGuardrailCommandInput | CreateGuardrailVersionCommandInput + | CreateModelCopyJobCommandInput | CreateModelCustomizationJobCommandInput | CreateProvisionedModelThroughputCommandInput | DeleteCustomModelCommandInput @@ -159,6 +163,7 @@ export type ServiceInputTypes = | GetEvaluationJobCommandInput | GetFoundationModelCommandInput | GetGuardrailCommandInput + | GetModelCopyJobCommandInput | GetModelCustomizationJobCommandInput | GetModelInvocationLoggingConfigurationCommandInput | GetProvisionedModelThroughputCommandInput @@ -166,6 +171,7 @@ export type ServiceInputTypes = | ListEvaluationJobsCommandInput | ListFoundationModelsCommandInput | ListGuardrailsCommandInput + | ListModelCopyJobsCommandInput | ListModelCustomizationJobsCommandInput | ListProvisionedModelThroughputsCommandInput | ListTagsForResourceCommandInput @@ -184,6 +190,7 @@ export type ServiceOutputTypes = | CreateEvaluationJobCommandOutput | CreateGuardrailCommandOutput | CreateGuardrailVersionCommandOutput + | CreateModelCopyJobCommandOutput | CreateModelCustomizationJobCommandOutput | CreateProvisionedModelThroughputCommandOutput | DeleteCustomModelCommandOutput @@ -194,6 +201,7 @@ export type ServiceOutputTypes = | GetEvaluationJobCommandOutput | GetFoundationModelCommandOutput | GetGuardrailCommandOutput + | GetModelCopyJobCommandOutput | GetModelCustomizationJobCommandOutput | GetModelInvocationLoggingConfigurationCommandOutput | GetProvisionedModelThroughputCommandOutput @@ -201,6 +209,7 @@ export type ServiceOutputTypes = | ListEvaluationJobsCommandOutput | ListFoundationModelsCommandOutput | ListGuardrailsCommandOutput + | ListModelCopyJobsCommandOutput | ListModelCustomizationJobsCommandOutput | ListProvisionedModelThroughputsCommandOutput | ListTagsForResourceCommandOutput diff --git a/clients/client-bedrock/src/commands/CreateEvaluationJobCommand.ts b/clients/client-bedrock/src/commands/CreateEvaluationJobCommand.ts index a0f0227d31e6..f41c10a57aa9 100644 --- a/clients/client-bedrock/src/commands/CreateEvaluationJobCommand.ts +++ b/clients/client-bedrock/src/commands/CreateEvaluationJobCommand.ts @@ -32,7 +32,7 @@ export interface CreateEvaluationJobCommandInput extends CreateEvaluationJobRequ export interface CreateEvaluationJobCommandOutput extends CreateEvaluationJobResponse, __MetadataBearer {} /** - *

API operation for creating and managing Amazon Bedrock automatic model evaluation jobs and model evaluation jobs that use human workers. To learn more about the requirements for creating a model evaluation job see, Model evaluations.

+ *

API operation for creating and managing Amazon Bedrock automatic model evaluation jobs and model evaluation jobs that use human workers. To learn more about the requirements for creating a model evaluation job see, Model evaluation.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-bedrock/src/commands/CreateModelCopyJobCommand.ts b/clients/client-bedrock/src/commands/CreateModelCopyJobCommand.ts new file mode 100644 index 000000000000..57aff891e680 --- /dev/null +++ b/clients/client-bedrock/src/commands/CreateModelCopyJobCommand.ts @@ -0,0 +1,104 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient"; +import { commonParams } from "../endpoint/EndpointParameters"; +import { CreateModelCopyJobRequest, CreateModelCopyJobResponse } from "../models/models_0"; +import { de_CreateModelCopyJobCommand, se_CreateModelCopyJobCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link CreateModelCopyJobCommand}. + */ +export interface CreateModelCopyJobCommandInput extends CreateModelCopyJobRequest {} +/** + * @public + * + * The output of {@link CreateModelCopyJobCommand}. + */ +export interface CreateModelCopyJobCommandOutput extends CreateModelCopyJobResponse, __MetadataBearer {} + +/** + *

Copies a model to another region so that it can be used there. For more information, see Copy models to be used in other regions in the Amazon Bedrock User Guide.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { BedrockClient, CreateModelCopyJobCommand } from "@aws-sdk/client-bedrock"; // ES Modules import + * // const { BedrockClient, CreateModelCopyJobCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import + * const client = new BedrockClient(config); + * const input = { // CreateModelCopyJobRequest + * sourceModelArn: "STRING_VALUE", // required + * targetModelName: "STRING_VALUE", // required + * modelKmsKeyId: "STRING_VALUE", + * targetModelTags: [ // TagList + * { // Tag + * key: "STRING_VALUE", // required + * value: "STRING_VALUE", // required + * }, + * ], + * clientRequestToken: "STRING_VALUE", + * }; + * const command = new CreateModelCopyJobCommand(input); + * const response = await client.send(command); + * // { // CreateModelCopyJobResponse + * // jobArn: "STRING_VALUE", // required + * // }; + * + * ``` + * + * @param CreateModelCopyJobCommandInput - {@link CreateModelCopyJobCommandInput} + * @returns {@link CreateModelCopyJobCommandOutput} + * @see {@link CreateModelCopyJobCommandInput} for command's `input` shape. + * @see {@link CreateModelCopyJobCommandOutput} for command's `response` shape. + * @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request is denied because of missing access permissions.

+ * + * @throws {@link InternalServerException} (server fault) + *

An internal server error occurred. Retry your request.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

+ * + * @throws {@link TooManyTagsException} (client fault) + *

The request contains more tags than can be associated with a resource (50 tags per resource). + * The maximum number of tags includes both existing tags and those included in your current request.

+ * + * @throws {@link BedrockServiceException} + *

Base exception class for all service exceptions from Bedrock service.

+ * + * @public + */ +export class CreateModelCopyJobCommand extends $Command + .classBuilder< + CreateModelCopyJobCommandInput, + CreateModelCopyJobCommandOutput, + BedrockClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: BedrockClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("AmazonBedrockControlPlaneService", "CreateModelCopyJob", {}) + .n("BedrockClient", "CreateModelCopyJobCommand") + .f(void 0, void 0) + .ser(se_CreateModelCopyJobCommand) + .de(de_CreateModelCopyJobCommand) + .build() {} diff --git a/clients/client-bedrock/src/commands/CreateModelCustomizationJobCommand.ts b/clients/client-bedrock/src/commands/CreateModelCustomizationJobCommand.ts index c6c3cd9125c9..02d69bc9271e 100644 --- a/clients/client-bedrock/src/commands/CreateModelCustomizationJobCommand.ts +++ b/clients/client-bedrock/src/commands/CreateModelCustomizationJobCommand.ts @@ -39,9 +39,9 @@ export interface CreateModelCustomizationJobCommandOutput *

*

For information on the format of training and validation data, see Prepare the datasets.

*

- * Model-customization jobs are asynchronous and the completion time depends on the base model and the training/validation data size. - * To monitor a job, use the GetModelCustomizationJob operation to retrieve the job status.

- *

For more information, see Custom models in the Amazon Bedrock User Guide.

+ * Model-customization jobs are asynchronous and the completion time depends on the base model and the training/validation data size. + * To monitor a job, use the GetModelCustomizationJob operation to retrieve the job status.

+ *

For more information, see Custom models in the Amazon Bedrock User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-bedrock/src/commands/CreateProvisionedModelThroughputCommand.ts b/clients/client-bedrock/src/commands/CreateProvisionedModelThroughputCommand.ts index 4071e1902ef9..4156ac993cf6 100644 --- a/clients/client-bedrock/src/commands/CreateProvisionedModelThroughputCommand.ts +++ b/clients/client-bedrock/src/commands/CreateProvisionedModelThroughputCommand.ts @@ -33,7 +33,7 @@ export interface CreateProvisionedModelThroughputCommandOutput __MetadataBearer {} /** - *

Creates dedicated throughput for a base or custom model with the model units and for the duration that you specify. For pricing details, see Amazon Bedrock Pricing. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

+ *

Creates dedicated throughput for a base or custom model with the model units and for the duration that you specify. For pricing details, see Amazon Bedrock Pricing. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-bedrock/src/commands/DeleteCustomModelCommand.ts b/clients/client-bedrock/src/commands/DeleteCustomModelCommand.ts index 8ce3f0b52fcd..23fc13143024 100644 --- a/clients/client-bedrock/src/commands/DeleteCustomModelCommand.ts +++ b/clients/client-bedrock/src/commands/DeleteCustomModelCommand.ts @@ -28,7 +28,7 @@ export interface DeleteCustomModelCommandInput extends DeleteCustomModelRequest export interface DeleteCustomModelCommandOutput extends DeleteCustomModelResponse, __MetadataBearer {} /** - *

Deletes a custom model that you created earlier. For more information, see Custom models in the Amazon Bedrock User Guide.

+ *

Deletes a custom model that you created earlier. For more information, see Custom models in the Amazon Bedrock User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-bedrock/src/commands/DeleteProvisionedModelThroughputCommand.ts b/clients/client-bedrock/src/commands/DeleteProvisionedModelThroughputCommand.ts index d701f3a13df6..fc8a002d6f3e 100644 --- a/clients/client-bedrock/src/commands/DeleteProvisionedModelThroughputCommand.ts +++ b/clients/client-bedrock/src/commands/DeleteProvisionedModelThroughputCommand.ts @@ -33,7 +33,7 @@ export interface DeleteProvisionedModelThroughputCommandOutput __MetadataBearer {} /** - *

Deletes a Provisioned Throughput. You can't delete a Provisioned Throughput before the commitment term is over. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

+ *

Deletes a Provisioned Throughput. You can't delete a Provisioned Throughput before the commitment term is over. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-bedrock/src/commands/GetCustomModelCommand.ts b/clients/client-bedrock/src/commands/GetCustomModelCommand.ts index 948e242528d9..38318eecdf14 100644 --- a/clients/client-bedrock/src/commands/GetCustomModelCommand.ts +++ b/clients/client-bedrock/src/commands/GetCustomModelCommand.ts @@ -28,7 +28,7 @@ export interface GetCustomModelCommandInput extends GetCustomModelRequest {} export interface GetCustomModelCommandOutput extends GetCustomModelResponse, __MetadataBearer {} /** - *

Get the properties associated with a Amazon Bedrock custom model that you have created.For more information, see Custom models in the Amazon Bedrock User Guide.

+ *

Get the properties associated with a Amazon Bedrock custom model that you have created.For more information, see Custom models in the Amazon Bedrock User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-bedrock/src/commands/GetEvaluationJobCommand.ts b/clients/client-bedrock/src/commands/GetEvaluationJobCommand.ts index 43763652db6d..6f4b39676df0 100644 --- a/clients/client-bedrock/src/commands/GetEvaluationJobCommand.ts +++ b/clients/client-bedrock/src/commands/GetEvaluationJobCommand.ts @@ -34,7 +34,7 @@ export interface GetEvaluationJobCommandOutput extends GetEvaluationJobResponse, /** *

Retrieves the properties associated with a model evaluation job, including the - * status of the job. For more information, see Model evaluations.

+ * status of the job. For more information, see Model evaluation.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-bedrock/src/commands/GetModelCopyJobCommand.ts b/clients/client-bedrock/src/commands/GetModelCopyJobCommand.ts new file mode 100644 index 000000000000..3c420be83974 --- /dev/null +++ b/clients/client-bedrock/src/commands/GetModelCopyJobCommand.ts @@ -0,0 +1,112 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient"; +import { commonParams } from "../endpoint/EndpointParameters"; +import { GetModelCopyJobRequest, GetModelCopyJobResponse } from "../models/models_0"; +import { de_GetModelCopyJobCommand, se_GetModelCopyJobCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link GetModelCopyJobCommand}. + */ +export interface GetModelCopyJobCommandInput extends GetModelCopyJobRequest {} +/** + * @public + * + * The output of {@link GetModelCopyJobCommand}. + */ +export interface GetModelCopyJobCommandOutput extends GetModelCopyJobResponse, __MetadataBearer {} + +/** + *

Retrieves information about a model copy job. For more information, see Copy models to be used in other regions in the Amazon Bedrock User Guide.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { BedrockClient, GetModelCopyJobCommand } from "@aws-sdk/client-bedrock"; // ES Modules import + * // const { BedrockClient, GetModelCopyJobCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import + * const client = new BedrockClient(config); + * const input = { // GetModelCopyJobRequest + * jobArn: "STRING_VALUE", // required + * }; + * const command = new GetModelCopyJobCommand(input); + * const response = await client.send(command); + * // { // GetModelCopyJobResponse + * // jobArn: "STRING_VALUE", // required + * // status: "InProgress" || "Completed" || "Failed", // required + * // creationTime: new Date("TIMESTAMP"), // required + * // targetModelArn: "STRING_VALUE", // required + * // targetModelName: "STRING_VALUE", + * // sourceAccountId: "STRING_VALUE", // required + * // sourceModelArn: "STRING_VALUE", // required + * // targetModelKmsKeyArn: "STRING_VALUE", + * // targetModelTags: [ // TagList + * // { // Tag + * // key: "STRING_VALUE", // required + * // value: "STRING_VALUE", // required + * // }, + * // ], + * // failureMessage: "STRING_VALUE", + * // sourceModelName: "STRING_VALUE", + * // }; + * + * ``` + * + * @param GetModelCopyJobCommandInput - {@link GetModelCopyJobCommandInput} + * @returns {@link GetModelCopyJobCommandOutput} + * @see {@link GetModelCopyJobCommandInput} for command's `input` shape. + * @see {@link GetModelCopyJobCommandOutput} for command's `response` shape. + * @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request is denied because of missing access permissions.

+ * + * @throws {@link InternalServerException} (server fault) + *

An internal server error occurred. Retry your request.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

+ * + * @throws {@link ThrottlingException} (client fault) + *

The number of requests exceeds the limit. Resubmit your request later.

+ * + * @throws {@link ValidationException} (client fault) + *

Input validation failed. Check your request parameters and retry the request.

+ * + * @throws {@link BedrockServiceException} + *

Base exception class for all service exceptions from Bedrock service.

+ * + * @public + */ +export class GetModelCopyJobCommand extends $Command + .classBuilder< + GetModelCopyJobCommandInput, + GetModelCopyJobCommandOutput, + BedrockClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: BedrockClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("AmazonBedrockControlPlaneService", "GetModelCopyJob", {}) + .n("BedrockClient", "GetModelCopyJobCommand") + .f(void 0, void 0) + .ser(se_GetModelCopyJobCommand) + .de(de_GetModelCopyJobCommand) + .build() {} diff --git a/clients/client-bedrock/src/commands/GetModelCustomizationJobCommand.ts b/clients/client-bedrock/src/commands/GetModelCustomizationJobCommand.ts index b2c99640e29e..c684ea36cf42 100644 --- a/clients/client-bedrock/src/commands/GetModelCustomizationJobCommand.ts +++ b/clients/client-bedrock/src/commands/GetModelCustomizationJobCommand.ts @@ -29,7 +29,7 @@ export interface GetModelCustomizationJobCommandOutput extends GetModelCustomiza /** *

Retrieves the properties associated with a model-customization job, including the status of the job. - * For more information, see Custom models in the Amazon Bedrock User Guide.

+ * For more information, see Custom models in the Amazon Bedrock User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-bedrock/src/commands/GetProvisionedModelThroughputCommand.ts b/clients/client-bedrock/src/commands/GetProvisionedModelThroughputCommand.ts index df33c3d0a092..ea4e70a1ef98 100644 --- a/clients/client-bedrock/src/commands/GetProvisionedModelThroughputCommand.ts +++ b/clients/client-bedrock/src/commands/GetProvisionedModelThroughputCommand.ts @@ -33,7 +33,7 @@ export interface GetProvisionedModelThroughputCommandOutput __MetadataBearer {} /** - *

Returns details for a Provisioned Throughput. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

+ *

Returns details for a Provisioned Throughput. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-bedrock/src/commands/ListCustomModelsCommand.ts b/clients/client-bedrock/src/commands/ListCustomModelsCommand.ts index 0f1587370564..5a13ba9143ad 100644 --- a/clients/client-bedrock/src/commands/ListCustomModelsCommand.ts +++ b/clients/client-bedrock/src/commands/ListCustomModelsCommand.ts @@ -29,7 +29,7 @@ export interface ListCustomModelsCommandOutput extends ListCustomModelsResponse, /** *

Returns a list of the custom models that you have created with the CreateModelCustomizationJob operation.

- *

For more information, see Custom models in the Amazon Bedrock User Guide.

+ *

For more information, see Custom models in the Amazon Bedrock User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript @@ -46,6 +46,7 @@ export interface ListCustomModelsCommandOutput extends ListCustomModelsResponse, * nextToken: "STRING_VALUE", * sortBy: "CreationTime", * sortOrder: "Ascending" || "Descending", + * isOwned: true || false, * }; * const command = new ListCustomModelsCommand(input); * const response = await client.send(command); @@ -59,6 +60,7 @@ export interface ListCustomModelsCommandOutput extends ListCustomModelsResponse, * // baseModelArn: "STRING_VALUE", // required * // baseModelName: "STRING_VALUE", // required * // customizationType: "FINE_TUNING" || "CONTINUED_PRE_TRAINING", + * // ownerAccountId: "STRING_VALUE", * // }, * // ], * // }; diff --git a/clients/client-bedrock/src/commands/ListFoundationModelsCommand.ts b/clients/client-bedrock/src/commands/ListFoundationModelsCommand.ts index df6a294bfb7f..f570e3aebd00 100644 --- a/clients/client-bedrock/src/commands/ListFoundationModelsCommand.ts +++ b/clients/client-bedrock/src/commands/ListFoundationModelsCommand.ts @@ -28,7 +28,7 @@ export interface ListFoundationModelsCommandInput extends ListFoundationModelsRe export interface ListFoundationModelsCommandOutput extends ListFoundationModelsResponse, __MetadataBearer {} /** - *

Lists Amazon Bedrock foundation models that you can use. You can filter the results with the request parameters. For more information, see Foundation models in the Amazon Bedrock User Guide.

+ *

Lists Amazon Bedrock foundation models that you can use. You can filter the results with the request parameters. For more information, see Foundation models in the Amazon Bedrock User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-bedrock/src/commands/ListModelCopyJobsCommand.ts b/clients/client-bedrock/src/commands/ListModelCopyJobsCommand.ts new file mode 100644 index 000000000000..5340a537d3ee --- /dev/null +++ b/clients/client-bedrock/src/commands/ListModelCopyJobsCommand.ts @@ -0,0 +1,127 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient"; +import { commonParams } from "../endpoint/EndpointParameters"; +import { ListModelCopyJobsRequest, ListModelCopyJobsResponse } from "../models/models_0"; +import { de_ListModelCopyJobsCommand, se_ListModelCopyJobsCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link ListModelCopyJobsCommand}. + */ +export interface ListModelCopyJobsCommandInput extends ListModelCopyJobsRequest {} +/** + * @public + * + * The output of {@link ListModelCopyJobsCommand}. + */ +export interface ListModelCopyJobsCommandOutput extends ListModelCopyJobsResponse, __MetadataBearer {} + +/** + *

Returns a list of model copy jobs that you have submitted. You can filter the jobs to return based on + * one or more criteria. For more information, see Copy models to be used in other regions in the Amazon Bedrock User Guide.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { BedrockClient, ListModelCopyJobsCommand } from "@aws-sdk/client-bedrock"; // ES Modules import + * // const { BedrockClient, ListModelCopyJobsCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import + * const client = new BedrockClient(config); + * const input = { // ListModelCopyJobsRequest + * creationTimeAfter: new Date("TIMESTAMP"), + * creationTimeBefore: new Date("TIMESTAMP"), + * statusEquals: "InProgress" || "Completed" || "Failed", + * sourceAccountEquals: "STRING_VALUE", + * sourceModelArnEquals: "STRING_VALUE", + * targetModelNameContains: "STRING_VALUE", + * maxResults: Number("int"), + * nextToken: "STRING_VALUE", + * sortBy: "CreationTime", + * sortOrder: "Ascending" || "Descending", + * }; + * const command = new ListModelCopyJobsCommand(input); + * const response = await client.send(command); + * // { // ListModelCopyJobsResponse + * // nextToken: "STRING_VALUE", + * // modelCopyJobSummaries: [ // ModelCopyJobSummaries + * // { // ModelCopyJobSummary + * // jobArn: "STRING_VALUE", // required + * // status: "InProgress" || "Completed" || "Failed", // required + * // creationTime: new Date("TIMESTAMP"), // required + * // targetModelArn: "STRING_VALUE", // required + * // targetModelName: "STRING_VALUE", + * // sourceAccountId: "STRING_VALUE", // required + * // sourceModelArn: "STRING_VALUE", // required + * // targetModelKmsKeyArn: "STRING_VALUE", + * // targetModelTags: [ // TagList + * // { // Tag + * // key: "STRING_VALUE", // required + * // value: "STRING_VALUE", // required + * // }, + * // ], + * // failureMessage: "STRING_VALUE", + * // sourceModelName: "STRING_VALUE", + * // }, + * // ], + * // }; + * + * ``` + * + * @param ListModelCopyJobsCommandInput - {@link ListModelCopyJobsCommandInput} + * @returns {@link ListModelCopyJobsCommandOutput} + * @see {@link ListModelCopyJobsCommandInput} for command's `input` shape. + * @see {@link ListModelCopyJobsCommandOutput} for command's `response` shape. + * @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request is denied because of missing access permissions.

+ * + * @throws {@link InternalServerException} (server fault) + *

An internal server error occurred. Retry your request.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

+ * + * @throws {@link ThrottlingException} (client fault) + *

The number of requests exceeds the limit. Resubmit your request later.

+ * + * @throws {@link ValidationException} (client fault) + *

Input validation failed. Check your request parameters and retry the request.

+ * + * @throws {@link BedrockServiceException} + *

Base exception class for all service exceptions from Bedrock service.

+ * + * @public + */ +export class ListModelCopyJobsCommand extends $Command + .classBuilder< + ListModelCopyJobsCommandInput, + ListModelCopyJobsCommandOutput, + BedrockClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: BedrockClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("AmazonBedrockControlPlaneService", "ListModelCopyJobs", {}) + .n("BedrockClient", "ListModelCopyJobsCommand") + .f(void 0, void 0) + .ser(se_ListModelCopyJobsCommand) + .de(de_ListModelCopyJobsCommand) + .build() {} diff --git a/clients/client-bedrock/src/commands/ListModelCustomizationJobsCommand.ts b/clients/client-bedrock/src/commands/ListModelCustomizationJobsCommand.ts index 0ac0d113678d..41204264c662 100644 --- a/clients/client-bedrock/src/commands/ListModelCustomizationJobsCommand.ts +++ b/clients/client-bedrock/src/commands/ListModelCustomizationJobsCommand.ts @@ -29,8 +29,8 @@ export interface ListModelCustomizationJobsCommandOutput extends ListModelCustom /** *

Returns a list of model customization jobs that you have submitted. You can filter the jobs to return based on - * one or more criteria.

- *

For more information, see Custom models in the Amazon Bedrock User Guide.

+ * one or more criteria.

+ *

For more information, see Custom models in the Amazon Bedrock User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-bedrock/src/commands/ListProvisionedModelThroughputsCommand.ts b/clients/client-bedrock/src/commands/ListProvisionedModelThroughputsCommand.ts index d7fe89866afc..3eb2b5bf23e2 100644 --- a/clients/client-bedrock/src/commands/ListProvisionedModelThroughputsCommand.ts +++ b/clients/client-bedrock/src/commands/ListProvisionedModelThroughputsCommand.ts @@ -33,7 +33,7 @@ export interface ListProvisionedModelThroughputsCommandOutput __MetadataBearer {} /** - *

Lists the Provisioned Throughputs in the account. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

+ *

Lists the Provisioned Throughputs in the account. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-bedrock/src/commands/ListTagsForResourceCommand.ts b/clients/client-bedrock/src/commands/ListTagsForResourceCommand.ts index 8b30b3549fb2..76ce7d16c6eb 100644 --- a/clients/client-bedrock/src/commands/ListTagsForResourceCommand.ts +++ b/clients/client-bedrock/src/commands/ListTagsForResourceCommand.ts @@ -29,7 +29,7 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes /** *

List the tags associated with the specified resource.

- *

For more information, see Tagging resources in the Amazon Bedrock User Guide.

+ *

For more information, see Tagging resources in the Amazon Bedrock User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-bedrock/src/commands/StopModelCustomizationJobCommand.ts b/clients/client-bedrock/src/commands/StopModelCustomizationJobCommand.ts index ab876ca4edad..ffeddd7b3a3f 100644 --- a/clients/client-bedrock/src/commands/StopModelCustomizationJobCommand.ts +++ b/clients/client-bedrock/src/commands/StopModelCustomizationJobCommand.ts @@ -28,7 +28,7 @@ export interface StopModelCustomizationJobCommandInput extends StopModelCustomiz export interface StopModelCustomizationJobCommandOutput extends StopModelCustomizationJobResponse, __MetadataBearer {} /** - *

Stops an active model customization job. For more information, see Custom models in the Amazon Bedrock User Guide.

+ *

Stops an active model customization job. For more information, see Custom models in the Amazon Bedrock User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-bedrock/src/commands/TagResourceCommand.ts b/clients/client-bedrock/src/commands/TagResourceCommand.ts index 333f062b4b1e..95b9c2fde09b 100644 --- a/clients/client-bedrock/src/commands/TagResourceCommand.ts +++ b/clients/client-bedrock/src/commands/TagResourceCommand.ts @@ -28,7 +28,7 @@ export interface TagResourceCommandInput extends TagResourceRequest {} export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {} /** - *

Associate tags with a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.

+ *

Associate tags with a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-bedrock/src/commands/UntagResourceCommand.ts b/clients/client-bedrock/src/commands/UntagResourceCommand.ts index 2e0f4749113e..aaf0249269c2 100644 --- a/clients/client-bedrock/src/commands/UntagResourceCommand.ts +++ b/clients/client-bedrock/src/commands/UntagResourceCommand.ts @@ -28,7 +28,7 @@ export interface UntagResourceCommandInput extends UntagResourceRequest {} export interface UntagResourceCommandOutput extends UntagResourceResponse, __MetadataBearer {} /** - *

Remove one or more tags from a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.

+ *

Remove one or more tags from a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-bedrock/src/commands/UpdateProvisionedModelThroughputCommand.ts b/clients/client-bedrock/src/commands/UpdateProvisionedModelThroughputCommand.ts index d0805327d50a..d457f969e31a 100644 --- a/clients/client-bedrock/src/commands/UpdateProvisionedModelThroughputCommand.ts +++ b/clients/client-bedrock/src/commands/UpdateProvisionedModelThroughputCommand.ts @@ -33,7 +33,7 @@ export interface UpdateProvisionedModelThroughputCommandOutput __MetadataBearer {} /** - *

Updates the name or associated model for a Provisioned Throughput. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

+ *

Updates the name or associated model for a Provisioned Throughput. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-bedrock/src/commands/index.ts b/clients/client-bedrock/src/commands/index.ts index 66df5798ce59..db97494a8a5a 100644 --- a/clients/client-bedrock/src/commands/index.ts +++ b/clients/client-bedrock/src/commands/index.ts @@ -2,6 +2,7 @@ export * from "./CreateEvaluationJobCommand"; export * from "./CreateGuardrailCommand"; export * from "./CreateGuardrailVersionCommand"; +export * from "./CreateModelCopyJobCommand"; export * from "./CreateModelCustomizationJobCommand"; export * from "./CreateProvisionedModelThroughputCommand"; export * from "./DeleteCustomModelCommand"; @@ -12,6 +13,7 @@ export * from "./GetCustomModelCommand"; export * from "./GetEvaluationJobCommand"; export * from "./GetFoundationModelCommand"; export * from "./GetGuardrailCommand"; +export * from "./GetModelCopyJobCommand"; export * from "./GetModelCustomizationJobCommand"; export * from "./GetModelInvocationLoggingConfigurationCommand"; export * from "./GetProvisionedModelThroughputCommand"; @@ -19,6 +21,7 @@ export * from "./ListCustomModelsCommand"; export * from "./ListEvaluationJobsCommand"; export * from "./ListFoundationModelsCommand"; export * from "./ListGuardrailsCommand"; +export * from "./ListModelCopyJobsCommand"; export * from "./ListModelCustomizationJobsCommand"; export * from "./ListProvisionedModelThroughputsCommand"; export * from "./ListTagsForResourceCommand"; diff --git a/clients/client-bedrock/src/models/models_0.ts b/clients/client-bedrock/src/models/models_0.ts index c2029bd2ffcb..fdfa0aedbea0 100644 --- a/clients/client-bedrock/src/models/models_0.ts +++ b/clients/client-bedrock/src/models/models_0.ts @@ -1908,7 +1908,7 @@ export interface GuardrailContextualGroundingPolicy { */ export interface GuardrailPiiEntity { /** - *

The type of PII entity. For example, Social Security Number.

+ *

The type of PII entity. For exampvle, Social Security Number.

* @public */ type: GuardrailPiiEntityType | undefined; @@ -2524,6 +2524,312 @@ export interface PutModelInvocationLoggingConfigurationRequest { */ export interface PutModelInvocationLoggingConfigurationResponse {} +/** + * @public + */ +export interface CreateModelCopyJobRequest { + /** + *

The Amazon Resource Name (ARN) of the model to be copied.

+ * @public + */ + sourceModelArn: string | undefined; + + /** + *

A name for the copied model.

+ * @public + */ + targetModelName: string | undefined; + + /** + *

The ARN of the KMS key that you use to encrypt the model copy.

+ * @public + */ + modelKmsKeyId?: string; + + /** + *

Tags to associate with the target model. For more information, see Tag resources in the Amazon Bedrock User Guide.

+ * @public + */ + targetModelTags?: Tag[]; + + /** + *

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 Ensuring idempotency.

+ * @public + */ + clientRequestToken?: string; +} + +/** + * @public + */ +export interface CreateModelCopyJobResponse { + /** + *

The Amazon Resource Name (ARN) of the model copy job.

+ * @public + */ + jobArn: string | undefined; +} + +/** + * @public + */ +export interface GetModelCopyJobRequest { + /** + *

The Amazon Resource Name (ARN) of the model copy job.

+ * @public + */ + jobArn: string | undefined; +} + +/** + * @public + * @enum + */ +export const ModelCopyJobStatus = { + COMPLETED: "Completed", + FAILED: "Failed", + IN_PROGRESS: "InProgress", +} as const; + +/** + * @public + */ +export type ModelCopyJobStatus = (typeof ModelCopyJobStatus)[keyof typeof ModelCopyJobStatus]; + +/** + * @public + */ +export interface GetModelCopyJobResponse { + /** + *

The Amazon Resource Name (ARN) of the model copy job.

+ * @public + */ + jobArn: string | undefined; + + /** + *

The status of the model copy job.

+ * @public + */ + status: ModelCopyJobStatus | undefined; + + /** + *

The time at which the model copy job was created.

+ * @public + */ + creationTime: Date | undefined; + + /** + *

The Amazon Resource Name (ARN) of the copied model.

+ * @public + */ + targetModelArn: string | undefined; + + /** + *

The name of the copied model.

+ * @public + */ + targetModelName?: string; + + /** + *

The unique identifier of the account that the model being copied originated from.

+ * @public + */ + sourceAccountId: string | undefined; + + /** + *

The Amazon Resource Name (ARN) of the original model being copied.

+ * @public + */ + sourceModelArn: string | undefined; + + /** + *

The Amazon Resource Name (ARN) of the KMS key encrypting the copied model.

+ * @public + */ + targetModelKmsKeyArn?: string; + + /** + *

The tags associated with the copied model.

+ * @public + */ + targetModelTags?: Tag[]; + + /** + *

An error message for why the model copy job failed.

+ * @public + */ + failureMessage?: string; + + /** + *

The name of the original model being copied.

+ * @public + */ + sourceModelName?: string; +} + +/** + * @public + */ +export interface ListModelCopyJobsRequest { + /** + *

Filters for model copy jobs created after the specified time.

+ * @public + */ + creationTimeAfter?: Date; + + /** + *

Filters for model copy jobs created before the specified time.

+ * @public + */ + creationTimeBefore?: Date; + + /** + *

Filters for model copy jobs whose status matches the value that you specify.

+ * @public + */ + statusEquals?: ModelCopyJobStatus; + + /** + *

Filters for model copy jobs in which the account that the source model belongs to is equal to the value that you specify.

+ * @public + */ + sourceAccountEquals?: string; + + /** + *

Filters for model copy jobs in which the Amazon Resource Name (ARN) of the source model to is equal to the value that you specify.

+ * @public + */ + sourceModelArnEquals?: string; + + /** + *

Filters for model copy jobs in which the name of the copied model contains the string that you specify.

+ * @public + */ + targetModelNameContains?: string; + + /** + *

The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the nextToken field when making another request to return the next batch of results.

+ * @public + */ + maxResults?: number; + + /** + *

If the total number of results is greater than the maxResults value provided in the request, enter the token returned in the nextToken field in the response in this field to return the next batch of results.

+ * @public + */ + nextToken?: string; + + /** + *

The field to sort by in the returned list of model copy jobs.

+ * @public + */ + sortBy?: SortJobsBy; + + /** + *

Specifies whether to sort the results in ascending or descending order.

+ * @public + */ + sortOrder?: SortOrder; +} + +/** + *

Contains details about each model copy job.

+ *

This data type is used in the following API operations:

+ * + * @public + */ +export interface ModelCopyJobSummary { + /** + *

The Amazon Resoource Name (ARN) of the model copy job.

+ * @public + */ + jobArn: string | undefined; + + /** + *

The status of the model copy job.

+ * @public + */ + status: ModelCopyJobStatus | undefined; + + /** + *

The time that the model copy job was created.

+ * @public + */ + creationTime: Date | undefined; + + /** + *

The Amazon Resource Name (ARN) of the copied model.

+ * @public + */ + targetModelArn: string | undefined; + + /** + *

The name of the copied model.

+ * @public + */ + targetModelName?: string; + + /** + *

The unique identifier of the account that the model being copied originated from.

+ * @public + */ + sourceAccountId: string | undefined; + + /** + *

The Amazon Resource Name (ARN) of the original model being copied.

+ * @public + */ + sourceModelArn: string | undefined; + + /** + *

The Amazon Resource Name (ARN) of the KMS key used to encrypt the copied model.

+ * @public + */ + targetModelKmsKeyArn?: string; + + /** + *

Tags associated with the copied model.

+ * @public + */ + targetModelTags?: Tag[]; + + /** + *

If a model fails to be copied, a message describing why the job failed is included here.

+ * @public + */ + failureMessage?: string; + + /** + *

The name of the original model being copied.

+ * @public + */ + sourceModelName?: string; +} + +/** + * @public + */ +export interface ListModelCopyJobsResponse { + /** + *

If the total number of results is greater than the maxResults value provided in the request, use this token when making another request in the nextToken field to return the next batch of results.

+ * @public + */ + nextToken?: string; + + /** + *

A list of information about each model copy job.

+ * @public + */ + modelCopyJobSummaries?: ModelCopyJobSummary[]; +} + /** * @public */ @@ -2932,13 +3238,13 @@ export interface ListCustomModelsRequest { foundationModelArnEquals?: string; /** - *

Maximum number of results to return in the response.

+ *

The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the nextToken field when making another request to return the next batch of results.

* @public */ maxResults?: number; /** - *

Continuation token from the previous response, for Amazon Bedrock to list the next set of results.

+ *

If the total number of results is greater than the maxResults value provided in the request, enter the token returned in the nextToken field in the response in this field to return the next batch of results.

* @public */ nextToken?: string; @@ -2954,6 +3260,12 @@ export interface ListCustomModelsRequest { * @public */ sortOrder?: SortOrder; + + /** + *

Return custom models depending on if the current account owns them (true) or if they were shared with the current account (false).

+ * @public + */ + isOwned?: boolean; } /** @@ -2996,6 +3308,12 @@ export interface CustomModelSummary { * @public */ customizationType?: CustomizationType; + + /** + *

The unique identifier of the account that owns the model.

+ * @public + */ + ownerAccountId?: string; } /** @@ -3003,7 +3321,7 @@ export interface CustomModelSummary { */ export interface ListCustomModelsResponse { /** - *

Continuation token for the next request to list the next set of results.

+ *

If the total number of results is greater than the maxResults value provided in the request, use this token when making another request in the nextToken field to return the next batch of results.

* @public */ nextToken?: string; @@ -3026,7 +3344,7 @@ export interface ListFoundationModelsRequest { byProvider?: string; /** - *

Return models that support the customization type that you specify. For more information, see Custom models in the Amazon Bedrock User Guide.

+ *

Return models that support the customization type that you specify. For more information, see Custom models in the Amazon Bedrock User Guide.

* @public */ byCustomizationType?: ModelCustomization; @@ -3038,7 +3356,7 @@ export interface ListFoundationModelsRequest { byOutputModality?: ModelModality; /** - *

Return models that support the inference type that you specify. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

+ *

Return models that support the inference type that you specify. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

* @public */ byInferenceType?: InferenceType; @@ -3148,7 +3466,7 @@ export interface CreateProvisionedModelThroughputRequest { /** *

Number of model units to allocate. A model unit delivers a specific throughput level for the specified model. The throughput level of a model unit specifies the total number of input and output tokens that it can process and generate within a span of one minute. By default, your account has no model units for purchasing Provisioned Throughputs with commitment. You must first visit the Amazon Web Services support center to request MUs.

- *

For model unit quotas, see Provisioned Throughput quotas in the Amazon Bedrock User Guide.

+ *

For model unit quotas, see Provisioned Throughput quotas in the Amazon Bedrock User Guide.

*

For more information about what an MU specifies, contact your Amazon Web Services account manager.

* @public */ @@ -3161,14 +3479,15 @@ export interface CreateProvisionedModelThroughputRequest { provisionedModelName: string | undefined; /** - *

The Amazon Resource Name (ARN) or name of the model to associate with this Provisioned Throughput. For a list of models for which you can purchase Provisioned Throughput, see Amazon Bedrock model IDs for purchasing Provisioned Throughput in the Amazon Bedrock User Guide.

+ *

The Amazon Resource Name (ARN) or name of the model to associate with this Provisioned Throughput. For a list of models for which you can purchase Provisioned Throughput, see Amazon Bedrock model IDs for purchasing Provisioned Throughput in the Amazon Bedrock User Guide.

* @public */ modelId: string | undefined; /** *

The commitment duration requested for the Provisioned Throughput. Billing occurs hourly and is discounted for longer commitment terms. To request a no-commit Provisioned Throughput, omit this field.

- *

Custom models support all levels of commitment. To see which base models support no commitment, see Supported regions and models for Provisioned Throughput in the Amazon Bedrock User Guide

+ *

Custom models support all levels of commitment. To see which base models support no commitment, see Supported regions and models for Provisioned Throughput in the Amazon Bedrock User Guide + *

* @public */ commitmentDuration?: CommitmentDuration; @@ -3703,7 +4022,7 @@ export interface CreateModelCustomizationJobRequest { /** *

VPC configuration (optional). Configuration parameters for the - * private Virtual Private Cloud (VPC) that contains the resources you are using for this job.

+ * private Virtual Private Cloud (VPC) that contains the resources you are using for this job.

* @public */ vpcConfig?: VpcConfig; @@ -3791,7 +4110,7 @@ export interface GetModelCustomizationJobResponse { /** *

The status of the job. A successful job transitions from in-progress to completed when the output model is ready to use. - * If the job failed, the failure message contains information about why the job failed.

+ * If the job failed, the failure message contains information about why the job failed.

* @public */ status?: ModelCustomizationJobStatus; @@ -3927,13 +4246,13 @@ export interface ListModelCustomizationJobsRequest { nameContains?: string; /** - *

Maximum number of results to return in the response.

+ *

The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the nextToken field when making another request to return the next batch of results.

* @public */ maxResults?: number; /** - *

Continuation token from the previous response, for Amazon Bedrock to list the next set of results.

+ *

If the total number of results is greater than the maxResults value provided in the request, enter the token returned in the nextToken field in the response in this field to return the next batch of results.

* @public */ nextToken?: string; @@ -4022,7 +4341,7 @@ export interface ModelCustomizationJobSummary { */ export interface ListModelCustomizationJobsResponse { /** - *

Page continuation token to use in the next request.

+ *

If the total number of results is greater than the maxResults value provided in the request, use this token when making another request in the nextToken field to return the next batch of results.

* @public */ nextToken?: string; diff --git a/clients/client-bedrock/src/pagination/ListModelCopyJobsPaginator.ts b/clients/client-bedrock/src/pagination/ListModelCopyJobsPaginator.ts new file mode 100644 index 000000000000..d3dc55b2233d --- /dev/null +++ b/clients/client-bedrock/src/pagination/ListModelCopyJobsPaginator.ts @@ -0,0 +1,24 @@ +// smithy-typescript generated code +import { createPaginator } from "@smithy/core"; +import { Paginator } from "@smithy/types"; + +import { BedrockClient } from "../BedrockClient"; +import { + ListModelCopyJobsCommand, + ListModelCopyJobsCommandInput, + ListModelCopyJobsCommandOutput, +} from "../commands/ListModelCopyJobsCommand"; +import { BedrockPaginationConfiguration } from "./Interfaces"; + +/** + * @public + */ +export const paginateListModelCopyJobs: ( + config: BedrockPaginationConfiguration, + input: ListModelCopyJobsCommandInput, + ...rest: any[] +) => Paginator = createPaginator< + BedrockPaginationConfiguration, + ListModelCopyJobsCommandInput, + ListModelCopyJobsCommandOutput +>(BedrockClient, ListModelCopyJobsCommand, "nextToken", "nextToken", "maxResults"); diff --git a/clients/client-bedrock/src/pagination/index.ts b/clients/client-bedrock/src/pagination/index.ts index 832cda3c353e..c366466f08cf 100644 --- a/clients/client-bedrock/src/pagination/index.ts +++ b/clients/client-bedrock/src/pagination/index.ts @@ -3,5 +3,6 @@ export * from "./Interfaces"; export * from "./ListCustomModelsPaginator"; export * from "./ListEvaluationJobsPaginator"; export * from "./ListGuardrailsPaginator"; +export * from "./ListModelCopyJobsPaginator"; export * from "./ListModelCustomizationJobsPaginator"; export * from "./ListProvisionedModelThroughputsPaginator"; diff --git a/clients/client-bedrock/src/protocols/Aws_restJson1.ts b/clients/client-bedrock/src/protocols/Aws_restJson1.ts index 5263e88a6096..2eb43e9d0193 100644 --- a/clients/client-bedrock/src/protocols/Aws_restJson1.ts +++ b/clients/client-bedrock/src/protocols/Aws_restJson1.ts @@ -42,6 +42,7 @@ import { CreateGuardrailVersionCommandInput, CreateGuardrailVersionCommandOutput, } from "../commands/CreateGuardrailVersionCommand"; +import { CreateModelCopyJobCommandInput, CreateModelCopyJobCommandOutput } from "../commands/CreateModelCopyJobCommand"; import { CreateModelCustomizationJobCommandInput, CreateModelCustomizationJobCommandOutput, @@ -64,6 +65,7 @@ import { GetCustomModelCommandInput, GetCustomModelCommandOutput } from "../comm import { GetEvaluationJobCommandInput, GetEvaluationJobCommandOutput } from "../commands/GetEvaluationJobCommand"; import { GetFoundationModelCommandInput, GetFoundationModelCommandOutput } from "../commands/GetFoundationModelCommand"; import { GetGuardrailCommandInput, GetGuardrailCommandOutput } from "../commands/GetGuardrailCommand"; +import { GetModelCopyJobCommandInput, GetModelCopyJobCommandOutput } from "../commands/GetModelCopyJobCommand"; import { GetModelCustomizationJobCommandInput, GetModelCustomizationJobCommandOutput, @@ -83,6 +85,7 @@ import { ListFoundationModelsCommandOutput, } from "../commands/ListFoundationModelsCommand"; import { ListGuardrailsCommandInput, ListGuardrailsCommandOutput } from "../commands/ListGuardrailsCommand"; +import { ListModelCopyJobsCommandInput, ListModelCopyJobsCommandOutput } from "../commands/ListModelCopyJobsCommand"; import { ListModelCustomizationJobsCommandInput, ListModelCustomizationJobsCommandOutput, @@ -147,6 +150,7 @@ import { HumanWorkflowConfig, InternalServerException, LoggingConfig, + ModelCopyJobSummary, ModelCustomizationJobSummary, OutputDataConfig, ProvisionedModelSummary, @@ -252,6 +256,32 @@ export const se_CreateGuardrailVersionCommand = async ( return b.build(); }; +/** + * serializeAws_restJson1CreateModelCopyJobCommand + */ +export const se_CreateModelCopyJobCommand = async ( + input: CreateModelCopyJobCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = { + "content-type": "application/json", + }; + b.bp("/model-copy-jobs"); + let body: any; + body = JSON.stringify( + take(input, { + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], + modelKmsKeyId: [], + sourceModelArn: [], + targetModelName: [], + targetModelTags: (_) => _json(_), + }) + ); + b.m("POST").h(headers).b(body); + return b.build(); +}; + /** * serializeAws_restJson1CreateModelCustomizationJobCommand */ @@ -447,6 +477,22 @@ export const se_GetGuardrailCommand = async ( return b.build(); }; +/** + * serializeAws_restJson1GetModelCopyJobCommand + */ +export const se_GetModelCopyJobCommand = async ( + input: GetModelCopyJobCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = {}; + b.bp("/model-copy-jobs/{jobArn}"); + b.p("jobArn", () => input.jobArn!, "{jobArn}", false); + let body: any; + b.m("GET").h(headers).b(body); + return b.build(); +}; + /** * serializeAws_restJson1GetModelCustomizationJobCommand */ @@ -514,6 +560,7 @@ export const se_ListCustomModelsCommand = async ( [_nT]: [, input[_nT]!], [_sB]: [, input[_sB]!], [_sO]: [, input[_sO]!], + [_iO]: [() => input.isOwned !== void 0, () => input[_iO]!.toString()], }); let body: any; b.m("GET").h(headers).q(query).b(body); @@ -586,6 +633,33 @@ export const se_ListGuardrailsCommand = async ( return b.build(); }; +/** + * serializeAws_restJson1ListModelCopyJobsCommand + */ +export const se_ListModelCopyJobsCommand = async ( + input: ListModelCopyJobsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = {}; + b.bp("/model-copy-jobs"); + const query: any = map({ + [_cTA]: [() => input.creationTimeAfter !== void 0, () => __serializeDateTime(input[_cTA]!).toString()], + [_cTB]: [() => input.creationTimeBefore !== void 0, () => __serializeDateTime(input[_cTB]!).toString()], + [_sE]: [, input[_sE]!], + [_sAE]: [, input[_sAE]!], + [_sMAE]: [, input[_sMAE]!], + [_oMNC]: [, input[_tMNC]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_sB]: [, input[_sB]!], + [_sO]: [, input[_sO]!], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + /** * serializeAws_restJson1ListModelCustomizationJobsCommand */ @@ -882,6 +956,27 @@ export const de_CreateGuardrailVersionCommand = async ( return contents; }; +/** + * deserializeAws_restJson1CreateModelCopyJobCommand + */ +export const de_CreateModelCopyJobCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 201 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + jobArn: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + /** * deserializeAws_restJson1CreateModelCustomizationJobCommand */ @@ -1118,6 +1213,37 @@ export const de_GetGuardrailCommand = async ( return contents; }; +/** + * deserializeAws_restJson1GetModelCopyJobCommand + */ +export const de_GetModelCopyJobCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), + failureMessage: __expectString, + jobArn: __expectString, + sourceAccountId: __expectString, + sourceModelArn: __expectString, + sourceModelName: __expectString, + status: __expectString, + targetModelArn: __expectString, + targetModelKmsKeyArn: __expectString, + targetModelName: __expectString, + targetModelTags: _json, + }); + Object.assign(contents, doc); + return contents; +}; + /** * deserializeAws_restJson1GetModelCustomizationJobCommand */ @@ -1300,6 +1426,28 @@ export const de_ListGuardrailsCommand = async ( return contents; }; +/** + * deserializeAws_restJson1ListModelCopyJobsCommand + */ +export const de_ListModelCopyJobsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + modelCopyJobSummaries: (_) => de_ModelCopyJobSummaries(_, context), + nextToken: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + /** * deserializeAws_restJson1ListModelCustomizationJobsCommand */ @@ -1838,6 +1986,7 @@ const de_CustomModelSummary = (output: any, context: __SerdeContext): CustomMode customizationType: __expectString, modelArn: __expectString, modelName: __expectString, + ownerAccountId: __expectString, }) as any; }; @@ -2034,6 +2183,37 @@ const de_GuardrailSummary = (output: any, context: __SerdeContext): GuardrailSum // de_LoggingConfig omitted. +/** + * deserializeAws_restJson1ModelCopyJobSummaries + */ +const de_ModelCopyJobSummaries = (output: any, context: __SerdeContext): ModelCopyJobSummary[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_ModelCopyJobSummary(entry, context); + }); + return retVal; +}; + +/** + * deserializeAws_restJson1ModelCopyJobSummary + */ +const de_ModelCopyJobSummary = (output: any, context: __SerdeContext): ModelCopyJobSummary => { + return take(output, { + creationTime: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), + failureMessage: __expectString, + jobArn: __expectString, + sourceAccountId: __expectString, + sourceModelArn: __expectString, + sourceModelName: __expectString, + status: __expectString, + targetModelArn: __expectString, + targetModelKmsKeyArn: __expectString, + targetModelName: __expectString, + targetModelTags: _json, + }) as any; +}; + // de_ModelCustomizationHyperParameters omitted. /** @@ -2183,10 +2363,15 @@ const _cTB = "creationTimeBefore"; const _fMAE = "foundationModelArnEquals"; const _gI = "guardrailIdentifier"; const _gV = "guardrailVersion"; +const _iO = "isOwned"; const _mAE = "modelArnEquals"; const _mR = "maxResults"; const _nC = "nameContains"; const _nT = "nextToken"; +const _oMNC = "outputModelNameContains"; +const _sAE = "sourceAccountEquals"; const _sB = "sortBy"; const _sE = "statusEquals"; +const _sMAE = "sourceModelArnEquals"; const _sO = "sortOrder"; +const _tMNC = "targetModelNameContains"; diff --git a/codegen/sdk-codegen/aws-models/bedrock.json b/codegen/sdk-codegen/aws-models/bedrock.json index aadc5ecfc6a8..f3e183ffd2df 100644 --- a/codegen/sdk-codegen/aws-models/bedrock.json +++ b/codegen/sdk-codegen/aws-models/bedrock.json @@ -14,6 +14,12 @@ "smithy.api#httpError": 403 } }, + "com.amazonaws.bedrock#AccountId": { + "type": "string", + "traits": { + "smithy.api#pattern": "^[0-9]{12}$" + } + }, "com.amazonaws.bedrock#AmazonBedrockControlPlaneService": { "type": "service", "version": "2023-04-20", @@ -27,6 +33,9 @@ { "target": "com.amazonaws.bedrock#LoggingResource" }, + { + "target": "com.amazonaws.bedrock#ModelCopyResource" + }, { "target": "com.amazonaws.bedrock#ModelResource" }, @@ -863,7 +872,7 @@ } ], "traits": { - "smithy.api#documentation": "

API operation for creating and managing Amazon Bedrock automatic model evaluation jobs and model evaluation jobs that use human workers. To learn more about the requirements for creating a model evaluation job see, Model evaluations.

", + "smithy.api#documentation": "

API operation for creating and managing Amazon Bedrock automatic model evaluation jobs and model evaluation jobs that use human workers. To learn more about the requirements for creating a model evaluation job see, Model evaluation.

", "smithy.api#http": { "code": 202, "method": "POST", @@ -1209,6 +1218,94 @@ "smithy.api#output": {} } }, + "com.amazonaws.bedrock#CreateModelCopyJob": { + "type": "operation", + "input": { + "target": "com.amazonaws.bedrock#CreateModelCopyJobRequest" + }, + "output": { + "target": "com.amazonaws.bedrock#CreateModelCopyJobResponse" + }, + "errors": [ + { + "target": "com.amazonaws.bedrock#AccessDeniedException" + }, + { + "target": "com.amazonaws.bedrock#InternalServerException" + }, + { + "target": "com.amazonaws.bedrock#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.bedrock#TooManyTagsException" + } + ], + "traits": { + "smithy.api#documentation": "

Copies a model to another region so that it can be used there. For more information, see Copy models to be used in other regions in the Amazon Bedrock User Guide.

", + "smithy.api#http": { + "code": 201, + "method": "POST", + "uri": "/model-copy-jobs" + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.bedrock#CreateModelCopyJobRequest": { + "type": "structure", + "members": { + "sourceModelArn": { + "target": "com.amazonaws.bedrock#ModelArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the model to be copied.

", + "smithy.api#required": {} + } + }, + "targetModelName": { + "target": "com.amazonaws.bedrock#CustomModelName", + "traits": { + "smithy.api#documentation": "

A name for the copied model.

", + "smithy.api#required": {} + } + }, + "modelKmsKeyId": { + "target": "com.amazonaws.bedrock#KmsKeyId", + "traits": { + "smithy.api#documentation": "

The ARN of the KMS key that you use to encrypt the model copy.

" + } + }, + "targetModelTags": { + "target": "com.amazonaws.bedrock#TagList", + "traits": { + "smithy.api#documentation": "

Tags to associate with the target model. For more information, see Tag resources in the Amazon Bedrock User Guide.

" + } + }, + "clientRequestToken": { + "target": "com.amazonaws.bedrock#IdempotencyToken", + "traits": { + "smithy.api#documentation": "

A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request,\n\t Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.

", + "smithy.api#idempotencyToken": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.bedrock#CreateModelCopyJobResponse": { + "type": "structure", + "members": { + "jobArn": { + "target": "com.amazonaws.bedrock#ModelCopyJobArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the model copy job.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.bedrock#CreateModelCustomizationJob": { "type": "operation", "input": { @@ -1244,7 +1341,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a fine-tuning job to customize a base model.

\n

You specify the base foundation model and the location of the training data.\n After the model-customization job completes successfully, your custom model resource will be ready to use. Amazon Bedrock returns validation loss metrics and output generations after the job completes.\n

\n

For information on the format of training and validation data, see Prepare the datasets.

\n

\n Model-customization jobs are asynchronous and the completion time depends on the base model and the training/validation data size.\n To monitor a job, use the GetModelCustomizationJob operation to retrieve the job status.

\n

For more information, see Custom models in the Amazon Bedrock User Guide.

", + "smithy.api#documentation": "

Creates a fine-tuning job to customize a base model.

\n

You specify the base foundation model and the location of the training data.\n After the model-customization job completes successfully, your custom model resource will be ready to use. Amazon Bedrock returns validation loss metrics and output generations after the job completes.\n

\n

For information on the format of training and validation data, see Prepare the datasets.

\n

\n Model-customization jobs are asynchronous and the completion time depends on the base model and the training/validation data size.\n To monitor a job, use the GetModelCustomizationJob operation to retrieve the job status.

\n

For more information, see Custom models in the Amazon Bedrock User Guide.

", "smithy.api#http": { "code": 201, "method": "POST", @@ -1345,7 +1442,7 @@ "vpcConfig": { "target": "com.amazonaws.bedrock#VpcConfig", "traits": { - "smithy.api#documentation": "

VPC configuration (optional). Configuration parameters for the\n private Virtual Private Cloud (VPC) that contains the resources you are using for this job.

" + "smithy.api#documentation": "

VPC configuration (optional). Configuration parameters for the\n private Virtual Private Cloud (VPC) that contains the resources you are using for this job.

" } } }, @@ -1400,7 +1497,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates dedicated throughput for a base or custom model with the model units and for the duration that you specify. For pricing details, see Amazon Bedrock Pricing. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

", + "smithy.api#documentation": "

Creates dedicated throughput for a base or custom model with the model units and for the duration that you specify. For pricing details, see Amazon Bedrock Pricing. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

", "smithy.api#http": { "code": 201, "method": "POST", @@ -1422,7 +1519,7 @@ "modelUnits": { "target": "com.amazonaws.bedrock#PositiveInteger", "traits": { - "smithy.api#documentation": "

Number of model units to allocate. A model unit delivers a specific throughput level for the specified model. The throughput level of a model unit specifies the total number of input and output tokens that it can process and generate within a span of one minute. By default, your account has no model units for purchasing Provisioned Throughputs with commitment. You must first visit the Amazon Web Services support center to request MUs.

\n

For model unit quotas, see Provisioned Throughput quotas in the Amazon Bedrock User Guide.

\n

For more information about what an MU specifies, contact your Amazon Web Services account manager.

", + "smithy.api#documentation": "

Number of model units to allocate. A model unit delivers a specific throughput level for the specified model. The throughput level of a model unit specifies the total number of input and output tokens that it can process and generate within a span of one minute. By default, your account has no model units for purchasing Provisioned Throughputs with commitment. You must first visit the Amazon Web Services support center to request MUs.

\n

For model unit quotas, see Provisioned Throughput quotas in the Amazon Bedrock User Guide.

\n

For more information about what an MU specifies, contact your Amazon Web Services account manager.

", "smithy.api#required": {} } }, @@ -1436,14 +1533,14 @@ "modelId": { "target": "com.amazonaws.bedrock#ModelIdentifier", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) or name of the model to associate with this Provisioned Throughput. For a list of models for which you can purchase Provisioned Throughput, see Amazon Bedrock model IDs for purchasing Provisioned Throughput in the Amazon Bedrock User Guide.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) or name of the model to associate with this Provisioned Throughput. For a list of models for which you can purchase Provisioned Throughput, see Amazon Bedrock model IDs for purchasing Provisioned Throughput in the Amazon Bedrock User Guide.

", "smithy.api#required": {} } }, "commitmentDuration": { "target": "com.amazonaws.bedrock#CommitmentDuration", "traits": { - "smithy.api#documentation": "

The commitment duration requested for the Provisioned Throughput. Billing occurs hourly and is discounted for longer commitment terms. To request a no-commit Provisioned Throughput, omit this field.

\n

Custom models support all levels of commitment. To see which base models support no commitment, see Supported regions and models for Provisioned Throughput in the Amazon Bedrock User Guide

" + "smithy.api#documentation": "

The commitment duration requested for the Provisioned Throughput. Billing occurs hourly and is discounted for longer commitment terms. To request a no-commit Provisioned Throughput, omit this field.

\n

Custom models support all levels of commitment. To see which base models support no commitment, see Supported regions and models for Provisioned Throughput in the Amazon Bedrock User Guide\n

" } }, "tags": { @@ -1489,7 +1586,7 @@ "min": 1, "max": 63 }, - "smithy.api#pattern": "^([0-9a-zA-Z][_-]?)+$" + "smithy.api#pattern": "^([0-9a-zA-Z][_-]?){1,63}$" } }, "com.amazonaws.bedrock#CustomModelSummary": { @@ -1535,6 +1632,12 @@ "traits": { "smithy.api#documentation": "

Specifies whether to carry out continued pre-training of a model or whether to fine-tune it. For more information, see Custom models.

" } + }, + "ownerAccountId": { + "target": "com.amazonaws.bedrock#AccountId", + "traits": { + "smithy.api#documentation": "

The unique identifier of the account that owns the model.

" + } } }, "traits": { @@ -1593,7 +1696,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes a custom model that you created earlier. For more information, see Custom models in the Amazon Bedrock User Guide.

", + "smithy.api#documentation": "

Deletes a custom model that you created earlier. For more information, see Custom models in the Amazon Bedrock User Guide.

", "smithy.api#http": { "code": 200, "method": "DELETE", @@ -1765,7 +1868,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes a Provisioned Throughput. You can't delete a Provisioned Throughput before the commitment term is over. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

", + "smithy.api#documentation": "

Deletes a Provisioned Throughput. You can't delete a Provisioned Throughput before the commitment term is over. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

", "smithy.api#http": { "code": 200, "method": "DELETE", @@ -2553,7 +2656,7 @@ } ], "traits": { - "smithy.api#documentation": "

Get the properties associated with a Amazon Bedrock custom model that you have created.For more information, see Custom models in the Amazon Bedrock User Guide.

", + "smithy.api#documentation": "

Get the properties associated with a Amazon Bedrock custom model that you have created.For more information, see Custom models in the Amazon Bedrock User Guide.

", "smithy.api#http": { "code": 200, "method": "GET", @@ -2703,7 +2806,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves the properties associated with a model evaluation job, including the\n status of the job. For more information, see Model evaluations.

", + "smithy.api#documentation": "

Retrieves the properties associated with a model evaluation job, including the\n status of the job. For more information, see Model evaluation.

", "smithy.api#http": { "code": 200, "method": "GET", @@ -3071,6 +3174,137 @@ "smithy.api#output": {} } }, + "com.amazonaws.bedrock#GetModelCopyJob": { + "type": "operation", + "input": { + "target": "com.amazonaws.bedrock#GetModelCopyJobRequest" + }, + "output": { + "target": "com.amazonaws.bedrock#GetModelCopyJobResponse" + }, + "errors": [ + { + "target": "com.amazonaws.bedrock#AccessDeniedException" + }, + { + "target": "com.amazonaws.bedrock#InternalServerException" + }, + { + "target": "com.amazonaws.bedrock#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.bedrock#ThrottlingException" + }, + { + "target": "com.amazonaws.bedrock#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Retrieves information about a model copy job. For more information, see Copy models to be used in other regions in the Amazon Bedrock User Guide.

", + "smithy.api#http": { + "code": 200, + "method": "GET", + "uri": "/model-copy-jobs/{jobArn}" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.bedrock#GetModelCopyJobRequest": { + "type": "structure", + "members": { + "jobArn": { + "target": "com.amazonaws.bedrock#ModelCopyJobArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the model copy job.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.bedrock#GetModelCopyJobResponse": { + "type": "structure", + "members": { + "jobArn": { + "target": "com.amazonaws.bedrock#ModelCopyJobArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the model copy job.

", + "smithy.api#required": {} + } + }, + "status": { + "target": "com.amazonaws.bedrock#ModelCopyJobStatus", + "traits": { + "smithy.api#documentation": "

The status of the model copy job.

", + "smithy.api#required": {} + } + }, + "creationTime": { + "target": "com.amazonaws.bedrock#Timestamp", + "traits": { + "smithy.api#documentation": "

The time at which the model copy job was created.

", + "smithy.api#required": {} + } + }, + "targetModelArn": { + "target": "com.amazonaws.bedrock#CustomModelArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the copied model.

", + "smithy.api#required": {} + } + }, + "targetModelName": { + "target": "com.amazonaws.bedrock#CustomModelName", + "traits": { + "smithy.api#documentation": "

The name of the copied model.

" + } + }, + "sourceAccountId": { + "target": "com.amazonaws.bedrock#AccountId", + "traits": { + "smithy.api#documentation": "

The unique identifier of the account that the model being copied originated from.

", + "smithy.api#required": {} + } + }, + "sourceModelArn": { + "target": "com.amazonaws.bedrock#ModelArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the original model being copied.

", + "smithy.api#required": {} + } + }, + "targetModelKmsKeyArn": { + "target": "com.amazonaws.bedrock#KmsKeyArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the KMS key encrypting the copied model.

" + } + }, + "targetModelTags": { + "target": "com.amazonaws.bedrock#TagList", + "traits": { + "smithy.api#documentation": "

The tags associated with the copied model.

" + } + }, + "failureMessage": { + "target": "com.amazonaws.bedrock#ErrorMessage", + "traits": { + "smithy.api#documentation": "

An error message for why the model copy job failed.

" + } + }, + "sourceModelName": { + "target": "com.amazonaws.bedrock#CustomModelName", + "traits": { + "smithy.api#documentation": "

The name of the original model being copied.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.bedrock#GetModelCustomizationJob": { "type": "operation", "input": { @@ -3097,7 +3331,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves the properties associated with a model-customization job, including the status of the job.\n For more information, see Custom models in the Amazon Bedrock User Guide.

", + "smithy.api#documentation": "

Retrieves the properties associated with a model-customization job, including the status of the job.\n For more information, see Custom models in the Amazon Bedrock User Guide.

", "smithy.api#http": { "code": 200, "method": "GET", @@ -3168,7 +3402,7 @@ "status": { "target": "com.amazonaws.bedrock#ModelCustomizationJobStatus", "traits": { - "smithy.api#documentation": "

The status of the job. A successful job transitions from in-progress to completed when the output model is ready to use.\n If the job failed, the failure message contains information about why the job failed.

" + "smithy.api#documentation": "

The status of the job. A successful job transitions from in-progress to completed when the output model is ready to use.\n If the job failed, the failure message contains information about why the job failed.

" } }, "failureMessage": { @@ -3342,7 +3576,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns details for a Provisioned Throughput. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

", + "smithy.api#documentation": "

Returns details for a Provisioned Throughput. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

", "smithy.api#http": { "code": 200, "method": "GET", @@ -3941,7 +4175,7 @@ "type": { "target": "com.amazonaws.bedrock#GuardrailPiiEntityType", "traits": { - "smithy.api#documentation": "

The type of PII entity. For example, Social Security Number.

", + "smithy.api#documentation": "

The type of PII entity. For exampvle, Social Security Number.

", "smithy.api#required": {} } }, @@ -4845,7 +5079,7 @@ } }, "traits": { - "smithy.api#documentation": "

In a model evaluation job that uses human workers you must\n define the name of the metric, and how you want that metric rated\n ratingMethod, and an optional description of the metric.

" + "smithy.api#documentation": "

In a model evaluation job that uses human workers you must \n define the name of the metric, and how you want that metric rated\n ratingMethod, and an optional description of the metric.

" } }, "com.amazonaws.bedrock#HumanEvaluationCustomMetrics": { @@ -4999,7 +5233,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns a list of the custom models that you have created with the CreateModelCustomizationJob operation.

\n

For more information, see Custom models in the Amazon Bedrock User Guide.

", + "smithy.api#documentation": "

Returns a list of the custom models that you have created with the CreateModelCustomizationJob operation.

\n

For more information, see Custom models in the Amazon Bedrock User Guide.

", "smithy.api#http": { "code": 200, "method": "GET", @@ -5055,14 +5289,14 @@ "maxResults": { "target": "com.amazonaws.bedrock#MaxResults", "traits": { - "smithy.api#documentation": "

Maximum number of results to return in the response.

", + "smithy.api#documentation": "

The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the nextToken field when making another request to return the next batch of results.

", "smithy.api#httpQuery": "maxResults" } }, "nextToken": { "target": "com.amazonaws.bedrock#PaginationToken", "traits": { - "smithy.api#documentation": "

Continuation token from the previous response, for Amazon Bedrock to list the next set of results.

", + "smithy.api#documentation": "

If the total number of results is greater than the maxResults value provided in the request, enter the token returned in the nextToken field in the response in this field to return the next batch of results.

", "smithy.api#httpQuery": "nextToken" } }, @@ -5079,6 +5313,13 @@ "smithy.api#documentation": "

The sort order of the results.

", "smithy.api#httpQuery": "sortOrder" } + }, + "isOwned": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Return custom models depending on if the current account owns them (true) or if they were shared with the current account (false).

", + "smithy.api#httpQuery": "isOwned" + } } }, "traits": { @@ -5091,7 +5332,7 @@ "nextToken": { "target": "com.amazonaws.bedrock#PaginationToken", "traits": { - "smithy.api#documentation": "

Continuation token for the next request to list the next set of results.

" + "smithy.api#documentation": "

If the total number of results is greater than the maxResults value provided in the request, use this token when making another request in the nextToken field to return the next batch of results.

" } }, "modelSummaries": { @@ -5250,7 +5491,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists Amazon Bedrock foundation models that you can use. You can filter the results with the request parameters. For more information, see Foundation models in the Amazon Bedrock User Guide.

", + "smithy.api#documentation": "

Lists Amazon Bedrock foundation models that you can use. You can filter the results with the request parameters. For more information, see Foundation models in the Amazon Bedrock User Guide.

", "smithy.api#http": { "code": 200, "method": "GET", @@ -5272,7 +5513,7 @@ "byCustomizationType": { "target": "com.amazonaws.bedrock#ModelCustomization", "traits": { - "smithy.api#documentation": "

Return models that support the customization type that you specify. For more information, see Custom models in the Amazon Bedrock User Guide.

", + "smithy.api#documentation": "

Return models that support the customization type that you specify. For more information, see Custom models in the Amazon Bedrock User Guide.

", "smithy.api#httpQuery": "byCustomizationType" } }, @@ -5286,7 +5527,7 @@ "byInferenceType": { "target": "com.amazonaws.bedrock#InferenceType", "traits": { - "smithy.api#documentation": "

Return models that support the inference type that you specify. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

", + "smithy.api#documentation": "

Return models that support the inference type that you specify. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

", "smithy.api#httpQuery": "byInferenceType" } } @@ -5400,6 +5641,145 @@ "smithy.api#output": {} } }, + "com.amazonaws.bedrock#ListModelCopyJobs": { + "type": "operation", + "input": { + "target": "com.amazonaws.bedrock#ListModelCopyJobsRequest" + }, + "output": { + "target": "com.amazonaws.bedrock#ListModelCopyJobsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.bedrock#AccessDeniedException" + }, + { + "target": "com.amazonaws.bedrock#InternalServerException" + }, + { + "target": "com.amazonaws.bedrock#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.bedrock#ThrottlingException" + }, + { + "target": "com.amazonaws.bedrock#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns a list of model copy jobs that you have submitted. You can filter the jobs to return based on\n one or more criteria. For more information, see Copy models to be used in other regions in the Amazon Bedrock User Guide.

", + "smithy.api#http": { + "code": 200, + "method": "GET", + "uri": "/model-copy-jobs" + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults", + "items": "modelCopyJobSummaries" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.bedrock#ListModelCopyJobsRequest": { + "type": "structure", + "members": { + "creationTimeAfter": { + "target": "com.amazonaws.bedrock#Timestamp", + "traits": { + "smithy.api#documentation": "

Filters for model copy jobs created after the specified time.

", + "smithy.api#httpQuery": "creationTimeAfter" + } + }, + "creationTimeBefore": { + "target": "com.amazonaws.bedrock#Timestamp", + "traits": { + "smithy.api#documentation": "

Filters for model copy jobs created before the specified time.

", + "smithy.api#httpQuery": "creationTimeBefore" + } + }, + "statusEquals": { + "target": "com.amazonaws.bedrock#ModelCopyJobStatus", + "traits": { + "smithy.api#documentation": "

Filters for model copy jobs whose status matches the value that you specify.

", + "smithy.api#httpQuery": "statusEquals" + } + }, + "sourceAccountEquals": { + "target": "com.amazonaws.bedrock#AccountId", + "traits": { + "smithy.api#documentation": "

Filters for model copy jobs in which the account that the source model belongs to is equal to the value that you specify.

", + "smithy.api#httpQuery": "sourceAccountEquals" + } + }, + "sourceModelArnEquals": { + "target": "com.amazonaws.bedrock#ModelArn", + "traits": { + "smithy.api#documentation": "

Filters for model copy jobs in which the Amazon Resource Name (ARN) of the source model to is equal to the value that you specify.

", + "smithy.api#httpQuery": "sourceModelArnEquals" + } + }, + "targetModelNameContains": { + "target": "com.amazonaws.bedrock#CustomModelName", + "traits": { + "smithy.api#documentation": "

Filters for model copy jobs in which the name of the copied model contains the string that you specify.

", + "smithy.api#httpQuery": "outputModelNameContains" + } + }, + "maxResults": { + "target": "com.amazonaws.bedrock#MaxResults", + "traits": { + "smithy.api#documentation": "

The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the nextToken field when making another request to return the next batch of results.

", + "smithy.api#httpQuery": "maxResults" + } + }, + "nextToken": { + "target": "com.amazonaws.bedrock#PaginationToken", + "traits": { + "smithy.api#documentation": "

If the total number of results is greater than the maxResults value provided in the request, enter the token returned in the nextToken field in the response in this field to return the next batch of results.

", + "smithy.api#httpQuery": "nextToken" + } + }, + "sortBy": { + "target": "com.amazonaws.bedrock#SortJobsBy", + "traits": { + "smithy.api#documentation": "

The field to sort by in the returned list of model copy jobs.

", + "smithy.api#httpQuery": "sortBy" + } + }, + "sortOrder": { + "target": "com.amazonaws.bedrock#SortOrder", + "traits": { + "smithy.api#documentation": "

Specifies whether to sort the results in ascending or descending order.

", + "smithy.api#httpQuery": "sortOrder" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.bedrock#ListModelCopyJobsResponse": { + "type": "structure", + "members": { + "nextToken": { + "target": "com.amazonaws.bedrock#PaginationToken", + "traits": { + "smithy.api#documentation": "

If the total number of results is greater than the maxResults value provided in the request, use this token when making another request in the nextToken field to return the next batch of results.

" + } + }, + "modelCopyJobSummaries": { + "target": "com.amazonaws.bedrock#ModelCopyJobSummaries", + "traits": { + "smithy.api#documentation": "

A list of information about each model copy job.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.bedrock#ListModelCustomizationJobs": { "type": "operation", "input": { @@ -5423,7 +5803,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns a list of model customization jobs that you have submitted. You can filter the jobs to return based on\n one or more criteria.

\n

For more information, see Custom models in the Amazon Bedrock User Guide.

", + "smithy.api#documentation": "

Returns a list of model customization jobs that you have submitted. You can filter the jobs to return based on\n one or more criteria.

\n

For more information, see Custom models in the Amazon Bedrock User Guide.

", "smithy.api#http": { "code": 200, "method": "GET", @@ -5472,14 +5852,14 @@ "maxResults": { "target": "com.amazonaws.bedrock#MaxResults", "traits": { - "smithy.api#documentation": "

Maximum number of results to return in the response.

", + "smithy.api#documentation": "

The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the nextToken field when making another request to return the next batch of results.

", "smithy.api#httpQuery": "maxResults" } }, "nextToken": { "target": "com.amazonaws.bedrock#PaginationToken", "traits": { - "smithy.api#documentation": "

Continuation token from the previous response, for Amazon Bedrock to list the next set of results.

", + "smithy.api#documentation": "

If the total number of results is greater than the maxResults value provided in the request, enter the token returned in the nextToken field in the response in this field to return the next batch of results.

", "smithy.api#httpQuery": "nextToken" } }, @@ -5508,7 +5888,7 @@ "nextToken": { "target": "com.amazonaws.bedrock#PaginationToken", "traits": { - "smithy.api#documentation": "

Page continuation token to use in the next request.

" + "smithy.api#documentation": "

If the total number of results is greater than the maxResults value provided in the request, use this token when making another request in the nextToken field to return the next batch of results.

" } }, "modelCustomizationJobSummaries": { @@ -5545,7 +5925,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists the Provisioned Throughputs in the account. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

", + "smithy.api#documentation": "

Lists the Provisioned Throughputs in the account. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

", "smithy.api#http": { "code": 200, "method": "GET", @@ -5677,7 +6057,7 @@ } ], "traits": { - "smithy.api#documentation": "

List the tags associated with the specified resource.

\n

For more information, see Tagging resources in the Amazon Bedrock User Guide.

", + "smithy.api#documentation": "

List the tags associated with the specified resource.

\n

For more information, see Tagging resources in the Amazon Bedrock User Guide.

", "smithy.api#http": { "code": 200, "method": "POST", @@ -5797,6 +6177,138 @@ "smithy.api#pattern": "^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}([a-z0-9-]{1,63}[.]){0,2}[a-z0-9-]{1,63}([:][a-z0-9-]{1,63}){0,2}))$" } }, + "com.amazonaws.bedrock#ModelCopyJobArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "max": 1011 + }, + "smithy.api#pattern": "^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:model-copy-job/[a-z0-9]{12}$" + } + }, + "com.amazonaws.bedrock#ModelCopyJobStatus": { + "type": "enum", + "members": { + "IN_PROGRESS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "InProgress" + } + }, + "COMPLETED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Completed" + } + }, + "FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Failed" + } + } + } + }, + "com.amazonaws.bedrock#ModelCopyJobSummaries": { + "type": "list", + "member": { + "target": "com.amazonaws.bedrock#ModelCopyJobSummary" + } + }, + "com.amazonaws.bedrock#ModelCopyJobSummary": { + "type": "structure", + "members": { + "jobArn": { + "target": "com.amazonaws.bedrock#ModelCopyJobArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resoource Name (ARN) of the model copy job.

", + "smithy.api#required": {} + } + }, + "status": { + "target": "com.amazonaws.bedrock#ModelCopyJobStatus", + "traits": { + "smithy.api#documentation": "

The status of the model copy job.

", + "smithy.api#required": {} + } + }, + "creationTime": { + "target": "com.amazonaws.bedrock#Timestamp", + "traits": { + "smithy.api#documentation": "

The time that the model copy job was created.

", + "smithy.api#required": {} + } + }, + "targetModelArn": { + "target": "com.amazonaws.bedrock#CustomModelArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the copied model.

", + "smithy.api#required": {} + } + }, + "targetModelName": { + "target": "com.amazonaws.bedrock#CustomModelName", + "traits": { + "smithy.api#documentation": "

The name of the copied model.

" + } + }, + "sourceAccountId": { + "target": "com.amazonaws.bedrock#AccountId", + "traits": { + "smithy.api#documentation": "

The unique identifier of the account that the model being copied originated from.

", + "smithy.api#required": {} + } + }, + "sourceModelArn": { + "target": "com.amazonaws.bedrock#ModelArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the original model being copied.

", + "smithy.api#required": {} + } + }, + "targetModelKmsKeyArn": { + "target": "com.amazonaws.bedrock#KmsKeyArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the KMS key used to encrypt the copied model.

" + } + }, + "targetModelTags": { + "target": "com.amazonaws.bedrock#TagList", + "traits": { + "smithy.api#documentation": "

Tags associated with the copied model.

" + } + }, + "failureMessage": { + "target": "com.amazonaws.bedrock#ErrorMessage", + "traits": { + "smithy.api#documentation": "

If a model fails to be copied, a message describing why the job failed is included here.

" + } + }, + "sourceModelName": { + "target": "com.amazonaws.bedrock#CustomModelName", + "traits": { + "smithy.api#documentation": "

The name of the original model being copied.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains details about each model copy job.

\n

This data type is used in the following API operations:

\n " + } + }, + "com.amazonaws.bedrock#ModelCopyResource": { + "type": "resource", + "operations": [ + { + "target": "com.amazonaws.bedrock#CreateModelCopyJob" + }, + { + "target": "com.amazonaws.bedrock#GetModelCopyJob" + }, + { + "target": "com.amazonaws.bedrock#ListModelCopyJobs" + } + ] + }, "com.amazonaws.bedrock#ModelCustomization": { "type": "enum", "members": { @@ -6531,7 +7043,7 @@ } ], "traits": { - "smithy.api#documentation": "

Stops an active model customization job. For more information, see Custom models in the Amazon Bedrock User Guide.

", + "smithy.api#documentation": "

Stops an active model customization job. For more information, see Custom models in the Amazon Bedrock User Guide.

", "smithy.api#http": { "code": 200, "method": "POST", @@ -6672,7 +7184,7 @@ } ], "traits": { - "smithy.api#documentation": "

Associate tags with a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.

", + "smithy.api#documentation": "

Associate tags with a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.

", "smithy.api#http": { "code": 200, "method": "POST", @@ -6776,7 +7288,7 @@ } }, "traits": { - "smithy.api#documentation": "

The request contains more tags than can be associated with a resource (50 tags per resource).\n The maximum number of tags includes both existing tags and those included in your current request.

", + "smithy.api#documentation": "

The request contains more tags than can be associated with a resource (50 tags per resource). \n The maximum number of tags includes both existing tags and those included in your current request.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -6853,7 +7365,7 @@ } ], "traits": { - "smithy.api#documentation": "

Remove one or more tags from a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.

", + "smithy.api#documentation": "

Remove one or more tags from a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.

", "smithy.api#http": { "code": 200, "method": "POST", @@ -7072,7 +7584,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates the name or associated model for a Provisioned Throughput. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

", + "smithy.api#documentation": "

Updates the name or associated model for a Provisioned Throughput. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

", "smithy.api#http": { "code": 200, "method": "PATCH",