Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding missing attributes to APIGatewayProxyRequestEvent #360

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,23 +72,35 @@ public static class ProxyRequestContext implements Serializable, Cloneable {

private String accountId;

private String stage;
private String apiId;

private String resourceId;
private Map<String, Object> authorizer;

private String requestId;
private String domainName;

private RequestIdentity identity;
private String domainPrefix;

private String resourcePath;
private String extendedRequestId;

private String httpMethod;

private String apiId;
private RequestIdentity identity;

private String path;

private Map<String, Object> authorizer;
private String protocol;

private String requestId;

private String requestTime;

private Long requestTimeEpoch;

private String resourceId;

private String resourcePath;

private String stage;

@Override
public ProxyRequestContext clone() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@
"proxy": "hello"
},
"requestContext": {
"path": "/{proxy+}",
"accountId": "123456789012",
"resourceId": "nl9h80",
"stage": "test-invoke-stage",
"requestId": "test-invoke-request",
"apiId": "id",
"domainName": "id.execute-api.us-east-1.amazonaws.com",
"domainPrefix": "id",
"extendedRequestId": "request-id",
"httpMethod": "GET",
"identity": {
"cognitoIdentityPoolId": "",
"accountId": "123456789012",
Expand All @@ -42,9 +43,14 @@
"userAgent": "Apache-HttpClient/4.5.x (Java/1.8.0_131)",
"user": "AIDAJTIRKKKER4HCKVJZG"
},
"resourcePath": "/{proxy+}",
"httpMethod": "POST",
"apiId": "r275xc9bmd"
"path": "/my/path",
"protocol": "HTTP/1.1",
"requestId": "id=",
"requestTime": "04/Mar/2020:19:15:17 +0000",
"requestTimeEpoch": 1583349317135,
"resourceId": "123456",
"resourcePath": "/my/path",
"stage": "$default"
},
"resource": "/{proxy+}",
"httpMethod": "GET",
Expand Down