Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GetRoleCredentialsCommand

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.

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

GetRoleCredentialsCommandInput for command's input shape.

see

GetRoleCredentialsCommandOutput for command's response shape.

see

config for SSOClient's config shape.

throws

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

ResourceNotFoundException (client fault)

The specified resource doesn't exist.

throws

TooManyRequestsException (client fault)

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

throws

UnauthorizedException (client fault)

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

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions