JWT
The JWT (JSON Web Token) plugin sends your web_identity_token value to the Amazon STS AssumeRoleWithWebIdentity API action to obtain credentials for the configured preferred_role.
Authentication type
| Connection string name | Parameter type | Default value | Connection string example |
|---|---|---|---|
| AuthenticationType | Required | IAM Credentials |
AuthenticationType=JWT; |
Preferred role
The Amazon Resource Name (ARN) of the role to assume. For more information about ARN roles, see AssumeRole in the Amazon Security Token Service API Reference.
| Connection string name | Parameter type | Default value | Connection string example |
|---|---|---|---|
| preferred_role | Required | none |
preferred_role=arn:aws:iam::123456789012:role/MyAthenaRole; |
Session duration
The role session duration in seconds. When this parameter is unset, the driver omits DurationSeconds from the request. The selected service determines the resulting session duration.
| Connection string name | Parameter type | Default value | Connection string example |
|---|---|---|---|
| duration | Optional | Not set | duration=900; |
JSON web token
The JSON web token passed as WebIdentityToken to the Amazon STS AssumeRoleWithWebIdentity API action.
| Connection string name | Parameter type | Default value | Connection string example |
|---|---|---|---|
web_identity_token |
Required | none |
web_identity_token=eyJhbGc...<remainder of
token>; |
Role session name
A name for the session. A common technique is to use the name or identifier of the user of your application as the role session name. This conveniently associates the temporary security credentials that your application uses with the corresponding user.
| Connection string name | Parameter type | Default value | Connection string example |
|---|---|---|---|
| role_session_name | Required | none |
role_session_name=familiarname; |