 CopyC#
CopyC#GetSessionToken
 CopyC#
CopyC#StopInstances
 CopyC#
CopyC#GetSessionToken
            The  CopyC#
CopyC#GetSessionToken
|  Note: | 
|---|
| 
            We recommend that you do not call  | 
            The permissions associated with the temporary security credentials returned by   
                 CopyC#
CopyC#GetSessionToken
 CopyC#
CopyC#GetSessionToken
 CopyC#
CopyC#GetSessionToken
            For more information about using  CopyC#
CopyC#GetSessionToken
 Declaration Syntax
 Declaration Syntax| C# | 
public class GetSessionTokenRequest : AmazonWebServiceRequest
 Members
 Members| 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
             | 
 Inheritance Hierarchy
 Inheritance Hierarchy| Object | ||
|  | AmazonWebServiceRequest | |
|  | GetSessionTokenRequest | |