import { SSOClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SSOClient"; import { GetRoleCredentialsRequest, GetRoleCredentialsResponse } from "../models/models_0"; import { deserializeAws_restJson1GetRoleCredentialsCommand, serializeAws_restJson1GetRoleCredentialsCommand, } from "../protocols/Aws_restJson1"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; import { FinalizeHandlerArguments, Handler, HandlerExecutionContext, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, SerdeContext as __SerdeContext, } from "@aws-sdk/types"; export interface GetRoleCredentialsCommandInput extends GetRoleCredentialsRequest {} export interface GetRoleCredentialsCommandOutput extends GetRoleCredentialsResponse, __MetadataBearer {} /** *
Returns the STS short-term credentials for a given role name that is assigned to the * user.
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SSOClient, GetRoleCredentialsCommand } from "@aws-sdk/client-sso"; // ES Modules import * // const { SSOClient, GetRoleCredentialsCommand } = require("@aws-sdk/client-sso"); // CommonJS import * const client = new SSOClient(config); * const command = new GetRoleCredentialsCommand(input); * const response = await client.send(command); * ``` * * @see {@link GetRoleCredentialsCommandInput} for command's `input` shape. * @see {@link GetRoleCredentialsCommandOutput} for command's `response` shape. * @see {@link SSOClientResolvedConfig | config} for command's `input` shape. * */ export class GetRoleCredentialsCommand extends $Command< GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput, SSOClientResolvedConfig > { // Start section: command_properties // End section: command_properties constructor(readonly input: GetRoleCredentialsCommandInput) { // Start section: command_constructor super(); // End section: command_constructor } /** * @internal */ resolveMiddleware( clientStack: MiddlewareStack