AWS SDK Version 3 for .NET
API Reference

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 AWS 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.

Note:

For PCL this operation is only available in asynchronous form. Please refer to AddTagsToCertificateAsync.

Namespace: Amazon.CertificateManager
Assembly: AWSSDK.CertificateManager.dll
Version: 3.x.y.z

Syntax

C#
public abstract AddTagsToCertificateResponse AddTagsToCertificate(
         AddTagsToCertificateRequest request
)
Parameters
request
Type: Amazon.CertificateManager.Model.AddTagsToCertificateRequest

Container for the necessary parameters to execute the AddTagsToCertificate service method.

Return Value
The response from the AddTagsToCertificate service method, as returned by CertificateManager.

Exceptions

ExceptionCondition
InvalidArnException The requested Amazon Resource Name (ARN) does not refer to an existing resource.
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.
TooManyTagsException The request contains too many tags. Try the request again with fewer tags.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

See Also