From a75ffd07bfc909375f4eda137a4bec35c6a4e9e2 Mon Sep 17 00:00:00 2001 From: Tommaso Panozzo Date: Mon, 13 Jan 2020 10:21:35 +0100 Subject: [PATCH] Fix Template Specication API Auth Object section formatting. YAML with `authorizers` example was malformed (opened twice). --- versions/2016-10-31.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/versions/2016-10-31.md b/versions/2016-10-31.md index fe9ae033e..43f9d2361 100644 --- a/versions/2016-10-31.md +++ b/versions/2016-10-31.md @@ -1032,10 +1032,7 @@ Cors: #### API Auth Object -Configure Auth on APIs. - -**Authorizers:** -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). +Configure Auth on APIs. ```yaml Auth: @@ -1057,8 +1054,14 @@ Auth: # For AWS_IAM: # DefaultAuthorizer: AWS_IAM # InvokeRole: NONE # CALLER_CREDENTIALS by default unless overridden + Authorizers: [] +``` + +**Authorizers:** +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). - ```yaml +```yaml +Auth: Authorizers: MyCognitoAuth: UserPoolArn: !GetAtt MyCognitoUserPool.Arn # Can also accept an array