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.
Namespace: Amazon.SecurityToken.SAML
Assembly: AWSSDK.SecurityToken.dll
Version: 3.x.y.z
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.
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.7.2 and newer