Bases: object
Configure what must be included in the requestContext
.
More details can be found at mapping templates documentation.
account_id (Optional
[bool
]) â Represents the information of $context.identity.accountId. Whether the AWS account of the API owner should be included in the request context Default: false
api_id (Optional
[bool
]) â Represents the information of $context.apiId. Whether the identifier API Gateway assigns to your API should be included in the request context. Default: false
api_key (Optional
[bool
]) â Represents the information of $context.identity.apiKey. Whether the API key associated with the request should be included in request context. Default: false
authorizer_principal_id (Optional
[bool
]) â Represents the information of $context.authorizer.principalId. Whether the principal user identifier associated with the token sent by the client and returned from an API Gateway Lambda authorizer should be included in the request context. Default: false
caller (Optional
[bool
]) â Represents the information of $context.identity.caller. Whether the principal identifier of the caller that signed the request should be included in the request context. Supported for resources that use IAM authorization. Default: false
cognito_authentication_provider (Optional
[bool
]) â Represents the information of $context.identity.cognitoAuthenticationProvider. Whether the list of the Amazon Cognito authentication providers used by the caller making the request should be included in the request context. Available only if the request was signed with Amazon Cognito credentials. Default: false
cognito_authentication_type (Optional
[bool
]) â Represents the information of $context.identity.cognitoAuthenticationType. Whether the Amazon Cognito authentication type of the caller making the request should be included in the request context. Available only if the request was signed with Amazon Cognito credentials. Possible values include authenticated for authenticated identities and unauthenticated for unauthenticated identities. Default: false
cognito_identity_id (Optional
[bool
]) â Represents the information of $context.identity.cognitoIdentityId. Whether the Amazon Cognito identity ID of the caller making the request should be included in the request context. Available only if the request was signed with Amazon Cognito credentials. Default: false
cognito_identity_pool_id (Optional
[bool
]) â Represents the information of $context.identity.cognitoIdentityPoolId. Whether the Amazon Cognito identity pool ID of the caller making the request should be included in the request context. Available only if the request was signed with Amazon Cognito credentials. Default: false
http_method (Optional
[bool
]) â Represents the information of $context.httpMethod. Whether the HTTP method used should be included in the request context. Valid values include: DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT. Default: false
request_id (Optional
[bool
]) â Represents the information of $context.requestId. Whether the ID for the request should be included in the request context. Default: false
resource_id (Optional
[bool
]) â Represents the information of $context.resourceId. Whether the identifier that API Gateway assigns to your resource should be included in the request context. Default: false
resource_path (Optional
[bool
]) â Represents the information of $context.resourcePath. Whether the path to the resource should be included in the request context. Default: false
source_ip (Optional
[bool
]) â Represents the information of $context.identity.sourceIp. Whether the source IP address of the immediate TCP connection making the request to API Gateway endpoint should be included in the request context. Default: false
stage (Optional
[bool
]) â Represents the information of $context.stage. Whether the deployment stage of the API request should be included in the request context. Default: false
user (Optional
[bool
]) â Represents the information of $context.identity.user. Whether the principal identifier of the user that will be authorized should be included in the request context. Supported for resources that use IAM authorization. Default: false
user_agent (Optional
[bool
]) â Represents the information of $context.identity.userAgent. Whether the User-Agent header of the API caller should be included in the request context. Default: false
user_arn (Optional
[bool
]) â Represents the information of $context.identity.userArn. Whether the Amazon Resource Name (ARN) of the effective user identified after authentication should be included in the request context. Default: false
fixture=stepfunctions infused
Example:
apigateway.StepFunctionsRestApi(self, "StepFunctionsRestApi", state_machine=machine, headers=True, path=False, querystring=False, authorizer=False, request_context=apigateway.RequestContext( caller=True, user=True ) )
Attributes
Represents the information of $context.identity.accountId.
Whether the AWS account of the API owner should be included in the request context
false
Represents the information of $context.apiId.
Whether the identifier API Gateway assigns to your API should be included in the request context.
false
Represents the information of $context.identity.apiKey.
Whether the API key associated with the request should be included in request context.
false
Represents the information of $context.authorizer.principalId.
Whether the principal user identifier associated with the token sent by the client and returned from an API Gateway Lambda authorizer should be included in the request context.
false
Represents the information of $context.identity.caller.
Whether the principal identifier of the caller that signed the request should be included in the request context. Supported for resources that use IAM authorization.
false
Represents the information of $context.identity.cognitoAuthenticationProvider.
Whether the list of the Amazon Cognito authentication providers used by the caller making the request should be included in the request context. Available only if the request was signed with Amazon Cognito credentials.
false
Represents the information of $context.identity.cognitoAuthenticationType.
Whether the Amazon Cognito authentication type of the caller making the request should be included in the request context. Available only if the request was signed with Amazon Cognito credentials. Possible values include authenticated for authenticated identities and unauthenticated for unauthenticated identities.
false
Represents the information of $context.identity.cognitoIdentityId.
Whether the Amazon Cognito identity ID of the caller making the request should be included in the request context. Available only if the request was signed with Amazon Cognito credentials.
false
Represents the information of $context.identity.cognitoIdentityPoolId.
Whether the Amazon Cognito identity pool ID of the caller making the request should be included in the request context. Available only if the request was signed with Amazon Cognito credentials.
false
Represents the information of $context.httpMethod.
Whether the HTTP method used should be included in the request context. Valid values include: DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT.
false
Represents the information of $context.requestId.
Whether the ID for the request should be included in the request context.
false
Represents the information of $context.resourceId.
Whether the identifier that API Gateway assigns to your resource should be included in the request context.
false
Represents the information of $context.resourcePath.
Whether the path to the resource should be included in the request context.
false
Represents the information of $context.identity.sourceIp.
Whether the source IP address of the immediate TCP connection making the request to API Gateway endpoint should be included in the request context.
false
Represents the information of $context.stage.
Whether the deployment stage of the API request should be included in the request context.
false
Represents the information of $context.identity.user.
Whether the principal identifier of the user that will be authorized should be included in the request context. Supported for resources that use IAM authorization.
false
Represents the information of $context.identity.userAgent.
Whether the User-Agent header of the API caller should be included in the request context.
false
Represents the information of $context.identity.userArn.
Whether the Amazon Resource Name (ARN) of the effective user identified after authentication should be included in the request context.
false
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