Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add comment to clarify request validation
Browse files Browse the repository at this point in the history
dscpinheiro authored Oct 16, 2020
1 parent bc65b1c commit 34ee408
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -119,6 +119,11 @@ export class ApiGatewayToSageMakerEndpoint extends Construct {
// Setup request validation
const requestValidator = this.apiGateway.addRequestValidator('request-validator', {
requestValidatorName: 'request-param-validator',

// Setting this property to true makes sure the following are validated:
// - Required request parameters in the URI
// - Query string
// - Headers
validateRequestParameters: true
});

0 comments on commit 34ee408

Please sign in to comment.