@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.203Z") @Stability(value=Stable) public interface RequestContext extends software.amazon.jsii.JsiiSerializable
More details can be found at mapping templates documentation.
Example:
StepFunctionsRestApi.Builder.create(this, "StepFunctionsRestApi")
.stateMachine(machine)
.headers(true)
.path(false)
.querystring(false)
.authorizer(false)
.requestContext(RequestContext.builder()
.caller(true)
.user(true)
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
RequestContext.Builder
A builder for
RequestContext |
static class |
RequestContext.Jsii$Proxy
An implementation for
RequestContext |
| Modifier and Type | Method and Description |
|---|---|
static RequestContext.Builder |
builder() |
default Boolean |
getAccountId()
Represents the information of $context.identity.accountId.
|
default Boolean |
getApiId()
Represents the information of $context.apiId.
|
default Boolean |
getApiKey()
Represents the information of $context.identity.apiKey.
|
default Boolean |
getAuthorizerPrincipalId()
Represents the information of $context.authorizer.principalId.
|
default Boolean |
getCaller()
Represents the information of $context.identity.caller.
|
default Boolean |
getCognitoAuthenticationProvider()
Represents the information of $context.identity.cognitoAuthenticationProvider.
|
default Boolean |
getCognitoAuthenticationType()
Represents the information of $context.identity.cognitoAuthenticationType.
|
default Boolean |
getCognitoIdentityId()
Represents the information of $context.identity.cognitoIdentityId.
|
default Boolean |
getCognitoIdentityPoolId()
Represents the information of $context.identity.cognitoIdentityPoolId.
|
default Boolean |
getHttpMethod()
Represents the information of $context.httpMethod.
|
default Boolean |
getRequestId()
Represents the information of $context.requestId.
|
default Boolean |
getResourceId()
Represents the information of $context.resourceId.
|
default Boolean |
getResourcePath()
Represents the information of $context.resourcePath.
|
default Boolean |
getSourceIp()
Represents the information of $context.identity.sourceIp.
|
default Boolean |
getStage()
Represents the information of $context.stage.
|
default Boolean |
getUser()
Represents the information of $context.identity.user.
|
default Boolean |
getUserAgent()
Represents the information of $context.identity.userAgent.
|
default Boolean |
getUserArn()
Represents the information of $context.identity.userArn.
|
@Stability(value=Stable) @Nullable default Boolean getAccountId()
Whether the AWS account of the API owner should be included in the request context
Default: false
@Stability(value=Stable) @Nullable default Boolean getApiId()
Whether the identifier API Gateway assigns to your API should be included in the request context.
Default: false
@Stability(value=Stable) @Nullable default Boolean getApiKey()
Whether the API key associated with the request should be included in request context.
Default: false
@Stability(value=Stable) @Nullable default Boolean getAuthorizerPrincipalId()
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
@Stability(value=Stable) @Nullable default Boolean getCaller()
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
@Stability(value=Stable) @Nullable default Boolean getCognitoAuthenticationProvider()
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
@Stability(value=Stable) @Nullable default Boolean getCognitoAuthenticationType()
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
@Stability(value=Stable) @Nullable default Boolean getCognitoIdentityId()
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
@Stability(value=Stable) @Nullable default Boolean getCognitoIdentityPoolId()
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
@Stability(value=Stable) @Nullable default Boolean getHttpMethod()
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
@Stability(value=Stable) @Nullable default Boolean getRequestId()
Whether the ID for the request should be included in the request context.
Default: false
@Stability(value=Stable) @Nullable default Boolean getResourceId()
Whether the identifier that API Gateway assigns to your resource should be included in the request context.
Default: false
@Stability(value=Stable) @Nullable default Boolean getResourcePath()
Whether the path to the resource should be included in the request context.
Default: false
@Stability(value=Stable) @Nullable default Boolean getSourceIp()
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
@Stability(value=Stable) @Nullable default Boolean getStage()
Whether the deployment stage of the API request should be included in the request context.
Default: false
@Stability(value=Stable) @Nullable default Boolean getUser()
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
@Stability(value=Stable) @Nullable default Boolean getUserAgent()
Whether the User-Agent header of the API caller should be included in the request context.
Default: false
@Stability(value=Stable) @Nullable default Boolean getUserArn()
Whether the Amazon Resource Name (ARN) of the effective user identified after authentication should be included in the request context.
Default: false
@Stability(value=Stable) static RequestContext.Builder builder()
RequestContext.Builder of RequestContextCopyright © 2022. All rights reserved.