import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DeletePolicyRequest } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link DeletePolicyCommand}. */ export interface DeletePolicyCommandInput extends DeletePolicyRequest { } /** * @public * * The output of {@link DeletePolicyCommand}. */ export interface DeletePolicyCommandOutput extends __MetadataBearer { } declare const DeletePolicyCommand_base: { new (input: DeletePolicyCommandInput): import("@smithy/core/client").CommandImpl; new (input: DeletePolicyCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Deletes the resource-based policy attached to a private CA. Deletion will remove any access that the policy has granted. If there is no policy attached to the private CA, this action will return successful.

If you delete a policy that was applied through Amazon Web Services Resource Access Manager (RAM), the CA will be removed from all shares in which it was included.

The Certificate Manager Service Linked Role that the policy supports is not affected when you delete the policy.

The current policy can be shown with GetPolicy and updated with PutPolicy.

About Policies

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ACMPCAClient, DeletePolicyCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import * // const { ACMPCAClient, DeletePolicyCommand } = 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 = { // DeletePolicyRequest * ResourceArn: "STRING_VALUE", // required * }; * const command = new DeletePolicyCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param DeletePolicyCommandInput - {@link DeletePolicyCommandInput} * @returns {@link DeletePolicyCommandOutput} * @see {@link DeletePolicyCommandInput} for command's `input` shape. * @see {@link DeletePolicyCommandOutput} 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 InvalidArnException} (client fault) *

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

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

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

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

The current action was prevented because it would lock the caller out from performing subsequent actions. Verify that the specified parameters would not result in the caller being denied access to the resource.

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

The request has failed for an unspecified reason.

* * @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 DeletePolicyCommand extends DeletePolicyCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeletePolicyRequest; output: {}; }; sdk: { input: DeletePolicyCommandInput; output: DeletePolicyCommandOutput; }; }; }