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.
Retrieves a set of temporary credentials for the specified role, valid for the specified timespan. If the SAML authentication data yield more than one role, a valid role name must be specified.
public SAMLImmutableCredentials GetRoleCredentials( IAmazonSecurityTokenService stsClient, String principalAndRoleArns, TimeSpan duration )
The STS client to use when making the AssumeRoleWithSAML request.
The arns of the principal and role as returned in the SAML assertion.
The valid timespan for the credentials.
Supported in: 4.5, 4.0, 3.5