Skip to content

Commit dc01997

Browse files
tom139keetonian
authored andcommitted
docs: fix Template Specication API Auth Object section (#1379)
1 parent 0079ea4 commit dc01997

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

versions/2016-10-31.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,10 +1032,7 @@ Cors:
10321032
10331033
#### API Auth Object
10341034

1035-
Configure Auth on APIs.
1036-
1037-
**Authorizers:**
1038-
Define Lambda and Cognito `Authorizers` and specify a `DefaultAuthorizer`. If you use IAM permission, only specify `AWS_IAM` to a `DefaultAuthorizer`. For more information, see the documentation on [Lambda Authorizers](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-use-lambda-authorizer.html) and [Amazon Cognito User Pool Authorizers](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-integrate-with-cognito.html) and [IAM Permissions](https://docs.aws.amazon.com/apigateway/latest/developerguide/permissions.html).
1035+
Configure Auth on APIs.
10391036

10401037
```yaml
10411038
Auth:
@@ -1059,8 +1056,14 @@ Auth:
10591056
# For AWS_IAM:
10601057
# DefaultAuthorizer: AWS_IAM
10611058
# InvokeRole: NONE # CALLER_CREDENTIALS by default unless overridden
1059+
Authorizers: [<list of authorizers, see below >]
1060+
```
1061+
1062+
**Authorizers:**
1063+
Define Lambda and Cognito `Authorizers` and specify a `DefaultAuthorizer`. If you use IAM permission, only specify `AWS_IAM` to a `DefaultAuthorizer`. For more information, see the documentation on [Lambda Authorizers](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-use-lambda-authorizer.html) and [Amazon Cognito User Pool Authorizers](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-integrate-with-cognito.html) and [IAM Permissions](https://docs.aws.amazon.com/apigateway/latest/developerguide/permissions.html).
10621064

1063-
```yaml
1065+
```yaml
1066+
Auth:
10641067
Authorizers:
10651068
MyCognitoAuth:
10661069
UserPoolArn: !GetAtt MyCognitoUserPool.Arn # Can also accept an array

0 commit comments

Comments
 (0)