import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { UpdateCertificateAuthorityRequest } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link UpdateCertificateAuthorityCommand}. */ export interface UpdateCertificateAuthorityCommandInput extends UpdateCertificateAuthorityRequest { } /** * @public * * The output of {@link UpdateCertificateAuthorityCommand}. */ export interface UpdateCertificateAuthorityCommandOutput extends __MetadataBearer { } declare const UpdateCertificateAuthorityCommand_base: { new (input: UpdateCertificateAuthorityCommandInput): import("@smithy/core/client").CommandImpl; new (input: UpdateCertificateAuthorityCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

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. * ```javascript * import { ACMPCAClient, UpdateCertificateAuthorityCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import * // const { ACMPCAClient, UpdateCertificateAuthorityCommand } = require("@aws-sdk/client-acm-pca"); // CommonJS import * // import type { ACMPCAClientConfig } from "@aws-sdk/client-acm-pca"; * const config = {}; // type is ACMPCAClientConfig * const client = new ACMPCAClient(config); * const input = { // UpdateCertificateAuthorityRequest * CertificateAuthorityArn: "STRING_VALUE", // required * RevocationConfiguration: { // RevocationConfiguration * CrlConfiguration: { // CrlConfiguration * Enabled: true || false, // required * ExpirationInDays: Number("int"), * CustomCname: "STRING_VALUE", * S3BucketName: "STRING_VALUE", * S3ObjectAcl: "PUBLIC_READ" || "BUCKET_OWNER_FULL_CONTROL", * CrlDistributionPointExtensionConfiguration: { // CrlDistributionPointExtensionConfiguration * OmitExtension: true || false, // required * }, * CrlType: "COMPLETE" || "PARTITIONED", * CustomPath: "STRING_VALUE", * }, * OcspConfiguration: { // OcspConfiguration * Enabled: true || false, // required * OcspCustomCname: "STRING_VALUE", * }, * }, * Status: "CREATING" || "PENDING_CERTIFICATE" || "ACTIVE" || "DELETED" || "DISABLED" || "EXPIRED" || "FAILED", * }; * const command = new UpdateCertificateAuthorityCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param UpdateCertificateAuthorityCommandInput - {@link UpdateCertificateAuthorityCommandInput} * @returns {@link UpdateCertificateAuthorityCommandOutput} * @see {@link UpdateCertificateAuthorityCommandInput} for command's `input` shape. * @see {@link UpdateCertificateAuthorityCommandOutput} for command's `response` shape. * @see {@link ACMPCAClientResolvedConfig | config} for ACMPCAClient's `config` shape. * * @throws {@link ConcurrentModificationException} (client fault) *

A previous update to your private CA is still ongoing.

* * @throws {@link InvalidArgsException} (client fault) *

One or more of the specified arguments was not valid.

* * @throws {@link InvalidArnException} (client fault) *

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

* * @throws {@link 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 {@link InvalidStateException} (client fault) *

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

* * @throws {@link ResourceNotFoundException} (client fault) *

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

* * @throws {@link ACMPCAServiceException} *

Base exception class for all service exceptions from ACMPCA service.

* * * @public */ export declare class UpdateCertificateAuthorityCommand extends UpdateCertificateAuthorityCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateCertificateAuthorityRequest; output: {}; }; sdk: { input: UpdateCertificateAuthorityCommandInput; output: UpdateCertificateAuthorityCommandOutput; }; }; }