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.
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
public abstract GetRoleCredentialsResponse GetRoleCredentials( GetRoleCredentialsRequest request )
Container for the necessary parameters to execute the GetRoleCredentials service method.
Exception | Condition |
---|---|
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. |
.NET Framework:
Supported in: 4.5 and newer, 3.5