import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetPermissionRequest, GetPermissionResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link GetPermissionCommand}. */ export interface GetPermissionCommandInput extends GetPermissionRequest { } /** * @public * * The output of {@link GetPermissionCommand}. */ export interface GetPermissionCommandOutput extends GetPermissionResponse, __MetadataBearer { } declare const GetPermissionCommand_base: { new (input: GetPermissionCommandInput): import("@smithy/core/client").CommandImpl; new (input: GetPermissionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Retrieves the contents of a managed permission in JSON format.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RAMClient, GetPermissionCommand } from "@aws-sdk/client-ram"; // ES Modules import * // const { RAMClient, GetPermissionCommand } = require("@aws-sdk/client-ram"); // CommonJS import * // import type { RAMClientConfig } from "@aws-sdk/client-ram"; * const config = {}; // type is RAMClientConfig * const client = new RAMClient(config); * const input = { // GetPermissionRequest * permissionArn: "STRING_VALUE", // required * permissionVersion: Number("int"), * }; * const command = new GetPermissionCommand(input); * const response = await client.send(command); * // { // GetPermissionResponse * // permission: { // ResourceSharePermissionDetail * // arn: "STRING_VALUE", * // version: "STRING_VALUE", * // defaultVersion: true || false, * // name: "STRING_VALUE", * // resourceType: "STRING_VALUE", * // permission: "STRING_VALUE", * // creationTime: new Date("TIMESTAMP"), * // lastUpdatedTime: new Date("TIMESTAMP"), * // isResourceTypeDefault: true || false, * // permissionType: "CUSTOMER_MANAGED" || "AWS_MANAGED", * // featureSet: "CREATED_FROM_POLICY" || "PROMOTING_TO_STANDARD" || "STANDARD", * // status: "ATTACHABLE" || "UNATTACHABLE" || "DELETING" || "DELETED", * // tags: [ // TagList * // { // Tag * // key: "STRING_VALUE", * // value: "STRING_VALUE", * // }, * // ], * // }, * // }; * * ``` * * @param GetPermissionCommandInput - {@link GetPermissionCommandInput} * @returns {@link GetPermissionCommandOutput} * @see {@link GetPermissionCommandInput} for command's `input` shape. * @see {@link GetPermissionCommandOutput} for command's `response` shape. * @see {@link RAMClientResolvedConfig | config} for RAMClient's `config` shape. * * @throws {@link InvalidParameterException} (client fault) *

The operation failed because a parameter you specified isn't valid.

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

The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't * valid.

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

The operation failed because the requested operation isn't permitted.

* * @throws {@link ServerInternalException} (server fault) *

The operation failed because the service could not respond to the request due to an * internal problem. Try again later.

* * @throws {@link ServiceUnavailableException} (server fault) *

The operation failed because the service isn't available. Try again later.

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

The operation failed because a specified resource couldn't be found.

* * @throws {@link RAMServiceException} *

Base exception class for all service exceptions from RAM service.

* * * @public */ export declare class GetPermissionCommand extends GetPermissionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetPermissionRequest; output: GetPermissionResponse; }; sdk: { input: GetPermissionCommandInput; output: GetPermissionCommandOutput; }; }; }