import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ListIdentityPoolUsageRequest, ListIdentityPoolUsageResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link ListIdentityPoolUsageCommand}. */ export interface ListIdentityPoolUsageCommandInput extends ListIdentityPoolUsageRequest { } /** * @public * * The output of {@link ListIdentityPoolUsageCommand}. */ export interface ListIdentityPoolUsageCommandOutput extends ListIdentityPoolUsageResponse, __MetadataBearer { } declare const ListIdentityPoolUsageCommand_base: { new (input: ListIdentityPoolUsageCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [ListIdentityPoolUsageCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Gets a list of identity pools registered with Cognito.

*

ListIdentityPoolUsage can only be called with developer credentials. You * cannot make this API call with the temporary user credentials provided by Cognito * Identity.

* * * ListIdentityPoolUsage * The following examples have been edited for readability. * * POST / HTTP/1.1 * CONTENT-TYPE: application/json * X-AMZN-REQUESTID: 9be7c425-ef05-48c0-aef3-9f0ff2fe17d3 * X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.ListIdentityPoolUsage * HOST: cognito-sync.us-east-1.amazonaws.com:443 * X-AMZ-DATE: 20141111T211414Z * AUTHORIZATION: AWS4-HMAC-SHA256 Credential=, SignedHeaders=content-type;host;x-amz-date;x-amz-target;x-amzn-requestid, Signature= * * \{ * "Operation": "com.amazonaws.cognito.sync.model#ListIdentityPoolUsage", * "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService", * "Input": * \{ * "MaxResults": "2" * \} * \} * * * 1.1 200 OK * x-amzn-requestid: 9be7c425-ef05-48c0-aef3-9f0ff2fe17d3 * content-type: application/json * content-length: 519 * date: Tue, 11 Nov 2014 21:14:14 GMT * * \{ * "Output": * \{ * "__type": "com.amazonaws.cognito.sync.model#ListIdentityPoolUsageResponse", * "Count": 2, * "IdentityPoolUsages": [ * \{ * "DataStorage": 0, * "IdentityPoolId": "IDENTITY_POOL_ID", * "LastModifiedDate": 1.413836234607E9, * "SyncSessionsCount": null * \}, * \{ * "DataStorage": 0, * "IdentityPoolId": "IDENTITY_POOL_ID", * "LastModifiedDate": 1.410892165601E9, * "SyncSessionsCount": null * \}], * "MaxResults": 2, * "NextToken": "dXMtZWFzdC0xOjBjMWJhMDUyLWUwOTgtNDFmYS1hNzZlLWVhYTJjMTI1Zjg2MQ==" * \}, * "Version": "1.0" * \} * * * * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CognitoSyncClient, ListIdentityPoolUsageCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import * // const { CognitoSyncClient, ListIdentityPoolUsageCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import * // import type { CognitoSyncClientConfig } from "@aws-sdk/client-cognito-sync"; * const config = {}; // type is CognitoSyncClientConfig * const client = new CognitoSyncClient(config); * const input = { // ListIdentityPoolUsageRequest * NextToken: "STRING_VALUE", * MaxResults: Number("int"), * }; * const command = new ListIdentityPoolUsageCommand(input); * const response = await client.send(command); * // { // ListIdentityPoolUsageResponse * // IdentityPoolUsages: [ // IdentityPoolUsageList * // { // IdentityPoolUsage * // IdentityPoolId: "STRING_VALUE", * // SyncSessionsCount: Number("long"), * // DataStorage: Number("long"), * // LastModifiedDate: new Date("TIMESTAMP"), * // }, * // ], * // MaxResults: Number("int"), * // Count: Number("int"), * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param ListIdentityPoolUsageCommandInput - {@link ListIdentityPoolUsageCommandInput} * @returns {@link ListIdentityPoolUsageCommandOutput} * @see {@link ListIdentityPoolUsageCommandInput} for command's `input` shape. * @see {@link ListIdentityPoolUsageCommandOutput} for command's `response` shape. * @see {@link CognitoSyncClientResolvedConfig | config} for CognitoSyncClient's `config` shape. * * @throws {@link InternalErrorException} (server fault) * Indicates an internal service * error. * * @throws {@link InvalidParameterException} (client fault) * Thrown when a request parameter does not comply * with the associated constraints. * * @throws {@link NotAuthorizedException} (client fault) * Thrown when a user is not authorized to access the * requested resource. * * @throws {@link TooManyRequestsException} (client fault) * Thrown if the request is * throttled. * * @throws {@link CognitoSyncServiceException} *

Base exception class for all service exceptions from CognitoSync service.

* * * @public */ export declare class ListIdentityPoolUsageCommand extends ListIdentityPoolUsageCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListIdentityPoolUsageRequest; output: ListIdentityPoolUsageResponse; }; sdk: { input: ListIdentityPoolUsageCommandInput; output: ListIdentityPoolUsageCommandOutput; }; }; }