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; }; /** *

Retrieves a list of available RAM permissions that you can use for the supported * resource types.

* *

Always check the NextToken response parameter for a null value * when calling a paginated operation. These operations can occasionally return an empty set of results even when there are more * results available. The NextToken response parameter value is null * only * when there are no more results to display.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RAMClient, ListPermissionsCommand } from "@aws-sdk/client-ram"; // ES Modules import * // const { RAMClient, ListPermissionsCommand } = 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 = { // ListPermissionsRequest * resourceType: "STRING_VALUE", * nextToken: "STRING_VALUE", * maxResults: Number("int"), * permissionType: "ALL" || "AWS_MANAGED" || "CUSTOMER_MANAGED", * }; * const command = new ListPermissionsCommand(input); * const response = await client.send(command); * // { // ListPermissionsResponse * // permissions: [ // ResourceSharePermissionList * // { // ResourceSharePermissionSummary * // arn: "STRING_VALUE", * // version: "STRING_VALUE", * // defaultVersion: true || false, * // name: "STRING_VALUE", * // resourceType: "STRING_VALUE", * // status: "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", * // tags: [ // TagList * // { // Tag * // key: "STRING_VALUE", * // value: "STRING_VALUE", * // }, * // ], * // }, * // ], * // nextToken: "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 RAMClientResolvedConfig | config} for RAMClient's `config` shape. * * @throws {@link InvalidNextTokenException} (client fault) *

The operation failed because the specified value for NextToken isn't * valid. You must specify a value you received in the NextToken response of a * previous call to this operation.

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

The operation failed because a parameter you specified 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 RAMServiceException} *

Base exception class for all service exceptions from RAM 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; }; }; }