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

***********************
create_model_import_job
***********************



.. py:method:: Bedrock.Client.create_model_import_job(**kwargs)

  

  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 <https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html>`__

  

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


  **Request Syntax**
  ::

    response = client.create_model_import_job(
        jobName='string',
        importedModelName='string',
        roleArn='string',
        modelDataSource={
            's3DataSource': {
                's3Uri': 'string'
            }
        },
        jobTags=[
            {
                'key': 'string',
                'value': 'string'
            },
        ],
        importedModelTags=[
            {
                'key': 'string',
                'value': 'string'
            },
        ],
        clientRequestToken='string',
        vpcConfig={
            'subnetIds': [
                'string',
            ],
            'securityGroupIds': [
                'string',
            ]
        },
        importedModelKmsKeyId='string'
    )
    
  :type jobName: string
  :param jobName: **[REQUIRED]** 

    The name of the import job.

    

  
  :type importedModelName: string
  :param importedModelName: **[REQUIRED]** 

    The name of the imported model.

    

  
  :type roleArn: string
  :param roleArn: **[REQUIRED]** 

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

    

  
  :type modelDataSource: dict
  :param modelDataSource: **[REQUIRED]** 

    The data source for the imported model.

    .. note::    This is a Tagged Union structure. Only one of the     following top level keys can be set: ``s3DataSource``. 

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

      The Amazon S3 data source of the model to import.

      

    
      - **s3Uri** *(string) --* **[REQUIRED]** 

        The URI of the Amazon S3 data source.

        

      
    
  
  :type jobTags: list
  :param jobTags: 

    Tags to attach to this import job.

    

  
    - *(dict) --* 

      Definition of the key/value pair for a tag.

      

    
      - **key** *(string) --* **[REQUIRED]** 

        Key for the tag.

        

      
      - **value** *(string) --* **[REQUIRED]** 

        Value for the tag.

        

      
    

  :type importedModelTags: list
  :param importedModelTags: 

    Tags to attach to the imported model.

    

  
    - *(dict) --* 

      Definition of the key/value pair for a tag.

      

    
      - **key** *(string) --* **[REQUIRED]** 

        Key for the tag.

        

      
      - **value** *(string) --* **[REQUIRED]** 

        Value for the tag.

        

      
    

  :type clientRequestToken: string
  :param clientRequestToken: 

    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 <https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html>`__.

    

  
  :type vpcConfig: dict
  :param vpcConfig: 

    VPC configuration parameters for the private Virtual Private Cloud (VPC) that contains the resources you are using for the import job.

    

  
    - **subnetIds** *(list) --* **[REQUIRED]** 

      An array of IDs for each subnet in the VPC to use.

      

    
      - *(string) --* 

      
  
    - **securityGroupIds** *(list) --* **[REQUIRED]** 

      An array of IDs for each security group in the VPC to use.

      

    
      - *(string) --* 

      
  
  
  :type importedModelKmsKeyId: string
  :param importedModelKmsKeyId: 

    The imported model is encrypted at rest using this key.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'jobArn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **jobArn** *(string) --* 

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

        
  
  **Exceptions**
  
  *   :py:class:`Bedrock.Client.exceptions.ResourceNotFoundException`

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

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

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

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

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

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

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

  