RDS / Client / remove_tags_from_resource

remove_tags_from_resource#

RDS.Client.remove_tags_from_resource(**kwargs)#

Removes metadata tags from an Amazon RDS resource.

For an overview on tagging an Amazon RDS resource, see Tagging Amazon RDS Resources in the Amazon RDS User Guide or Tagging Amazon Aurora and Amazon RDS Resources in the Amazon Aurora User Guide.

See also: AWS API Documentation

Request Syntax

response = client.remove_tags_from_resource(
    ResourceName='string',
    TagKeys=[
        'string',
    ]
)
Parameters:
  • ResourceName (string) –

    [REQUIRED]

    The Amazon RDS resource that the tags are removed from. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an ARN for Amazon RDS in the Amazon RDS User Guide.

  • TagKeys (list) –

    [REQUIRED]

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

    • (string) –

Returns:

None

Exceptions

  • RDS.Client.exceptions.DBInstanceNotFoundFault

  • RDS.Client.exceptions.DBSnapshotNotFoundFault

  • RDS.Client.exceptions.DBClusterNotFoundFault

  • RDS.Client.exceptions.DBProxyNotFoundFault

  • RDS.Client.exceptions.DBProxyTargetGroupNotFoundFault

  • RDS.Client.exceptions.BlueGreenDeploymentNotFoundFault

  • RDS.Client.exceptions.IntegrationNotFoundFault

  • RDS.Client.exceptions.TenantDatabaseNotFoundFault

  • RDS.Client.exceptions.DBSnapshotTenantDatabaseNotFoundFault

Examples

This example removes the specified tag associated with the specified DB option group.

response = client.remove_tags_from_resource(
    ResourceName='arn:aws:rds:us-east-1:992648334831:og:mydboptiongroup',
    TagKeys=[
        'MyKey',
    ],
)

print(response)

Expected Output:

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