View a markdown version of this page

JWT credentials - Amazon Athena
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

JWT credentials

The JWT provider sends the supplied JSON web token to Amazon STS in an AssumeRoleWithWebIdentity request and uses the returned temporary credentials.

Credentials provider

The credentials provider that will be used to authenticate requests to Amazon. Set the value of this parameter to JWT.

Parameter name Alias Parameter type Default value Value to use
CredentialsProvider AWSCredentialsProviderClass (deprecated) Required none JWT

JWT web identity token

The JWT token obtained from an external federated identity provider. This token will be used to authenticate with Athena.

Parameter name Alias Parameter type Default value
JwtWebIdentityToken web_identity_token (deprecated) Required none

JWT role ARN

The Amazon Resource Name (ARN) of the role to assume. For information about assuming roles, see AssumeRole in the Amazon Security Token Service API Reference.

Parameter name Alias Parameter type Default value
JwtRoleArn role_arn (deprecated) Required none

JWT role session name

The session name included in the Amazon STS request. Use a value that meets the RoleSessionName length and character requirements in the Amazon STS API reference.

Parameter name Alias Parameter type Default value
JwtRoleSessionName RoleSessionName; role_session_name (deprecated) Required none

Role session duration

The duration, in seconds, of the role session. For more information, see AssumeRoleWithWebIdentity in the Amazon Security Token Service API Reference.

Parameter name Alias Parameter type Default value
RoleSessionDuration Duration (deprecated) Optional 3600