-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See CHANGELOG
- Loading branch information
Showing
15 changed files
with
1,039 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...d.js.snapshot/apigatewaywithauthorizerandproxyDefaultTestDeployAssertDBEA1774.assets.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
36 changes: 36 additions & 0 deletions
36
...js.snapshot/apigatewaywithauthorizerandproxyDefaultTestDeployAssertDBEA1774.template.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
.../aws-apigateway/test/authorizers/integ.api-with-authorizer-and-method.js.snapshot/cdk.out
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
...s-apigateway/test/authorizers/integ.api-with-authorizer-and-method.js.snapshot/integ.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
...authorizer-and-method.js.snapshot/integtest-restapi-with-authorizer-and-proxy.assets.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
224 changes: 224 additions & 0 deletions
224
...thorizer-and-method.js.snapshot/integtest-restapi-with-authorizer-and-proxy.template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,224 @@ | ||
{ | ||
"Resources": { | ||
"UserPool6BA7E5F2": { | ||
"Type": "AWS::Cognito::UserPool", | ||
"Properties": { | ||
"AccountRecoverySetting": { | ||
"RecoveryMechanisms": [ | ||
{ | ||
"Name": "verified_phone_number", | ||
"Priority": 1 | ||
}, | ||
{ | ||
"Name": "verified_email", | ||
"Priority": 2 | ||
} | ||
] | ||
}, | ||
"AdminCreateUserConfig": { | ||
"AllowAdminCreateUserOnly": true | ||
}, | ||
"EmailVerificationMessage": "The verification code to your new account is {####}", | ||
"EmailVerificationSubject": "Verify your new account", | ||
"SmsVerificationMessage": "The verification code to your new account is {####}", | ||
"VerificationMessageTemplate": { | ||
"DefaultEmailOption": "CONFIRM_WITH_CODE", | ||
"EmailMessage": "The verification code to your new account is {####}", | ||
"EmailSubject": "Verify your new account", | ||
"SmsMessage": "The verification code to your new account is {####}" | ||
} | ||
}, | ||
"UpdateReplacePolicy": "Retain", | ||
"DeletionPolicy": "Retain" | ||
}, | ||
"AuthorizerBD825682": { | ||
"Type": "AWS::ApiGateway::Authorizer", | ||
"Properties": { | ||
"IdentitySource": "method.request.header.Authorization", | ||
"Name": "integtestrestapiwithauthorizerandproxyAuthorizer5142DDC8", | ||
"ProviderARNs": [ | ||
{ | ||
"Fn::GetAtt": [ | ||
"UserPool6BA7E5F2", | ||
"Arn" | ||
] | ||
} | ||
], | ||
"RestApiId": { | ||
"Ref": "CdkTestStack0AE13CA5" | ||
}, | ||
"Type": "COGNITO_USER_POOLS" | ||
} | ||
}, | ||
"CdkTestStack0AE13CA5": { | ||
"Type": "AWS::ApiGateway::RestApi", | ||
"Properties": { | ||
"Name": "CdkTestStack" | ||
} | ||
}, | ||
"CdkTestStackDeployment201712E9c8d53ab4e4cdcaa7ab0f70bb7f6ce970": { | ||
"Type": "AWS::ApiGateway::Deployment", | ||
"Properties": { | ||
"Description": "Automatically created by the RestApi construct", | ||
"RestApiId": { | ||
"Ref": "CdkTestStack0AE13CA5" | ||
} | ||
}, | ||
"DependsOn": [ | ||
"AuthorizerBD825682", | ||
"CdkTestStackotherPOST3BA23287", | ||
"CdkTestStackother6044D106", | ||
"CdkTestStackuserGET1317379E", | ||
"CdkTestStackuser7876F2D4" | ||
] | ||
}, | ||
"CdkTestStackDeploymentStageprod296E6472": { | ||
"Type": "AWS::ApiGateway::Stage", | ||
"Properties": { | ||
"DeploymentId": { | ||
"Ref": "CdkTestStackDeployment201712E9c8d53ab4e4cdcaa7ab0f70bb7f6ce970" | ||
}, | ||
"RestApiId": { | ||
"Ref": "CdkTestStack0AE13CA5" | ||
}, | ||
"StageName": "prod" | ||
} | ||
}, | ||
"CdkTestStackuser7876F2D4": { | ||
"Type": "AWS::ApiGateway::Resource", | ||
"Properties": { | ||
"ParentId": { | ||
"Fn::GetAtt": [ | ||
"CdkTestStack0AE13CA5", | ||
"RootResourceId" | ||
] | ||
}, | ||
"PathPart": "user", | ||
"RestApiId": { | ||
"Ref": "CdkTestStack0AE13CA5" | ||
} | ||
} | ||
}, | ||
"CdkTestStackuserGET1317379E": { | ||
"Type": "AWS::ApiGateway::Method", | ||
"Properties": { | ||
"AuthorizationScopes": [ | ||
"profile" | ||
], | ||
"AuthorizationType": "COGNITO_USER_POOLS", | ||
"AuthorizerId": { | ||
"Ref": "AuthorizerBD825682" | ||
}, | ||
"HttpMethod": "GET", | ||
"Integration": { | ||
"Type": "MOCK" | ||
}, | ||
"ResourceId": { | ||
"Ref": "CdkTestStackuser7876F2D4" | ||
}, | ||
"RestApiId": { | ||
"Ref": "CdkTestStack0AE13CA5" | ||
} | ||
} | ||
}, | ||
"CdkTestStackother6044D106": { | ||
"Type": "AWS::ApiGateway::Resource", | ||
"Properties": { | ||
"ParentId": { | ||
"Fn::GetAtt": [ | ||
"CdkTestStack0AE13CA5", | ||
"RootResourceId" | ||
] | ||
}, | ||
"PathPart": "other", | ||
"RestApiId": { | ||
"Ref": "CdkTestStack0AE13CA5" | ||
} | ||
} | ||
}, | ||
"CdkTestStackotherPOST3BA23287": { | ||
"Type": "AWS::ApiGateway::Method", | ||
"Properties": { | ||
"AuthorizationScopes": [ | ||
"openid" | ||
], | ||
"AuthorizationType": "COGNITO_USER_POOLS", | ||
"AuthorizerId": { | ||
"Ref": "AuthorizerBD825682" | ||
}, | ||
"HttpMethod": "POST", | ||
"Integration": { | ||
"Type": "MOCK" | ||
}, | ||
"ResourceId": { | ||
"Ref": "CdkTestStackother6044D106" | ||
}, | ||
"RestApiId": { | ||
"Ref": "CdkTestStack0AE13CA5" | ||
} | ||
} | ||
} | ||
}, | ||
"Outputs": { | ||
"CdkTestStackEndpoint7DDDB759": { | ||
"Value": { | ||
"Fn::Join": [ | ||
"", | ||
[ | ||
"https://", | ||
{ | ||
"Ref": "CdkTestStack0AE13CA5" | ||
}, | ||
".execute-api.", | ||
{ | ||
"Ref": "AWS::Region" | ||
}, | ||
".", | ||
{ | ||
"Ref": "AWS::URLSuffix" | ||
}, | ||
"/", | ||
{ | ||
"Ref": "CdkTestStackDeploymentStageprod296E6472" | ||
}, | ||
"/" | ||
] | ||
] | ||
} | ||
} | ||
}, | ||
"Parameters": { | ||
"BootstrapVersion": { | ||
"Type": "AWS::SSM::Parameter::Value<String>", | ||
"Default": "/cdk-bootstrap/hnb659fds/version", | ||
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]" | ||
} | ||
}, | ||
"Rules": { | ||
"CheckBootstrapVersion": { | ||
"Assertions": [ | ||
{ | ||
"Assert": { | ||
"Fn::Not": [ | ||
{ | ||
"Fn::Contains": [ | ||
[ | ||
"1", | ||
"2", | ||
"3", | ||
"4", | ||
"5" | ||
], | ||
{ | ||
"Ref": "BootstrapVersion" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI." | ||
} | ||
] | ||
} | ||
} | ||
} |
Oops, something went wrong.