:doc:`Bedrock <../../bedrock>` / Client / get_model_import_job

********************
get_model_import_job
********************



.. py:method:: 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 <https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html>`__ in the `Amazon Bedrock User Guide <https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetModelImportJob>`_  


  **Request Syntax**
  ::

    response = client.get_model_import_job(
        jobIdentifier='string'
    )
    
  :type jobIdentifier: string
  :param jobIdentifier: **[REQUIRED]** 

    The identifier of the import job.

    

  
  
  :rtype: 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     set ``SDK_UNKNOWN_MEMBER`` as the top level key,     which maps to the name or tag of the unknown     member. The structure of ``SDK_UNKNOWN_MEMBER`` is     as follows::

                'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}


      
        

        - **s3DataSource** *(dict) --* 

          The Amazon S3 data source of the model to import.

          
          

          - **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**
  
  *   :py:class:`Bedrock.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`Bedrock.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`Bedrock.Client.exceptions.ValidationException`

  
  *   :py:class:`Bedrock.Client.exceptions.InternalServerException`

  
  *   :py:class:`Bedrock.Client.exceptions.ThrottlingException`

  