|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.securitytoken.model.GetSessionTokenRequest
public class GetSessionTokenRequest
Container for the parameters to the GetSessionToken operation
.
The GetSessionToken action 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. These credentials are valid for the specified duration only. The session duration for IAM users can be between one and 36 hours, with a default of 12 hours. The session duration for AWS account owners is restricted to one hour.
For more information about using GetSessionToken to create temporary credentials, go to Creating Temporary Credentials to Enable Access for IAM Users in Using IAM .
AWSSecurityTokenService.getSessionToken(GetSessionTokenRequest)
Constructor Summary | |
---|---|
GetSessionTokenRequest()
Default constructor for a new GetSessionTokenRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Integer |
getDurationSeconds()
The duration, in seconds, that the credentials should remain valid. |
int |
hashCode()
|
void |
setDurationSeconds(Integer durationSeconds)
The duration, in seconds, that the credentials should remain valid. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
GetSessionTokenRequest |
withDurationSeconds(Integer durationSeconds)
The duration, in seconds, that the credentials should remain valid. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GetSessionTokenRequest()
Method Detail |
---|
public Integer getDurationSeconds()
Constraints:
Range: 3600 - 129600
public void setDurationSeconds(Integer durationSeconds)
Constraints:
Range: 3600 - 129600
durationSeconds
- The duration, in seconds, that the credentials should remain valid.
Acceptable durations for IAM user sessions range from 3600s (one hour)
to 129600s (36 hours), with 43200s (12 hours) as the default. Sessions
for AWS account owners are restricted to a maximum of 3600s (one
hour).public GetSessionTokenRequest withDurationSeconds(Integer durationSeconds)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 3600 - 129600
durationSeconds
- The duration, in seconds, that the credentials should remain valid.
Acceptable durations for IAM user sessions range from 3600s (one hour)
to 129600s (36 hours), with 43200s (12 hours) as the default. Sessions
for AWS account owners are restricted to a maximum of 3600s (one
hour).
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |