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 your private CA. 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 private CA 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 private CA if you want to identify a specific characteristic of that CA, or you can apply the same tag to multiple private CAs if you want to filter for a common relationship among those CAs. To remove one or more tags, use the UntagCertificateAuthority operation. Call the ListTags operation to see what tags are associated with your CA.


For .NET Core and PCL this operation is only available in asynchronous form. Please refer to TagCertificateAuthorityAsync.

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


public abstract TagCertificateAuthorityResponse TagCertificateAuthority(
         TagCertificateAuthorityRequest request
Type: Amazon.ACMPCA.Model.TagCertificateAuthorityRequest

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

Return Value
The response from the TagCertificateAuthority service method, as returned by ACMPCA.


InvalidArnException The requested Amazon Resource Name (ARN) does not refer to an existing resource.
InvalidStateException The private CA is in a state during which a report cannot be generated.
InvalidTagException The tag associated with the CA is not valid. The invalid argument is contained in the message field.
ResourceNotFoundException A resource such as a private CA, S3 bucket, certificate, or audit report cannot be found.
TooManyTagsException You can associate up to 50 tags with a private CA. Exception information is contained in the exception message field.

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