
GetSessionToken

StopInstances

GetSessionToken
The CopyC#
GetSessionToken
![]() |
---|
We recommend that you do not call |
The permissions associated with the temporary security credentials returned by
CopyC#
GetSessionToken
CopyC#
GetSessionToken
CopyC#
GetSessionToken
For more information about using CopyC#
GetSessionToken

C# |
public class GetSessionTokenRequest : AmazonWebServiceRequest

All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
![]() | GetSessionTokenRequest()()()() | Initializes a new instance of the GetSessionTokenRequest class |
![]() | DurationSeconds |
Gets and sets the property 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. |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType()()()() | Gets the type of the current instance. (Inherited from Object.) |
![]() | SerialNumber |
Gets and sets the property SerialNumber.
The identification number of the MFA device that is associated with the IAM user who
is making the |
![]() | TokenCode |
Gets and sets the property 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. |
![]() | ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) |
![]() | WithDurationSeconds(Int32) | Obsolete.
Sets the DurationSeconds property
|
![]() | WithSerialNumber(String) | Obsolete.
Sets the SerialNumber property
|
![]() | WithTokenCode(String) | Obsolete.
Sets the TokenCode property
|

Object | ||
![]() | AmazonWebServiceRequest | |
![]() | GetSessionTokenRequest |