Skip to content

revoke_o_auth2_token_with_iam

Operation

revoke_o_auth2_token_with_iam

revoke_o_auth2_token_with_iam(request: RevokeOAuth2TokenWithIAMInput | RevokeOAuth2TokenWithIAMInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[RevokeOAuth2TokenWithIAMInputDict]) -> RevokeOAuth2TokenWithIAMOutput

Revokes an OAuth 2.0 refresh token and its associated token chain.

Parameters:

Name Type Description Default
request RevokeOAuth2TokenWithIAMInput | RevokeOAuth2TokenWithIAMInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[RevokeOAuth2TokenWithIAMInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
RevokeOAuth2TokenWithIAMOutput

An instance of RevokeOAuth2TokenWithIAMOutput.

revoke_o_auth2_token_with_iam async

revoke_o_auth2_token_with_iam(request: RevokeOAuth2TokenWithIAMInput | RevokeOAuth2TokenWithIAMInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[RevokeOAuth2TokenWithIAMInputDict]) -> RevokeOAuth2TokenWithIAMOutput

Revokes an OAuth 2.0 refresh token and its associated token chain.

Parameters:

Name Type Description Default
request RevokeOAuth2TokenWithIAMInput | RevokeOAuth2TokenWithIAMInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[RevokeOAuth2TokenWithIAMInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
RevokeOAuth2TokenWithIAMOutput

An instance of RevokeOAuth2TokenWithIAMOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

RevokeOAuth2TokenWithIAMInputDict

Bases: TypedDict

Dictionary form of RevokeOAuth2TokenWithIAMInput.

Attributes

token instance-attribute
token: Required[str]

The refresh token to revoke. Must be a refresh token issued by AWS Sign-In. Access tokens are not accepted for revocation.

RevokeOAuth2TokenWithIAMInput dataclass

Bases: _SerdeShape

Input structure for RevokeOAuth2TokenWithIAM operation RFC 7009 §2.1 revocation request. Contains the refresh_token to revoke.

Attributes

token class-attribute instance-attribute
token: str | None = ...

The refresh token to revoke. Must be a refresh token issued by AWS Sign-In. Access tokens are not accepted for revocation.

Output

RevokeOAuth2TokenWithIAMOutput dataclass

Bases: _SerdeShape

Output structure for RevokeOAuth2TokenWithIAM operation RFC 7009 §2.2 revocation response. The endpoint returns 200 OK with an empty body on success; there are no response fields.

Attributes

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.