ElasticLoadBalancing / Client / remove_tags

remove_tags#

ElasticLoadBalancing.Client.remove_tags(**kwargs)#

Removes one or more tags from the specified load balancer.

See also: AWS API Documentation

Request Syntax

response = client.remove_tags(
    LoadBalancerNames=[
        'string',
    ],
    Tags=[
        {
            'Key': 'string'
        },
    ]
)
Parameters:
  • LoadBalancerNames (list) –

    [REQUIRED]

    The name of the load balancer. You can specify a maximum of one load balancer name.

    • (string) –

  • Tags (list) –

    [REQUIRED]

    The list of tag keys to remove.

    • (dict) –

      The key of a tag.

      • Key (string) –

        The name of the key.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

    Contains the output of RemoveTags.

Exceptions

Examples

This example removes the specified tag from the specified load balancer.

response = client.remove_tags(
    LoadBalancerNames=[
        'my-load-balancer',
    ],
    Tags=[
        {
            'Key': 'project',
        },
    ],
)

print(response)

Expected Output:

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