BillingandCostManagementDashboards / Client / tag_resource

tag_resource

BillingandCostManagementDashboards.Client.tag_resource(**kwargs)

Adds or updates tags for a specified dashboard resource.

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
    resourceArn='string',
    resourceTags=[
        {
            'key': 'string',
            'value': 'string'
        },
    ]
)
Parameters:
  • resourceArn (string) –

    [REQUIRED]

    The unique identifier for the resource.

  • resourceTags (list) –

    [REQUIRED]

    The tags to add to the dashboard resource.

    • (dict) –

      A key-value pair that can be attached to a dashboard for organization and management purposes.

      • key (string) – [REQUIRED]

        The key of the tag to be attached to the dashboard resource.

      • value (string) – [REQUIRED]

        The value of the tag to be attached to the dashboard resource.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • BillingandCostManagementDashboards.Client.exceptions.ThrottlingException

  • BillingandCostManagementDashboards.Client.exceptions.InternalServerException

  • BillingandCostManagementDashboards.Client.exceptions.ValidationException

  • BillingandCostManagementDashboards.Client.exceptions.ResourceNotFoundException