import { SSOClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SSOClient"; import { ListAccountRolesRequest, ListAccountRolesResponse } from "../models/models_0"; import { deserializeAws_restJson1ListAccountRolesCommand, serializeAws_restJson1ListAccountRolesCommand, } 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 ListAccountRolesCommandInput extends ListAccountRolesRequest {} export interface ListAccountRolesCommandOutput extends ListAccountRolesResponse, __MetadataBearer {} /** *
Lists all roles that are assigned to the user for a given AWS account.
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SSOClient, ListAccountRolesCommand } from "@aws-sdk/client-sso"; // ES Modules import * // const { SSOClient, ListAccountRolesCommand } = require("@aws-sdk/client-sso"); // CommonJS import * const client = new SSOClient(config); * const command = new ListAccountRolesCommand(input); * const response = await client.send(command); * ``` * * @see {@link ListAccountRolesCommandInput} for command's `input` shape. * @see {@link ListAccountRolesCommandOutput} for command's `response` shape. * @see {@link SSOClientResolvedConfig | config} for command's `input` shape. * */ export class ListAccountRolesCommand extends $Command< ListAccountRolesCommandInput, ListAccountRolesCommandOutput, SSOClientResolvedConfig > { // Start section: command_properties // End section: command_properties constructor(readonly input: ListAccountRolesCommandInput) { // Start section: command_constructor super(); // End section: command_constructor } /** * @internal */ resolveMiddleware( clientStack: MiddlewareStack