:doc:`MWAA <../../mwaa>` / Client / tag_resource

************
tag_resource
************



.. py:method:: MWAA.Client.tag_resource(**kwargs)

  

  Associates key-value tag pairs to your Amazon Managed Workflows for Apache Airflow (MWAA) environment.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/TagResource>`_  


  **Request Syntax**
  ::

    response = client.tag_resource(
        ResourceArn='string',
        Tags={
            'string': 'string'
        }
    )
    
  :type ResourceArn: string
  :param ResourceArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the Amazon MWAA environment. For example, ``arn:aws:airflow:us-east-1:123456789012:environment/MyMWAAEnvironment``.

    

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

    The key-value tag pairs you want to associate to your environment. For example, ``"Environment": "Staging"``. For more information, see `Tagging Amazon Web Services resources <https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html>`__.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`MWAA.Client.exceptions.ResourceNotFoundException`

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

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

  