import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { LogoutRequest } from "../models/models_0"; import type { ServiceInputTypes, ServiceOutputTypes, SSOClientResolvedConfig } from "../SSOClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link LogoutCommand}. */ export interface LogoutCommandInput extends LogoutRequest { } /** * @public * * The output of {@link LogoutCommand}. */ export interface LogoutCommandOutput extends __MetadataBearer { } declare const LogoutCommand_base: { new (input: LogoutCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: LogoutCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Removes the locally stored SSO tokens from the client-side cache and sends an API call to * the IAM Identity Center service to invalidate the corresponding server-side IAM Identity Center sign in * session.

* *

If a user uses IAM Identity Center to access the AWS CLI, the user’s IAM Identity Center sign in session is * used to obtain an IAM session, as specified in the corresponding IAM Identity Center permission set. * More specifically, IAM Identity Center assumes an IAM role in the target account on behalf of the user, * and the corresponding temporary AWS credentials are returned to the client.

*

After user logout, any existing IAM role sessions that were created by using IAM Identity Center * permission sets continue based on the duration configured in the permission set. * For more information, see User * authentications in the IAM Identity Center User * Guide.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SSOClient, LogoutCommand } from "@aws-sdk/client-sso"; // ES Modules import * // const { SSOClient, LogoutCommand } = require("@aws-sdk/client-sso"); // CommonJS import * // import type { SSOClientConfig } from "@aws-sdk/client-sso"; * const config = {}; // type is SSOClientConfig * const client = new SSOClient(config); * const input = { // LogoutRequest * accessToken: "STRING_VALUE", // required * }; * const command = new LogoutCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param LogoutCommandInput - {@link LogoutCommandInput} * @returns {@link LogoutCommandOutput} * @see {@link LogoutCommandInput} for command's `input` shape. * @see {@link LogoutCommandOutput} for command's `response` shape. * @see {@link SSOClientResolvedConfig | config} for SSOClient's `config` shape. * * @throws {@link InvalidRequestException} (client fault) *

Indicates that a problem occurred with the input to the request. For example, a required * parameter might be missing or out of range.

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

Indicates that the request is being made too frequently and is more than what the server * can handle.

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

Indicates that the request is not authorized. This can happen due to an invalid access * token in the request.

* * @throws {@link SSOServiceException} *

Base exception class for all service exceptions from SSO service.

* * * @public */ export declare class LogoutCommand extends LogoutCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: LogoutRequest; output: {}; }; sdk: { input: LogoutCommandInput; output: LogoutCommandOutput; }; }; }