AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
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.
This is an asynchronous operation using the standard naming convention for .NET 4.5 or higher. For .NET 3.5 the operation is implemented as a pair of methods using the standard naming convention of BeginAddTagsToCertificate and EndAddTagsToCertificate.
Namespace: Amazon.CertificateManager
Assembly: AWSSDK.CertificateManager.dll
Version: 3.x.y.z
public virtual Task<AddTagsToCertificateResponse> AddTagsToCertificateAsync( AddTagsToCertificateRequest request, CancellationToken cancellationToken )
Container for the necessary parameters to execute the AddTagsToCertificate service method.
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Exception | Condition |
---|---|
InvalidArnException | The requested Amazon Resource Name (ARN) does not refer to an existing resource. |
InvalidParameterException | An input parameter was invalid. |
InvalidTagException | One or both of the values that make up the key-value pair is not valid. For example, you cannot specify a tag value that begins with aws:. |
ResourceNotFoundException | The specified certificate cannot be found in the caller's account or the caller's account cannot be found. |
TagPolicyException | A specified tag did not comply with an existing tag policy and was rejected. |
ThrottlingException | The request was denied because it exceeded a quota. |
TooManyTagsException | The request contains too many tags. Try the request again with fewer tags. |
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5