Jump to Content

Class UntagCertificateAuthorityCommandProtected

Remove one or more tags from your private CA. A tag consists of a key-value pair. If you do not specify the value portion of the tag when calling this action, the tag will be removed regardless of value. If you specify a value, the tag is removed only if it is associated with the specified value. To add tags to a private CA, use the TagCertificateAuthority. Call the ListTags action to see what tags are associated with your CA.

Example

Use a bare-bones client and the command you need to make an API call.

import { ACMPCAClient, UntagCertificateAuthorityCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import
// const { ACMPCAClient, UntagCertificateAuthorityCommand } = require("@aws-sdk/client-acm-pca"); // CommonJS import
const client = new ACMPCAClient(config);
const input = { // UntagCertificateAuthorityRequest
CertificateAuthorityArn: "STRING_VALUE", // required
Tags: [ // TagList // required
{ // Tag
Key: "STRING_VALUE", // required
Value: "STRING_VALUE",
},
],
};
const command = new UntagCertificateAuthorityCommand(input);
const response = await client.send(command);

Param

UntagCertificateAuthorityCommandInput

Returns

UntagCertificateAuthorityCommandOutput

See

Throws

InvalidArnException (client fault)

The requested Amazon Resource Name (ARN) does not refer to an existing resource.

Throws

InvalidStateException (client fault)

The state of the private CA does not allow this action to occur.

Throws

InvalidTagException (client fault)

The tag associated with the CA is not valid. The invalid argument is contained in the message field.

Throws

ResourceNotFoundException (client fault)

A resource such as a private CA, S3 bucket, certificate, audit report, or policy cannot be found.

Hierarchy

Constructors

Properties

Methods