roboto.http.request_decorators
Module Contents
BearerTokenDecorator
Decorates requests with a static, unchanging bearer token.
Parameters
token strSigV4AuthDecorator
class roboto. http. request_decorators. SigV4AuthDecorator(service='execute-api', credentials=None, region=None)#View Source
Signs each request with AWS Signature Version 4.
Parameters
service strThe AWS service name to sign for.
credentials Optional[Union[botocore.Credentials to sign with. ReadOnlyCredentials are used as given for every request. A botocore Credentials object, such as RefreshableCredentials for an assumed role, is read again for each request, so it can refresh itself before it expires. None resolves this process’s own credentials for each request.
region Optional[str]The AWS region to sign for. Defaults to the session’s region, then AWS_REGION or AWS_DEFAULT_REGION.
SigV4AuthDecorator.lookup_credentials()
Return type
botocore. credentials. ReadOnlyCredentials
SigV4AuthDecorator.lookup_region()
Return type
str