AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Returns the STS short-term credentials for a given role name that is assigned to the user.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to GetRoleCredentialsAsync.

Namespace: Amazon.SSO
Assembly: AWSSDK.SSO.dll
Version: 3.x.y.z

Syntax

C#
public abstract GetRoleCredentialsResponse GetRoleCredentials(
         GetRoleCredentialsRequest request
)

Parameters

request
Type: Amazon.SSO.Model.GetRoleCredentialsRequest

Container for the necessary parameters to execute the GetRoleCredentials service method.

Return Value


The response from the GetRoleCredentials service method, as returned by SSO.

Exceptions

ExceptionCondition
InvalidRequestException Indicates that a problem occurred with the input to the request. For example, a required parameter might be missing or out of range.
ResourceNotFoundException The specified resource doesn't exist.
TooManyRequestsException Indicates that the request is being made too frequently and is more than what the server can handle.
UnauthorizedException Indicates that the request is not authorized. This can happen due to an invalid access token in the request.

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also