SSOOIDCClient
Auto-generated documentation for SSOOIDC type annotations stubs module types-aiobotocore-sso-oidc.
SSOOIDCClient
Type annotations and code completion for session.client("sso-oidc")
boto3 documentation
from aioboto3.session import Session
from types_aiobotocore_sso_oidc.client import SSOOIDCClient
session = Session()
async with session.client("sso-oidc") as client:
client: SSOOIDCClient
Exceptions
aioboto3
client exceptions are generated in runtime.
This class provides code completion for session.client("sso-oidc").exceptions
structure.
async with session.client("sso-oidc") as client:
try:
do_something(client)
except (
client.AccessDeniedException,
client.AuthorizationPendingException,
client.ClientError,
client.ExpiredTokenException,
client.InternalServerException,
client.InvalidClientException,
client.InvalidClientMetadataException,
client.InvalidGrantException,
client.InvalidRequestException,
client.InvalidScopeException,
client.SlowDownException,
client.UnauthorizedClientException,
client.UnsupportedGrantTypeException,
) as e:
print(e)
from types_aiobotocore_sso_oidc.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods
can_paginate
Check if an operation can be paginated.
Type annotations and code completion for session.client("sso-oidc").can_paginate
method.
boto3 documentation
close
Closes underlying endpoint connections.
Type annotations and code completion for session.client("sso-oidc").close
method.
boto3 documentation
create_token
Creates and returns an access token for the authorized client.
Type annotations and code completion for session.client("sso-oidc").create_token
method.
boto3 documentation
await def create_token(
self,
*,
clientId: str,
clientSecret: str,
grantType: str,
deviceCode: str,
code: str = ...,
refreshToken: str = ...,
scope: Sequence[str] = ...,
redirectUri: str = ...,
) -> CreateTokenResponseTypeDef: # (1)
...
kwargs: CreateTokenRequestRequestTypeDef = { # (1)
"clientId": ...,
"clientSecret": ...,
"grantType": ...,
"deviceCode": ...,
}
parent.create_token(**kwargs)
generate_presigned_url
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for session.client("sso-oidc").generate_presigned_url
method.
boto3 documentation
await def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
register_client
Registers a client with Amazon Web Services SSO.
Type annotations and code completion for session.client("sso-oidc").register_client
method.
boto3 documentation
await def register_client(
self,
*,
clientName: str,
clientType: str,
scopes: Sequence[str] = ...,
) -> RegisterClientResponseTypeDef: # (1)
...
kwargs: RegisterClientRequestRequestTypeDef = { # (1)
"clientName": ...,
"clientType": ...,
}
parent.register_client(**kwargs)
start_device_authorization
Initiates device authorization by requesting a pair of verification codes from the authorization service.
Type annotations and code completion for session.client("sso-oidc").start_device_authorization
method.
boto3 documentation
await def start_device_authorization(
self,
*,
clientId: str,
clientSecret: str,
startUrl: str,
) -> StartDeviceAuthorizationResponseTypeDef: # (1)
...
kwargs: StartDeviceAuthorizationRequestRequestTypeDef = { # (1)
"clientId": ...,
"clientSecret": ...,
"startUrl": ...,
}
parent.start_device_authorization(**kwargs)
__aenter__
Type annotations and code completion for session.client("sso-oidc").__aenter__
method.
boto3 documentation
__aexit__
Type annotations and code completion for session.client("sso-oidc").__aexit__
method.
boto3 documentation