Bases: object
Represents an identity source.
The source can be specified either as a literal value (e.g: Auth
) which cannot be blank, or as an unresolved string token.
infused
Example:
# auth_fn: lambda.Function # books: apigateway.Resource auth = apigateway.RequestAuthorizer(self, "booksAuthorizer", handler=auth_fn, identity_sources=[apigateway.IdentitySource.header("Authorization")] ) books.add_method("GET", apigateway.HttpIntegration("http://amazon.com"), authorizer=auth )
Static Methods
Provides a properly formatted request context identity source.
context (str
) â the name of the context variable the IdentitySource
will represent.
str
a request context identity source.
Provides a properly formatted header identity source.
header_name (str
) â the name of the header the IdentitySource
will represent.
str
a header identity source.
Provides a properly formatted query string identity source.
query_string (str
) â the name of the query string the IdentitySource
will represent.
str
a query string identity source.
Provides a properly formatted API Gateway stage variable identity source.
stage_variable (str
) â the name of the stage variable the IdentitySource
will represent.
str
an API Gateway stage variable identity source.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4