:doc:`ControlTower <../../controltower>` / Client / enable_control

**************
enable_control
**************



.. py:method:: ControlTower.Client.enable_control(**kwargs)

  

  This API call activates a control. It starts an asynchronous operation that creates Amazon Web Services resources on the specified organizational unit and the accounts it contains. The resources created will vary according to the control that you specify. For usage examples, see the `Controls Reference Guide <https://docs.aws.amazon.com/controltower/latest/controlreference/control-api-examples-short.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/EnableControl>`_  


  **Request Syntax**
  ::

    response = client.enable_control(
        controlIdentifier='string',
        targetIdentifier='string',
        tags={
            'string': 'string'
        },
        parameters=[
            {
                'key': 'string',
                'value': {...}|[...]|123|123.4|'string'|True|None
            },
        ]
    )
    
  :type controlIdentifier: string
  :param controlIdentifier: **[REQUIRED]** 

    The ARN of the control. Only **Strongly recommended** and **Elective** controls are permitted, with the exception of the **Region deny** control. For information on how to find the ``controlIdentifier``, see `the overview page <https://docs.aws.amazon.com/controltower/latest/APIReference/Welcome.html>`__.

    

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

    The ARN of the organizational unit. For information on how to find the ``targetIdentifier``, see `the overview page <https://docs.aws.amazon.com/controltower/latest/APIReference/Welcome.html>`__.

    

  
  :type tags: dict
  :param tags: 

    Tags to be applied to the ``EnabledControl`` resource.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


  :type parameters: list
  :param parameters: 

    A list of input parameter values, which are specified to configure the control when you enable it.

    

  
    - *(dict) --* 

      A key/value pair, where ``Key`` is of type ``String`` and ``Value`` is of type ``Document``.

      

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

        The key of a key/value pair.

        

      
      - **value** (:ref:`document<document>`) -- **[REQUIRED]** 

        The value of a key/value pair.

        

      
    

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

    
    ::

      {
          'operationIdentifier': 'string',
          'arn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **operationIdentifier** *(string) --* 

        The ID of the asynchronous operation, which is used to track status. The operation is available for 90 days.

        
      

      - **arn** *(string) --* 

        The ARN of the ``EnabledControl`` resource.

        
  
  **Exceptions**
  
  *   :py:class:`ControlTower.Client.exceptions.ConflictException`

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

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

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

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

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

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

  