class Aws::STS::Types::GetSessionTokenRequest
@see docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetSessionTokenRequest AWS API Documentation
@return [String]
a sequence of six numeric digits.
The format for this parameter, as described by its regex pattern, is
when requesting resources that require MFA authentication.
credentials, the user will receive an “access denied” response
provide a code when requesting a set of temporary security
value. If MFA authentication is required, and the user does not
policy requires the IAM user to submit an MFA code, specify this
The value provided by the MFA device, if MFA is required. If any
@!attribute [rw] token_code
@return [String]
characters: =,.@:/-
spaces. You can also include underscores or any of the following
consisting of upper- and lower-case alphanumeric characters with no
The regex used to validated this parameter is a string of characters
and viewing the user’s security credentials.
the device for an IAM user by going to the AWS Management Console
device (such as ‘arn:aws:iam::123456789012:mfa/user`). You can find
`GAHT12345678`) or an Amazon Resource Name (ARN) for a virtual
The value is either the serial number for a hardware device (such as
value if the IAM user has a policy that requires MFA authentication.
the IAM user who is making the `GetSessionToken` call. Specify this
The identification number of the MFA device that is associated with
@!attribute [rw] serial_number
@return [Integer]
to one hour.
is longer than one hour, the session for AWS account owners defaults
restricted to a maximum of 3600 seconds (one hour). If the duration
hours) as the default. Sessions for AWS account owners are
(15 minutes) to 129600 seconds (36 hours), with 43200 seconds (12
Acceptable durations for IAM user sessions range from 900 seconds
The duration, in seconds, that the credentials should remain valid.
@!attribute [rw] duration_seconds
}
token_code: “tokenCodeType”,
serial_number: “serialNumberType”,
duration_seconds: 1,
{
data as a hash:
@note When making an API call, you may pass GetSessionTokenRequest