import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ListPermissionsRequest, ListPermissionsResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link ListPermissionsCommand}. */ export interface ListPermissionsCommandInput extends ListPermissionsRequest { } /** * @public * * The output of {@link ListPermissionsCommand}. */ export interface ListPermissionsCommandOutput extends ListPermissionsResponse, __MetadataBearer { } declare const ListPermissionsCommand_base: { new (input: ListPermissionsCommandInput): import("@smithy/core/client").CommandImpl; new (input: ListPermissionsCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

List all permissions on a private CA, if any, granted to the Certificate Manager (ACM) service principal (acm.amazonaws.com).

These permissions allow ACM to issue and renew ACM certificates that reside in the same Amazon Web Services account as the CA.

Permissions can be granted with the CreatePermission action and revoked with the DeletePermission action.

About Permissions

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ACMPCAClient, ListPermissionsCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import * // const { ACMPCAClient, ListPermissionsCommand } = 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 = { // ListPermissionsRequest * MaxResults: Number("int"), * NextToken: "STRING_VALUE", * CertificateAuthorityArn: "STRING_VALUE", // required * }; * const command = new ListPermissionsCommand(input); * const response = await client.send(command); * // { // ListPermissionsResponse * // NextToken: "STRING_VALUE", * // Permissions: [ // PermissionList * // { // Permission * // CertificateAuthorityArn: "STRING_VALUE", * // CreatedAt: new Date("TIMESTAMP"), * // Principal: "STRING_VALUE", * // SourceAccount: "STRING_VALUE", * // Actions: [ // ActionList * // "IssueCertificate" || "GetCertificate" || "ListPermissions", * // ], * // Policy: "STRING_VALUE", * // }, * // ], * // }; * * ``` * * @param ListPermissionsCommandInput - {@link ListPermissionsCommandInput} * @returns {@link ListPermissionsCommandOutput} * @see {@link ListPermissionsCommandInput} for command's `input` shape. * @see {@link ListPermissionsCommandOutput} 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 InvalidNextTokenException} (client fault) *

The token specified in the NextToken argument is not valid. Use the token returned from your previous call to ListCertificateAuthorities.

* * @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 ListPermissionsCommand extends ListPermissionsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListPermissionsRequest; output: ListPermissionsResponse; }; sdk: { input: ListPermissionsCommandInput; output: ListPermissionsCommandOutput; }; }; }