ACM / Client / tag_resource

tag_resource

ACM.Client.tag_resource(**kwargs)

Adds one or more tags to an ACM resource. Tags are labels that you can use to identify and organize your Amazon Web Services resources. Each tag consists of a key and an optional value.

Note

Use this action for all ACM resource types except the certificate resource type. For certificate resources, use AddTagsToCertificate instead.

To remove one or more tags, use the UntagResource action. To view all of the tags that have been applied to a resource, use the ListTagsForResource action.

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
    ResourceArn='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters:
  • ResourceArn (string) –

    [REQUIRED]

    The ARN of the ACM resource to which the tag is to be applied.

  • Tags (list) –

    [REQUIRED]

    The key-value pair that defines the tag to apply.

    • (dict) –

      A key-value pair that identifies or specifies metadata about an ACM resource.

      • Key (string) – [REQUIRED]

        The key of the tag.

      • Value (string) –

        The value of the tag.

Returns:

None

Exceptions

  • ACM.Client.exceptions.ServiceQuotaExceededException

  • ACM.Client.exceptions.ValidationException

  • ACM.Client.exceptions.ResourceNotFoundException