Returns a set of temporary credentials for an AWS account or IAM user. The credentials consist of an access key ID, a secret access
key, and a security token. Typically, you use
The
The permissions that are granted to the federated user are the intersection
of the policy that is passed with the
For more information about using
Inheritance Hierarchy
Amazon.Runtime.AmazonWebServiceRequest
Amazon.SecurityToken.Model.GetSessionTokenRequest
Namespace: Amazon.SecurityToken.Model
Assembly: AWSSDK.dll
Version: 2.0.0.3
Syntax
public class GetSessionTokenRequest : AmazonWebServiceRequest IRequestEvents
The GetSessionTokenRequest type exposes the following members
Constructors
Name | Description | |
---|---|---|
![]() |
GetSessionTokenRequest() |
Properties
Name | Description | |
---|---|---|
![]() |
DurationSeconds |
The duration, in seconds, that the credentials should remain valid. Acceptable durations for IAM user sessions range from 900 seconds (15
minutes) to 129600 seconds (36 hours), with 43200 seconds (12 hours) as the default. Sessions for AWS account owners are restricted to a
maximum of 3600 seconds (one hour). If the duration is longer than one hour, the session for AWS account owners defaults to one hour.
Constraints: |
![]() |
SerialNumber |
The identification number of the MFA device that is associated with the IAM user who is making the Constraints: |
![]() |
TokenCode |
The value provided by the MFA device, if MFA is required. If any policy requires the IAM user to submit an MFA code, specify this value. If
MFA authentication is required, and the user does not provide a code when requesting a set of temporary security credentials, the user will
receive an "access denied" response when requesting resources that require MFA authentication.
Constraints: |
Version Information
.NET Framework:
Supported in: 4.5, 4.0, 3.5
.NET for Windows Store apps:
Supported in: Windows 8
.NET for Windows Phone:
Supported in: Window Phone 8