import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ListSubscriptionsRequest, ListSubscriptionsResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link ListSubscriptionsCommand}. */ export interface ListSubscriptionsCommandInput extends ListSubscriptionsRequest { } /** * @public * * The output of {@link ListSubscriptionsCommand}. */ export interface ListSubscriptionsCommandOutput extends ListSubscriptionsResponse, __MetadataBearer { } declare const ListSubscriptionsCommand_base: { new (input: ListSubscriptionsCommandInput): import("@smithy/core/client").CommandImpl; new (input: ListSubscriptionsCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Returns a list of all subscriptions for MQTT clients with active sessions, including offline clients with persistent sessions.

*

Requires permission to access the ListSubscriptions action.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { IoTDataPlaneClient, ListSubscriptionsCommand } from "@aws-sdk/client-iot-data-plane"; // ES Modules import * // const { IoTDataPlaneClient, ListSubscriptionsCommand } = require("@aws-sdk/client-iot-data-plane"); // CommonJS import * // import type { IoTDataPlaneClientConfig } from "@aws-sdk/client-iot-data-plane"; * const config = {}; // type is IoTDataPlaneClientConfig * const client = new IoTDataPlaneClient(config); * const input = { // ListSubscriptionsRequest * clientId: "STRING_VALUE", // required * nextToken: "STRING_VALUE", * maxResults: Number("int"), * }; * const command = new ListSubscriptionsCommand(input); * const response = await client.send(command); * // { // ListSubscriptionsResponse * // subscriptions: [ // SubscriptionList * // { // SubscriptionSummary * // topicFilter: "STRING_VALUE", // required * // qos: Number("int"), // required * // }, * // ], * // nextToken: "STRING_VALUE", * // }; * * ``` * * @param ListSubscriptionsCommandInput - {@link ListSubscriptionsCommandInput} * @returns {@link ListSubscriptionsCommandOutput} * @see {@link ListSubscriptionsCommandInput} for command's `input` shape. * @see {@link ListSubscriptionsCommandOutput} for command's `response` shape. * @see {@link IoTDataPlaneClientResolvedConfig | config} for IoTDataPlaneClient's `config` shape. * * @throws {@link ForbiddenException} (client fault) *

The caller isn't authorized to make the request.

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

An unexpected error has occurred.

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

The request is not valid.

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

The specified resource does not exist.

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

The rate exceeds the limit.

* * @throws {@link IoTDataPlaneServiceException} *

Base exception class for all service exceptions from IoTDataPlane service.

* * * @public */ export declare class ListSubscriptionsCommand extends ListSubscriptionsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListSubscriptionsRequest; output: ListSubscriptionsResponse; }; sdk: { input: ListSubscriptionsCommandInput; output: ListSubscriptionsCommandOutput; }; }; }