:doc:`DatabaseMigrationService <../../dms>` / Client / remove_tags_from_resource

*************************
remove_tags_from_resource
*************************



.. py:method:: DatabaseMigrationService.Client.remove_tags_from_resource(**kwargs)

  

  Removes metadata tags from an DMS resource, including replication instance, endpoint, subnet group, and migration task. For more information, see `Tag <https://docs.aws.amazon.com/dms/latest/APIReference/API_Tag.html>`__ data type description.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RemoveTagsFromResource>`_  


  **Request Syntax**
  ::

    response = client.remove_tags_from_resource(
        ResourceArn='string',
        TagKeys=[
            'string',
        ]
    )
    
  :type ResourceArn: string
  :param ResourceArn: **[REQUIRED]** 

    An DMS resource from which you want to remove tag(s). The value for this parameter is an Amazon Resource Name (ARN).

    

  
  :type TagKeys: list
  :param TagKeys: **[REQUIRED]** 

    The tag key (name) of the tag to be removed.

    

  
    - *(string) --* 

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`DatabaseMigrationService.Client.exceptions.ResourceNotFoundFault`

  
  *   :py:class:`DatabaseMigrationService.Client.exceptions.InvalidResourceStateFault`

  

  **Examples**

  Removes metadata tags from an AWS DMS resource.
  ::

    response = client.remove_tags_from_resource(
        ResourceArn='arn:aws:dms:us-east-1:123456789012:endpoint:ASXWXJZLNWNT5HTWCGV2BUJQ7E',
        TagKeys=[
        ],
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'ResponseMetadata': {
            '...': '...',
        },
    }

  