:doc:`AugmentedAIRuntime <../../sagemaker-a2i-runtime>` / Client / start_human_loop

****************
start_human_loop
****************



.. py:method:: AugmentedAIRuntime.Client.start_human_loop(**kwargs)

  

  Starts a human loop, provided that at least one activation condition is met.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StartHumanLoop>`_  


  **Request Syntax**
  ::

    response = client.start_human_loop(
        HumanLoopName='string',
        FlowDefinitionArn='string',
        HumanLoopInput={
            'InputContent': 'string'
        },
        DataAttributes={
            'ContentClassifiers': [
                'FreeOfPersonallyIdentifiableInformation'|'FreeOfAdultContent',
            ]
        }
    )
    
  :type HumanLoopName: string
  :param HumanLoopName: **[REQUIRED]** 

    The name of the human loop.

    

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

    The Amazon Resource Name (ARN) of the flow definition associated with this human loop.

    

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

    An object that contains information about the human loop.

    

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

      Serialized input from the human loop. The input must be a string representation of a file in JSON format.

      

    
  
  :type DataAttributes: dict
  :param DataAttributes: 

    Attributes of the specified data. Use ``DataAttributes`` to specify if your data is free of personally identifiable information and/or free of adult content.

    

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

      Declares that your content is free of personally identifiable information or adult content.

       

      Amazon SageMaker can restrict the Amazon Mechanical Turk workers who can view your task based on this information.

      

    
      - *(string) --* 

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

    
    ::

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

    

    - *(dict) --* 
      

      - **HumanLoopArn** *(string) --* 

        The Amazon Resource Name (ARN) of the human loop.

        
  
  **Exceptions**
  
  *   :py:class:`AugmentedAIRuntime.Client.exceptions.ValidationException`

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

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

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

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

  