Skip to content
Open
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 @@ -22,7 +22,7 @@ public class AuthPolicyBuilder
/// </summary>
private readonly Regex _pathRegex = new Regex("^[/.a-zA-Z0-9-\\*]+$");

// these are the values exctracted from the API Options passed into the construction
// these are the values extracted from the API Options passed into the construction
// these options default to a "*" if the input option was empty
private readonly string _restApiId;
private readonly string _region;
Expand All @@ -41,7 +41,7 @@ public class AuthPolicyBuilder
// these are the internal lists of allowed and denied methods. These are lists
// of objects and each object has 2 properties: A resource ARN and a nullable
// conditions statement.
// the build method processes these lists and generates the approriate
// the build method processes these lists and generates the appropriate
// statements for the final policy
private struct Method
{
Expand Down
2 changes: 1 addition & 1 deletion blueprints/go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func handleRequest(ctx context.Context, event events.APIGatewayCustomAuthorizerR

// if the token is valid, a policy must be generated which will allow or deny access to the client

// if access is denied, the client will recieve a 403 Access Denied response
// if access is denied, the client will receive a 403 Access Denied response
// if access is allowed, API Gateway will proceed with the backend integration configured on the method that was called

// this function must generate a policy that is associated with the recognized principal user identifier.
Expand Down
2 changes: 1 addition & 1 deletion blueprints/nodejs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function AuthPolicy(principal, awsAccountId, apiOptions) {
// these are the internal lists of allowed and denied methods. These are lists
// of objects and each object has 2 properties: A resource ARN and a nullable
// conditions statement.
// the build method processes these lists and generates the approriate
// the build method processes these lists and generates the appropriate
// statements for the final policy
this.allowMethods = [];
this.denyMethods = [];
Expand Down
4 changes: 2 additions & 2 deletions blueprints/python/api-gateway-authorizer-python.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def lambda_handler(event, context):

"""if the token is valid, a policy must be generated which will allow or deny access to the client"""

"""if access is denied, the client will recieve a 403 Access Denied response"""
"""if access is denied, the client will receive a 403 Access Denied response"""
"""if access is allowed, API Gateway will proceed with the backend integration configured on the method that was called"""

"""this function must generate a policy that is associated with the recognized principal user identifier."""
Expand Down Expand Up @@ -93,7 +93,7 @@ class AuthPolicy(object):
"""these are the internal lists of allowed and denied methods. These are lists
of objects and each object has 2 properties: A resource ARN and a nullable
conditions statement.
the build method processes these lists and generates the approriate
the build method processes these lists and generates the appropriate
statements for the final policy"""
allowMethods = []
denyMethods = []
Expand Down
2 changes: 1 addition & 1 deletion blueprints/rust/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fn my_handler(

// if the token is valid, a policy must be generated which will allow or deny access to the client

// if access is denied, the client will recieve a 403 Access Denied response
// if access is denied, the client will receive a 403 Access Denied response
// if access is allowed, API Gateway will proceed with the backend integration configured on the method that was called

// this function must generate a policy that is associated with the recognized principal user identifier.
Expand Down