import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityClient"; import type { LookupDeveloperIdentityInput, LookupDeveloperIdentityResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link LookupDeveloperIdentityCommand}. */ export interface LookupDeveloperIdentityCommandInput extends LookupDeveloperIdentityInput { } /** * @public * * The output of {@link LookupDeveloperIdentityCommand}. */ export interface LookupDeveloperIdentityCommandOutput extends LookupDeveloperIdentityResponse, __MetadataBearer { } declare const LookupDeveloperIdentityCommand_base: { new (input: LookupDeveloperIdentityCommandInput): import("@smithy/core/client").CommandImpl; new (input: LookupDeveloperIdentityCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Retrieves the IdentityID associated with a * DeveloperUserIdentifier or the list of DeveloperUserIdentifier * values associated with an IdentityId for an existing identity. Either * IdentityID or DeveloperUserIdentifier must not be null. If you * supply only one of these values, the other value will be searched in the database and * returned as a part of the response. If you supply both, * DeveloperUserIdentifier will be matched against IdentityID. If * the values are verified against the database, the response returns both values and is the * same as the request. Otherwise, a ResourceConflictException is * thrown.

*

* LookupDeveloperIdentity is intended for low-throughput control plane * operations: for example, to enable customer service to locate an identity ID by username. * If you are using it for higher-volume operations such as user authentication, your requests * are likely to be throttled. GetOpenIdTokenForDeveloperIdentity is a * better option for higher-volume operations for user authentication.

*

You must use Amazon Web Services developer credentials to call this * operation.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CognitoIdentityClient, LookupDeveloperIdentityCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import * // const { CognitoIdentityClient, LookupDeveloperIdentityCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import * // import type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity"; * const config = {}; // type is CognitoIdentityClientConfig * const client = new CognitoIdentityClient(config); * const input = { // LookupDeveloperIdentityInput * IdentityPoolId: "STRING_VALUE", // required * IdentityId: "STRING_VALUE", * DeveloperUserIdentifier: "STRING_VALUE", * MaxResults: Number("int"), * NextToken: "STRING_VALUE", * }; * const command = new LookupDeveloperIdentityCommand(input); * const response = await client.send(command); * // { // LookupDeveloperIdentityResponse * // IdentityId: "STRING_VALUE", * // DeveloperUserIdentifierList: [ // DeveloperUserIdentifierList * // "STRING_VALUE", * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param LookupDeveloperIdentityCommandInput - {@link LookupDeveloperIdentityCommandInput} * @returns {@link LookupDeveloperIdentityCommandOutput} * @see {@link LookupDeveloperIdentityCommandInput} for command's `input` shape. * @see {@link LookupDeveloperIdentityCommandOutput} for command's `response` shape. * @see {@link CognitoIdentityClientResolvedConfig | config} for CognitoIdentityClient's `config` shape. * * @throws {@link InternalErrorException} (server fault) *

Thrown when the service encounters an error during processing the request.

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

Thrown for missing or bad input parameter(s).

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

Thrown when a user is not authorized to access the requested resource.

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

Thrown when a user tries to use a login which is already linked to another * account.

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

Thrown when the requested resource (for example, a dataset or record) does not * exist.

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

Thrown when a request is throttled.

* * @throws {@link CognitoIdentityServiceException} *

Base exception class for all service exceptions from CognitoIdentity service.

* * * @public */ export declare class LookupDeveloperIdentityCommand extends LookupDeveloperIdentityCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: LookupDeveloperIdentityInput; output: LookupDeveloperIdentityResponse; }; sdk: { input: LookupDeveloperIdentityCommandInput; output: LookupDeveloperIdentityCommandOutput; }; }; }