Bedrock / Client / get_model_import_job
get_model_import_job#
- Bedrock.Client.get_model_import_job(**kwargs)#
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.
See also: AWS API Documentation
Request Syntax
response = client.get_model_import_job( jobIdentifier='string' )
- Parameters:
jobIdentifier (string) –
[REQUIRED]
The identifier of the import job.
- Return type:
dict
- Returns:
Response Syntax
{ 'jobArn': 'string', 'jobName': 'string', 'importedModelName': 'string', 'importedModelArn': 'string', 'roleArn': 'string', 'modelDataSource': { 's3DataSource': { 's3Uri': 'string' } }, 'status': 'InProgress'|'Completed'|'Failed', 'failureMessage': 'string', 'creationTime': datetime(2015, 1, 1), 'lastModifiedTime': datetime(2015, 1, 1), 'endTime': datetime(2015, 1, 1), 'vpcConfig': { 'subnetIds': [ 'string', ], 'securityGroupIds': [ 'string', ] }, 'importedModelKmsKeyArn': 'string' }
Response Structure
(dict) –
jobArn (string) –
The Amazon Resource Name (ARN) of the import job.
jobName (string) –
The name of the import job.
importedModelName (string) –
The name of the imported model.
importedModelArn (string) –
The Amazon Resource Name (ARN) of the imported model.
roleArn (string) –
The Amazon Resource Name (ARN) of the IAM role associated with this job.
modelDataSource (dict) –
The data source for the imported model.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
s3DataSource
. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBER
is as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
s3DataSource (dict) –
The Amazon S3 data source of the imported model.
s3Uri (string) –
The URI of the Amazon S3 data source.
status (string) –
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 (string) –
Information about why the import job failed.
creationTime (datetime) –
The time the resource was created.
lastModifiedTime (datetime) –
Time the resource was last modified.
endTime (datetime) –
Time that the resource transitioned to terminal state.
vpcConfig (dict) –
The Virtual Private Cloud (VPC) configuration of the import model job.
subnetIds (list) –
An array of IDs for each subnet in the VPC to use.
(string) –
securityGroupIds (list) –
An array of IDs for each security group in the VPC to use.
(string) –
importedModelKmsKeyArn (string) –
The imported model is encrypted at rest using this key.
Exceptions