ACM / Client / add_tags_to_certificate



Adds one or more tags to an ACM certificate. 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. You specify the certificate on input by its Amazon Resource Name (ARN). You specify the tag by using a key-value pair.

You can apply a tag to just one certificate if you want to identify a specific characteristic of that certificate, or you can apply the same tag to multiple certificates if you want to filter for a common relationship among those certificates. Similarly, you can apply the same tag to multiple resources if you want to specify a relationship among those resources. For example, you can add the same tag to an ACM certificate and an Elastic Load Balancing load balancer to indicate that they are both used by the same website. For more information, see Tagging ACM certificates.

To remove one or more tags, use the RemoveTagsFromCertificate action. To view all of the tags that have been applied to the certificate, use the ListTagsForCertificate action.

See also: AWS API Documentation

Request Syntax

response = client.add_tags_to_certificate(
            'Key': 'string',
            'Value': 'string'
  • CertificateArn (string) –


    String that contains the ARN of the ACM certificate to which the tag is to be applied. This must be of the form:


    For more information about ARNs, see Amazon Resource Names (ARNs).

  • Tags (list) –


    The key-value pair that defines the tag. The tag value is optional.

    • (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.




  • ACM.Client.exceptions.ResourceNotFoundException

  • ACM.Client.exceptions.InvalidArnException

  • ACM.Client.exceptions.InvalidTagException

  • ACM.Client.exceptions.TooManyTagsException

  • ACM.Client.exceptions.TagPolicyException

  • ACM.Client.exceptions.InvalidParameterException

  • ACM.Client.exceptions.ThrottlingException