View a markdown version of this page

JWT credentials - Amazon Athena

JWT credentials

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

Credentials provider

The credentials provider that will be used to authenticate requests to AWS. 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 AWS 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 AWS STS request. Use a value that meets the RoleSessionName length and character requirements in the AWS 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 AWS Security Token Service API Reference.

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