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.
who fails to provide the code receives an “access denied” response
code when requesting a set of temporary security credentials. A user
value. If MFA authentication is required, the user must provide a
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 validate this parameter is a string of characters
Management Console and viewing the user’s security credentials.
the device for an IAM user by going to the Amazon Web Services
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]
Services account owners defaults to one hour.
the duration is longer than one hour, the session for Amazon Web
owners are restricted to a maximum of 3,600 seconds (one hour). If
hours) as the default. Sessions for Amazon Web Services account
(15 minutes) to 129,600 seconds (36 hours), with 43,200 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