Typed dictionaries
Auto-generated documentation for SSOOIDC type annotations stubs module mypy-boto3-sso-oidc.
CreateTokenRequestRequestTypeDef
Usage Example
from mypy_boto3_sso_oidc.type_defs import CreateTokenRequestRequestTypeDef
def get_value() -> CreateTokenRequestRequestTypeDef:
return {
"clientId": ...,
"clientSecret": ...,
"grantType": ...,
}
Definition
class CreateTokenRequestRequestTypeDef(TypedDict):
clientId: str,
clientSecret: str,
grantType: str,
deviceCode: NotRequired[str],
code: NotRequired[str],
refreshToken: NotRequired[str],
scope: NotRequired[Sequence[str]],
redirectUri: NotRequired[str],
ResponseMetadataTypeDef
Usage Example
from mypy_boto3_sso_oidc.type_defs import ResponseMetadataTypeDef
def get_value() -> ResponseMetadataTypeDef:
return {
"RequestId": ...,
"HostId": ...,
"HTTPStatusCode": ...,
"HTTPHeaders": ...,
"RetryAttempts": ...,
}
Definition
class ResponseMetadataTypeDef(TypedDict):
RequestId: str,
HostId: str,
HTTPStatusCode: int,
HTTPHeaders: Dict[str, str],
RetryAttempts: int,
RegisterClientRequestRequestTypeDef
Usage Example
from mypy_boto3_sso_oidc.type_defs import RegisterClientRequestRequestTypeDef
def get_value() -> RegisterClientRequestRequestTypeDef:
return {
"clientName": ...,
"clientType": ...,
}
Definition
class RegisterClientRequestRequestTypeDef(TypedDict):
clientName: str,
clientType: str,
scopes: NotRequired[Sequence[str]],
StartDeviceAuthorizationRequestRequestTypeDef
Usage Example
from mypy_boto3_sso_oidc.type_defs import StartDeviceAuthorizationRequestRequestTypeDef
def get_value() -> StartDeviceAuthorizationRequestRequestTypeDef:
return {
"clientId": ...,
"clientSecret": ...,
"startUrl": ...,
}
Definition
class StartDeviceAuthorizationRequestRequestTypeDef(TypedDict):
clientId: str,
clientSecret: str,
startUrl: str,
CreateTokenResponseTypeDef
Usage Example
from mypy_boto3_sso_oidc.type_defs import CreateTokenResponseTypeDef
def get_value() -> CreateTokenResponseTypeDef:
return {
"accessToken": ...,
"tokenType": ...,
"expiresIn": ...,
"refreshToken": ...,
"idToken": ...,
"ResponseMetadata": ...,
}
Definition
class CreateTokenResponseTypeDef(TypedDict):
accessToken: str,
tokenType: str,
expiresIn: int,
refreshToken: str,
idToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
RegisterClientResponseTypeDef
Usage Example
from mypy_boto3_sso_oidc.type_defs import RegisterClientResponseTypeDef
def get_value() -> RegisterClientResponseTypeDef:
return {
"clientId": ...,
"clientSecret": ...,
"clientIdIssuedAt": ...,
"clientSecretExpiresAt": ...,
"authorizationEndpoint": ...,
"tokenEndpoint": ...,
"ResponseMetadata": ...,
}
Definition
class RegisterClientResponseTypeDef(TypedDict):
clientId: str,
clientSecret: str,
clientIdIssuedAt: int,
clientSecretExpiresAt: int,
authorizationEndpoint: str,
tokenEndpoint: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
StartDeviceAuthorizationResponseTypeDef
Usage Example
from mypy_boto3_sso_oidc.type_defs import StartDeviceAuthorizationResponseTypeDef
def get_value() -> StartDeviceAuthorizationResponseTypeDef:
return {
"deviceCode": ...,
"userCode": ...,
"verificationUri": ...,
"verificationUriComplete": ...,
"expiresIn": ...,
"interval": ...,
"ResponseMetadata": ...,
}