GetModelCustomizationJob
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.
Request Syntax
GET /model-customization-jobs/jobIdentifier
HTTP/1.1
URI Request Parameters
The request uses the following URI parameters.
- jobIdentifier
-
Identifier for the customization job.
Length Constraints: Minimum length of 0. Maximum length of 1011.
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\+\-\.])*)$
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"baseModelArn": "string",
"clientRequestToken": "string",
"creationTime": "string",
"customizationConfig": { ... },
"customizationType": "string",
"endTime": "string",
"failureMessage": "string",
"hyperParameters": {
"string" : "string"
},
"jobArn": "string",
"jobName": "string",
"lastModifiedTime": "string",
"outputDataConfig": {
"s3Uri": "string"
},
"outputModelArn": "string",
"outputModelKmsKeyArn": "string",
"outputModelName": "string",
"roleArn": "string",
"status": "string",
"trainingDataConfig": {
"invocationLogsConfig": {
"invocationLogSource": { ... },
"requestMetadataFilters": { ... },
"usePromptResponse": boolean
},
"s3Uri": "string"
},
"trainingMetrics": {
"trainingLoss": number
},
"validationDataConfig": {
"validators": [
{
"s3Uri": "string"
}
]
},
"validationMetrics": [
{
"validationLoss": number
}
],
"vpcConfig": {
"securityGroupIds": [ "string" ],
"subnetIds": [ "string" ]
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- baseModelArn
-
Amazon Resource Name (ARN) of the base model.
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}$
- clientRequestToken
-
The token that you specified in the
CreateCustomizationJob
request.Type: String
Length Constraints: Minimum length of 1. Maximum length of 256.
Pattern:
^[a-zA-Z0-9](-*[a-zA-Z0-9])*$
- creationTime
-
Time that the resource was created.
Type: Timestamp
- customizationConfig
-
The customization configuration for the model customization job.
Type: CustomizationConfig object
Note: This object is a Union. Only one member of this object can be specified or returned.
- customizationType
-
The type of model customization.
Type: String
Valid Values:
FINE_TUNING | CONTINUED_PRE_TRAINING | DISTILLATION
- endTime
-
Time that the resource transitioned to terminal state.
Type: Timestamp
- failureMessage
-
Information about why the job failed.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 2048.
- hyperParameters
-
The hyperparameter values for the job. For details on the format for different models, see Custom model hyperparameters.
Type: String to string map
- jobArn
-
The Amazon Resource Name (ARN) of the customization job.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 1011.
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}$
- jobName
-
The name of the customization job.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 63.
Pattern:
^[a-zA-Z0-9](-*[a-zA-Z0-9\+\-\.])*$
- lastModifiedTime
-
Time that the resource was last modified.
Type: Timestamp
- outputDataConfig
-
Output data configuration
Type: OutputDataConfig object
- outputModelArn
-
The Amazon Resource Name (ARN) of the output model.
Type: String
Length Constraints: Minimum length of 20. Maximum length of 1011.
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}$
- outputModelKmsKeyArn
-
The custom model is encrypted at rest using this key.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 2048.
Pattern:
^arn:aws(-[^:]+)?:kms:[a-zA-Z0-9-]*:[0-9]{12}:key/[a-zA-Z0-9-]{36}$
- outputModelName
-
The name of the output model.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 63.
Pattern:
^([0-9a-zA-Z][_-]?){1,63}$
- roleArn
-
The Amazon Resource Name (ARN) of the IAM role.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 2048.
Pattern:
^arn:aws(-[^:]+)?:iam::([0-9]{12})?:role/.+$
- status
-
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.
Type: String
Valid Values:
InProgress | Completed | Failed | Stopping | Stopped
- trainingDataConfig
-
Contains information about the training dataset.
Type: TrainingDataConfig object
- trainingMetrics
-
Contains training metrics from the job creation.
Type: TrainingMetrics object
- validationDataConfig
-
Contains information about the validation dataset.
Type: ValidationDataConfig object
- validationMetrics
-
The loss metric for each validator that you provided in the createjob request.
Type: Array of ValidatorMetric objects
- vpcConfig
-
VPC configuration for the custom model job.
Type: VpcConfig object
Errors
For information about the errors that are common to all actions, see Common Errors.
- AccessDeniedException
-
The request is denied because of missing access permissions.
HTTP Status Code: 403
- InternalServerException
-
An internal server error occurred. Retry your request.
HTTP Status Code: 500
- ResourceNotFoundException
-
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
HTTP Status Code: 404
- ThrottlingException
-
The number of requests exceeds the limit. Resubmit your request later.
HTTP Status Code: 429
- ValidationException
-
Input validation failed. Check your request parameters and retry the request.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: