Returns the STS short-term credentials for a given role name that is assigned to the user.
Use a bare-bones client and the command you need to make an API call.
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);
GetRoleCredentialsCommandInput for command's input shape.
input
GetRoleCredentialsCommandOutput for command's response shape.
response
config for SSOClient's config shape.
config
Returns the STS short-term credentials for a given role name that is assigned to the user.
Use a bare-bones client and the command you need to make an API call.
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);
GetRoleCredentialsCommandInput for command's
input
shape.GetRoleCredentialsCommandOutput for command's
response
shape.config for SSOClient's
config
shape.