STS module
Index > STS
Auto-generated documentation for STS type annotations stubs module types-aiobotocore-sts.
How to install
From PyPI with pip
Install types-aioboto3
for STS
service.
# install with aioboto3 type annotations
python -m pip install 'types-aioboto3[sts]'
# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'types-aioboto3-lite[sts]'
# standalone installation
python -m pip install types-aiobotocore-sts
How to uninstall
Usage
Code samples can be found in Examples.
STSClient
Type annotations and code completion for session.client("sts")
as STSClient
boto3 documentation
Usage example
from aioboto3.session import Session
from types_aiobotocore_sts.client import STSClient
session = Session()
async with session.client("sts") as client:
client: STSClient
Literals
Type annotations for literals used in methods and schema.
Usage example
from types_aiobotocore_sts.literals import STSServiceName
def get_value() -> STSServiceName:
return "sts"
Typed dictionaries
Type annotations for typed dictionaries used in methods and schema.
Usage example
from types_aiobotocore_sts.type_defs import PolicyDescriptorTypeTypeDef
def get_value() -> PolicyDescriptorTypeTypeDef:
return {
"arn": ...,
}
- PolicyDescriptorTypeTypeDef
- TagTypeDef
- AssumedRoleUserTypeDef
- CredentialsTypeDef
- ResponseMetadataTypeDef
- DecodeAuthorizationMessageRequestRequestTypeDef
- FederatedUserTypeDef
- GetAccessKeyInfoRequestRequestTypeDef
- GetSessionTokenRequestRequestTypeDef
- AssumeRoleWithSAMLRequestRequestTypeDef
- AssumeRoleWithWebIdentityRequestRequestTypeDef
- AssumeRoleRequestRequestTypeDef
- GetFederationTokenRequestRequestTypeDef
- AssumeRoleResponseTypeDef
- AssumeRoleWithSAMLResponseTypeDef
- AssumeRoleWithWebIdentityResponseTypeDef
- DecodeAuthorizationMessageResponseTypeDef
- GetAccessKeyInfoResponseTypeDef
- GetCallerIdentityResponseTypeDef
- GetSessionTokenResponseTypeDef
- GetFederationTokenResponseTypeDef