Skip to content
Roboto
Esc
↑↓navigate↵open⌘Jpreview
On this page

roboto.http.request_decorators

Module Contents

BearerTokenDecorator

class roboto.http.request_decorators.BearerTokenDecorator(token)#View Source

Decorates requests with a static, unchanging bearer token.

Parameters

token str

SigV4AuthDecorator

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 str

The AWS service name to sign for.

credentials Optional[Union[botocore.credentials.ReadOnlyCredentials, botocore.credentials.Credentials]]

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()

static lookup_credentials()#View Source

Return type

botocore.credentials.ReadOnlyCredentials

SigV4AuthDecorator.lookup_region()

static lookup_region()#View Source

Return type

str

logger

roboto.http.request_decorators.logger#View Source

Was this page helpful?