Lists all roles that are assigned to the user for a given AWS account.
Use a bare-bones client and the command you need to make an API call.
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);
ListAccountRolesCommandInput for command's input shape.
input
ListAccountRolesCommandOutput for command's response shape.
response
config for SSOClient's config shape.
config
Lists all roles that are assigned to the user for a given AWS account.
Use a bare-bones client and the command you need to make an API call.
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);
ListAccountRolesCommandInput for command's
input
shape.ListAccountRolesCommandOutput for command's
response
shape.config for SSOClient's
config
shape.