UNPKG

@aws-sdk/client-cognito-identity-provider

Version:

AWS SDK for JavaScript Cognito Identity Provider Client for Node.js, Browser and React Native

108 lines (107 loc) 4.97 kB
import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CognitoIdentityProviderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityProviderClient"; import { DescribeIdentityProviderRequest, DescribeIdentityProviderResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DescribeIdentityProviderCommand}. */ export interface DescribeIdentityProviderCommandInput extends DescribeIdentityProviderRequest { } /** * @public * * The output of {@link DescribeIdentityProviderCommand}. */ export interface DescribeIdentityProviderCommandOutput extends DescribeIdentityProviderResponse, __MetadataBearer { } declare const DescribeIdentityProviderCommand_base: { new (input: DescribeIdentityProviderCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeIdentityProviderCommandInput, DescribeIdentityProviderCommandOutput, CognitoIdentityProviderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; new (input: DescribeIdentityProviderCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeIdentityProviderCommandInput, DescribeIdentityProviderCommandOutput, CognitoIdentityProviderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** * <p>Given a user pool ID and identity provider (IdP) name, returns details about the * IdP.</p> * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CognitoIdentityProviderClient, DescribeIdentityProviderCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import * // const { CognitoIdentityProviderClient, DescribeIdentityProviderCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import * const client = new CognitoIdentityProviderClient(config); * const input = { // DescribeIdentityProviderRequest * UserPoolId: "STRING_VALUE", // required * ProviderName: "STRING_VALUE", // required * }; * const command = new DescribeIdentityProviderCommand(input); * const response = await client.send(command); * // { // DescribeIdentityProviderResponse * // IdentityProvider: { // IdentityProviderType * // UserPoolId: "STRING_VALUE", * // ProviderName: "STRING_VALUE", * // ProviderType: "SAML" || "Facebook" || "Google" || "LoginWithAmazon" || "SignInWithApple" || "OIDC", * // ProviderDetails: { // ProviderDetailsType * // "<keys>": "STRING_VALUE", * // }, * // AttributeMapping: { // AttributeMappingType * // "<keys>": "STRING_VALUE", * // }, * // IdpIdentifiers: [ // IdpIdentifiersListType * // "STRING_VALUE", * // ], * // LastModifiedDate: new Date("TIMESTAMP"), * // CreationDate: new Date("TIMESTAMP"), * // }, * // }; * * ``` * * @param DescribeIdentityProviderCommandInput - {@link DescribeIdentityProviderCommandInput} * @returns {@link DescribeIdentityProviderCommandOutput} * @see {@link DescribeIdentityProviderCommandInput} for command's `input` shape. * @see {@link DescribeIdentityProviderCommandOutput} for command's `response` shape. * @see {@link CognitoIdentityProviderClientResolvedConfig | config} for CognitoIdentityProviderClient's `config` shape. * * @throws {@link InternalErrorException} (server fault) * <p>This exception is thrown when Amazon Cognito encounters an internal error.</p> * * @throws {@link InvalidParameterException} (client fault) * <p>This exception is thrown when the Amazon Cognito service encounters an invalid * parameter.</p> * * @throws {@link NotAuthorizedException} (client fault) * <p>This exception is thrown when a user isn't authorized.</p> * * @throws {@link ResourceNotFoundException} (client fault) * <p>This exception is thrown when the Amazon Cognito service can't find the requested * resource.</p> * * @throws {@link TooManyRequestsException} (client fault) * <p>This exception is thrown when the user has made too many requests for a given * operation.</p> * * @throws {@link CognitoIdentityProviderServiceException} * <p>Base exception class for all service exceptions from CognitoIdentityProvider service.</p> * * * @public */ export declare class DescribeIdentityProviderCommand extends DescribeIdentityProviderCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeIdentityProviderRequest; output: DescribeIdentityProviderResponse; }; sdk: { input: DescribeIdentityProviderCommandInput; output: DescribeIdentityProviderCommandOutput; }; }; }