:doc:`ComprehendMedical <../../comprehendmedical>` / Client / start_entities_detection_v2_job

*******************************
start_entities_detection_v2_job
*******************************



.. py:method:: ComprehendMedical.Client.start_entities_detection_v2_job(**kwargs)

  

  Starts an asynchronous medical entity detection job for a collection of documents. Use the ``DescribeEntitiesDetectionV2Job`` operation to track the status of a job.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartEntitiesDetectionV2Job>`_  


  **Request Syntax**
  ::

    response = client.start_entities_detection_v2_job(
        InputDataConfig={
            'S3Bucket': 'string',
            'S3Key': 'string'
        },
        OutputDataConfig={
            'S3Bucket': 'string',
            'S3Key': 'string'
        },
        DataAccessRoleArn='string',
        JobName='string',
        ClientRequestToken='string',
        KMSKey='string',
        LanguageCode='en'
    )
    
  :type InputDataConfig: dict
  :param InputDataConfig: **[REQUIRED]** 

    The input configuration that specifies the format and location of the input data for the job.

    

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

      The URI of the S3 bucket that contains the input data. The bucket must be in the same region as the API endpoint that you are calling.

      

    
    - **S3Key** *(string) --* 

      The path to the input data files in the S3 bucket.

      

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

    The output configuration that specifies where to send the output files.

    

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

      When you use the ``OutputDataConfig`` object with asynchronous operations, you specify the Amazon S3 location where you want to write the output data. The URI must be in the same region as the API endpoint that you are calling. The location is used as the prefix for the actual location of the output.

      

    
    - **S3Key** *(string) --* 

      The path to the output data files in the S3 bucket. Amazon Comprehend Medical creates an output directory using the job ID so that the output from one job does not overwrite the output of another.

      

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

    The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend Medical read access to your input data. For more information, see `Role-Based Permissions Required for Asynchronous Operations <https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med>`__.

    

  
  :type JobName: string
  :param JobName: 

    The identifier of the job.

    

  
  :type ClientRequestToken: string
  :param ClientRequestToken: 

    A unique identifier for the request. If you don't set the client request token, Amazon Comprehend Medical generates one for you.

    This field is autopopulated if not provided.

  
  :type KMSKey: string
  :param KMSKey: 

    An AWS Key Management Service key to encrypt your output files. If you do not specify a key, the files are written in plain text.

    

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

    The language of the input documents. All documents must be in the same language. Amazon Comprehend Medical processes files in US English (en).

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **JobId** *(string) --* 

        The identifier generated for the job. To get the status of a job, use this identifier with the ``DescribeEntitiesDetectionV2Job`` operation.

        
  
  **Exceptions**
  
  *   :py:class:`ComprehendMedical.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`ComprehendMedical.Client.exceptions.TooManyRequestsException`

  
  *   :py:class:`ComprehendMedical.Client.exceptions.ResourceNotFoundException`

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

  