Skip to main content

o_auth2_token_with_iams

Creates, updates, deletes, gets or lists an o_auth2_token_with_iams resource.

Overview

Nameo_auth2_token_with_iams
TypeResource
Idaws.signin.o_auth2_token_with_iams

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
create_o_auth2_token_with_iaminsertregion, grantType, resourceGrants permission to exchange client credentials for an OAuth 2.0 access token scoped to a resource that can be used to access AWS services from applications
revoke_o_auth2_token_with_iamupdateregion, tokenGrants permission to revoke an OAuth 2.0 refresh token and its associated refresh tokens Revokes a refresh_token issued by AWS Sign-In, invalidating the entire token chain so that the refresh_token can no longer be used to mint new access_tokens. Idempotency: revoking an already-revoked, expired, or otherwise invalid token still returns 200 OK with an empty body. Only the refresh_token type is accepted.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

INSERT examples

Grants permission to exchange client credentials for an OAuth 2.0 access token scoped to a resource that can be used to access AWS services from applications

INSERT INTO aws.signin.o_auth2_token_with_iams (
grantType,
resource,
region
)
SELECT
'{{ grantType }}' /* required */,
'{{ resource }}' /* required */,
'{{ region }}'
RETURNING
access_token,
expires_in,
token_type
;

UPDATE examples

Grants permission to revoke an OAuth 2.0 refresh token and its associated refresh tokens Revokes a refresh_token issued by AWS Sign-In, invalidating the entire token chain so that the refresh_token can no longer be used to mint new access_tokens. Idempotency: revoking an already-revoked, expired, or otherwise invalid token still returns 200 OK with an empty body. Only the refresh_token type is accepted.

UPDATE aws.signin.o_auth2_token_with_iams
SET
token = '{{ token }}'
WHERE
region = '{{ region }}' --required
AND token = '{{ token }}' --required;