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