Jump to Content

Class UpdateCertificateAuthorityCommandProtected

Updates the status or configuration of a private certificate authority (CA). Your private CA must be in the ACTIVE or DISABLED state before you can update it. You can disable a private CA that is in the ACTIVE state or make a CA that is in the DISABLED state active again.

Both Amazon Web Services Private CA and the IAM principal must have permission to write to the S3 bucket that you specify. If the IAM principal making the call does not have permission to write to the bucket, then an exception is thrown. For more information, see Access policies for CRLs in Amazon S3.

Example

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

import { ACMPCAClient, UpdateCertificateAuthorityCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import
// const { ACMPCAClient, UpdateCertificateAuthorityCommand } = require("@aws-sdk/client-acm-pca"); // CommonJS import
const client = new ACMPCAClient(config);
const command = new UpdateCertificateAuthorityCommand(input);
const response = await client.send(command);

Param

UpdateCertificateAuthorityCommandInput

Returns

UpdateCertificateAuthorityCommandOutput

See

Throws

ConcurrentModificationException (client fault)

A previous update to your private CA is still ongoing.

Throws

InvalidArgsException (client fault)

One or more of the specified arguments was not valid.

Throws

InvalidArnException (client fault)

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

Throws

InvalidPolicyException (client fault)

The resource policy is invalid or is missing a required statement. For general information about IAM policy and statement structure, see Overview of JSON Policies.

Throws

InvalidStateException (client fault)

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

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