diff --git "a/testbed/boto__botocore/botocore/data/bedrock/2023-04-20/service-2.json" "b/testbed/boto__botocore/botocore/data/bedrock/2023-04-20/service-2.json" new file mode 100644--- /dev/null +++ "b/testbed/boto__botocore/botocore/data/bedrock/2023-04-20/service-2.json" @@ -0,0 +1,5787 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2023-04-20", + "auth":["aws.auth#sigv4"], + "endpointPrefix":"bedrock", + "protocol":"rest-json", + "protocols":["rest-json"], + "serviceFullName":"Amazon Bedrock", + "serviceId":"Bedrock", + "signatureVersion":"v4", + "signingName":"bedrock", + "uid":"bedrock-2023-04-20" + }, + "operations":{ + "BatchDeleteEvaluationJob":{ + "name":"BatchDeleteEvaluationJob", + "http":{ + "method":"POST", + "requestUri":"/evaluation-jobs/batch-delete", + "responseCode":202 + }, + "input":{"shape":"BatchDeleteEvaluationJobRequest"}, + "output":{"shape":"BatchDeleteEvaluationJobResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"
Creates a batch deletion job. A model evaluation job can only be deleted if it has following status FAILED, COMPLETED, and STOPPED. You can request up to 25 model evaluation jobs be deleted in a single request.
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.
", + "idempotent":true + }, + "CreateGuardrail":{ + "name":"CreateGuardrail", + "http":{ + "method":"POST", + "requestUri":"/guardrails", + "responseCode":202 + }, + "input":{"shape":"CreateGuardrailRequest"}, + "output":{"shape":"CreateGuardrailResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"TooManyTagsException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"Creates a guardrail to block topics and to implement safeguards for your generative AI applications.
You can configure the following policies in a guardrail to avoid undesirable and harmful content, filter out denied topics and words, and remove sensitive information for privacy protection.
Content filters - Adjust filter strengths to block input prompts or model responses containing harmful content.
Denied topics - Define a set of topics that are undesirable in the context of your application. These topics will be blocked if detected in user queries or model responses.
Word filters - Configure filters to block undesirable words, phrases, and profanity. Such words can include offensive terms, competitor names etc.
Sensitive information filters - Block or mask sensitive information such as personally identifiable information (PII) or custom regex in user inputs and model responses.
In addition to the above policies, you can also configure the messages to be returned to the user if a user input or model response is in violation of the policies defined in the guardrail.
For more information, see Guardrails for Amazon Bedrock in the Amazon Bedrock User Guide.
" + }, + "CreateGuardrailVersion":{ + "name":"CreateGuardrailVersion", + "http":{ + "method":"POST", + "requestUri":"/guardrails/{guardrailIdentifier}", + "responseCode":202 + }, + "input":{"shape":"CreateGuardrailVersionRequest"}, + "output":{"shape":"CreateGuardrailVersionResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"Creates a version of the guardrail. Use this API to create a snapshot of the guardrail when you are satisfied with a configuration, or to compare the configuration with another version.
" + }, + "CreateModelCopyJob":{ + "name":"CreateModelCopyJob", + "http":{ + "method":"POST", + "requestUri":"/model-copy-jobs", + "responseCode":201 + }, + "input":{"shape":"CreateModelCopyJobRequest"}, + "output":{"shape":"CreateModelCopyJobResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"TooManyTagsException"} + ], + "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.
", + "idempotent":true + }, + "CreateModelCustomizationJob":{ + "name":"CreateModelCustomizationJob", + "http":{ + "method":"POST", + "requestUri":"/model-customization-jobs", + "responseCode":201 + }, + "input":{"shape":"CreateModelCustomizationJobRequest"}, + "output":{"shape":"CreateModelCustomizationJobResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"TooManyTagsException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"Creates a fine-tuning job to customize a base model.
You specify the base foundation model and the location of the training data. 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.
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.
", + "idempotent":true + }, + "CreateModelImportJob":{ + "name":"CreateModelImportJob", + "http":{ + "method":"POST", + "requestUri":"/model-import-jobs", + "responseCode":201 + }, + "input":{"shape":"CreateModelImportJobRequest"}, + "output":{"shape":"CreateModelImportJobResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"TooManyTagsException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"Creates a model import job to import model that you have customized in other environments, such as Amazon SageMaker. For more information, see Import a customized model
", + "idempotent":true + }, + "CreateModelInvocationJob":{ + "name":"CreateModelInvocationJob", + "http":{ + "method":"POST", + "requestUri":"/model-invocation-job", + "responseCode":200 + }, + "input":{"shape":"CreateModelInvocationJobRequest"}, + "output":{"shape":"CreateModelInvocationJobResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"Creates a batch inference job to invoke a model on multiple prompts. Format your data according to Format your inference data and upload it to an Amazon S3 bucket. For more information, see Process multiple prompts with batch inference.
The response returns a jobArn that you can use to stop or get details about the job.
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.
", + "idempotent":true + }, + "DeleteCustomModel":{ + "name":"DeleteCustomModel", + "http":{ + "method":"DELETE", + "requestUri":"/custom-models/{modelIdentifier}", + "responseCode":200 + }, + "input":{"shape":"DeleteCustomModelRequest"}, + "output":{"shape":"DeleteCustomModelResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"Deletes a custom model that you created earlier. For more information, see Custom models in the Amazon Bedrock User Guide.
", + "idempotent":true + }, + "DeleteGuardrail":{ + "name":"DeleteGuardrail", + "http":{ + "method":"DELETE", + "requestUri":"/guardrails/{guardrailIdentifier}", + "responseCode":202 + }, + "input":{"shape":"DeleteGuardrailRequest"}, + "output":{"shape":"DeleteGuardrailResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"Deletes a guardrail.
To delete a guardrail, only specify the ARN of the guardrail in the guardrailIdentifier field. If you delete a guardrail, all of its versions will be deleted.
To delete a version of a guardrail, specify the ARN of the guardrail in the guardrailIdentifier field and the version in the guardrailVersion field.
Deletes a custom model that you imported earlier. For more information, see Import a customized model in the Amazon Bedrock User Guide.
", + "idempotent":true + }, + "DeleteModelInvocationLoggingConfiguration":{ + "name":"DeleteModelInvocationLoggingConfiguration", + "http":{ + "method":"DELETE", + "requestUri":"/logging/modelinvocations", + "responseCode":200 + }, + "input":{"shape":"DeleteModelInvocationLoggingConfigurationRequest"}, + "output":{"shape":"DeleteModelInvocationLoggingConfigurationResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"Delete the invocation logging.
", + "idempotent":true + }, + "DeleteProvisionedModelThroughput":{ + "name":"DeleteProvisionedModelThroughput", + "http":{ + "method":"DELETE", + "requestUri":"/provisioned-model-throughput/{provisionedModelId}", + "responseCode":200 + }, + "input":{"shape":"DeleteProvisionedModelThroughputRequest"}, + "output":{"shape":"DeleteProvisionedModelThroughputResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "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.
", + "idempotent":true + }, + "GetCustomModel":{ + "name":"GetCustomModel", + "http":{ + "method":"GET", + "requestUri":"/custom-models/{modelIdentifier}", + "responseCode":200 + }, + "input":{"shape":"GetCustomModelRequest"}, + "output":{"shape":"GetCustomModelResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "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.
" + }, + "GetEvaluationJob":{ + "name":"GetEvaluationJob", + "http":{ + "method":"GET", + "requestUri":"/evaluation-jobs/{jobIdentifier}", + "responseCode":200 + }, + "input":{"shape":"GetEvaluationJobRequest"}, + "output":{"shape":"GetEvaluationJobResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"Retrieves the properties associated with a model evaluation job, including the status of the job. For more information, see Model evaluation.
" + }, + "GetFoundationModel":{ + "name":"GetFoundationModel", + "http":{ + "method":"GET", + "requestUri":"/foundation-models/{modelIdentifier}", + "responseCode":200 + }, + "input":{"shape":"GetFoundationModelRequest"}, + "output":{"shape":"GetFoundationModelResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"Get details about a Amazon Bedrock foundation model.
" + }, + "GetGuardrail":{ + "name":"GetGuardrail", + "http":{ + "method":"GET", + "requestUri":"/guardrails/{guardrailIdentifier}", + "responseCode":200 + }, + "input":{"shape":"GetGuardrailRequest"}, + "output":{"shape":"GetGuardrailResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"Gets details about a guardrail. If you don't specify a version, the response returns details for the DRAFT version.
Gets properties associated with a customized model you imported.
" + }, + "GetInferenceProfile":{ + "name":"GetInferenceProfile", + "http":{ + "method":"GET", + "requestUri":"/inference-profiles/{inferenceProfileIdentifier}", + "responseCode":200 + }, + "input":{"shape":"GetInferenceProfileRequest"}, + "output":{"shape":"GetInferenceProfileResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"Gets information about an inference profile. For more information, see the Amazon Bedrock User Guide.
" + }, + "GetModelCopyJob":{ + "name":"GetModelCopyJob", + "http":{ + "method":"GET", + "requestUri":"/model-copy-jobs/{jobArn}", + "responseCode":200 + }, + "input":{"shape":"GetModelCopyJobRequest"}, + "output":{"shape":"GetModelCopyJobResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "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.
" + }, + "GetModelCustomizationJob":{ + "name":"GetModelCustomizationJob", + "http":{ + "method":"GET", + "requestUri":"/model-customization-jobs/{jobIdentifier}", + "responseCode":200 + }, + "input":{"shape":"GetModelCustomizationJobRequest"}, + "output":{"shape":"GetModelCustomizationJobResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"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.
" + }, + "GetModelImportJob":{ + "name":"GetModelImportJob", + "http":{ + "method":"GET", + "requestUri":"/model-import-jobs/{jobIdentifier}", + "responseCode":200 + }, + "input":{"shape":"GetModelImportJobRequest"}, + "output":{"shape":"GetModelImportJobResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"Retrieves the properties associated with import model job, including the status of the job. For more information, see Import a customized model in the Amazon Bedrock User Guide.
" + }, + "GetModelInvocationJob":{ + "name":"GetModelInvocationJob", + "http":{ + "method":"GET", + "requestUri":"/model-invocation-job/{jobIdentifier}", + "responseCode":200 + }, + "input":{"shape":"GetModelInvocationJobRequest"}, + "output":{"shape":"GetModelInvocationJobResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"Gets details about a batch inference job. For more information, see View details about a batch inference job
" + }, + "GetModelInvocationLoggingConfiguration":{ + "name":"GetModelInvocationLoggingConfiguration", + "http":{ + "method":"GET", + "requestUri":"/logging/modelinvocations", + "responseCode":200 + }, + "input":{"shape":"GetModelInvocationLoggingConfigurationRequest"}, + "output":{"shape":"GetModelInvocationLoggingConfigurationResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"Get the current configuration values for model invocation logging.
" + }, + "GetProvisionedModelThroughput":{ + "name":"GetProvisionedModelThroughput", + "http":{ + "method":"GET", + "requestUri":"/provisioned-model-throughput/{provisionedModelId}", + "responseCode":200 + }, + "input":{"shape":"GetProvisionedModelThroughputRequest"}, + "output":{"shape":"GetProvisionedModelThroughputResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"Returns details for a Provisioned Throughput. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
" + }, + "ListCustomModels":{ + "name":"ListCustomModels", + "http":{ + "method":"GET", + "requestUri":"/custom-models", + "responseCode":200 + }, + "input":{"shape":"ListCustomModelsRequest"}, + "output":{"shape":"ListCustomModelsResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"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.
" + }, + "ListEvaluationJobs":{ + "name":"ListEvaluationJobs", + "http":{ + "method":"GET", + "requestUri":"/evaluation-jobs", + "responseCode":200 + }, + "input":{"shape":"ListEvaluationJobsRequest"}, + "output":{"shape":"ListEvaluationJobsResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"Lists model evaluation jobs.
" + }, + "ListFoundationModels":{ + "name":"ListFoundationModels", + "http":{ + "method":"GET", + "requestUri":"/foundation-models", + "responseCode":200 + }, + "input":{"shape":"ListFoundationModelsRequest"}, + "output":{"shape":"ListFoundationModelsResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "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.
" + }, + "ListGuardrails":{ + "name":"ListGuardrails", + "http":{ + "method":"GET", + "requestUri":"/guardrails", + "responseCode":200 + }, + "input":{"shape":"ListGuardrailsRequest"}, + "output":{"shape":"ListGuardrailsResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"Lists details about all the guardrails in an account. To list the DRAFT version of all your guardrails, don't specify the guardrailIdentifier field. To list all versions of a guardrail, specify the ARN of the guardrail in the guardrailIdentifier field.
You can set the maximum number of results to return in a response in the maxResults field. If there are more results than the number you set, the response returns a nextToken that you can send in another ListGuardrails request to see the next batch of results.
Returns a list of models you've imported. You can filter the results to return based on one or more criteria. For more information, see Import a customized model in the Amazon Bedrock User Guide.
" + }, + "ListInferenceProfiles":{ + "name":"ListInferenceProfiles", + "http":{ + "method":"GET", + "requestUri":"/inference-profiles", + "responseCode":200 + }, + "input":{"shape":"ListInferenceProfilesRequest"}, + "output":{"shape":"ListInferenceProfilesResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"Returns a list of inference profiles that you can use.
" + }, + "ListModelCopyJobs":{ + "name":"ListModelCopyJobs", + "http":{ + "method":"GET", + "requestUri":"/model-copy-jobs", + "responseCode":200 + }, + "input":{"shape":"ListModelCopyJobsRequest"}, + "output":{"shape":"ListModelCopyJobsResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"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.
" + }, + "ListModelCustomizationJobs":{ + "name":"ListModelCustomizationJobs", + "http":{ + "method":"GET", + "requestUri":"/model-customization-jobs", + "responseCode":200 + }, + "input":{"shape":"ListModelCustomizationJobsRequest"}, + "output":{"shape":"ListModelCustomizationJobsResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"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.
" + }, + "ListModelImportJobs":{ + "name":"ListModelImportJobs", + "http":{ + "method":"GET", + "requestUri":"/model-import-jobs", + "responseCode":200 + }, + "input":{"shape":"ListModelImportJobsRequest"}, + "output":{"shape":"ListModelImportJobsResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"Returns a list of import jobs you've submitted. You can filter the results to return based on one or more criteria. For more information, see Import a customized model in the Amazon Bedrock User Guide.
" + }, + "ListModelInvocationJobs":{ + "name":"ListModelInvocationJobs", + "http":{ + "method":"GET", + "requestUri":"/model-invocation-jobs", + "responseCode":200 + }, + "input":{"shape":"ListModelInvocationJobsRequest"}, + "output":{"shape":"ListModelInvocationJobsResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"Lists all batch inference jobs in the account. For more information, see View details about a batch inference job.
" + }, + "ListProvisionedModelThroughputs":{ + "name":"ListProvisionedModelThroughputs", + "http":{ + "method":"GET", + "requestUri":"/provisioned-model-throughputs", + "responseCode":200 + }, + "input":{"shape":"ListProvisionedModelThroughputsRequest"}, + "output":{"shape":"ListProvisionedModelThroughputsResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"Lists the Provisioned Throughputs in the account. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
" + }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"POST", + "requestUri":"/listTagsForResource", + "responseCode":200 + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"List the tags associated with the specified resource.
For more information, see Tagging resources in the Amazon Bedrock User Guide.
" + }, + "PutModelInvocationLoggingConfiguration":{ + "name":"PutModelInvocationLoggingConfiguration", + "http":{ + "method":"PUT", + "requestUri":"/logging/modelinvocations", + "responseCode":200 + }, + "input":{"shape":"PutModelInvocationLoggingConfigurationRequest"}, + "output":{"shape":"PutModelInvocationLoggingConfigurationResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"Set the configuration values for model invocation logging.
", + "idempotent":true + }, + "StopEvaluationJob":{ + "name":"StopEvaluationJob", + "http":{ + "method":"POST", + "requestUri":"/evaluation-job/{jobIdentifier}/stop", + "responseCode":200 + }, + "input":{"shape":"StopEvaluationJobRequest"}, + "output":{"shape":"StopEvaluationJobResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"Stops an in progress model evaluation job.
" + }, + "StopModelCustomizationJob":{ + "name":"StopModelCustomizationJob", + "http":{ + "method":"POST", + "requestUri":"/model-customization-jobs/{jobIdentifier}/stop", + "responseCode":200 + }, + "input":{"shape":"StopModelCustomizationJobRequest"}, + "output":{"shape":"StopModelCustomizationJobResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"Stops an active model customization job. For more information, see Custom models in the Amazon Bedrock User Guide.
", + "idempotent":true + }, + "StopModelInvocationJob":{ + "name":"StopModelInvocationJob", + "http":{ + "method":"POST", + "requestUri":"/model-invocation-job/{jobIdentifier}/stop", + "responseCode":200 + }, + "input":{"shape":"StopModelInvocationJobRequest"}, + "output":{"shape":"StopModelInvocationJobResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"Stops a batch inference job. You're only charged for tokens that were already processed. For more information, see Stop a batch inference job.
" + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/tagResource", + "responseCode":200 + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"TooManyTagsException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"Associate tags with a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.
" + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"POST", + "requestUri":"/untagResource", + "responseCode":200 + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"Remove one or more tags from a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.
" + }, + "UpdateGuardrail":{ + "name":"UpdateGuardrail", + "http":{ + "method":"PUT", + "requestUri":"/guardrails/{guardrailIdentifier}", + "responseCode":202 + }, + "input":{"shape":"UpdateGuardrailRequest"}, + "output":{"shape":"UpdateGuardrailResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"Updates a guardrail with the values you specify.
Specify a name and optional description.
Specify messages for when the guardrail successfully blocks a prompt or a model response in the blockedInputMessaging and blockedOutputsMessaging fields.
Specify topics for the guardrail to deny in the topicPolicyConfig object. Each GuardrailTopicConfig object in the topicsConfig list pertains to one topic.
Give a name and description so that the guardrail can properly identify the topic.
Specify DENY in the type field.
(Optional) Provide up to five prompts that you would categorize as belonging to the topic in the examples list.
Specify filter strengths for the harmful categories defined in Amazon Bedrock in the contentPolicyConfig object. Each GuardrailContentFilterConfig object in the filtersConfig list pertains to a harmful category. For more information, see Content filters. For more information about the fields in a content filter, see GuardrailContentFilterConfig.
Specify the category in the type field.
Specify the strength of the filter for prompts in the inputStrength field and for model responses in the strength field of the GuardrailContentFilterConfig.
(Optional) For security, include the ARN of a KMS key in the kmsKeyId field.
Updates the name or associated model for a Provisioned Throughput. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
", + "idempotent":true + } + }, + "shapes":{ + "AccessDeniedException":{ + "type":"structure", + "members":{ + "message":{"shape":"NonBlankString"} + }, + "documentation":"The request is denied because of missing access permissions.
", + "error":{ + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + "AccountId":{ + "type":"string", + "pattern":"[0-9]{12}" + }, + "AutomatedEvaluationConfig":{ + "type":"structure", + "required":["datasetMetricConfigs"], + "members":{ + "datasetMetricConfigs":{ + "shape":"EvaluationDatasetMetricConfigs", + "documentation":"Specifies the required elements for an automatic model evaluation job.
" + } + }, + "documentation":"Use to specify a automatic model evaluation job. The EvaluationDatasetMetricConfig object is used to specify the prompt datasets, task type, and metric names.
The ARN of the model evaluation job being deleted.
" + }, + "code":{ + "shape":"String", + "documentation":"A HTTP status code of the model evaluation job being deleted.
" + }, + "message":{ + "shape":"String", + "documentation":"A status message about the model evaluation job deletion.
" + } + }, + "documentation":"A JSON array that provides the status of the model evaluation jobs being deleted.
" + }, + "BatchDeleteEvaluationJobErrors":{ + "type":"list", + "member":{"shape":"BatchDeleteEvaluationJobError"}, + "max":25, + "min":0 + }, + "BatchDeleteEvaluationJobItem":{ + "type":"structure", + "required":[ + "jobIdentifier", + "jobStatus" + ], + "members":{ + "jobIdentifier":{ + "shape":"EvaluationJobIdentifier", + "documentation":"The ARN of model evaluation job to be deleted.
" + }, + "jobStatus":{ + "shape":"EvaluationJobStatus", + "documentation":"The status of the job's deletion.
" + } + }, + "documentation":"An array of model evaluation jobs to be deleted, and their associated statuses.
" + }, + "BatchDeleteEvaluationJobItems":{ + "type":"list", + "member":{"shape":"BatchDeleteEvaluationJobItem"} + }, + "BatchDeleteEvaluationJobRequest":{ + "type":"structure", + "required":["jobIdentifiers"], + "members":{ + "jobIdentifiers":{ + "shape":"EvaluationJobIdentifiers", + "documentation":"An array of model evaluation job ARNs to be deleted.
" + } + } + }, + "BatchDeleteEvaluationJobResponse":{ + "type":"structure", + "required":[ + "errors", + "evaluationJobs" + ], + "members":{ + "errors":{ + "shape":"BatchDeleteEvaluationJobErrors", + "documentation":"A JSON object containing the HTTP status codes and the ARNs of model evaluation jobs that failed to be deleted.
" + }, + "evaluationJobs":{ + "shape":"BatchDeleteEvaluationJobItems", + "documentation":"The list of model evaluation jobs to be deleted.
" + } + } + }, + "BedrockModelId":{ + "type":"string", + "max":140, + "min":0, + "pattern":"[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([a-z0-9-]{1,63}[.]){0,2}[a-z0-9-]{1,63}([:][a-z0-9-]{1,63}){0,2}(/[a-z0-9]{12}|)" + }, + "Boolean":{ + "type":"boolean", + "box":true + }, + "BrandedName":{ + "type":"string", + "max":20, + "min":1, + "pattern":".*" + }, + "BucketName":{ + "type":"string", + "max":63, + "min":3 + }, + "CloudWatchConfig":{ + "type":"structure", + "required":[ + "logGroupName", + "roleArn" + ], + "members":{ + "logGroupName":{ + "shape":"LogGroupName", + "documentation":"The log group name.
" + }, + "roleArn":{ + "shape":"RoleArn", + "documentation":"The role Amazon Resource Name (ARN).
" + }, + "largeDataDeliveryS3Config":{ + "shape":"S3Config", + "documentation":"S3 configuration for delivering a large amount of data.
" + } + }, + "documentation":"CloudWatch logging configuration.
" + }, + "CommitmentDuration":{ + "type":"string", + "enum":[ + "OneMonth", + "SixMonths" + ] + }, + "ConflictException":{ + "type":"structure", + "members":{ + "message":{"shape":"NonBlankString"} + }, + "documentation":"Error occurred because of a conflict while performing an operation.
", + "error":{ + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "CreateEvaluationJobRequest":{ + "type":"structure", + "required":[ + "jobName", + "roleArn", + "evaluationConfig", + "inferenceConfig", + "outputDataConfig" + ], + "members":{ + "jobName":{ + "shape":"EvaluationJobName", + "documentation":"The name of the model evaluation job. Model evaluation job names must unique with your AWS account, and your account's AWS region.
" + }, + "jobDescription":{ + "shape":"EvaluationJobDescription", + "documentation":"A description of the model evaluation job.
" + }, + "clientRequestToken":{ + "shape":"IdempotencyToken", + "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, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
", + "idempotencyToken":true + }, + "roleArn":{ + "shape":"RoleArn", + "documentation":"The Amazon Resource Name (ARN) of an IAM service role that Amazon Bedrock can assume to perform tasks on your behalf. The service role must have Amazon Bedrock as the service principal, and provide access to any Amazon S3 buckets specified in the EvaluationConfig object. To pass this role to Amazon Bedrock, the caller of this API must have the iam:PassRole permission. To learn more about the required permissions, see Required permissions.
Specify your customer managed key ARN that will be used to encrypt your model evaluation job.
" + }, + "jobTags":{ + "shape":"TagList", + "documentation":"Tags to attach to the model evaluation job.
" + }, + "evaluationConfig":{ + "shape":"EvaluationConfig", + "documentation":"Specifies whether the model evaluation job is automatic or uses human worker.
" + }, + "inferenceConfig":{ + "shape":"EvaluationInferenceConfig", + "documentation":"Specify the models you want to use in your model evaluation job. Automatic model evaluation jobs support a single model or inference profile, and model evaluation job that use human workers support two models or inference profiles.
" + }, + "outputDataConfig":{ + "shape":"EvaluationOutputDataConfig", + "documentation":"An object that defines where the results of model evaluation job will be saved in Amazon S3.
" + } + } + }, + "CreateEvaluationJobResponse":{ + "type":"structure", + "required":["jobArn"], + "members":{ + "jobArn":{ + "shape":"EvaluationJobArn", + "documentation":"The ARN of the model evaluation job.
" + } + } + }, + "CreateGuardrailRequest":{ + "type":"structure", + "required":[ + "name", + "blockedInputMessaging", + "blockedOutputsMessaging" + ], + "members":{ + "name":{ + "shape":"GuardrailName", + "documentation":"The name to give the guardrail.
" + }, + "description":{ + "shape":"GuardrailDescription", + "documentation":"A description of the guardrail.
" + }, + "topicPolicyConfig":{ + "shape":"GuardrailTopicPolicyConfig", + "documentation":"The topic policies to configure for the guardrail.
" + }, + "contentPolicyConfig":{ + "shape":"GuardrailContentPolicyConfig", + "documentation":"The content filter policies to configure for the guardrail.
" + }, + "wordPolicyConfig":{ + "shape":"GuardrailWordPolicyConfig", + "documentation":"The word policy you configure for the guardrail.
" + }, + "sensitiveInformationPolicyConfig":{ + "shape":"GuardrailSensitiveInformationPolicyConfig", + "documentation":"The sensitive information policy to configure for the guardrail.
" + }, + "contextualGroundingPolicyConfig":{ + "shape":"GuardrailContextualGroundingPolicyConfig", + "documentation":"The contextual grounding policy configuration used to create a guardrail.
" + }, + "blockedInputMessaging":{ + "shape":"GuardrailBlockedMessaging", + "documentation":"The message to return when the guardrail blocks a prompt.
" + }, + "blockedOutputsMessaging":{ + "shape":"GuardrailBlockedMessaging", + "documentation":"The message to return when the guardrail blocks a model response.
" + }, + "kmsKeyId":{ + "shape":"KmsKeyId", + "documentation":"The ARN of the KMS key that you use to encrypt the guardrail.
" + }, + "tags":{ + "shape":"TagList", + "documentation":"The tags that you want to attach to the guardrail.
" + }, + "clientRequestToken":{ + "shape":"IdempotencyToken", + "documentation":"A unique, case-sensitive identifier to ensure that the API request completes no more than once. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency in the Amazon S3 User Guide.
", + "idempotencyToken":true + } + } + }, + "CreateGuardrailResponse":{ + "type":"structure", + "required":[ + "guardrailId", + "guardrailArn", + "version", + "createdAt" + ], + "members":{ + "guardrailId":{ + "shape":"GuardrailId", + "documentation":"The unique identifier of the guardrail that was created.
" + }, + "guardrailArn":{ + "shape":"GuardrailArn", + "documentation":"The ARN of the guardrail.
" + }, + "version":{ + "shape":"GuardrailDraftVersion", + "documentation":"The version of the guardrail that was created. This value will always be DRAFT.
The time at which the guardrail was created.
" + } + } + }, + "CreateGuardrailVersionRequest":{ + "type":"structure", + "required":["guardrailIdentifier"], + "members":{ + "guardrailIdentifier":{ + "shape":"GuardrailIdentifier", + "documentation":"The unique identifier of the guardrail. This can be an ID or the ARN.
", + "location":"uri", + "locationName":"guardrailIdentifier" + }, + "description":{ + "shape":"GuardrailDescription", + "documentation":"A description of the guardrail version.
" + }, + "clientRequestToken":{ + "shape":"IdempotencyToken", + "documentation":"A unique, case-sensitive identifier to ensure that the API request completes no more than once. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency in the Amazon S3 User Guide.
", + "idempotencyToken":true + } + } + }, + "CreateGuardrailVersionResponse":{ + "type":"structure", + "required":[ + "guardrailId", + "version" + ], + "members":{ + "guardrailId":{ + "shape":"GuardrailId", + "documentation":"The unique identifier of the guardrail.
" + }, + "version":{ + "shape":"GuardrailNumericalVersion", + "documentation":"The number of the version of the guardrail.
" + } + } + }, + "CreateModelCopyJobRequest":{ + "type":"structure", + "required":[ + "sourceModelArn", + "targetModelName" + ], + "members":{ + "sourceModelArn":{ + "shape":"ModelArn", + "documentation":"The Amazon Resource Name (ARN) of the model to be copied.
" + }, + "targetModelName":{ + "shape":"CustomModelName", + "documentation":"A name for the copied model.
" + }, + "modelKmsKeyId":{ + "shape":"KmsKeyId", + "documentation":"The ARN of the KMS key that you use to encrypt the model copy.
" + }, + "targetModelTags":{ + "shape":"TagList", + "documentation":"Tags to associate with the target model. For more information, see Tag resources in the Amazon Bedrock User Guide.
" + }, + "clientRequestToken":{ + "shape":"IdempotencyToken", + "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, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
", + "idempotencyToken":true + } + } + }, + "CreateModelCopyJobResponse":{ + "type":"structure", + "required":["jobArn"], + "members":{ + "jobArn":{ + "shape":"ModelCopyJobArn", + "documentation":"The Amazon Resource Name (ARN) of the model copy job.
" + } + } + }, + "CreateModelCustomizationJobRequest":{ + "type":"structure", + "required":[ + "jobName", + "customModelName", + "roleArn", + "baseModelIdentifier", + "trainingDataConfig", + "outputDataConfig", + "hyperParameters" + ], + "members":{ + "jobName":{ + "shape":"JobName", + "documentation":"A name for the fine-tuning job.
" + }, + "customModelName":{ + "shape":"CustomModelName", + "documentation":"A name for the resulting custom model.
" + }, + "roleArn":{ + "shape":"RoleArn", + "documentation":"The Amazon Resource Name (ARN) of an IAM service role that Amazon Bedrock can assume to perform tasks on your behalf. For example, during model training, Amazon Bedrock needs your permission to read input data from an S3 bucket, write model artifacts to an S3 bucket. To pass this role to Amazon Bedrock, the caller of this API must have the iam:PassRole permission.
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.
", + "idempotencyToken":true + }, + "baseModelIdentifier":{ + "shape":"BaseModelIdentifier", + "documentation":"Name of the base model.
" + }, + "customizationType":{ + "shape":"CustomizationType", + "documentation":"The customization type.
" + }, + "customModelKmsKeyId":{ + "shape":"KmsKeyId", + "documentation":"The custom model is encrypted at rest using this key.
" + }, + "jobTags":{ + "shape":"TagList", + "documentation":"Tags to attach to the job.
" + }, + "customModelTags":{ + "shape":"TagList", + "documentation":"Tags to attach to the resulting custom model.
" + }, + "trainingDataConfig":{ + "shape":"TrainingDataConfig", + "documentation":"Information about the training dataset.
" + }, + "validationDataConfig":{ + "shape":"ValidationDataConfig", + "documentation":"Information about the validation dataset.
" + }, + "outputDataConfig":{ + "shape":"OutputDataConfig", + "documentation":"S3 location for the output data.
" + }, + "hyperParameters":{ + "shape":"ModelCustomizationHyperParameters", + "documentation":"Parameters related to tuning the model. For details on the format for different models, see Custom model hyperparameters.
" + }, + "vpcConfig":{ + "shape":"VpcConfig", + "documentation":"The configuration of the Virtual Private Cloud (VPC) that contains the resources that you're using for this job. For more information, see Protect your model customization jobs using a VPC.
" + } + } + }, + "CreateModelCustomizationJobResponse":{ + "type":"structure", + "required":["jobArn"], + "members":{ + "jobArn":{ + "shape":"ModelCustomizationJobArn", + "documentation":"Amazon Resource Name (ARN) of the fine tuning job
" + } + } + }, + "CreateModelImportJobRequest":{ + "type":"structure", + "required":[ + "jobName", + "importedModelName", + "roleArn", + "modelDataSource" + ], + "members":{ + "jobName":{ + "shape":"JobName", + "documentation":"The name of the import job.
" + }, + "importedModelName":{ + "shape":"ImportedModelName", + "documentation":"The name of the imported model.
" + }, + "roleArn":{ + "shape":"RoleArn", + "documentation":"The Amazon Resource Name (ARN) of the model import job.
" + }, + "modelDataSource":{ + "shape":"ModelDataSource", + "documentation":"The data source for the imported model.
" + }, + "jobTags":{ + "shape":"TagList", + "documentation":"Tags to attach to this import job.
" + }, + "importedModelTags":{ + "shape":"TagList", + "documentation":"Tags to attach to the imported model.
" + }, + "clientRequestToken":{ + "shape":"IdempotencyToken", + "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, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
" + }, + "vpcConfig":{ + "shape":"VpcConfig", + "documentation":"VPC configuration parameters for the private Virtual Private Cloud (VPC) that contains the resources you are using for the import job.
" + }, + "importedModelKmsKeyId":{ + "shape":"KmsKeyId", + "documentation":"The imported model is encrypted at rest using this key.
" + } + } + }, + "CreateModelImportJobResponse":{ + "type":"structure", + "required":["jobArn"], + "members":{ + "jobArn":{ + "shape":"ModelImportJobArn", + "documentation":"The Amazon Resource Name (ARN) of the model import job.
" + } + } + }, + "CreateModelInvocationJobRequest":{ + "type":"structure", + "required":[ + "jobName", + "roleArn", + "modelId", + "inputDataConfig", + "outputDataConfig" + ], + "members":{ + "jobName":{ + "shape":"ModelInvocationJobName", + "documentation":"A name to give the batch inference job.
" + }, + "roleArn":{ + "shape":"RoleArn", + "documentation":"The Amazon Resource Name (ARN) of the service role with permissions to carry out and manage batch inference. You can use the console to create a default service role or follow the steps at Create a service role for batch inference.
" + }, + "clientRequestToken":{ + "shape":"ModelInvocationIdempotencyToken", + "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, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
", + "idempotencyToken":true + }, + "modelId":{ + "shape":"ModelId", + "documentation":"The unique identifier of the foundation model to use for the batch inference job.
" + }, + "inputDataConfig":{ + "shape":"ModelInvocationJobInputDataConfig", + "documentation":"Details about the location of the input to the batch inference job.
" + }, + "outputDataConfig":{ + "shape":"ModelInvocationJobOutputDataConfig", + "documentation":"Details about the location of the output of the batch inference job.
" + }, + "vpcConfig":{ + "shape":"VpcConfig", + "documentation":"The configuration of the Virtual Private Cloud (VPC) for the data in the batch inference job. For more information, see Protect batch inference jobs using a VPC.
" + }, + "timeoutDurationInHours":{ + "shape":"ModelInvocationJobTimeoutDurationInHours", + "documentation":"The number of hours after which to force the batch inference job to time out.
" + }, + "tags":{ + "shape":"TagList", + "documentation":"Any tags to associate with the batch inference job. For more information, see Tagging Amazon Bedrock resources.
" + } + } + }, + "CreateModelInvocationJobResponse":{ + "type":"structure", + "required":["jobArn"], + "members":{ + "jobArn":{ + "shape":"ModelInvocationJobArn", + "documentation":"The Amazon Resource Name (ARN) of the batch inference job.
" + } + } + }, + "CreateProvisionedModelThroughputRequest":{ + "type":"structure", + "required":[ + "modelUnits", + "provisionedModelName", + "modelId" + ], + "members":{ + "clientRequestToken":{ + "shape":"IdempotencyToken", + "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, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency in the Amazon S3 User Guide.
", + "idempotencyToken":true + }, + "modelUnits":{ + "shape":"PositiveInteger", + "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.
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.
" + }, + "provisionedModelName":{ + "shape":"ProvisionedModelName", + "documentation":"The name for this Provisioned Throughput.
" + }, + "modelId":{ + "shape":"ModelIdentifier", + "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.
" + }, + "commitmentDuration":{ + "shape":"CommitmentDuration", + "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.
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
" + }, + "tags":{ + "shape":"TagList", + "documentation":"Tags to associate with this Provisioned Throughput.
" + } + } + }, + "CreateProvisionedModelThroughputResponse":{ + "type":"structure", + "required":["provisionedModelArn"], + "members":{ + "provisionedModelArn":{ + "shape":"ProvisionedModelArn", + "documentation":"The Amazon Resource Name (ARN) for this Provisioned Throughput.
" + } + } + }, + "CustomModelArn":{ + "type":"string", + "max":1011, + "min":20, + "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-]{1,63}[.]){0,2}[a-z0-9-]{1,63}([:][a-z0-9-]{1,63}){0,2}/[a-z0-9]{12}" + }, + "CustomModelName":{ + "type":"string", + "max":63, + "min":1, + "pattern":"([0-9a-zA-Z][_-]?){1,63}" + }, + "CustomModelSummary":{ + "type":"structure", + "required":[ + "modelArn", + "modelName", + "creationTime", + "baseModelArn", + "baseModelName" + ], + "members":{ + "modelArn":{ + "shape":"CustomModelArn", + "documentation":"The Amazon Resource Name (ARN) of the custom model.
" + }, + "modelName":{ + "shape":"CustomModelName", + "documentation":"The name of the custom model.
" + }, + "creationTime":{ + "shape":"Timestamp", + "documentation":"Creation time of the model.
" + }, + "baseModelArn":{ + "shape":"ModelArn", + "documentation":"The base model Amazon Resource Name (ARN).
" + }, + "baseModelName":{ + "shape":"ModelName", + "documentation":"The base model name.
" + }, + "customizationType":{ + "shape":"CustomizationType", + "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":{ + "shape":"AccountId", + "documentation":"The unique identifier of the account that owns the model.
" + } + }, + "documentation":"Summary information for a custom model.
" + }, + "CustomModelSummaryList":{ + "type":"list", + "member":{"shape":"CustomModelSummary"} + }, + "CustomizationType":{ + "type":"string", + "enum":[ + "FINE_TUNING", + "CONTINUED_PRE_TRAINING" + ] + }, + "DeleteCustomModelRequest":{ + "type":"structure", + "required":["modelIdentifier"], + "members":{ + "modelIdentifier":{ + "shape":"ModelIdentifier", + "documentation":"Name of the model to delete.
", + "location":"uri", + "locationName":"modelIdentifier" + } + } + }, + "DeleteCustomModelResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteGuardrailRequest":{ + "type":"structure", + "required":["guardrailIdentifier"], + "members":{ + "guardrailIdentifier":{ + "shape":"GuardrailIdentifier", + "documentation":"The unique identifier of the guardrail. This can be an ID or the ARN.
", + "location":"uri", + "locationName":"guardrailIdentifier" + }, + "guardrailVersion":{ + "shape":"GuardrailNumericalVersion", + "documentation":"The version of the guardrail.
", + "location":"querystring", + "locationName":"guardrailVersion" + } + } + }, + "DeleteGuardrailResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteImportedModelRequest":{ + "type":"structure", + "required":["modelIdentifier"], + "members":{ + "modelIdentifier":{ + "shape":"ImportedModelIdentifier", + "documentation":"Name of the imported model to delete.
", + "location":"uri", + "locationName":"modelIdentifier" + } + } + }, + "DeleteImportedModelResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteModelInvocationLoggingConfigurationRequest":{ + "type":"structure", + "members":{ + } + }, + "DeleteModelInvocationLoggingConfigurationResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteProvisionedModelThroughputRequest":{ + "type":"structure", + "required":["provisionedModelId"], + "members":{ + "provisionedModelId":{ + "shape":"ProvisionedModelId", + "documentation":"The Amazon Resource Name (ARN) or name of the Provisioned Throughput.
", + "location":"uri", + "locationName":"provisionedModelId" + } + } + }, + "DeleteProvisionedModelThroughputResponse":{ + "type":"structure", + "members":{ + } + }, + "ErrorMessage":{ + "type":"string", + "max":2048, + "min":0 + }, + "ErrorMessages":{ + "type":"list", + "member":{"shape":"ErrorMessage"}, + "max":20, + "min":0 + }, + "EvaluationBedrockModel":{ + "type":"structure", + "required":[ + "modelIdentifier", + "inferenceParams" + ], + "members":{ + "modelIdentifier":{ + "shape":"EvaluationModelIdentifier", + "documentation":"The ARN of the Amazon Bedrock model or inference profile specified.
" + }, + "inferenceParams":{ + "shape":"EvaluationModelInferenceParams", + "documentation":"Each Amazon Bedrock support different inference parameters that change how the model behaves during inference.
" + } + }, + "documentation":"Contains the ARN of the Amazon Bedrock model or inference profile specified in your model evaluation job. Each Amazon Bedrock model supports different inferenceParams. To learn more about supported inference parameters for Amazon Bedrock models, see Inference parameters for foundation models.
The inferenceParams are specified using JSON. To successfully insert JSON as string make sure that all quotations are properly escaped. For example, \"temperature\":\"0.25\" key value pair would need to be formatted as \\\"temperature\\\":\\\"0.25\\\" to successfully accepted in the request.
Used to specify an automated model evaluation job. See AutomatedEvaluationConfig to view the required parameters.
Used to specify a model evaluation job that uses human workers.See HumanEvaluationConfig to view the required parameters.
Used to specify either a AutomatedEvaluationConfig or HumanEvaluationConfig object.
Used to specify supported built-in prompt datasets. Valid values are Builtin.Bold, Builtin.BoolQ, Builtin.NaturalQuestions, Builtin.Gigaword, Builtin.RealToxicityPrompts, Builtin.TriviaQA, Builtin.T-Rex, Builtin.WomensEcommerceClothingReviews and Builtin.Wikitext2.
For custom prompt datasets, you must specify the location in Amazon S3 where the prompt dataset is saved.
" + } + }, + "documentation":"Used to specify the name of a built-in prompt dataset and optionally, the Amazon S3 bucket where a custom prompt dataset is saved.
" + }, + "EvaluationDatasetLocation":{ + "type":"structure", + "members":{ + "s3Uri":{ + "shape":"S3Uri", + "documentation":"The S3 URI of the S3 bucket specified in the job.
" + } + }, + "documentation":"The location in Amazon S3 where your prompt dataset is stored.
", + "union":true + }, + "EvaluationDatasetMetricConfig":{ + "type":"structure", + "required":[ + "taskType", + "dataset", + "metricNames" + ], + "members":{ + "taskType":{ + "shape":"EvaluationTaskType", + "documentation":"The task type you want the model to carry out.
" + }, + "dataset":{ + "shape":"EvaluationDataset", + "documentation":"Specifies the prompt dataset.
" + }, + "metricNames":{ + "shape":"EvaluationMetricNames", + "documentation":"The names of the metrics used. For automated model evaluation jobs valid values are \"Builtin.Accuracy\", \"Builtin.Robustness\", and \"Builtin.Toxicity\". In human-based model evaluation jobs the array of strings must match the name parameter specified in HumanEvaluationCustomMetric.
Defines the built-in prompt datasets, built-in metric names and custom metric names, and the task type.
" + }, + "EvaluationDatasetMetricConfigs":{ + "type":"list", + "member":{"shape":"EvaluationDatasetMetricConfig"}, + "max":5, + "min":1 + }, + "EvaluationDatasetName":{ + "type":"string", + "max":63, + "min":1, + "pattern":"[0-9a-zA-Z-_.]+", + "sensitive":true + }, + "EvaluationInferenceConfig":{ + "type":"structure", + "members":{ + "models":{ + "shape":"EvaluationModelConfigs", + "documentation":"Used to specify the models.
" + } + }, + "documentation":"Used to define the models you want used in your model evaluation job. Automated model evaluation jobs support only a single model. In a human-based model evaluation job, your annotator can compare the responses for up to two different models.
", + "union":true + }, + "EvaluationJobArn":{ + "type":"string", + "max":1011, + "min":0, + "pattern":"arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:evaluation-job/[a-z0-9]{12}" + }, + "EvaluationJobDescription":{ + "type":"string", + "max":200, + "min":1, + "pattern":".+", + "sensitive":true + }, + "EvaluationJobIdentifier":{ + "type":"string", + "max":1011, + "min":0, + "pattern":"(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:evaluation-job/[a-z0-9]{12})", + "sensitive":true + }, + "EvaluationJobIdentifiers":{ + "type":"list", + "member":{"shape":"EvaluationJobIdentifier"}, + "max":25, + "min":1 + }, + "EvaluationJobName":{ + "type":"string", + "max":63, + "min":1, + "pattern":"[a-z0-9](-*[a-z0-9]){0,62}" + }, + "EvaluationJobStatus":{ + "type":"string", + "enum":[ + "InProgress", + "Completed", + "Failed", + "Stopping", + "Stopped", + "Deleting" + ] + }, + "EvaluationJobType":{ + "type":"string", + "enum":[ + "Human", + "Automated" + ] + }, + "EvaluationMetricDescription":{ + "type":"string", + "max":63, + "min":1, + "pattern":".+", + "sensitive":true + }, + "EvaluationMetricName":{ + "type":"string", + "max":63, + "min":1, + "pattern":"[0-9a-zA-Z-_.]+", + "sensitive":true + }, + "EvaluationMetricNames":{ + "type":"list", + "member":{"shape":"EvaluationMetricName"}, + "max":10, + "min":1 + }, + "EvaluationModelConfig":{ + "type":"structure", + "members":{ + "bedrockModel":{ + "shape":"EvaluationBedrockModel", + "documentation":"Defines the Amazon Bedrock model or inference profile and inference parameters you want used.
" + } + }, + "documentation":"Defines the models used in the model evaluation job.
", + "union":true + }, + "EvaluationModelConfigs":{ + "type":"list", + "member":{"shape":"EvaluationModelConfig"}, + "max":2, + "min":1 + }, + "EvaluationModelIdentifier":{ + "type":"string", + "max":2048, + "min":1, + "pattern":"(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:((:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:provisioned-model/[a-z0-9]{12})|([0-9]{12}:inference-profile/(([a-z]{2}.)[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63})))))|(([a-z]{2}[.]{1})([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63})))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))" + }, + "EvaluationModelIdentifiers":{ + "type":"list", + "member":{"shape":"EvaluationModelIdentifier"}, + "max":2, + "min":1 + }, + "EvaluationModelInferenceParams":{ + "type":"string", + "max":1023, + "min":1, + "sensitive":true + }, + "EvaluationOutputDataConfig":{ + "type":"structure", + "required":["s3Uri"], + "members":{ + "s3Uri":{ + "shape":"S3Uri", + "documentation":"The Amazon S3 URI where the results of model evaluation job are saved.
" + } + }, + "documentation":"The Amazon S3 location where the results of your model evaluation job are saved.
" + }, + "EvaluationRatingMethod":{ + "type":"string", + "max":100, + "min":1, + "pattern":"[0-9a-zA-Z-_]+" + }, + "EvaluationSummaries":{ + "type":"list", + "member":{"shape":"EvaluationSummary"}, + "max":5, + "min":1 + }, + "EvaluationSummary":{ + "type":"structure", + "required":[ + "jobArn", + "jobName", + "status", + "creationTime", + "jobType", + "evaluationTaskTypes", + "modelIdentifiers" + ], + "members":{ + "jobArn":{ + "shape":"EvaluationJobArn", + "documentation":"The Amazon Resource Name (ARN) of the model evaluation job.
" + }, + "jobName":{ + "shape":"EvaluationJobName", + "documentation":"The name of the model evaluation job.
" + }, + "status":{ + "shape":"EvaluationJobStatus", + "documentation":"The current status of the model evaluation job.
" + }, + "creationTime":{ + "shape":"Timestamp", + "documentation":"When the model evaluation job was created.
" + }, + "jobType":{ + "shape":"EvaluationJobType", + "documentation":"The type, either human or automatic, of model evaluation job.
" + }, + "evaluationTaskTypes":{ + "shape":"EvaluationTaskTypes", + "documentation":"What task type was used in the model evaluation job.
" + }, + "modelIdentifiers":{ + "shape":"EvaluationModelIdentifiers", + "documentation":"The Amazon Resource Names (ARNs) of the model(s) used in the model evaluation job.
" + } + }, + "documentation":"A summary of the model evaluation job.
" + }, + "EvaluationTaskType":{ + "type":"string", + "enum":[ + "Summarization", + "Classification", + "QuestionAndAnswer", + "Generation", + "Custom" + ], + "max":63, + "min":1, + "pattern":"[A-Za-z0-9]+" + }, + "EvaluationTaskTypes":{ + "type":"list", + "member":{"shape":"EvaluationTaskType"}, + "max":5, + "min":1 + }, + "FineTuningJobStatus":{ + "type":"string", + "enum":[ + "InProgress", + "Completed", + "Failed", + "Stopping", + "Stopped" + ] + }, + "FoundationModelArn":{ + "type":"string", + "pattern":"arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}::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}" + }, + "FoundationModelDetails":{ + "type":"structure", + "required":[ + "modelArn", + "modelId" + ], + "members":{ + "modelArn":{ + "shape":"FoundationModelArn", + "documentation":"The model Amazon Resource Name (ARN).
" + }, + "modelId":{ + "shape":"BedrockModelId", + "documentation":"The model identifier.
" + }, + "modelName":{ + "shape":"BrandedName", + "documentation":"The model name.
" + }, + "providerName":{ + "shape":"BrandedName", + "documentation":"The model's provider name.
" + }, + "inputModalities":{ + "shape":"ModelModalityList", + "documentation":"The input modalities that the model supports.
" + }, + "outputModalities":{ + "shape":"ModelModalityList", + "documentation":"The output modalities that the model supports.
" + }, + "responseStreamingSupported":{ + "shape":"Boolean", + "documentation":"Indicates whether the model supports streaming.
" + }, + "customizationsSupported":{ + "shape":"ModelCustomizationList", + "documentation":"The customization that the model supports.
" + }, + "inferenceTypesSupported":{ + "shape":"InferenceTypeList", + "documentation":"The inference types that the model supports.
" + }, + "modelLifecycle":{ + "shape":"FoundationModelLifecycle", + "documentation":"Contains details about whether a model version is available or deprecated
" + } + }, + "documentation":"Information about a foundation model.
" + }, + "FoundationModelLifecycle":{ + "type":"structure", + "required":["status"], + "members":{ + "status":{ + "shape":"FoundationModelLifecycleStatus", + "documentation":"Specifies whether a model version is available (ACTIVE) or deprecated (LEGACY.
Details about whether a model version is available or deprecated.
" + }, + "FoundationModelLifecycleStatus":{ + "type":"string", + "enum":[ + "ACTIVE", + "LEGACY" + ] + }, + "FoundationModelSummary":{ + "type":"structure", + "required":[ + "modelArn", + "modelId" + ], + "members":{ + "modelArn":{ + "shape":"FoundationModelArn", + "documentation":"The Amazon Resource Name (ARN) of the foundation model.
" + }, + "modelId":{ + "shape":"BedrockModelId", + "documentation":"The model ID of the foundation model.
" + }, + "modelName":{ + "shape":"BrandedName", + "documentation":"The name of the model.
" + }, + "providerName":{ + "shape":"BrandedName", + "documentation":"The model's provider name.
" + }, + "inputModalities":{ + "shape":"ModelModalityList", + "documentation":"The input modalities that the model supports.
" + }, + "outputModalities":{ + "shape":"ModelModalityList", + "documentation":"The output modalities that the model supports.
" + }, + "responseStreamingSupported":{ + "shape":"Boolean", + "documentation":"Indicates whether the model supports streaming.
" + }, + "customizationsSupported":{ + "shape":"ModelCustomizationList", + "documentation":"Whether the model supports fine-tuning or continual pre-training.
" + }, + "inferenceTypesSupported":{ + "shape":"InferenceTypeList", + "documentation":"The inference types that the model supports.
" + }, + "modelLifecycle":{ + "shape":"FoundationModelLifecycle", + "documentation":"Contains details about whether a model version is available or deprecated.
" + } + }, + "documentation":"Summary information for a foundation model.
" + }, + "FoundationModelSummaryList":{ + "type":"list", + "member":{"shape":"FoundationModelSummary"} + }, + "GetCustomModelRequest":{ + "type":"structure", + "required":["modelIdentifier"], + "members":{ + "modelIdentifier":{ + "shape":"ModelIdentifier", + "documentation":"Name or Amazon Resource Name (ARN) of the custom model.
", + "location":"uri", + "locationName":"modelIdentifier" + } + } + }, + "GetCustomModelResponse":{ + "type":"structure", + "required":[ + "modelArn", + "modelName", + "jobArn", + "baseModelArn", + "trainingDataConfig", + "outputDataConfig", + "creationTime" + ], + "members":{ + "modelArn":{ + "shape":"ModelArn", + "documentation":"Amazon Resource Name (ARN) associated with this model.
" + }, + "modelName":{ + "shape":"CustomModelName", + "documentation":"Model name associated with this model.
" + }, + "jobName":{ + "shape":"JobName", + "documentation":"Job name associated with this model.
" + }, + "jobArn":{ + "shape":"ModelCustomizationJobArn", + "documentation":"Job Amazon Resource Name (ARN) associated with this model.
" + }, + "baseModelArn":{ + "shape":"ModelArn", + "documentation":"Amazon Resource Name (ARN) of the base model.
" + }, + "customizationType":{ + "shape":"CustomizationType", + "documentation":"The type of model customization.
" + }, + "modelKmsKeyArn":{ + "shape":"KmsKeyArn", + "documentation":"The custom model is encrypted at rest using this key.
" + }, + "hyperParameters":{ + "shape":"ModelCustomizationHyperParameters", + "documentation":"Hyperparameter values associated with this model. For details on the format for different models, see Custom model hyperparameters.
" + }, + "trainingDataConfig":{ + "shape":"TrainingDataConfig", + "documentation":"Contains information about the training dataset.
" + }, + "validationDataConfig":{ + "shape":"ValidationDataConfig", + "documentation":"Contains information about the validation dataset.
" + }, + "outputDataConfig":{ + "shape":"OutputDataConfig", + "documentation":"Output data configuration associated with this custom model.
" + }, + "trainingMetrics":{ + "shape":"TrainingMetrics", + "documentation":"Contains training metrics from the job creation.
" + }, + "validationMetrics":{ + "shape":"ValidationMetrics", + "documentation":"The validation metrics from the job creation.
" + }, + "creationTime":{ + "shape":"Timestamp", + "documentation":"Creation time of the model.
" + } + } + }, + "GetEvaluationJobRequest":{ + "type":"structure", + "required":["jobIdentifier"], + "members":{ + "jobIdentifier":{ + "shape":"EvaluationJobIdentifier", + "documentation":"The Amazon Resource Name (ARN) of the model evaluation job.
", + "location":"uri", + "locationName":"jobIdentifier" + } + } + }, + "GetEvaluationJobResponse":{ + "type":"structure", + "required":[ + "jobName", + "status", + "jobArn", + "roleArn", + "jobType", + "evaluationConfig", + "inferenceConfig", + "outputDataConfig", + "creationTime" + ], + "members":{ + "jobName":{ + "shape":"EvaluationJobName", + "documentation":"The name of the model evaluation job.
" + }, + "status":{ + "shape":"EvaluationJobStatus", + "documentation":"The status of the model evaluation job.
" + }, + "jobArn":{ + "shape":"EvaluationJobArn", + "documentation":"The Amazon Resource Name (ARN) of the model evaluation job.
" + }, + "jobDescription":{ + "shape":"EvaluationJobDescription", + "documentation":"The description of the model evaluation job.
" + }, + "roleArn":{ + "shape":"RoleArn", + "documentation":"The Amazon Resource Name (ARN) of the IAM service role used in the model evaluation job.
" + }, + "customerEncryptionKeyId":{ + "shape":"KmsKeyId", + "documentation":"The Amazon Resource Name (ARN) of the customer managed key specified when the model evaluation job was created.
" + }, + "jobType":{ + "shape":"EvaluationJobType", + "documentation":"The type of model evaluation job.
" + }, + "evaluationConfig":{ + "shape":"EvaluationConfig", + "documentation":"Contains details about the type of model evaluation job, the metrics used, the task type selected, the datasets used, and any custom metrics you defined.
" + }, + "inferenceConfig":{ + "shape":"EvaluationInferenceConfig", + "documentation":"Details about the models you specified in your model evaluation job.
" + }, + "outputDataConfig":{ + "shape":"EvaluationOutputDataConfig", + "documentation":"Amazon S3 location for where output data is saved.
" + }, + "creationTime":{ + "shape":"Timestamp", + "documentation":"When the model evaluation job was created.
" + }, + "lastModifiedTime":{ + "shape":"Timestamp", + "documentation":"When the model evaluation job was last modified.
" + }, + "failureMessages":{ + "shape":"ErrorMessages", + "documentation":"An array of strings the specify why the model evaluation job has failed.
" + } + } + }, + "GetFoundationModelRequest":{ + "type":"structure", + "required":["modelIdentifier"], + "members":{ + "modelIdentifier":{ + "shape":"ModelIdentifier", + "documentation":"The model identifier.
", + "location":"uri", + "locationName":"modelIdentifier" + } + } + }, + "GetFoundationModelResponse":{ + "type":"structure", + "members":{ + "modelDetails":{ + "shape":"FoundationModelDetails", + "documentation":"Information about the foundation model.
" + } + } + }, + "GetGuardrailRequest":{ + "type":"structure", + "required":["guardrailIdentifier"], + "members":{ + "guardrailIdentifier":{ + "shape":"GuardrailIdentifier", + "documentation":"The unique identifier of the guardrail for which to get details. This can be an ID or the ARN.
", + "location":"uri", + "locationName":"guardrailIdentifier" + }, + "guardrailVersion":{ + "shape":"GuardrailVersion", + "documentation":"The version of the guardrail for which to get details. If you don't specify a version, the response returns details for the DRAFT version.
The name of the guardrail.
" + }, + "description":{ + "shape":"GuardrailDescription", + "documentation":"The description of the guardrail.
" + }, + "guardrailId":{ + "shape":"GuardrailId", + "documentation":"The unique identifier of the guardrail.
" + }, + "guardrailArn":{ + "shape":"GuardrailArn", + "documentation":"The ARN of the guardrail.
" + }, + "version":{ + "shape":"GuardrailVersion", + "documentation":"The version of the guardrail.
" + }, + "status":{ + "shape":"GuardrailStatus", + "documentation":"The status of the guardrail.
" + }, + "topicPolicy":{ + "shape":"GuardrailTopicPolicy", + "documentation":"The topic policy that was configured for the guardrail.
" + }, + "contentPolicy":{ + "shape":"GuardrailContentPolicy", + "documentation":"The content policy that was configured for the guardrail.
" + }, + "wordPolicy":{ + "shape":"GuardrailWordPolicy", + "documentation":"The word policy that was configured for the guardrail.
" + }, + "sensitiveInformationPolicy":{ + "shape":"GuardrailSensitiveInformationPolicy", + "documentation":"The sensitive information policy that was configured for the guardrail.
" + }, + "contextualGroundingPolicy":{ + "shape":"GuardrailContextualGroundingPolicy", + "documentation":"The contextual grounding policy used in the guardrail.
" + }, + "createdAt":{ + "shape":"Timestamp", + "documentation":"The date and time at which the guardrail was created.
" + }, + "updatedAt":{ + "shape":"Timestamp", + "documentation":"The date and time at which the guardrail was updated.
" + }, + "statusReasons":{ + "shape":"GuardrailStatusReasons", + "documentation":"Appears if the status is FAILED. A list of reasons for why the guardrail failed to be created, updated, versioned, or deleted.
Appears if the status of the guardrail is FAILED. A list of recommendations to carry out before retrying the request.
The message that the guardrail returns when it blocks a prompt.
" + }, + "blockedOutputsMessaging":{ + "shape":"GuardrailBlockedMessaging", + "documentation":"The message that the guardrail returns when it blocks a model response.
" + }, + "kmsKeyArn":{ + "shape":"KmsKeyArn", + "documentation":"The ARN of the KMS key that encrypts the guardrail.
" + } + } + }, + "GetImportedModelRequest":{ + "type":"structure", + "required":["modelIdentifier"], + "members":{ + "modelIdentifier":{ + "shape":"ImportedModelIdentifier", + "documentation":"Name or Amazon Resource Name (ARN) of the imported model.
", + "location":"uri", + "locationName":"modelIdentifier" + } + } + }, + "GetImportedModelResponse":{ + "type":"structure", + "members":{ + "modelArn":{ + "shape":"ImportedModelArn", + "documentation":"The Amazon Resource Name (ARN) associated with this imported model.
" + }, + "modelName":{ + "shape":"ImportedModelName", + "documentation":"The name of the imported model.
" + }, + "jobName":{ + "shape":"JobName", + "documentation":"Job name associated with the imported model.
" + }, + "jobArn":{ + "shape":"ModelImportJobArn", + "documentation":"Job Amazon Resource Name (ARN) associated with the imported model.
" + }, + "modelDataSource":{ + "shape":"ModelDataSource", + "documentation":"The data source for this imported model.
" + }, + "creationTime":{ + "shape":"Timestamp", + "documentation":"Creation time of the imported model.
" + }, + "modelArchitecture":{ + "shape":"String", + "documentation":"The architecture of the imported model.
" + }, + "modelKmsKeyArn":{ + "shape":"KmsKeyArn", + "documentation":"The imported model is encrypted at rest using this key.
" + } + } + }, + "GetInferenceProfileRequest":{ + "type":"structure", + "required":["inferenceProfileIdentifier"], + "members":{ + "inferenceProfileIdentifier":{ + "shape":"InferenceProfileIdentifier", + "documentation":"The unique identifier of the inference profile.
", + "location":"uri", + "locationName":"inferenceProfileIdentifier" + } + } + }, + "GetInferenceProfileResponse":{ + "type":"structure", + "required":[ + "inferenceProfileName", + "models", + "inferenceProfileArn", + "inferenceProfileId", + "status", + "type" + ], + "members":{ + "inferenceProfileName":{ + "shape":"InferenceProfileName", + "documentation":"The name of the inference profile.
" + }, + "models":{ + "shape":"InferenceProfileModels", + "documentation":"A list of information about each model in the inference profile.
" + }, + "description":{ + "shape":"InferenceProfileDescription", + "documentation":"The description of the inference profile.
" + }, + "createdAt":{ + "shape":"Timestamp", + "documentation":"The time at which the inference profile was created.
" + }, + "updatedAt":{ + "shape":"Timestamp", + "documentation":"The time at which the inference profile was last updated.
" + }, + "inferenceProfileArn":{ + "shape":"InferenceProfileArn", + "documentation":"The Amazon Resource Name (ARN) of the inference profile.
" + }, + "inferenceProfileId":{ + "shape":"InferenceProfileId", + "documentation":"The unique identifier of the inference profile.
" + }, + "status":{ + "shape":"InferenceProfileStatus", + "documentation":"The status of the inference profile. ACTIVE means that the inference profile is available to use.
The type of the inference profile. SYSTEM_DEFINED means that the inference profile is defined by Amazon Bedrock.
The Amazon Resource Name (ARN) of the model copy job.
", + "location":"uri", + "locationName":"jobArn" + } + } + }, + "GetModelCopyJobResponse":{ + "type":"structure", + "required":[ + "jobArn", + "status", + "creationTime", + "targetModelArn", + "sourceAccountId", + "sourceModelArn" + ], + "members":{ + "jobArn":{ + "shape":"ModelCopyJobArn", + "documentation":"The Amazon Resource Name (ARN) of the model copy job.
" + }, + "status":{ + "shape":"ModelCopyJobStatus", + "documentation":"The status of the model copy job.
" + }, + "creationTime":{ + "shape":"Timestamp", + "documentation":"The time at which the model copy job was created.
" + }, + "targetModelArn":{ + "shape":"CustomModelArn", + "documentation":"The Amazon Resource Name (ARN) of the copied model.
" + }, + "targetModelName":{ + "shape":"CustomModelName", + "documentation":"The name of the copied model.
" + }, + "sourceAccountId":{ + "shape":"AccountId", + "documentation":"The unique identifier of the account that the model being copied originated from.
" + }, + "sourceModelArn":{ + "shape":"ModelArn", + "documentation":"The Amazon Resource Name (ARN) of the original model being copied.
" + }, + "targetModelKmsKeyArn":{ + "shape":"KmsKeyArn", + "documentation":"The Amazon Resource Name (ARN) of the KMS key encrypting the copied model.
" + }, + "targetModelTags":{ + "shape":"TagList", + "documentation":"The tags associated with the copied model.
" + }, + "failureMessage":{ + "shape":"ErrorMessage", + "documentation":"An error message for why the model copy job failed.
" + }, + "sourceModelName":{ + "shape":"CustomModelName", + "documentation":"The name of the original model being copied.
" + } + } + }, + "GetModelCustomizationJobRequest":{ + "type":"structure", + "required":["jobIdentifier"], + "members":{ + "jobIdentifier":{ + "shape":"ModelCustomizationJobIdentifier", + "documentation":"Identifier for the customization job.
", + "location":"uri", + "locationName":"jobIdentifier" + } + } + }, + "GetModelCustomizationJobResponse":{ + "type":"structure", + "required":[ + "jobArn", + "jobName", + "outputModelName", + "roleArn", + "creationTime", + "baseModelArn", + "hyperParameters", + "trainingDataConfig", + "validationDataConfig", + "outputDataConfig" + ], + "members":{ + "jobArn":{ + "shape":"ModelCustomizationJobArn", + "documentation":"The Amazon Resource Name (ARN) of the customization job.
" + }, + "jobName":{ + "shape":"JobName", + "documentation":"The name of the customization job.
" + }, + "outputModelName":{ + "shape":"CustomModelName", + "documentation":"The name of the output model.
" + }, + "outputModelArn":{ + "shape":"CustomModelArn", + "documentation":"The Amazon Resource Name (ARN) of the output model.
" + }, + "clientRequestToken":{ + "shape":"IdempotencyToken", + "documentation":"The token that you specified in the CreateCustomizationJob request.
The Amazon Resource Name (ARN) of the IAM role.
" + }, + "status":{ + "shape":"ModelCustomizationJobStatus", + "documentation":"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.
" + }, + "failureMessage":{ + "shape":"ErrorMessage", + "documentation":"Information about why the job failed.
" + }, + "creationTime":{ + "shape":"Timestamp", + "documentation":"Time that the resource was created.
" + }, + "lastModifiedTime":{ + "shape":"Timestamp", + "documentation":"Time that the resource was last modified.
" + }, + "endTime":{ + "shape":"Timestamp", + "documentation":"Time that the resource transitioned to terminal state.
" + }, + "baseModelArn":{ + "shape":"FoundationModelArn", + "documentation":"Amazon Resource Name (ARN) of the base model.
" + }, + "hyperParameters":{ + "shape":"ModelCustomizationHyperParameters", + "documentation":"The hyperparameter values for the job. For details on the format for different models, see Custom model hyperparameters.
" + }, + "trainingDataConfig":{ + "shape":"TrainingDataConfig", + "documentation":"Contains information about the training dataset.
" + }, + "validationDataConfig":{ + "shape":"ValidationDataConfig", + "documentation":"Contains information about the validation dataset.
" + }, + "outputDataConfig":{ + "shape":"OutputDataConfig", + "documentation":"Output data configuration
" + }, + "customizationType":{ + "shape":"CustomizationType", + "documentation":"The type of model customization.
" + }, + "outputModelKmsKeyArn":{ + "shape":"KmsKeyArn", + "documentation":"The custom model is encrypted at rest using this key.
" + }, + "trainingMetrics":{ + "shape":"TrainingMetrics", + "documentation":"Contains training metrics from the job creation.
" + }, + "validationMetrics":{ + "shape":"ValidationMetrics", + "documentation":"The loss metric for each validator that you provided in the createjob request.
" + }, + "vpcConfig":{ + "shape":"VpcConfig", + "documentation":"VPC configuration for the custom model job.
" + } + } + }, + "GetModelImportJobRequest":{ + "type":"structure", + "required":["jobIdentifier"], + "members":{ + "jobIdentifier":{ + "shape":"ModelImportJobIdentifier", + "documentation":"The identifier of the import job.
", + "location":"uri", + "locationName":"jobIdentifier" + } + } + }, + "GetModelImportJobResponse":{ + "type":"structure", + "members":{ + "jobArn":{ + "shape":"ModelImportJobArn", + "documentation":"The Amazon Resource Name (ARN) of the import job.
" + }, + "jobName":{ + "shape":"JobName", + "documentation":"The name of the import job.
" + }, + "importedModelName":{ + "shape":"ImportedModelName", + "documentation":"The name of the imported model.
" + }, + "importedModelArn":{ + "shape":"ImportedModelArn", + "documentation":"The Amazon Resource Name (ARN) of the imported model.
" + }, + "roleArn":{ + "shape":"RoleArn", + "documentation":"The Amazon Resource Name (ARN) of the IAM role associated with this job.
" + }, + "modelDataSource":{ + "shape":"ModelDataSource", + "documentation":"The data source for the imported model.
" + }, + "status":{ + "shape":"ModelImportJobStatus", + "documentation":"The status of the job. A successful job transitions from in-progress to completed when the imported model is ready to use. If the job failed, the failure message contains information about why the job failed.
" + }, + "failureMessage":{ + "shape":"ErrorMessage", + "documentation":"Information about why the import job failed.
" + }, + "creationTime":{ + "shape":"Timestamp", + "documentation":"The time the resource was created.
" + }, + "lastModifiedTime":{ + "shape":"Timestamp", + "documentation":"Time the resource was last modified.
" + }, + "endTime":{ + "shape":"Timestamp", + "documentation":"Time that the resource transitioned to terminal state.
" + }, + "vpcConfig":{ + "shape":"VpcConfig", + "documentation":"The Virtual Private Cloud (VPC) configuration of the import model job.
" + }, + "importedModelKmsKeyArn":{ + "shape":"KmsKeyArn", + "documentation":"The imported model is encrypted at rest using this key.
" + } + } + }, + "GetModelInvocationJobRequest":{ + "type":"structure", + "required":["jobIdentifier"], + "members":{ + "jobIdentifier":{ + "shape":"ModelInvocationJobIdentifier", + "documentation":"The Amazon Resource Name (ARN) of the batch inference job.
", + "location":"uri", + "locationName":"jobIdentifier" + } + } + }, + "GetModelInvocationJobResponse":{ + "type":"structure", + "required":[ + "jobArn", + "modelId", + "roleArn", + "submitTime", + "inputDataConfig", + "outputDataConfig" + ], + "members":{ + "jobArn":{ + "shape":"ModelInvocationJobArn", + "documentation":"The Amazon Resource Name (ARN) of the batch inference job.
" + }, + "jobName":{ + "shape":"ModelInvocationJobName", + "documentation":"The name of the batch inference job.
" + }, + "modelId":{ + "shape":"ModelId", + "documentation":"The unique identifier of the foundation model used for model inference.
" + }, + "clientRequestToken":{ + "shape":"ModelInvocationIdempotencyToken", + "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, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
" + }, + "roleArn":{ + "shape":"RoleArn", + "documentation":"The Amazon Resource Name (ARN) of the service role with permissions to carry out and manage batch inference. You can use the console to create a default service role or follow the steps at Create a service role for batch inference.
" + }, + "status":{ + "shape":"ModelInvocationJobStatus", + "documentation":"The status of the batch inference job.
" + }, + "message":{ + "shape":"Message", + "documentation":"If the batch inference job failed, this field contains a message describing why the job failed.
" + }, + "submitTime":{ + "shape":"Timestamp", + "documentation":"The time at which the batch inference job was submitted.
" + }, + "lastModifiedTime":{ + "shape":"Timestamp", + "documentation":"The time at which the batch inference job was last modified.
" + }, + "endTime":{ + "shape":"Timestamp", + "documentation":"The time at which the batch inference job ended.
" + }, + "inputDataConfig":{ + "shape":"ModelInvocationJobInputDataConfig", + "documentation":"Details about the location of the input to the batch inference job.
" + }, + "outputDataConfig":{ + "shape":"ModelInvocationJobOutputDataConfig", + "documentation":"Details about the location of the output of the batch inference job.
" + }, + "vpcConfig":{ + "shape":"VpcConfig", + "documentation":"The configuration of the Virtual Private Cloud (VPC) for the data in the batch inference job. For more information, see Protect batch inference jobs using a VPC.
" + }, + "timeoutDurationInHours":{ + "shape":"ModelInvocationJobTimeoutDurationInHours", + "documentation":"The number of hours after which batch inference job was set to time out.
" + }, + "jobExpirationTime":{ + "shape":"Timestamp", + "documentation":"The time at which the batch inference job times or timed out.
" + } + } + }, + "GetModelInvocationLoggingConfigurationRequest":{ + "type":"structure", + "members":{ + } + }, + "GetModelInvocationLoggingConfigurationResponse":{ + "type":"structure", + "members":{ + "loggingConfig":{ + "shape":"LoggingConfig", + "documentation":"The current configuration values.
" + } + } + }, + "GetProvisionedModelThroughputRequest":{ + "type":"structure", + "required":["provisionedModelId"], + "members":{ + "provisionedModelId":{ + "shape":"ProvisionedModelId", + "documentation":"The Amazon Resource Name (ARN) or name of the Provisioned Throughput.
", + "location":"uri", + "locationName":"provisionedModelId" + } + } + }, + "GetProvisionedModelThroughputResponse":{ + "type":"structure", + "required":[ + "modelUnits", + "desiredModelUnits", + "provisionedModelName", + "provisionedModelArn", + "modelArn", + "desiredModelArn", + "foundationModelArn", + "status", + "creationTime", + "lastModifiedTime" + ], + "members":{ + "modelUnits":{ + "shape":"PositiveInteger", + "documentation":"The number of model units allocated to this Provisioned Throughput.
" + }, + "desiredModelUnits":{ + "shape":"PositiveInteger", + "documentation":"The number of model units that was requested for this Provisioned Throughput.
" + }, + "provisionedModelName":{ + "shape":"ProvisionedModelName", + "documentation":"The name of the Provisioned Throughput.
" + }, + "provisionedModelArn":{ + "shape":"ProvisionedModelArn", + "documentation":"The Amazon Resource Name (ARN) of the Provisioned Throughput.
" + }, + "modelArn":{ + "shape":"ModelArn", + "documentation":"The Amazon Resource Name (ARN) of the model associated with this Provisioned Throughput.
" + }, + "desiredModelArn":{ + "shape":"ModelArn", + "documentation":"The Amazon Resource Name (ARN) of the model requested to be associated to this Provisioned Throughput. This value differs from the modelArn if updating hasn't completed.
The Amazon Resource Name (ARN) of the base model for which the Provisioned Throughput was created, or of the base model that the custom model for which the Provisioned Throughput was created was customized.
" + }, + "status":{ + "shape":"ProvisionedModelStatus", + "documentation":"The status of the Provisioned Throughput.
" + }, + "creationTime":{ + "shape":"Timestamp", + "documentation":"The timestamp of the creation time for this Provisioned Throughput.
" + }, + "lastModifiedTime":{ + "shape":"Timestamp", + "documentation":"The timestamp of the last time that this Provisioned Throughput was modified.
" + }, + "failureMessage":{ + "shape":"ErrorMessage", + "documentation":"A failure message for any issues that occurred during creation, updating, or deletion of the Provisioned Throughput.
" + }, + "commitmentDuration":{ + "shape":"CommitmentDuration", + "documentation":"Commitment duration of the Provisioned Throughput.
" + }, + "commitmentExpirationTime":{ + "shape":"Timestamp", + "documentation":"The timestamp for when the commitment term for the Provisioned Throughput expires.
" + } + } + }, + "GuardrailArn":{ + "type":"string", + "max":2048, + "min":0, + "pattern":"arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:guardrail/[a-z0-9]+" + }, + "GuardrailBlockedMessaging":{ + "type":"string", + "max":500, + "min":1, + "sensitive":true + }, + "GuardrailContentFilter":{ + "type":"structure", + "required":[ + "type", + "inputStrength", + "outputStrength" + ], + "members":{ + "type":{ + "shape":"GuardrailContentFilterType", + "documentation":"The harmful category that the content filter is applied to.
" + }, + "inputStrength":{ + "shape":"GuardrailFilterStrength", + "documentation":"The strength of the content filter to apply to prompts. As you increase the filter strength, the likelihood of filtering harmful content increases and the probability of seeing harmful content in your application reduces.
" + }, + "outputStrength":{ + "shape":"GuardrailFilterStrength", + "documentation":"The strength of the content filter to apply to model responses. As you increase the filter strength, the likelihood of filtering harmful content increases and the probability of seeing harmful content in your application reduces.
" + } + }, + "documentation":"Contains filter strengths for harmful content. Guardrails support the following content filters to detect and filter harmful user inputs and FM-generated outputs.
Hate – Describes language or a statement that discriminates, criticizes, insults, denounces, or dehumanizes a person or group on the basis of an identity (such as race, ethnicity, gender, religion, sexual orientation, ability, and national origin).
Insults – Describes language or a statement that includes demeaning, humiliating, mocking, insulting, or belittling language. This type of language is also labeled as bullying.
Sexual – Describes language or a statement that indicates sexual interest, activity, or arousal using direct or indirect references to body parts, physical traits, or sex.
Violence – Describes language or a statement that includes glorification of or threats to inflict physical pain, hurt, or injury toward a person, group or thing.
Content filtering depends on the confidence classification of user inputs and FM responses across each of the four harmful categories. All input and output statements are classified into one of four confidence levels (NONE, LOW, MEDIUM, HIGH) for each harmful category. For example, if a statement is classified as Hate with HIGH confidence, the likelihood of the statement representing hateful content is high. A single statement can be classified across multiple categories with varying confidence levels. For example, a single statement can be classified as Hate with HIGH confidence, Insults with LOW confidence, Sexual with NONE confidence, and Violence with MEDIUM confidence.
For more information, see Guardrails content filters.
This data type is used in the following API operations:
" + }, + "GuardrailContentFilterConfig":{ + "type":"structure", + "required":[ + "type", + "inputStrength", + "outputStrength" + ], + "members":{ + "type":{ + "shape":"GuardrailContentFilterType", + "documentation":"The harmful category that the content filter is applied to.
" + }, + "inputStrength":{ + "shape":"GuardrailFilterStrength", + "documentation":"The strength of the content filter to apply to prompts. As you increase the filter strength, the likelihood of filtering harmful content increases and the probability of seeing harmful content in your application reduces.
" + }, + "outputStrength":{ + "shape":"GuardrailFilterStrength", + "documentation":"The strength of the content filter to apply to model responses. As you increase the filter strength, the likelihood of filtering harmful content increases and the probability of seeing harmful content in your application reduces.
" + } + }, + "documentation":"Contains filter strengths for harmful content. Guardrails support the following content filters to detect and filter harmful user inputs and FM-generated outputs.
Hate – Describes language or a statement that discriminates, criticizes, insults, denounces, or dehumanizes a person or group on the basis of an identity (such as race, ethnicity, gender, religion, sexual orientation, ability, and national origin).
Insults – Describes language or a statement that includes demeaning, humiliating, mocking, insulting, or belittling language. This type of language is also labeled as bullying.
Sexual – Describes language or a statement that indicates sexual interest, activity, or arousal using direct or indirect references to body parts, physical traits, or sex.
Violence – Describes language or a statement that includes glorification of or threats to inflict physical pain, hurt, or injury toward a person, group or thing.
Content filtering depends on the confidence classification of user inputs and FM responses across each of the four harmful categories. All input and output statements are classified into one of four confidence levels (NONE, LOW, MEDIUM, HIGH) for each harmful category. For example, if a statement is classified as Hate with HIGH confidence, the likelihood of the statement representing hateful content is high. A single statement can be classified across multiple categories with varying confidence levels. For example, a single statement can be classified as Hate with HIGH confidence, Insults with LOW confidence, Sexual with NONE confidence, and Violence with MEDIUM confidence.
For more information, see Guardrails content filters.
" + }, + "GuardrailContentFilterType":{ + "type":"string", + "enum":[ + "SEXUAL", + "VIOLENCE", + "HATE", + "INSULTS", + "MISCONDUCT", + "PROMPT_ATTACK" + ] + }, + "GuardrailContentFilters":{ + "type":"list", + "member":{"shape":"GuardrailContentFilter"}, + "max":6, + "min":1 + }, + "GuardrailContentFiltersConfig":{ + "type":"list", + "member":{"shape":"GuardrailContentFilterConfig"}, + "max":6, + "min":1 + }, + "GuardrailContentPolicy":{ + "type":"structure", + "members":{ + "filters":{ + "shape":"GuardrailContentFilters", + "documentation":"Contains the type of the content filter and how strongly it should apply to prompts and model responses.
" + } + }, + "documentation":"Contains details about how to handle harmful content.
This data type is used in the following API operations:
" + }, + "GuardrailContentPolicyConfig":{ + "type":"structure", + "required":["filtersConfig"], + "members":{ + "filtersConfig":{ + "shape":"GuardrailContentFiltersConfig", + "documentation":"Contains the type of the content filter and how strongly it should apply to prompts and model responses.
" + } + }, + "documentation":"Contains details about how to handle harmful content.
" + }, + "GuardrailContextualGroundingFilter":{ + "type":"structure", + "required":[ + "type", + "threshold" + ], + "members":{ + "type":{ + "shape":"GuardrailContextualGroundingFilterType", + "documentation":"The filter type details for the guardrails contextual grounding filter.
" + }, + "threshold":{ + "shape":"GuardrailContextualGroundingFilterThresholdDouble", + "documentation":"The threshold details for the guardrails contextual grounding filter.
" + } + }, + "documentation":"The details for the guardrails contextual grounding filter.
" + }, + "GuardrailContextualGroundingFilterConfig":{ + "type":"structure", + "required":[ + "type", + "threshold" + ], + "members":{ + "type":{ + "shape":"GuardrailContextualGroundingFilterType", + "documentation":"The filter details for the guardrails contextual grounding filter.
" + }, + "threshold":{ + "shape":"GuardrailContextualGroundingFilterConfigThresholdDouble", + "documentation":"The threshold details for the guardrails contextual grounding filter.
" + } + }, + "documentation":"The filter configuration details for the guardrails contextual grounding filter.
" + }, + "GuardrailContextualGroundingFilterConfigThresholdDouble":{ + "type":"double", + "box":true, + "min":0 + }, + "GuardrailContextualGroundingFilterThresholdDouble":{ + "type":"double", + "box":true, + "min":0 + }, + "GuardrailContextualGroundingFilterType":{ + "type":"string", + "enum":[ + "GROUNDING", + "RELEVANCE" + ] + }, + "GuardrailContextualGroundingFilters":{ + "type":"list", + "member":{"shape":"GuardrailContextualGroundingFilter"}, + "min":1 + }, + "GuardrailContextualGroundingFiltersConfig":{ + "type":"list", + "member":{"shape":"GuardrailContextualGroundingFilterConfig"}, + "min":1 + }, + "GuardrailContextualGroundingPolicy":{ + "type":"structure", + "required":["filters"], + "members":{ + "filters":{ + "shape":"GuardrailContextualGroundingFilters", + "documentation":"The filter details for the guardrails contextual grounding policy.
" + } + }, + "documentation":"The details for the guardrails contextual grounding policy.
" + }, + "GuardrailContextualGroundingPolicyConfig":{ + "type":"structure", + "required":["filtersConfig"], + "members":{ + "filtersConfig":{ + "shape":"GuardrailContextualGroundingFiltersConfig", + "documentation":"The filter configuration details for the guardrails contextual grounding policy.
" + } + }, + "documentation":"The policy configuration details for the guardrails contextual grounding policy.
" + }, + "GuardrailDescription":{ + "type":"string", + "max":200, + "min":1, + "sensitive":true + }, + "GuardrailDraftVersion":{ + "type":"string", + "max":5, + "min":5, + "pattern":"DRAFT" + }, + "GuardrailFailureRecommendation":{ + "type":"string", + "max":200, + "min":1, + "sensitive":true + }, + "GuardrailFailureRecommendations":{ + "type":"list", + "member":{"shape":"GuardrailFailureRecommendation"}, + "max":100, + "min":0 + }, + "GuardrailFilterStrength":{ + "type":"string", + "enum":[ + "NONE", + "LOW", + "MEDIUM", + "HIGH" + ] + }, + "GuardrailId":{ + "type":"string", + "max":64, + "min":0, + "pattern":"[a-z0-9]+" + }, + "GuardrailIdentifier":{ + "type":"string", + "max":2048, + "min":0, + "pattern":"(([a-z0-9]+)|(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:guardrail/[a-z0-9]+))" + }, + "GuardrailManagedWordLists":{ + "type":"list", + "member":{"shape":"GuardrailManagedWords"} + }, + "GuardrailManagedWordListsConfig":{ + "type":"list", + "member":{"shape":"GuardrailManagedWordsConfig"} + }, + "GuardrailManagedWords":{ + "type":"structure", + "required":["type"], + "members":{ + "type":{ + "shape":"GuardrailManagedWordsType", + "documentation":"ManagedWords$type The managed word type that was configured for the guardrail. (For now, we only offer profanity word list)
" + } + }, + "documentation":"The managed word list that was configured for the guardrail. (This is a list of words that are pre-defined and managed by guardrails only.)
" + }, + "GuardrailManagedWordsConfig":{ + "type":"structure", + "required":["type"], + "members":{ + "type":{ + "shape":"GuardrailManagedWordsType", + "documentation":"The managed word type to configure for the guardrail.
" + } + }, + "documentation":"The managed word list to configure for the guardrail.
" + }, + "GuardrailManagedWordsType":{ + "type":"string", + "enum":["PROFANITY"] + }, + "GuardrailName":{ + "type":"string", + "max":50, + "min":1, + "pattern":"[0-9a-zA-Z-_]+", + "sensitive":true + }, + "GuardrailNumericalVersion":{ + "type":"string", + "pattern":"[1-9][0-9]{0,7}" + }, + "GuardrailPiiEntities":{ + "type":"list", + "member":{"shape":"GuardrailPiiEntity"}, + "min":1 + }, + "GuardrailPiiEntitiesConfig":{ + "type":"list", + "member":{"shape":"GuardrailPiiEntityConfig"}, + "min":1 + }, + "GuardrailPiiEntity":{ + "type":"structure", + "required":[ + "type", + "action" + ], + "members":{ + "type":{ + "shape":"GuardrailPiiEntityType", + "documentation":"The type of PII entity. For exampvle, Social Security Number.
" + }, + "action":{ + "shape":"GuardrailSensitiveInformationAction", + "documentation":"The configured guardrail action when PII entity is detected.
" + } + }, + "documentation":"The PII entity configured for the guardrail.
" + }, + "GuardrailPiiEntityConfig":{ + "type":"structure", + "required":[ + "type", + "action" + ], + "members":{ + "type":{ + "shape":"GuardrailPiiEntityType", + "documentation":"Configure guardrail type when the PII entity is detected.
The following PIIs are used to block or mask sensitive information:
General
ADDRESS
A physical address, such as \"100 Main Street, Anytown, USA\" or \"Suite #12, Building 123\". An address can include information such as the street, building, location, city, state, country, county, zip code, precinct, and neighborhood.
AGE
An individual's age, including the quantity and unit of time. For example, in the phrase \"I am 40 years old,\" Guarrails recognizes \"40 years\" as an age.
NAME
An individual's name. This entity type does not include titles, such as Dr., Mr., Mrs., or Miss. guardrails doesn't apply this entity type to names that are part of organizations or addresses. For example, guardrails recognizes the \"John Doe Organization\" as an organization, and it recognizes \"Jane Doe Street\" as an address.
An email address, such as marymajor@email.com.
PHONE
A phone number. This entity type also includes fax and pager numbers.
USERNAME
A user name that identifies an account, such as a login name, screen name, nick name, or handle.
PASSWORD
An alphanumeric string that is used as a password, such as \"*very20special#pass*\".
DRIVER_ID
The number assigned to a driver's license, which is an official document permitting an individual to operate one or more motorized vehicles on a public road. A driver's license number consists of alphanumeric characters.
LICENSE_PLATE
A license plate for a vehicle is issued by the state or country where the vehicle is registered. The format for passenger vehicles is typically five to eight digits, consisting of upper-case letters and numbers. The format varies depending on the location of the issuing state or country.
VEHICLE_IDENTIFICATION_NUMBER
A Vehicle Identification Number (VIN) uniquely identifies a vehicle. VIN content and format are defined in the ISO 3779 specification. Each country has specific codes and formats for VINs.
Finance
REDIT_DEBIT_CARD_CVV
A three-digit card verification code (CVV) that is present on VISA, MasterCard, and Discover credit and debit cards. For American Express credit or debit cards, the CVV is a four-digit numeric code.
CREDIT_DEBIT_CARD_EXPIRY
The expiration date for a credit or debit card. This number is usually four digits long and is often formatted as month/year or MM/YY. Guardrails recognizes expiration dates such as 01/21, 01/2021, and Jan 2021.
CREDIT_DEBIT_CARD_NUMBER
The number for a credit or debit card. These numbers can vary from 13 to 16 digits in length. However, Amazon Comprehend also recognizes credit or debit card numbers when only the last four digits are present.
PIN
A four-digit personal identification number (PIN) with which you can access your bank account.
INTERNATIONAL_BANK_ACCOUNT_NUMBER
An International Bank Account Number has specific formats in each country. For more information, see www.iban.com/structure.
SWIFT_CODE
A SWIFT code is a standard format of Bank Identifier Code (BIC) used to specify a particular bank or branch. Banks use these codes for money transfers such as international wire transfers.
SWIFT codes consist of eight or 11 characters. The 11-digit codes refer to specific branches, while eight-digit codes (or 11-digit codes ending in 'XXX') refer to the head or primary office.
IT
IP_ADDRESS
An IPv4 address, such as 198.51.100.0.
MAC_ADDRESS
A media access control (MAC) address is a unique identifier assigned to a network interface controller (NIC).
URL
A web address, such as www.example.com.
AWS_ACCESS_KEY
A unique identifier that's associated with a secret access key; you use the access key ID and secret access key to sign programmatic Amazon Web Services requests cryptographically.
AWS_SECRET_KEY
A unique identifier that's associated with an access key. You use the access key ID and secret access key to sign programmatic Amazon Web Services requests cryptographically.
USA specific
US_BANK_ACCOUNT_NUMBER
A US bank account number, which is typically 10 to 12 digits long.
US_BANK_ROUTING_NUMBER
A US bank account routing number. These are typically nine digits long,
US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER
A US Individual Taxpayer Identification Number (ITIN) is a nine-digit number that starts with a \"9\" and contain a \"7\" or \"8\" as the fourth digit. An ITIN can be formatted with a space or a dash after the third and forth digits.
US_PASSPORT_NUMBER
A US passport number. Passport numbers range from six to nine alphanumeric characters.
US_SOCIAL_SECURITY_NUMBER
A US Social Security Number (SSN) is a nine-digit number that is issued to US citizens, permanent residents, and temporary working residents.
Canada specific
CA_HEALTH_NUMBER
A Canadian Health Service Number is a 10-digit unique identifier, required for individuals to access healthcare benefits.
CA_SOCIAL_INSURANCE_NUMBER
A Canadian Social Insurance Number (SIN) is a nine-digit unique identifier, required for individuals to access government programs and benefits.
The SIN is formatted as three groups of three digits, such as 123-456-789. A SIN can be validated through a simple check-digit process called the Luhn algorithm.
UK Specific
UK_NATIONAL_HEALTH_SERVICE_NUMBER
A UK National Health Service Number is a 10-17 digit number, such as 485 777 3456. The current system formats the 10-digit number with spaces after the third and sixth digits. The final digit is an error-detecting checksum.
UK_NATIONAL_INSURANCE_NUMBER
A UK National Insurance Number (NINO) provides individuals with access to National Insurance (social security) benefits. It is also used for some purposes in the UK tax system.
The number is nine digits long and starts with two letters, followed by six numbers and one letter. A NINO can be formatted with a space or a dash after the two letters and after the second, forth, and sixth digits.
UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER
A UK Unique Taxpayer Reference (UTR) is a 10-digit number that identifies a taxpayer or a business.
Custom
Regex filter - You can use a regular expressions to define patterns for a guardrail to recognize and act upon such as serial number, booking ID etc..
Configure guardrail action when the PII entity is detected.
" + } + }, + "documentation":"The PII entity to configure for the guardrail.
" + }, + "GuardrailPiiEntityType":{ + "type":"string", + "enum":[ + "ADDRESS", + "AGE", + "AWS_ACCESS_KEY", + "AWS_SECRET_KEY", + "CA_HEALTH_NUMBER", + "CA_SOCIAL_INSURANCE_NUMBER", + "CREDIT_DEBIT_CARD_CVV", + "CREDIT_DEBIT_CARD_EXPIRY", + "CREDIT_DEBIT_CARD_NUMBER", + "DRIVER_ID", + "EMAIL", + "INTERNATIONAL_BANK_ACCOUNT_NUMBER", + "IP_ADDRESS", + "LICENSE_PLATE", + "MAC_ADDRESS", + "NAME", + "PASSWORD", + "PHONE", + "PIN", + "SWIFT_CODE", + "UK_NATIONAL_HEALTH_SERVICE_NUMBER", + "UK_NATIONAL_INSURANCE_NUMBER", + "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER", + "URL", + "USERNAME", + "US_BANK_ACCOUNT_NUMBER", + "US_BANK_ROUTING_NUMBER", + "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER", + "US_PASSPORT_NUMBER", + "US_SOCIAL_SECURITY_NUMBER", + "VEHICLE_IDENTIFICATION_NUMBER" + ] + }, + "GuardrailRegex":{ + "type":"structure", + "required":[ + "name", + "pattern", + "action" + ], + "members":{ + "name":{ + "shape":"GuardrailRegexNameString", + "documentation":"The name of the regular expression for the guardrail.
" + }, + "description":{ + "shape":"GuardrailRegexDescriptionString", + "documentation":"The description of the regular expression for the guardrail.
" + }, + "pattern":{ + "shape":"GuardrailRegexPatternString", + "documentation":"The pattern of the regular expression configured for the guardrail.
" + }, + "action":{ + "shape":"GuardrailSensitiveInformationAction", + "documentation":"The action taken when a match to the regular expression is detected.
" + } + }, + "documentation":"The regular expression configured for the guardrail.
" + }, + "GuardrailRegexConfig":{ + "type":"structure", + "required":[ + "name", + "pattern", + "action" + ], + "members":{ + "name":{ + "shape":"GuardrailRegexConfigNameString", + "documentation":"The name of the regular expression to configure for the guardrail.
" + }, + "description":{ + "shape":"GuardrailRegexConfigDescriptionString", + "documentation":"The description of the regular expression to configure for the guardrail.
" + }, + "pattern":{ + "shape":"GuardrailRegexConfigPatternString", + "documentation":"The regular expression pattern to configure for the guardrail.
" + }, + "action":{ + "shape":"GuardrailSensitiveInformationAction", + "documentation":"The guardrail action to configure when matching regular expression is detected.
" + } + }, + "documentation":"The regular expression to configure for the guardrail.
" + }, + "GuardrailRegexConfigDescriptionString":{ + "type":"string", + "max":1000, + "min":1 + }, + "GuardrailRegexConfigNameString":{ + "type":"string", + "max":100, + "min":1 + }, + "GuardrailRegexConfigPatternString":{ + "type":"string", + "max":500, + "min":1 + }, + "GuardrailRegexDescriptionString":{ + "type":"string", + "max":1000, + "min":1 + }, + "GuardrailRegexNameString":{ + "type":"string", + "max":100, + "min":1 + }, + "GuardrailRegexPatternString":{ + "type":"string", + "max":500, + "min":1 + }, + "GuardrailRegexes":{ + "type":"list", + "member":{"shape":"GuardrailRegex"} + }, + "GuardrailRegexesConfig":{ + "type":"list", + "member":{"shape":"GuardrailRegexConfig"}, + "max":10, + "min":1 + }, + "GuardrailSensitiveInformationAction":{ + "type":"string", + "enum":[ + "BLOCK", + "ANONYMIZE" + ] + }, + "GuardrailSensitiveInformationPolicy":{ + "type":"structure", + "members":{ + "piiEntities":{ + "shape":"GuardrailPiiEntities", + "documentation":"The list of PII entities configured for the guardrail.
" + }, + "regexes":{ + "shape":"GuardrailRegexes", + "documentation":"The list of regular expressions configured for the guardrail.
" + } + }, + "documentation":"Contains details about PII entities and regular expressions configured for the guardrail.
" + }, + "GuardrailSensitiveInformationPolicyConfig":{ + "type":"structure", + "members":{ + "piiEntitiesConfig":{ + "shape":"GuardrailPiiEntitiesConfig", + "documentation":"A list of PII entities to configure to the guardrail.
" + }, + "regexesConfig":{ + "shape":"GuardrailRegexesConfig", + "documentation":"A list of regular expressions to configure to the guardrail.
" + } + }, + "documentation":"Contains details about PII entities and regular expressions to configure for the guardrail.
" + }, + "GuardrailStatus":{ + "type":"string", + "enum":[ + "CREATING", + "UPDATING", + "VERSIONING", + "READY", + "FAILED", + "DELETING" + ] + }, + "GuardrailStatusReason":{ + "type":"string", + "max":200, + "min":1, + "sensitive":true + }, + "GuardrailStatusReasons":{ + "type":"list", + "member":{"shape":"GuardrailStatusReason"}, + "max":100, + "min":0 + }, + "GuardrailSummaries":{ + "type":"list", + "member":{"shape":"GuardrailSummary"}, + "max":1000, + "min":0 + }, + "GuardrailSummary":{ + "type":"structure", + "required":[ + "id", + "arn", + "status", + "name", + "version", + "createdAt", + "updatedAt" + ], + "members":{ + "id":{ + "shape":"GuardrailId", + "documentation":"The unique identifier of the guardrail.
" + }, + "arn":{ + "shape":"GuardrailArn", + "documentation":"The ARN of the guardrail.
" + }, + "status":{ + "shape":"GuardrailStatus", + "documentation":"The status of the guardrail.
" + }, + "name":{ + "shape":"GuardrailName", + "documentation":"The name of the guardrail.
" + }, + "description":{ + "shape":"GuardrailDescription", + "documentation":"A description of the guardrail.
" + }, + "version":{ + "shape":"GuardrailVersion", + "documentation":"The version of the guardrail.
" + }, + "createdAt":{ + "shape":"Timestamp", + "documentation":"The date and time at which the guardrail was created.
" + }, + "updatedAt":{ + "shape":"Timestamp", + "documentation":"The date and time at which the guardrail was last updated.
" + } + }, + "documentation":"Contains details about a guardrail.
This data type is used in the following API operations:
" + }, + "GuardrailTopic":{ + "type":"structure", + "required":[ + "name", + "definition" + ], + "members":{ + "name":{ + "shape":"GuardrailTopicName", + "documentation":"The name of the topic to deny.
" + }, + "definition":{ + "shape":"GuardrailTopicDefinition", + "documentation":"A definition of the topic to deny.
" + }, + "examples":{ + "shape":"GuardrailTopicExamples", + "documentation":"A list of prompts, each of which is an example of a prompt that can be categorized as belonging to the topic.
" + }, + "type":{ + "shape":"GuardrailTopicType", + "documentation":"Specifies to deny the topic.
" + } + }, + "documentation":"Details about topics for the guardrail to identify and deny.
This data type is used in the following API operations:
" + }, + "GuardrailTopicConfig":{ + "type":"structure", + "required":[ + "name", + "definition", + "type" + ], + "members":{ + "name":{ + "shape":"GuardrailTopicName", + "documentation":"The name of the topic to deny.
" + }, + "definition":{ + "shape":"GuardrailTopicDefinition", + "documentation":"A definition of the topic to deny.
" + }, + "examples":{ + "shape":"GuardrailTopicExamples", + "documentation":"A list of prompts, each of which is an example of a prompt that can be categorized as belonging to the topic.
" + }, + "type":{ + "shape":"GuardrailTopicType", + "documentation":"Specifies to deny the topic.
" + } + }, + "documentation":"Details about topics for the guardrail to identify and deny.
" + }, + "GuardrailTopicDefinition":{ + "type":"string", + "max":200, + "min":1, + "sensitive":true + }, + "GuardrailTopicExample":{ + "type":"string", + "max":100, + "min":1, + "sensitive":true + }, + "GuardrailTopicExamples":{ + "type":"list", + "member":{"shape":"GuardrailTopicExample"}, + "max":5, + "min":0 + }, + "GuardrailTopicName":{ + "type":"string", + "max":100, + "min":1, + "pattern":"[0-9a-zA-Z-_ !?.]+", + "sensitive":true + }, + "GuardrailTopicPolicy":{ + "type":"structure", + "required":["topics"], + "members":{ + "topics":{ + "shape":"GuardrailTopics", + "documentation":"A list of policies related to topics that the guardrail should deny.
" + } + }, + "documentation":"Contains details about topics that the guardrail should identify and deny.
This data type is used in the following API operations:
" + }, + "GuardrailTopicPolicyConfig":{ + "type":"structure", + "required":["topicsConfig"], + "members":{ + "topicsConfig":{ + "shape":"GuardrailTopicsConfig", + "documentation":"A list of policies related to topics that the guardrail should deny.
" + } + }, + "documentation":"Contains details about topics that the guardrail should identify and deny.
" + }, + "GuardrailTopicType":{ + "type":"string", + "enum":["DENY"] + }, + "GuardrailTopics":{ + "type":"list", + "member":{"shape":"GuardrailTopic"}, + "max":30, + "min":1 + }, + "GuardrailTopicsConfig":{ + "type":"list", + "member":{"shape":"GuardrailTopicConfig"}, + "max":30, + "min":1 + }, + "GuardrailVersion":{ + "type":"string", + "pattern":"(([1-9][0-9]{0,7})|(DRAFT))" + }, + "GuardrailWord":{ + "type":"structure", + "required":["text"], + "members":{ + "text":{ + "shape":"GuardrailWordTextString", + "documentation":"Text of the word configured for the guardrail to block.
" + } + }, + "documentation":"A word configured for the guardrail.
" + }, + "GuardrailWordConfig":{ + "type":"structure", + "required":["text"], + "members":{ + "text":{ + "shape":"GuardrailWordConfigTextString", + "documentation":"Text of the word configured for the guardrail to block.
" + } + }, + "documentation":"A word to configure for the guardrail.
" + }, + "GuardrailWordConfigTextString":{ + "type":"string", + "max":100, + "min":1 + }, + "GuardrailWordPolicy":{ + "type":"structure", + "members":{ + "words":{ + "shape":"GuardrailWords", + "documentation":"A list of words configured for the guardrail.
" + }, + "managedWordLists":{ + "shape":"GuardrailManagedWordLists", + "documentation":"A list of managed words configured for the guardrail.
" + } + }, + "documentation":"Contains details about the word policy configured for the guardrail.
" + }, + "GuardrailWordPolicyConfig":{ + "type":"structure", + "members":{ + "wordsConfig":{ + "shape":"GuardrailWordsConfig", + "documentation":"A list of words to configure for the guardrail.
" + }, + "managedWordListsConfig":{ + "shape":"GuardrailManagedWordListsConfig", + "documentation":"A list of managed words to configure for the guardrail.
" + } + }, + "documentation":"Contains details about the word policy to configured for the guardrail.
" + }, + "GuardrailWordTextString":{ + "type":"string", + "max":100, + "min":1 + }, + "GuardrailWords":{ + "type":"list", + "member":{"shape":"GuardrailWord"}, + "max":10000, + "min":1 + }, + "GuardrailWordsConfig":{ + "type":"list", + "member":{"shape":"GuardrailWordConfig"}, + "max":10000, + "min":1 + }, + "HumanEvaluationConfig":{ + "type":"structure", + "required":["datasetMetricConfigs"], + "members":{ + "humanWorkflowConfig":{ + "shape":"HumanWorkflowConfig", + "documentation":"The parameters of the human workflow.
" + }, + "customMetrics":{ + "shape":"HumanEvaluationCustomMetrics", + "documentation":"A HumanEvaluationCustomMetric object. It contains the names the metrics, how the metrics are to be evaluated, an optional description.
Use to specify the metrics, task, and prompt dataset to be used in your model evaluation job.
" + } + }, + "documentation":"Specifies the custom metrics, how tasks will be rated, the flow definition ARN, and your custom prompt datasets. Model evaluation jobs use human workers only support the use of custom prompt datasets. To learn more about custom prompt datasets and the required format, see Custom prompt datasets.
When you create custom metrics in HumanEvaluationCustomMetric you must specify the metric's name. The list of names specified in the HumanEvaluationCustomMetric array, must match the metricNames array of strings specified in EvaluationDatasetMetricConfig. For example, if in the HumanEvaluationCustomMetric array your specified the names \"accuracy\", \"toxicity\", \"readability\" as custom metrics then the metricNames array would need to look like the following [\"accuracy\", \"toxicity\", \"readability\"] in EvaluationDatasetMetricConfig.
The name of the metric. Your human evaluators will see this name in the evaluation UI.
" + }, + "description":{ + "shape":"EvaluationMetricDescription", + "documentation":"An optional description of the metric. Use this parameter to provide more details about the metric.
" + }, + "ratingMethod":{ + "shape":"EvaluationRatingMethod", + "documentation":"Choose how you want your human workers to evaluation your model. Valid values for rating methods are ThumbsUpDown, IndividualLikertScale,ComparisonLikertScale, ComparisonChoice, and ComparisonRank
In a model evaluation job that uses human workers you must define the name of the metric, and how you want that metric rated ratingMethod, and an optional description of the metric.
The Amazon Resource Number (ARN) for the flow definition
" + }, + "instructions":{ + "shape":"HumanTaskInstructions", + "documentation":"Instructions for the flow definition
" + } + }, + "documentation":"Contains SageMakerFlowDefinition object. The object is used to specify the prompt dataset, task type, rating method and metric names.
The Amazon Resource Name (ARN) of the imported model.
" + }, + "modelName":{ + "shape":"ImportedModelName", + "documentation":"Name of the imported model.
" + }, + "creationTime":{ + "shape":"Timestamp", + "documentation":"Creation time of the imported model.
" + } + }, + "documentation":"Information about tne imported model.
" + }, + "ImportedModelSummaryList":{ + "type":"list", + "member":{"shape":"ImportedModelSummary"} + }, + "InferenceProfileArn":{ + "type":"string", + "max":2048, + "min":1, + "pattern":"arn:aws(|-us-gov|-cn|-iso|-iso-b):bedrock:(|[0-9a-z-]{0,20}):(|[0-9]{12}):inference-profile/[a-zA-Z0-9-:.]+" + }, + "InferenceProfileDescription":{ + "type":"string", + "max":500, + "min":1, + "pattern":".+" + }, + "InferenceProfileId":{ + "type":"string", + "max":64, + "min":1, + "pattern":"[a-zA-Z0-9-:.]+" + }, + "InferenceProfileIdentifier":{ + "type":"string", + "max":2048, + "min":1, + "pattern":"(arn:aws(|-us-gov|-cn|-iso|-iso-b):bedrock:(|[0-9a-z-]{0,20}):(|[0-9]{12}):inference-profile/)?[a-zA-Z0-9-:.]+" + }, + "InferenceProfileModel":{ + "type":"structure", + "members":{ + "modelArn":{ + "shape":"FoundationModelArn", + "documentation":"The Amazon Resource Name (ARN) of the model.
" + } + }, + "documentation":"Contains information about a model.
" + }, + "InferenceProfileModels":{ + "type":"list", + "member":{"shape":"InferenceProfileModel"}, + "max":5, + "min":1 + }, + "InferenceProfileName":{ + "type":"string", + "max":64, + "min":1, + "pattern":"([0-9a-zA-Z][ _-]?)+" + }, + "InferenceProfileStatus":{ + "type":"string", + "enum":["ACTIVE"] + }, + "InferenceProfileSummaries":{ + "type":"list", + "member":{"shape":"InferenceProfileSummary"} + }, + "InferenceProfileSummary":{ + "type":"structure", + "required":[ + "inferenceProfileName", + "models", + "inferenceProfileArn", + "inferenceProfileId", + "status", + "type" + ], + "members":{ + "inferenceProfileName":{ + "shape":"InferenceProfileName", + "documentation":"The name of the inference profile.
" + }, + "models":{ + "shape":"InferenceProfileModels", + "documentation":"A list of information about each model in the inference profile.
" + }, + "description":{ + "shape":"InferenceProfileDescription", + "documentation":"The description of the inference profile.
" + }, + "createdAt":{ + "shape":"Timestamp", + "documentation":"The time at which the inference profile was created.
" + }, + "updatedAt":{ + "shape":"Timestamp", + "documentation":"The time at which the inference profile was last updated.
" + }, + "inferenceProfileArn":{ + "shape":"InferenceProfileArn", + "documentation":"The Amazon Resource Name (ARN) of the inference profile.
" + }, + "inferenceProfileId":{ + "shape":"InferenceProfileId", + "documentation":"The unique identifier of the inference profile.
" + }, + "status":{ + "shape":"InferenceProfileStatus", + "documentation":"The status of the inference profile. ACTIVE means that the inference profile is available to use.
The type of the inference profile. SYSTEM_DEFINED means that the inference profile is defined by Amazon Bedrock.
Contains information about an inference profile.
" + }, + "InferenceProfileType":{ + "type":"string", + "enum":["SYSTEM_DEFINED"] + }, + "InferenceType":{ + "type":"string", + "enum":[ + "ON_DEMAND", + "PROVISIONED" + ] + }, + "InferenceTypeList":{ + "type":"list", + "member":{"shape":"InferenceType"} + }, + "InternalServerException":{ + "type":"structure", + "members":{ + "message":{"shape":"NonBlankString"} + }, + "documentation":"An internal server error occurred. Retry your request.
", + "error":{"httpStatusCode":500}, + "exception":true, + "fault":true + }, + "JobName":{ + "type":"string", + "max":63, + "min":1, + "pattern":"[a-zA-Z0-9](-*[a-zA-Z0-9\\+\\-\\.])*" + }, + "KeyPrefix":{ + "type":"string", + "max":1024, + "min":0 + }, + "KmsKeyArn":{ + "type":"string", + "max":2048, + "min":1, + "pattern":"arn:aws(-[^:]+)?:kms:[a-zA-Z0-9-]*:[0-9]{12}:key/[a-zA-Z0-9-]{36}" + }, + "KmsKeyId":{ + "type":"string", + "max":2048, + "min":1, + "pattern":"(arn:aws(-[^:]+)?:kms:[a-zA-Z0-9-]*:[0-9]{12}:((key/[a-zA-Z0-9-]{36})|(alias/[a-zA-Z0-9-_/]+)))|([a-zA-Z0-9-]{36})|(alias/[a-zA-Z0-9-_/]+)" + }, + "ListCustomModelsRequest":{ + "type":"structure", + "members":{ + "creationTimeBefore":{ + "shape":"Timestamp", + "documentation":"Return custom models created before the specified time.
", + "location":"querystring", + "locationName":"creationTimeBefore" + }, + "creationTimeAfter":{ + "shape":"Timestamp", + "documentation":"Return custom models created after the specified time.
", + "location":"querystring", + "locationName":"creationTimeAfter" + }, + "nameContains":{ + "shape":"CustomModelName", + "documentation":"Return custom models only if the job name contains these characters.
", + "location":"querystring", + "locationName":"nameContains" + }, + "baseModelArnEquals":{ + "shape":"ModelArn", + "documentation":"Return custom models only if the base model Amazon Resource Name (ARN) matches this parameter.
", + "location":"querystring", + "locationName":"baseModelArnEquals" + }, + "foundationModelArnEquals":{ + "shape":"FoundationModelArn", + "documentation":"Return custom models only if the foundation model Amazon Resource Name (ARN) matches this parameter.
", + "location":"querystring", + "locationName":"foundationModelArnEquals" + }, + "maxResults":{ + "shape":"MaxResults", + "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.
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.
The field to sort by in the returned list of models.
", + "location":"querystring", + "locationName":"sortBy" + }, + "sortOrder":{ + "shape":"SortOrder", + "documentation":"The sort order of the results.
", + "location":"querystring", + "locationName":"sortOrder" + }, + "isOwned":{ + "shape":"Boolean", + "documentation":"Return custom models depending on if the current account owns them (true) or if they were shared with the current account (false).
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.
Model summaries.
" + } + } + }, + "ListEvaluationJobsRequest":{ + "type":"structure", + "members":{ + "creationTimeAfter":{ + "shape":"Timestamp", + "documentation":"A filter that includes model evaluation jobs created after the time specified.
", + "location":"querystring", + "locationName":"creationTimeAfter" + }, + "creationTimeBefore":{ + "shape":"Timestamp", + "documentation":"A filter that includes model evaluation jobs created prior to the time specified.
", + "location":"querystring", + "locationName":"creationTimeBefore" + }, + "statusEquals":{ + "shape":"EvaluationJobStatus", + "documentation":"Only return jobs where the status condition is met.
", + "location":"querystring", + "locationName":"statusEquals" + }, + "nameContains":{ + "shape":"EvaluationJobName", + "documentation":"Query parameter string for model evaluation job names.
", + "location":"querystring", + "locationName":"nameContains" + }, + "maxResults":{ + "shape":"MaxResults", + "documentation":"The maximum number of results to return.
", + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"PaginationToken", + "documentation":"Continuation token from the previous response, for Amazon Bedrock to list the next set of results.
", + "location":"querystring", + "locationName":"nextToken" + }, + "sortBy":{ + "shape":"SortJobsBy", + "documentation":"Allows you to sort model evaluation jobs by when they were created.
", + "location":"querystring", + "locationName":"sortBy" + }, + "sortOrder":{ + "shape":"SortOrder", + "documentation":"How you want the order of jobs sorted.
", + "location":"querystring", + "locationName":"sortOrder" + } + } + }, + "ListEvaluationJobsResponse":{ + "type":"structure", + "members":{ + "nextToken":{ + "shape":"PaginationToken", + "documentation":"Continuation token from the previous response, for Amazon Bedrock to list the next set of results.
" + }, + "jobSummaries":{ + "shape":"EvaluationSummaries", + "documentation":"A summary of the model evaluation jobs.
" + } + } + }, + "ListFoundationModelsRequest":{ + "type":"structure", + "members":{ + "byProvider":{ + "shape":"Provider", + "documentation":"Return models belonging to the model provider that you specify.
", + "location":"querystring", + "locationName":"byProvider" + }, + "byCustomizationType":{ + "shape":"ModelCustomization", + "documentation":"Return models that support the customization type that you specify. For more information, see Custom models in the Amazon Bedrock User Guide.
", + "location":"querystring", + "locationName":"byCustomizationType" + }, + "byOutputModality":{ + "shape":"ModelModality", + "documentation":"Return models that support the output modality that you specify.
", + "location":"querystring", + "locationName":"byOutputModality" + }, + "byInferenceType":{ + "shape":"InferenceType", + "documentation":"Return models that support the inference type that you specify. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
", + "location":"querystring", + "locationName":"byInferenceType" + } + } + }, + "ListFoundationModelsResponse":{ + "type":"structure", + "members":{ + "modelSummaries":{ + "shape":"FoundationModelSummaryList", + "documentation":"A list of Amazon Bedrock foundation models.
" + } + } + }, + "ListGuardrailsRequest":{ + "type":"structure", + "members":{ + "guardrailIdentifier":{ + "shape":"GuardrailIdentifier", + "documentation":"The unique identifier of the guardrail. This can be an ID or the ARN.
", + "location":"querystring", + "locationName":"guardrailIdentifier" + }, + "maxResults":{ + "shape":"MaxResults", + "documentation":"The maximum number of results to return in the response.
", + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"PaginationToken", + "documentation":"If there are more results than were returned in the response, the response returns a nextToken that you can send in another ListGuardrails request to see the next batch of results.
A list of objects, each of which contains details about a guardrail.
" + }, + "nextToken":{ + "shape":"PaginationToken", + "documentation":"If there are more results than were returned in the response, the response returns a nextToken that you can send in another ListGuardrails request to see the next batch of results.
Return imported models that created before the specified time.
", + "location":"querystring", + "locationName":"creationTimeBefore" + }, + "creationTimeAfter":{ + "shape":"Timestamp", + "documentation":"Return imported models that were created after the specified time.
", + "location":"querystring", + "locationName":"creationTimeAfter" + }, + "nameContains":{ + "shape":"ImportedModelName", + "documentation":"Return imported models only if the model name contains these characters.
", + "location":"querystring", + "locationName":"nameContains" + }, + "maxResults":{ + "shape":"MaxResults", + "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.
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.
The field to sort by in the returned list of imported models.
", + "location":"querystring", + "locationName":"sortBy" + }, + "sortOrder":{ + "shape":"SortOrder", + "documentation":"Specifies whetehr to sort the results in ascending or descending order.
", + "location":"querystring", + "locationName":"sortOrder" + } + } + }, + "ListImportedModelsResponse":{ + "type":"structure", + "members":{ + "nextToken":{ + "shape":"PaginationToken", + "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.
Model summaries.
" + } + } + }, + "ListInferenceProfilesRequest":{ + "type":"structure", + "members":{ + "maxResults":{ + "shape":"MaxResults", + "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.
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.
A list of information about each inference profile that you can use.
" + }, + "nextToken":{ + "shape":"PaginationToken", + "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.
Filters for model copy jobs created after the specified time.
", + "location":"querystring", + "locationName":"creationTimeAfter" + }, + "creationTimeBefore":{ + "shape":"Timestamp", + "documentation":"Filters for model copy jobs created before the specified time.
", + "location":"querystring", + "locationName":"creationTimeBefore" + }, + "statusEquals":{ + "shape":"ModelCopyJobStatus", + "documentation":"Filters for model copy jobs whose status matches the value that you specify.
", + "location":"querystring", + "locationName":"statusEquals" + }, + "sourceAccountEquals":{ + "shape":"AccountId", + "documentation":"Filters for model copy jobs in which the account that the source model belongs to is equal to the value that you specify.
", + "location":"querystring", + "locationName":"sourceAccountEquals" + }, + "sourceModelArnEquals":{ + "shape":"ModelArn", + "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.
", + "location":"querystring", + "locationName":"sourceModelArnEquals" + }, + "targetModelNameContains":{ + "shape":"CustomModelName", + "documentation":"Filters for model copy jobs in which the name of the copied model contains the string that you specify.
", + "location":"querystring", + "locationName":"outputModelNameContains" + }, + "maxResults":{ + "shape":"MaxResults", + "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.
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.
The field to sort by in the returned list of model copy jobs.
", + "location":"querystring", + "locationName":"sortBy" + }, + "sortOrder":{ + "shape":"SortOrder", + "documentation":"Specifies whether to sort the results in ascending or descending order.
", + "location":"querystring", + "locationName":"sortOrder" + } + } + }, + "ListModelCopyJobsResponse":{ + "type":"structure", + "members":{ + "nextToken":{ + "shape":"PaginationToken", + "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.
A list of information about each model copy job.
" + } + } + }, + "ListModelCustomizationJobsRequest":{ + "type":"structure", + "members":{ + "creationTimeAfter":{ + "shape":"Timestamp", + "documentation":"Return customization jobs created after the specified time.
", + "location":"querystring", + "locationName":"creationTimeAfter" + }, + "creationTimeBefore":{ + "shape":"Timestamp", + "documentation":"Return customization jobs created before the specified time.
", + "location":"querystring", + "locationName":"creationTimeBefore" + }, + "statusEquals":{ + "shape":"FineTuningJobStatus", + "documentation":"Return customization jobs with the specified status.
", + "location":"querystring", + "locationName":"statusEquals" + }, + "nameContains":{ + "shape":"JobName", + "documentation":"Return customization jobs only if the job name contains these characters.
", + "location":"querystring", + "locationName":"nameContains" + }, + "maxResults":{ + "shape":"MaxResults", + "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.
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.
The field to sort by in the returned list of jobs.
", + "location":"querystring", + "locationName":"sortBy" + }, + "sortOrder":{ + "shape":"SortOrder", + "documentation":"The sort order of the results.
", + "location":"querystring", + "locationName":"sortOrder" + } + } + }, + "ListModelCustomizationJobsResponse":{ + "type":"structure", + "members":{ + "nextToken":{ + "shape":"PaginationToken", + "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.
Job summaries.
" + } + } + }, + "ListModelImportJobsRequest":{ + "type":"structure", + "members":{ + "creationTimeAfter":{ + "shape":"Timestamp", + "documentation":"Return import jobs that were created after the specified time.
", + "location":"querystring", + "locationName":"creationTimeAfter" + }, + "creationTimeBefore":{ + "shape":"Timestamp", + "documentation":"Return import jobs that were created before the specified time.
", + "location":"querystring", + "locationName":"creationTimeBefore" + }, + "statusEquals":{ + "shape":"ModelImportJobStatus", + "documentation":"Return imported jobs with the specified status.
", + "location":"querystring", + "locationName":"statusEquals" + }, + "nameContains":{ + "shape":"JobName", + "documentation":"Return imported jobs only if the job name contains these characters.
", + "location":"querystring", + "locationName":"nameContains" + }, + "maxResults":{ + "shape":"MaxResults", + "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.
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.
The field to sort by in the returned list of imported jobs.
", + "location":"querystring", + "locationName":"sortBy" + }, + "sortOrder":{ + "shape":"SortOrder", + "documentation":"Specifies whether to sort the results in ascending or descending order.
", + "location":"querystring", + "locationName":"sortOrder" + } + } + }, + "ListModelImportJobsResponse":{ + "type":"structure", + "members":{ + "nextToken":{ + "shape":"PaginationToken", + "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.
Import job summaries.
" + } + } + }, + "ListModelInvocationJobsRequest":{ + "type":"structure", + "members":{ + "submitTimeAfter":{ + "shape":"Timestamp", + "documentation":"Specify a time to filter for batch inference jobs that were submitted after the time you specify.
", + "location":"querystring", + "locationName":"submitTimeAfter" + }, + "submitTimeBefore":{ + "shape":"Timestamp", + "documentation":"Specify a time to filter for batch inference jobs that were submitted before the time you specify.
", + "location":"querystring", + "locationName":"submitTimeBefore" + }, + "statusEquals":{ + "shape":"ModelInvocationJobStatus", + "documentation":"Specify a status to filter for batch inference jobs whose statuses match the string you specify.
", + "location":"querystring", + "locationName":"statusEquals" + }, + "nameContains":{ + "shape":"ModelInvocationJobName", + "documentation":"Specify a string to filter for batch inference jobs whose names contain the string.
", + "location":"querystring", + "locationName":"nameContains" + }, + "maxResults":{ + "shape":"MaxResults", + "documentation":"The maximum number of results to return. If there are more results than the number that you specify, a nextToken value is returned. Use the nextToken in a request to return the next batch of results.
If there were more results than the value you specified in the maxResults field in a previous ListModelInvocationJobs request, the response would have returned a nextToken value. To see the next batch of results, send the nextToken value in another request.
An attribute by which to sort the results.
", + "location":"querystring", + "locationName":"sortBy" + }, + "sortOrder":{ + "shape":"SortOrder", + "documentation":"Specifies whether to sort the results by ascending or descending order.
", + "location":"querystring", + "locationName":"sortOrder" + } + } + }, + "ListModelInvocationJobsResponse":{ + "type":"structure", + "members":{ + "nextToken":{ + "shape":"PaginationToken", + "documentation":"If there are more results than can fit in the response, a nextToken is returned. Use the nextToken in a request to return the next batch of results.
A list of items, each of which contains a summary about a batch inference job.
" + } + } + }, + "ListProvisionedModelThroughputsRequest":{ + "type":"structure", + "members":{ + "creationTimeAfter":{ + "shape":"Timestamp", + "documentation":"A filter that returns Provisioned Throughputs created after the specified time.
", + "location":"querystring", + "locationName":"creationTimeAfter" + }, + "creationTimeBefore":{ + "shape":"Timestamp", + "documentation":"A filter that returns Provisioned Throughputs created before the specified time.
", + "location":"querystring", + "locationName":"creationTimeBefore" + }, + "statusEquals":{ + "shape":"ProvisionedModelStatus", + "documentation":"A filter that returns Provisioned Throughputs if their statuses matches the value that you specify.
", + "location":"querystring", + "locationName":"statusEquals" + }, + "modelArnEquals":{ + "shape":"ModelArn", + "documentation":"A filter that returns Provisioned Throughputs whose model Amazon Resource Name (ARN) is equal to the value that you specify.
", + "location":"querystring", + "locationName":"modelArnEquals" + }, + "nameContains":{ + "shape":"ProvisionedModelName", + "documentation":"A filter that returns Provisioned Throughputs if their name contains the expression that you specify.
", + "location":"querystring", + "locationName":"nameContains" + }, + "maxResults":{ + "shape":"MaxResults", + "documentation":"THe maximum number of results to return in the response. If there are more results than the number you specified, the response returns a nextToken value. To see the next batch of results, send the nextToken value in another list request.
If there are more results than the number you specified in the maxResults field, the response returns a nextToken value. To see the next batch of results, specify the nextToken value in this field.
The field by which to sort the returned list of Provisioned Throughputs.
", + "location":"querystring", + "locationName":"sortBy" + }, + "sortOrder":{ + "shape":"SortOrder", + "documentation":"The sort order of the results.
", + "location":"querystring", + "locationName":"sortOrder" + } + } + }, + "ListProvisionedModelThroughputsResponse":{ + "type":"structure", + "members":{ + "nextToken":{ + "shape":"PaginationToken", + "documentation":"If there are more results than the number you specified in the maxResults field, this value is returned. To see the next batch of results, include this value in the nextToken field in another list request.
A list of summaries, one for each Provisioned Throughput in the response.
" + } + } + }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["resourceARN"], + "members":{ + "resourceARN":{ + "shape":"TaggableResourcesArn", + "documentation":"The Amazon Resource Name (ARN) of the resource.
" + } + } + }, + "ListTagsForResourceResponse":{ + "type":"structure", + "members":{ + "tags":{ + "shape":"TagList", + "documentation":"An array of the tags associated with this resource.
" + } + } + }, + "LogGroupName":{ + "type":"string", + "max":512, + "min":1 + }, + "LoggingConfig":{ + "type":"structure", + "members":{ + "cloudWatchConfig":{ + "shape":"CloudWatchConfig", + "documentation":"CloudWatch logging configuration.
" + }, + "s3Config":{ + "shape":"S3Config", + "documentation":"S3 configuration for storing log data.
" + }, + "textDataDeliveryEnabled":{ + "shape":"Boolean", + "documentation":"Set to include text data in the log delivery.
" + }, + "imageDataDeliveryEnabled":{ + "shape":"Boolean", + "documentation":"Set to include image data in the log delivery.
" + }, + "embeddingDataDeliveryEnabled":{ + "shape":"Boolean", + "documentation":"Set to include embeddings data in the log delivery.
" + } + }, + "documentation":"Configuration fields for invocation logging.
" + }, + "MaxResults":{ + "type":"integer", + "box":true, + "max":1000, + "min":1 + }, + "Message":{ + "type":"string", + "max":2048, + "min":0, + "sensitive":true + }, + "MetricFloat":{ + "type":"float", + "box":true + }, + "ModelArn":{ + "type":"string", + "max":1011, + "min":20, + "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}))" + }, + "ModelCopyJobArn":{ + "type":"string", + "max":1011, + "min":0, + "pattern":"arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:model-copy-job/[a-z0-9]{12}" + }, + "ModelCopyJobStatus":{ + "type":"string", + "enum":[ + "InProgress", + "Completed", + "Failed" + ] + }, + "ModelCopyJobSummaries":{ + "type":"list", + "member":{"shape":"ModelCopyJobSummary"} + }, + "ModelCopyJobSummary":{ + "type":"structure", + "required":[ + "jobArn", + "status", + "creationTime", + "targetModelArn", + "sourceAccountId", + "sourceModelArn" + ], + "members":{ + "jobArn":{ + "shape":"ModelCopyJobArn", + "documentation":"The Amazon Resoource Name (ARN) of the model copy job.
" + }, + "status":{ + "shape":"ModelCopyJobStatus", + "documentation":"The status of the model copy job.
" + }, + "creationTime":{ + "shape":"Timestamp", + "documentation":"The time that the model copy job was created.
" + }, + "targetModelArn":{ + "shape":"CustomModelArn", + "documentation":"The Amazon Resource Name (ARN) of the copied model.
" + }, + "targetModelName":{ + "shape":"CustomModelName", + "documentation":"The name of the copied model.
" + }, + "sourceAccountId":{ + "shape":"AccountId", + "documentation":"The unique identifier of the account that the model being copied originated from.
" + }, + "sourceModelArn":{ + "shape":"ModelArn", + "documentation":"The Amazon Resource Name (ARN) of the original model being copied.
" + }, + "targetModelKmsKeyArn":{ + "shape":"KmsKeyArn", + "documentation":"The Amazon Resource Name (ARN) of the KMS key used to encrypt the copied model.
" + }, + "targetModelTags":{ + "shape":"TagList", + "documentation":"Tags associated with the copied model.
" + }, + "failureMessage":{ + "shape":"ErrorMessage", + "documentation":"If a model fails to be copied, a message describing why the job failed is included here.
" + }, + "sourceModelName":{ + "shape":"CustomModelName", + "documentation":"The name of the original model being copied.
" + } + }, + "documentation":"Contains details about each model copy job.
This data type is used in the following API operations:
" + }, + "ModelCustomization":{ + "type":"string", + "enum":[ + "FINE_TUNING", + "CONTINUED_PRE_TRAINING" + ] + }, + "ModelCustomizationHyperParameters":{ + "type":"map", + "key":{"shape":"String"}, + "value":{"shape":"String"} + }, + "ModelCustomizationJobArn":{ + "type":"string", + "max":1011, + "min":0, + "pattern":"arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:model-customization-job/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([a-z0-9-]{1,63}[.]){0,2}[a-z0-9-]{1,63}([:][a-z0-9-]{1,63}){0,2}/[a-z0-9]{12}" + }, + "ModelCustomizationJobIdentifier":{ + "type":"string", + "max":1011, + "min":0, + "pattern":"(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:model-customization-job/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([a-z0-9-]{1,63}[.]){0,2}[a-z0-9-]{1,63}([:][a-z0-9-]{1,63}){0,2}/[a-z0-9]{12})|([a-zA-Z0-9](-*[a-zA-Z0-9\\+\\-\\.])*)" + }, + "ModelCustomizationJobStatus":{ + "type":"string", + "enum":[ + "InProgress", + "Completed", + "Failed", + "Stopping", + "Stopped" + ] + }, + "ModelCustomizationJobSummaries":{ + "type":"list", + "member":{"shape":"ModelCustomizationJobSummary"} + }, + "ModelCustomizationJobSummary":{ + "type":"structure", + "required":[ + "jobArn", + "baseModelArn", + "jobName", + "status", + "creationTime" + ], + "members":{ + "jobArn":{ + "shape":"ModelCustomizationJobArn", + "documentation":"Amazon Resource Name (ARN) of the customization job.
" + }, + "baseModelArn":{ + "shape":"ModelArn", + "documentation":"Amazon Resource Name (ARN) of the base model.
" + }, + "jobName":{ + "shape":"JobName", + "documentation":"Name of the customization job.
" + }, + "status":{ + "shape":"ModelCustomizationJobStatus", + "documentation":"Status of the customization job.
" + }, + "lastModifiedTime":{ + "shape":"Timestamp", + "documentation":"Time that the customization job was last modified.
" + }, + "creationTime":{ + "shape":"Timestamp", + "documentation":"Creation time of the custom model.
" + }, + "endTime":{ + "shape":"Timestamp", + "documentation":"Time that the customization job ended.
" + }, + "customModelArn":{ + "shape":"CustomModelArn", + "documentation":"Amazon Resource Name (ARN) of the custom model.
" + }, + "customModelName":{ + "shape":"CustomModelName", + "documentation":"Name of the custom model.
" + }, + "customizationType":{ + "shape":"CustomizationType", + "documentation":"Specifies whether to carry out continued pre-training of a model or whether to fine-tune it. For more information, see Custom models.
" + } + }, + "documentation":"Information about one customization job
" + }, + "ModelCustomizationList":{ + "type":"list", + "member":{"shape":"ModelCustomization"} + }, + "ModelDataSource":{ + "type":"structure", + "members":{ + "s3DataSource":{ + "shape":"S3DataSource", + "documentation":"The Amazon S3 data source of the imported model.
" + } + }, + "documentation":"Data source for the imported model.
", + "union":true + }, + "ModelId":{ + "type":"string", + "max":2048, + "min":1, + "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}$)))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.]?[a-z0-9-]{1,63})([:][a-z0-9-]{1,63}){0,2})|(([0-9a-zA-Z][_-]?)+)" + }, + "ModelIdentifier":{ + "type":"string", + "max":2048, + "min":1, + "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-]{1,63}){0,2})?/[a-z0-9]{12})|(:foundation-model/([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.]?[a-z0-9-]{1,63})([:][a-z0-9-]{1,63}){0,2})))|(([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.]?[a-z0-9-]{1,63})([:][a-z0-9-]{1,63}){0,2}))|(([0-9a-zA-Z][_-]?)+)" + }, + "ModelImportJobArn":{ + "type":"string", + "max":1011, + "min":0, + "pattern":"arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:model-import-job/[a-z0-9]{12}" + }, + "ModelImportJobIdentifier":{ + "type":"string", + "max":1011, + "min":0, + "pattern":"(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:model-import-job/[a-z0-9]{12})|([a-zA-Z0-9](-*[a-zA-Z0-9\\+\\-\\.])*)" + }, + "ModelImportJobStatus":{ + "type":"string", + "enum":[ + "InProgress", + "Completed", + "Failed" + ] + }, + "ModelImportJobSummaries":{ + "type":"list", + "member":{"shape":"ModelImportJobSummary"} + }, + "ModelImportJobSummary":{ + "type":"structure", + "required":[ + "jobArn", + "jobName", + "status", + "creationTime" + ], + "members":{ + "jobArn":{ + "shape":"ModelImportJobArn", + "documentation":"The Amazon Resource Name (ARN) of the import job.
" + }, + "jobName":{ + "shape":"JobName", + "documentation":"The name of the import job.
" + }, + "status":{ + "shape":"ModelImportJobStatus", + "documentation":"The status of the imported job.
" + }, + "lastModifiedTime":{ + "shape":"Timestamp", + "documentation":"The time when the import job was last modified.
" + }, + "creationTime":{ + "shape":"Timestamp", + "documentation":"The time import job was created.
" + }, + "endTime":{ + "shape":"Timestamp", + "documentation":"The time when import job ended.
" + }, + "importedModelArn":{ + "shape":"ImportedModelArn", + "documentation":"The Amazon resource Name (ARN) of the imported model.
" + }, + "importedModelName":{ + "shape":"ImportedModelName", + "documentation":"The name of the imported model.
" + } + }, + "documentation":"Information about the import job.
" + }, + "ModelInvocationIdempotencyToken":{ + "type":"string", + "max":256, + "min":1, + "pattern":"[a-zA-Z0-9]{1,256}(-*[a-zA-Z0-9]){0,256}" + }, + "ModelInvocationJobArn":{ + "type":"string", + "max":1011, + "min":0, + "pattern":"(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:model-invocation-job/[a-z0-9]{12})" + }, + "ModelInvocationJobIdentifier":{ + "type":"string", + "max":1011, + "min":0, + "pattern":"((arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:model-invocation-job/)?[a-z0-9]{12})" + }, + "ModelInvocationJobInputDataConfig":{ + "type":"structure", + "members":{ + "s3InputDataConfig":{ + "shape":"ModelInvocationJobS3InputDataConfig", + "documentation":"Contains the configuration of the S3 location of the input data.
" + } + }, + "documentation":"Details about the location of the input to the batch inference job.
", + "union":true + }, + "ModelInvocationJobName":{ + "type":"string", + "max":63, + "min":1, + "pattern":"[a-zA-Z0-9]{1,63}(-*[a-zA-Z0-9\\+\\-\\.]){0,63}" + }, + "ModelInvocationJobOutputDataConfig":{ + "type":"structure", + "members":{ + "s3OutputDataConfig":{ + "shape":"ModelInvocationJobS3OutputDataConfig", + "documentation":"Contains the configuration of the S3 location of the output data.
" + } + }, + "documentation":"Contains the configuration of the S3 location of the output data.
", + "union":true + }, + "ModelInvocationJobS3InputDataConfig":{ + "type":"structure", + "required":["s3Uri"], + "members":{ + "s3InputFormat":{ + "shape":"S3InputFormat", + "documentation":"The format of the input data.
" + }, + "s3Uri":{ + "shape":"S3Uri", + "documentation":"The S3 location of the input data.
" + }, + "s3BucketOwner":{ + "shape":"AccountId", + "documentation":"The ID of the Amazon Web Services account that owns the S3 bucket containing the input data.
" + } + }, + "documentation":"Contains the configuration of the S3 location of the input data.
" + }, + "ModelInvocationJobS3OutputDataConfig":{ + "type":"structure", + "required":["s3Uri"], + "members":{ + "s3Uri":{ + "shape":"S3Uri", + "documentation":"The S3 location of the output data.
" + }, + "s3EncryptionKeyId":{ + "shape":"KmsKeyId", + "documentation":"The unique identifier of the key that encrypts the S3 location of the output data.
" + }, + "s3BucketOwner":{ + "shape":"AccountId", + "documentation":"The ID of the Amazon Web Services account that owns the S3 bucket containing the output data.
" + } + }, + "documentation":"Contains the configuration of the S3 location of the output data.
" + }, + "ModelInvocationJobStatus":{ + "type":"string", + "enum":[ + "Submitted", + "InProgress", + "Completed", + "Failed", + "Stopping", + "Stopped", + "PartiallyCompleted", + "Expired", + "Validating", + "Scheduled" + ] + }, + "ModelInvocationJobSummaries":{ + "type":"list", + "member":{"shape":"ModelInvocationJobSummary"} + }, + "ModelInvocationJobSummary":{ + "type":"structure", + "required":[ + "jobArn", + "jobName", + "modelId", + "roleArn", + "submitTime", + "inputDataConfig", + "outputDataConfig" + ], + "members":{ + "jobArn":{ + "shape":"ModelInvocationJobArn", + "documentation":"The Amazon Resource Name (ARN) of the batch inference job.
" + }, + "jobName":{ + "shape":"ModelInvocationJobName", + "documentation":"The name of the batch inference job.
" + }, + "modelId":{ + "shape":"ModelId", + "documentation":"The unique identifier of the foundation model used for model inference.
" + }, + "clientRequestToken":{ + "shape":"ModelInvocationIdempotencyToken", + "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, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
" + }, + "roleArn":{ + "shape":"RoleArn", + "documentation":"The Amazon Resource Name (ARN) of the service role with permissions to carry out and manage batch inference. You can use the console to create a default service role or follow the steps at Create a service role for batch inference.
" + }, + "status":{ + "shape":"ModelInvocationJobStatus", + "documentation":"The status of the batch inference job.
" + }, + "message":{ + "shape":"Message", + "documentation":"If the batch inference job failed, this field contains a message describing why the job failed.
" + }, + "submitTime":{ + "shape":"Timestamp", + "documentation":"The time at which the batch inference job was submitted.
" + }, + "lastModifiedTime":{ + "shape":"Timestamp", + "documentation":"The time at which the batch inference job was last modified.
" + }, + "endTime":{ + "shape":"Timestamp", + "documentation":"The time at which the batch inference job ended.
" + }, + "inputDataConfig":{ + "shape":"ModelInvocationJobInputDataConfig", + "documentation":"Details about the location of the input to the batch inference job.
" + }, + "outputDataConfig":{ + "shape":"ModelInvocationJobOutputDataConfig", + "documentation":"Details about the location of the output of the batch inference job.
" + }, + "vpcConfig":{ + "shape":"VpcConfig", + "documentation":"The configuration of the Virtual Private Cloud (VPC) for the data in the batch inference job. For more information, see Protect batch inference jobs using a VPC.
" + }, + "timeoutDurationInHours":{ + "shape":"ModelInvocationJobTimeoutDurationInHours", + "documentation":"The number of hours after which the batch inference job was set to time out.
" + }, + "jobExpirationTime":{ + "shape":"Timestamp", + "documentation":"The time at which the batch inference job times or timed out.
" + } + }, + "documentation":"A summary of a batch inference job.
" + }, + "ModelInvocationJobTimeoutDurationInHours":{ + "type":"integer", + "box":true, + "max":168, + "min":24 + }, + "ModelModality":{ + "type":"string", + "enum":[ + "TEXT", + "IMAGE", + "EMBEDDING" + ] + }, + "ModelModalityList":{ + "type":"list", + "member":{"shape":"ModelModality"} + }, + "ModelName":{ + "type":"string", + "max":63, + "min":1, + "pattern":"([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63})" + }, + "NonBlankString":{ + "type":"string", + "pattern":"[\\s\\S]*" + }, + "OutputDataConfig":{ + "type":"structure", + "required":["s3Uri"], + "members":{ + "s3Uri":{ + "shape":"S3Uri", + "documentation":"The S3 URI where the output data is stored.
" + } + }, + "documentation":"S3 Location of the output data.
" + }, + "PaginationToken":{ + "type":"string", + "max":2048, + "min":1, + "pattern":"\\S*" + }, + "PositiveInteger":{ + "type":"integer", + "box":true, + "min":1 + }, + "Provider":{ + "type":"string", + "pattern":"[A-Za-z0-9- ]{1,63}" + }, + "ProvisionedModelArn":{ + "type":"string", + "pattern":"arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:provisioned-model/[a-z0-9]{12}" + }, + "ProvisionedModelId":{ + "type":"string", + "pattern":"((([0-9a-zA-Z][_-]?)+)|(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:provisioned-model/[a-z0-9]{12}))" + }, + "ProvisionedModelName":{ + "type":"string", + "max":63, + "min":1, + "pattern":"([0-9a-zA-Z][_-]?)+" + }, + "ProvisionedModelStatus":{ + "type":"string", + "enum":[ + "Creating", + "InService", + "Updating", + "Failed" + ] + }, + "ProvisionedModelSummaries":{ + "type":"list", + "member":{"shape":"ProvisionedModelSummary"} + }, + "ProvisionedModelSummary":{ + "type":"structure", + "required":[ + "provisionedModelName", + "provisionedModelArn", + "modelArn", + "desiredModelArn", + "foundationModelArn", + "modelUnits", + "desiredModelUnits", + "status", + "creationTime", + "lastModifiedTime" + ], + "members":{ + "provisionedModelName":{ + "shape":"ProvisionedModelName", + "documentation":"The name of the Provisioned Throughput.
" + }, + "provisionedModelArn":{ + "shape":"ProvisionedModelArn", + "documentation":"The Amazon Resource Name (ARN) of the Provisioned Throughput.
" + }, + "modelArn":{ + "shape":"ModelArn", + "documentation":"The Amazon Resource Name (ARN) of the model associated with the Provisioned Throughput.
" + }, + "desiredModelArn":{ + "shape":"ModelArn", + "documentation":"The Amazon Resource Name (ARN) of the model requested to be associated to this Provisioned Throughput. This value differs from the modelArn if updating hasn't completed.
The Amazon Resource Name (ARN) of the base model for which the Provisioned Throughput was created, or of the base model that the custom model for which the Provisioned Throughput was created was customized.
" + }, + "modelUnits":{ + "shape":"PositiveInteger", + "documentation":"The number of model units allocated to the Provisioned Throughput.
" + }, + "desiredModelUnits":{ + "shape":"PositiveInteger", + "documentation":"The number of model units that was requested to be allocated to the Provisioned Throughput.
" + }, + "status":{ + "shape":"ProvisionedModelStatus", + "documentation":"The status of the Provisioned Throughput.
" + }, + "commitmentDuration":{ + "shape":"CommitmentDuration", + "documentation":"The duration for which the Provisioned Throughput was committed.
" + }, + "commitmentExpirationTime":{ + "shape":"Timestamp", + "documentation":"The timestamp for when the commitment term of the Provisioned Throughput expires.
" + }, + "creationTime":{ + "shape":"Timestamp", + "documentation":"The time that the Provisioned Throughput was created.
" + }, + "lastModifiedTime":{ + "shape":"Timestamp", + "documentation":"The time that the Provisioned Throughput was last modified.
" + } + }, + "documentation":"A summary of information about a Provisioned Throughput.
This data type is used in the following API operations:
" + }, + "PutModelInvocationLoggingConfigurationRequest":{ + "type":"structure", + "required":["loggingConfig"], + "members":{ + "loggingConfig":{ + "shape":"LoggingConfig", + "documentation":"The logging configuration values to set.
" + } + } + }, + "PutModelInvocationLoggingConfigurationResponse":{ + "type":"structure", + "members":{ + } + }, + "ResourceNotFoundException":{ + "type":"structure", + "members":{ + "message":{"shape":"NonBlankString"} + }, + "documentation":"The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
", + "error":{ + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + "RoleArn":{ + "type":"string", + "documentation":"ARN of a IAM role
", + "max":2048, + "min":0, + "pattern":"arn:aws(-[^:]+)?:iam::([0-9]{12})?:role/.+" + }, + "S3Config":{ + "type":"structure", + "required":["bucketName"], + "members":{ + "bucketName":{ + "shape":"BucketName", + "documentation":"S3 bucket name.
" + }, + "keyPrefix":{ + "shape":"KeyPrefix", + "documentation":"S3 prefix.
" + } + }, + "documentation":"S3 configuration for storing log data.
" + }, + "S3DataSource":{ + "type":"structure", + "required":["s3Uri"], + "members":{ + "s3Uri":{ + "shape":"S3Uri", + "documentation":"The URI of the Amazon S3 data source.
" + } + }, + "documentation":"The Amazon S3 data source of the imported job.
" + }, + "S3InputFormat":{ + "type":"string", + "enum":["JSONL"] + }, + "S3Uri":{ + "type":"string", + "max":1024, + "min":1, + "pattern":"s3://[a-z0-9][-.a-z0-9]{1,61}(?:/[-!_*'().a-z0-9A-Z]+(?:/[-!_*'().a-z0-9A-Z]+)*)?/?" + }, + "SageMakerFlowDefinitionArn":{ + "type":"string", + "max":1024, + "min":0, + "pattern":"arn:aws(-[^:]+)?:sagemaker:[a-z0-9-]{1,20}:[0-9]{12}:flow-definition/.*" + }, + "SecurityGroupId":{ + "type":"string", + "max":32, + "min":0, + "pattern":"[-0-9a-zA-Z]+" + }, + "SecurityGroupIds":{ + "type":"list", + "member":{"shape":"SecurityGroupId"}, + "max":5, + "min":1 + }, + "ServiceQuotaExceededException":{ + "type":"structure", + "members":{ + "message":{"shape":"NonBlankString"} + }, + "documentation":"The number of requests exceeds the service quota. Resubmit your request later.
", + "error":{ + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "SortByProvisionedModels":{ + "type":"string", + "enum":["CreationTime"] + }, + "SortJobsBy":{ + "type":"string", + "enum":["CreationTime"] + }, + "SortModelsBy":{ + "type":"string", + "enum":["CreationTime"] + }, + "SortOrder":{ + "type":"string", + "enum":[ + "Ascending", + "Descending" + ] + }, + "StopEvaluationJobRequest":{ + "type":"structure", + "required":["jobIdentifier"], + "members":{ + "jobIdentifier":{ + "shape":"EvaluationJobIdentifier", + "documentation":"The ARN of the model evaluation job you want to stop.
", + "location":"uri", + "locationName":"jobIdentifier" + } + } + }, + "StopEvaluationJobResponse":{ + "type":"structure", + "members":{ + } + }, + "StopModelCustomizationJobRequest":{ + "type":"structure", + "required":["jobIdentifier"], + "members":{ + "jobIdentifier":{ + "shape":"ModelCustomizationJobIdentifier", + "documentation":"Job identifier of the job to stop.
", + "location":"uri", + "locationName":"jobIdentifier" + } + } + }, + "StopModelCustomizationJobResponse":{ + "type":"structure", + "members":{ + } + }, + "StopModelInvocationJobRequest":{ + "type":"structure", + "required":["jobIdentifier"], + "members":{ + "jobIdentifier":{ + "shape":"ModelInvocationJobIdentifier", + "documentation":"The Amazon Resource Name (ARN) of the batch inference job to stop.
", + "location":"uri", + "locationName":"jobIdentifier" + } + } + }, + "StopModelInvocationJobResponse":{ + "type":"structure", + "members":{ + } + }, + "String":{"type":"string"}, + "SubnetId":{ + "type":"string", + "max":32, + "min":0, + "pattern":"[-0-9a-zA-Z]+" + }, + "SubnetIds":{ + "type":"list", + "member":{"shape":"SubnetId"}, + "max":16, + "min":1 + }, + "Tag":{ + "type":"structure", + "required":[ + "key", + "value" + ], + "members":{ + "key":{ + "shape":"TagKey", + "documentation":"Key for the tag.
" + }, + "value":{ + "shape":"TagValue", + "documentation":"Value for the tag.
" + } + }, + "documentation":"Definition of the key/value pair for a tag.
" + }, + "TagKey":{ + "type":"string", + "max":128, + "min":1, + "pattern":"[a-zA-Z0-9\\s._:/=+@-]*" + }, + "TagKeyList":{ + "type":"list", + "member":{"shape":"TagKey"}, + "max":200, + "min":0 + }, + "TagList":{ + "type":"list", + "member":{"shape":"Tag"}, + "max":200, + "min":0 + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "resourceARN", + "tags" + ], + "members":{ + "resourceARN":{ + "shape":"TaggableResourcesArn", + "documentation":"The Amazon Resource Name (ARN) of the resource to tag.
" + }, + "tags":{ + "shape":"TagList", + "documentation":"Tags to associate with the resource.
" + } + } + }, + "TagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "TagValue":{ + "type":"string", + "max":256, + "min":0, + "pattern":"[a-zA-Z0-9\\s._:/=+@-]*" + }, + "TaggableResourcesArn":{ + "type":"string", + "max":1011, + "min":20, + "pattern":".*(^[a-zA-Z0-9][a-zA-Z0-9\\-]*$)|(^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:([0-9]{12}|)((:(fine-tuning-job|model-customization-job|custom-model)/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([a-z0-9-]{1,63}[.]){0,2}[a-z0-9-]{1,63}([:][a-z0-9-]{1,63}){0,2}(/[a-z0-9]{12})$)|(:guardrail/[a-z0-9]+$)|(:(provisioned-model|model-invocation-job|model-evaluation-job|evaluation-job|model-import-job|imported-model)/[a-z0-9]{12}$))).*" + }, + "ThrottlingException":{ + "type":"structure", + "members":{ + "message":{"shape":"NonBlankString"} + }, + "documentation":"The number of requests exceeds the limit. Resubmit your request later.
", + "error":{ + "httpStatusCode":429, + "senderFault":true + }, + "exception":true + }, + "Timestamp":{ + "type":"timestamp", + "timestampFormat":"iso8601" + }, + "TooManyTagsException":{ + "type":"structure", + "members":{ + "message":{"shape":"NonBlankString"}, + "resourceName":{ + "shape":"TaggableResourcesArn", + "documentation":"The name of the resource with too many tags.
" + } + }, + "documentation":"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.
", + "error":{ + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "TrainingDataConfig":{ + "type":"structure", + "required":["s3Uri"], + "members":{ + "s3Uri":{ + "shape":"S3Uri", + "documentation":"The S3 URI where the training data is stored.
" + } + }, + "documentation":"S3 Location of the training data.
" + }, + "TrainingMetrics":{ + "type":"structure", + "members":{ + "trainingLoss":{ + "shape":"MetricFloat", + "documentation":"Loss metric associated with the custom job.
" + } + }, + "documentation":"Metrics associated with the custom job.
" + }, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "resourceARN", + "tagKeys" + ], + "members":{ + "resourceARN":{ + "shape":"TaggableResourcesArn", + "documentation":"The Amazon Resource Name (ARN) of the resource to untag.
" + }, + "tagKeys":{ + "shape":"TagKeyList", + "documentation":"Tag keys of the tags to remove from the resource.
" + } + } + }, + "UntagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateGuardrailRequest":{ + "type":"structure", + "required":[ + "guardrailIdentifier", + "name", + "blockedInputMessaging", + "blockedOutputsMessaging" + ], + "members":{ + "guardrailIdentifier":{ + "shape":"GuardrailIdentifier", + "documentation":"The unique identifier of the guardrail. This can be an ID or the ARN.
", + "location":"uri", + "locationName":"guardrailIdentifier" + }, + "name":{ + "shape":"GuardrailName", + "documentation":"A name for the guardrail.
" + }, + "description":{ + "shape":"GuardrailDescription", + "documentation":"A description of the guardrail.
" + }, + "topicPolicyConfig":{ + "shape":"GuardrailTopicPolicyConfig", + "documentation":"The topic policy to configure for the guardrail.
" + }, + "contentPolicyConfig":{ + "shape":"GuardrailContentPolicyConfig", + "documentation":"The content policy to configure for the guardrail.
" + }, + "wordPolicyConfig":{ + "shape":"GuardrailWordPolicyConfig", + "documentation":"The word policy to configure for the guardrail.
" + }, + "sensitiveInformationPolicyConfig":{ + "shape":"GuardrailSensitiveInformationPolicyConfig", + "documentation":"The sensitive information policy to configure for the guardrail.
" + }, + "contextualGroundingPolicyConfig":{ + "shape":"GuardrailContextualGroundingPolicyConfig", + "documentation":"The contextual grounding policy configuration used to update a guardrail.
" + }, + "blockedInputMessaging":{ + "shape":"GuardrailBlockedMessaging", + "documentation":"The message to return when the guardrail blocks a prompt.
" + }, + "blockedOutputsMessaging":{ + "shape":"GuardrailBlockedMessaging", + "documentation":"The message to return when the guardrail blocks a model response.
" + }, + "kmsKeyId":{ + "shape":"KmsKeyId", + "documentation":"The ARN of the KMS key with which to encrypt the guardrail.
" + } + } + }, + "UpdateGuardrailResponse":{ + "type":"structure", + "required":[ + "guardrailId", + "guardrailArn", + "version", + "updatedAt" + ], + "members":{ + "guardrailId":{ + "shape":"GuardrailId", + "documentation":"The unique identifier of the guardrail
" + }, + "guardrailArn":{ + "shape":"GuardrailArn", + "documentation":"The ARN of the guardrail.
" + }, + "version":{ + "shape":"GuardrailDraftVersion", + "documentation":"The version of the guardrail.
" + }, + "updatedAt":{ + "shape":"Timestamp", + "documentation":"The date and time at which the guardrail was updated.
" + } + } + }, + "UpdateProvisionedModelThroughputRequest":{ + "type":"structure", + "required":["provisionedModelId"], + "members":{ + "provisionedModelId":{ + "shape":"ProvisionedModelId", + "documentation":"The Amazon Resource Name (ARN) or name of the Provisioned Throughput to update.
", + "location":"uri", + "locationName":"provisionedModelId" + }, + "desiredProvisionedModelName":{ + "shape":"ProvisionedModelName", + "documentation":"The new name for this Provisioned Throughput.
" + }, + "desiredModelId":{ + "shape":"ModelIdentifier", + "documentation":"The Amazon Resource Name (ARN) of the new model to associate with this Provisioned Throughput. You can't specify this field if this Provisioned Throughput is associated with a base model.
If this Provisioned Throughput is associated with a custom model, you can specify one of the following options:
The base model from which the custom model was customized.
Another custom model that was customized from the same base model as the custom model.
Information about the validators.
" + } + }, + "documentation":"Array of up to 10 validators.
" + }, + "ValidationException":{ + "type":"structure", + "members":{ + "message":{"shape":"NonBlankString"} + }, + "documentation":"Input validation failed. Check your request parameters and retry the request.
", + "error":{ + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "ValidationMetrics":{ + "type":"list", + "member":{"shape":"ValidatorMetric"} + }, + "Validator":{ + "type":"structure", + "required":["s3Uri"], + "members":{ + "s3Uri":{ + "shape":"S3Uri", + "documentation":"The S3 URI where the validation data is stored.
" + } + }, + "documentation":"Information about a validator.
" + }, + "ValidatorMetric":{ + "type":"structure", + "members":{ + "validationLoss":{ + "shape":"MetricFloat", + "documentation":"The validation loss associated with this validator.
" + } + }, + "documentation":"The metric for the validator.
" + }, + "Validators":{ + "type":"list", + "member":{"shape":"Validator"}, + "max":10, + "min":0 + }, + "VpcConfig":{ + "type":"structure", + "required":[ + "subnetIds", + "securityGroupIds" + ], + "members":{ + "subnetIds":{ + "shape":"SubnetIds", + "documentation":"An array of IDs for each subnet in the VPC to use.
" + }, + "securityGroupIds":{ + "shape":"SecurityGroupIds", + "documentation":"An array of IDs for each security group in the VPC to use.
" + } + }, + "documentation":"The configuration of a virtual private cloud (VPC). For more information, see Protect your data using Amazon Virtual Private Cloud and Amazon Web Services PrivateLink.
" + } + }, + "documentation":"Describes the API operations for creating, managing, fine-turning, and evaluating Amazon Bedrock models.
" +}