diff --git a/events/apigw.go b/events/apigw.go index 3f1ddc2c..11f75e4d 100644 --- a/events/apigw.go +++ b/events/apigw.go @@ -2,10 +2,6 @@ package events -import ( - "time" -) - // APIGatewayProxyRequest contains data coming from the API Gateway proxy type APIGatewayProxyRequest struct { Resource string `json:"resource"` // The resource path defined in API Gateway @@ -212,8 +208,8 @@ type APIGatewayCustomAuthorizerRequestTypeRequestIdentityClientCert struct { // APIGatewayCustomAuthorizerRequestTypeRequestIdentityClientCertValidity contains certificate validity information for the request caller if using mTLS. type APIGatewayCustomAuthorizerRequestTypeRequestIdentityClientCertValidity struct { - NotAfter time.Time `json:"notAfter"` - NotBefore time.Time `json:"notBefore"` + NotAfter string `json:"notAfter"` + NotBefore string `json:"notBefore"` } // APIGatewayV2HTTPRequestContextAuthentication contains authentication context information for the request caller including client certificate information if using mTLS. @@ -232,8 +228,8 @@ type APIGatewayV2HTTPRequestContextAuthenticationClientCert struct { // APIGatewayV2HTTPRequestContextAuthenticationClientCertValidity contains client certificate validity information for the request caller if using mTLS. type APIGatewayV2HTTPRequestContextAuthenticationClientCertValidity struct { - NotAfter time.Time `json:"notAfter"` - NotBefore time.Time `json:"notBefore"` + NotAfter string `json:"notAfter"` + NotBefore string `json:"notBefore"` } // APIGatewayCustomAuthorizerContext represents the expected format of an API Gateway custom authorizer response.