import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetPolicyRequest, GetPolicyResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link GetPolicyCommand}. */ export interface GetPolicyCommandInput extends GetPolicyRequest { } /** * @public * * The output of {@link GetPolicyCommand}. */ export interface GetPolicyCommandOutput extends GetPolicyResponse, __MetadataBearer { } declare const GetPolicyCommand_base: { new (input: GetPolicyCommandInput): import("@smithy/core/client").CommandImpl; new (input: GetPolicyCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Retrieves the resource-based policy attached to a private CA. If either the private CA resource or the policy cannot be found, this action returns a ResourceNotFoundException.

The policy can be attached or updated with PutPolicy and removed with DeletePolicy.

About Policies

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ACMPCAClient, GetPolicyCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import * // const { ACMPCAClient, GetPolicyCommand } = 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 = { // GetPolicyRequest * ResourceArn: "STRING_VALUE", // required * }; * const command = new GetPolicyCommand(input); * const response = await client.send(command); * // { // GetPolicyResponse * // Policy: "STRING_VALUE", * // }; * * ``` * * @param GetPolicyCommandInput - {@link GetPolicyCommandInput} * @returns {@link GetPolicyCommandOutput} * @see {@link GetPolicyCommandInput} for command's `input` shape. * @see {@link GetPolicyCommandOutput} for command's `response` shape. * @see {@link ACMPCAClientResolvedConfig | config} for ACMPCAClient's `config` shape. * * @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 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 GetPolicyCommand extends GetPolicyCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetPolicyRequest; output: GetPolicyResponse; }; sdk: { input: GetPolicyCommandInput; output: GetPolicyCommandOutput; }; }; }