@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:00:46.005Z") @Stability(value=Experimental) public class AccessLogField extends software.amazon.jsii.JsiiObject
Modifier | Constructor and Description |
---|---|
|
AccessLogField() |
protected |
AccessLogField(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AccessLogField(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
static String |
contextAccountId()
(experimental) The API owner's AWS account ID.
|
static String |
contextApiId()
(experimental) The identifier API Gateway assigns to your API.
|
static String |
contextAuthorizer(String property)
(experimental) The stringified value of the specified key-value pair of the `context` map returned from an API Gateway Lambda authorizer function.
|
static String |
contextAuthorizerClaims(String property)
(experimental) A property of the claims returned from the Amazon Cognito user pool after the method caller is successfully authenticated.
|
static String |
contextAuthorizerIntegrationLatency()
(experimental) The authorizer latency in ms.
|
static String |
contextAuthorizerPrincipalId()
(experimental) The principal user identification associated with the token sent by the client and returned from an API Gateway Lambda authorizer (formerly known as a custom authorizer).
|
static String |
contextAwsEndpointRequestId()
(experimental) The AWS endpoint's request ID.
|
static String |
contextDomainName()
(experimental) The full domain name used to invoke the API.
|
static String |
contextDomainPrefix()
(experimental) The first label of the `$context.domainName`.
|
static String |
contextErrorMessage()
(experimental) A string containing an API Gateway error message.
|
static String |
contextErrorMessageString()
(experimental) The quoted value of $context.error.message, namely "$context.error.message".
|
static String |
contextErrorResponseType()
(experimental) A type of GatewayResponse.
|
static String |
contextErrorValidationErrorString()
(experimental) A string containing a detailed validation error message.
|
static String |
contextExtendedRequestId()
(experimental) The extended ID that API Gateway assigns to the API request, which contains more useful information for debugging/troubleshooting.
|
static String |
contextHttpMethod()
(experimental) The HTTP method used.
|
static String |
contextIdentityAccountId()
(experimental) The AWS account ID associated with the request.
|
static String |
contextIdentityApiKey()
(experimental) For API methods that require an API key, this variable is the API key associated with the method request.
|
static String |
contextIdentityApiKeyId()
(experimental) The API key ID associated with an API request that requires an API key.
|
static String |
contextIdentityCaller()
(experimental) The principal identifier of the caller making the request.
|
static String |
contextIdentityCognitoAuthenticationProvider()
(experimental) The Amazon Cognito authentication provider used by the caller making the request.
|
static String |
contextIdentityCognitoAuthenticationType()
(experimental) The Amazon Cognito authentication type of the caller making the request.
|
static String |
contextIdentityCognitoIdentityId()
(experimental) The Amazon Cognito identity ID of the caller making the request.
|
static String |
contextIdentityCognitoIdentityPoolId()
(experimental) The Amazon Cognito identity pool ID of the caller making the request.
|
static String |
contextIdentityPrincipalOrgId()
(experimental) The AWS organization ID.
|
static String |
contextIdentitySourceIp()
(experimental) The source IP address of the TCP connection making the request to API Gateway.
|
static String |
contextIdentityUser()
(experimental) The principal identifier of the user making the request.
|
static String |
contextIdentityUserAgent()
(experimental) The User-Agent header of the API caller.
|
static String |
contextIdentityUserArn()
(experimental) The Amazon Resource Name (ARN) of the effective user identified after authentication.
|
static String |
contextIntegrationLatency()
(experimental) The integration latency in ms.
|
static String |
contextIntegrationStatus()
(experimental) For Lambda proxy integration, this parameter represents the status code returned from AWS Lambda, not from the backend Lambda function.
|
static String |
contextPath()
(experimental) The request path.
|
static String |
contextProtocol()
(experimental) The request protocol, for example, HTTP/1.1.
|
static String |
contextRequestId()
(experimental) The ID that API Gateway assigns to the API request.
|
static String |
contextRequestOverrideHeader(String headerName)
(experimental) The request header override.
|
static String |
contextRequestOverridePath(String pathName)
(experimental) The request path override.
|
static String |
contextRequestOverrideQuerystring(String querystringName)
(experimental) The request query string override.
|
static String |
contextRequestTime()
(experimental) The CLF-formatted request time (dd/MMM/yyyy:HH:mm:ss +-hhmm).
|
static String |
contextRequestTimeEpoch()
(experimental) The Epoch-formatted request time.
|
static String |
contextResourceId()
(experimental) The identifier that API Gateway assigns to your resource.
|
static String |
contextResourcePath()
(experimental) The path to your resource.
|
static String |
contextResponseLatency()
(experimental) The response latency in ms.
|
static String |
contextResponseLength()
(experimental) The response payload length.
|
static String |
contextResponseOverrideHeader(String headerName)
(experimental) The response header override.
|
static String |
contextResponseOverrideStatus()
(experimental) The response status code override.
|
static String |
contextStage()
(experimental) The deployment stage of the API request (for example, `Beta` or `Prod`).
|
static String |
contextStatus()
(experimental) The method response status.
|
static String |
contextWafResponseCode()
(experimental) The response received from AWS WAF: `WAF_ALLOW` or `WAF_BLOCK`.
|
static String |
contextWebaclArn()
(experimental) The complete ARN of the web ACL that is used to decide whether to allow or block the request.
|
static String |
contextXrayTraceId()
(experimental) The trace ID for the X-Ray trace.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
protected AccessLogField(software.amazon.jsii.JsiiObjectRef objRef)
protected AccessLogField(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) public AccessLogField()
@Stability(value=Experimental) @NotNull public static String contextAccountId()
@Stability(value=Experimental) @NotNull public static String contextApiId()
@Stability(value=Experimental) @NotNull public static String contextAuthorizer(@NotNull String property)
property
- key of the context map. This parameter is required.https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-use-lambda-authorizer.html
@Stability(value=Experimental) @NotNull public static String contextAuthorizerClaims(@NotNull String property)
property
- A property key of the claims. This parameter is required.https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-integrate-with-cognito.html
@Stability(value=Experimental) @NotNull public static String contextAuthorizerIntegrationLatency()
@Stability(value=Experimental) @NotNull public static String contextAuthorizerPrincipalId()
https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-use-lambda-authorizer.html
@Stability(value=Experimental) @NotNull public static String contextAwsEndpointRequestId()
@Stability(value=Experimental) @NotNull public static String contextDomainName()
This should be the same as the incoming Host
header.
@Stability(value=Experimental) @NotNull public static String contextDomainPrefix()
@Stability(value=Experimental) @NotNull public static String contextErrorMessage()
@Stability(value=Experimental) @NotNull public static String contextErrorMessageString()
@Stability(value=Experimental) @NotNull public static String contextErrorResponseType()
This variable can only be used for simple variable substitution in a GatewayResponse body-mapping template, which is not processed by the Velocity Template Language engine, and in access logging.
https://docs.aws.amazon.com/apigateway/latest/developerguide/customize-gateway-responses.html
@Stability(value=Experimental) @NotNull public static String contextErrorValidationErrorString()
@Stability(value=Experimental) @NotNull public static String contextExtendedRequestId()
@Stability(value=Experimental) @NotNull public static String contextHttpMethod()
Valid values include: DELETE
, GET
, HEAD
, OPTIONS
, PATCH
, POST
, and PUT
.
@Stability(value=Experimental) @NotNull public static String contextIdentityAccountId()
@Stability(value=Experimental) @NotNull public static String contextIdentityApiKey()
For methods that don't require an API key, this variable is
https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html
@Stability(value=Experimental) @NotNull public static String contextIdentityApiKeyId()
@Stability(value=Experimental) @NotNull public static String contextIdentityCaller()
@Stability(value=Experimental) @NotNull public static String contextIdentityCognitoAuthenticationProvider()
Available only if the request was signed with Amazon Cognito credentials.
https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-identity.html
@Stability(value=Experimental) @NotNull public static String contextIdentityCognitoAuthenticationType()
Available only if the request was signed with Amazon Cognito credentials.
@Stability(value=Experimental) @NotNull public static String contextIdentityCognitoIdentityId()
Available only if the request was signed with Amazon Cognito credentials.
@Stability(value=Experimental) @NotNull public static String contextIdentityCognitoIdentityPoolId()
Available only if the request was signed with Amazon Cognito credentials.
@Stability(value=Experimental) @NotNull public static String contextIdentityPrincipalOrgId()
@Stability(value=Experimental) @NotNull public static String contextIdentitySourceIp()
Warning: You should not trust this value if there is any chance that the X-Forwarded-For
header could be forged.
@Stability(value=Experimental) @NotNull public static String contextIdentityUser()
Used in Lambda authorizers.
https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-lambda-authorizer-output.html
@Stability(value=Experimental) @NotNull public static String contextIdentityUserAgent()
@Stability(value=Experimental) @NotNull public static String contextIdentityUserArn()
https://docs.aws.amazon.com/IAM/latest/UserGuide/id_users.html
@Stability(value=Experimental) @NotNull public static String contextIntegrationLatency()
@Stability(value=Experimental) @NotNull public static String contextIntegrationStatus()
@Stability(value=Experimental) @NotNull public static String contextPath()
For example, for a non-proxy request URL of https://{rest-api-id.execute-api.{region}.amazonaws.com/{stage}/root/child, this value is /{stage}/root/child.
@Stability(value=Experimental) @NotNull public static String contextProtocol()
@Stability(value=Experimental) @NotNull public static String contextRequestId()
@Stability(value=Experimental) @NotNull public static String contextRequestOverrideHeader(@NotNull String headerName)
If this parameter is defined, it contains the headers to be used instead of the HTTP Headers that are defined in the Integration Request pane.
headerName
- This parameter is required.https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-override-request-response-parameters.html
@Stability(value=Experimental) @NotNull public static String contextRequestOverridePath(@NotNull String pathName)
If this parameter is defined, it contains the request path to be used instead of the URL Path Parameters that are defined in the Integration Request pane.
pathName
- This parameter is required.https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-override-request-response-parameters.html
@Stability(value=Experimental) @NotNull public static String contextRequestOverrideQuerystring(@NotNull String querystringName)
If this parameter is defined, it contains the request query strings to be used instead of the URL Query String Parameters that are defined in the Integration Request pane.
querystringName
- This parameter is required.@Stability(value=Experimental) @NotNull public static String contextRequestTime()
@Stability(value=Experimental) @NotNull public static String contextRequestTimeEpoch()
@Stability(value=Experimental) @NotNull public static String contextResourceId()
@Stability(value=Experimental) @NotNull public static String contextResourcePath()
For example, for the non-proxy request URI of https://{rest-api-id.execute-api.{region}.amazonaws.com/{stage}/root/child
,
The $context.resourcePath value is /root/child
.
https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-create-api-step-by-step.html
@Stability(value=Experimental) @NotNull public static String contextResponseLatency()
@Stability(value=Experimental) @NotNull public static String contextResponseLength()
@Stability(value=Experimental) @NotNull public static String contextResponseOverrideHeader(@NotNull String headerName)
If this parameter is defined, it contains the header to be returned instead of the Response header that is defined as the Default mapping in the Integration Response pane.
headerName
- This parameter is required.https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-override-request-response-parameters.html
@Stability(value=Experimental) @NotNull public static String contextResponseOverrideStatus()
If this parameter is defined, it contains the status code to be returned instead of the Method response status that is defined as the Default mapping in the Integration Response pane.
https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-override-request-response-parameters.html
@Stability(value=Experimental) @NotNull public static String contextStage()
@Stability(value=Experimental) @NotNull public static String contextStatus()
@Stability(value=Experimental) @NotNull public static String contextWafResponseCode()
Will not be set if the stage is not associated with a web ACL.
https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-control-access-aws-waf.html
@Stability(value=Experimental) @NotNull public static String contextWebaclArn()
Will not be set if the stage is not associated with a web ACL.
https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-control-access-aws-waf.html
@Stability(value=Experimental) @NotNull public static String contextXrayTraceId()
https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-enabling-xray.html
Copyright © 2021. All rights reserved.