SSOOIDCClient
Auto-generated documentation for SSOOIDC type annotations stubs module mypy-boto3-sso-oidc.
SSOOIDCClient
Type annotations and code completion for boto3.client("sso-oidc")
.
boto3 documentation
from boto3.session import Session
from mypy_boto3_sso_oidc.client import SSOOIDCClient
def get_sso-oidc_client() -> SSOOIDCClient:
return Session().client("sso-oidc")
Exceptions
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("sso-oidc").exceptions
structure.
client = boto3.client("sso-oidc")
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 mypy_boto3_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 boto3.client("sso-oidc").can_paginate
method.
boto3 documentation
close
Closes underlying endpoint connections.
Type annotations and code completion for boto3.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 boto3.client("sso-oidc").create_token
method.
boto3 documentation
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": ...,
}
parent.create_token(**kwargs)
generate_presigned_url
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for boto3.client("sso-oidc").generate_presigned_url
method.
boto3 documentation
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
register_client
Registers a client with IAM Identity Center.
Type annotations and code completion for boto3.client("sso-oidc").register_client
method.
boto3 documentation
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 boto3.client("sso-oidc").start_device_authorization
method.
boto3 documentation
def start_device_authorization(
self,
*,
clientId: str,
clientSecret: str,
startUrl: str,
) -> StartDeviceAuthorizationResponseTypeDef: # (1)
...