Skip to content

Commit

Permalink
feat(appsync): queryDepthLimit and resolverCountLimit props on Graphq…
Browse files Browse the repository at this point in the history
…lApi (#29182)

### Issue # (if applicable)

No open issue. Cr was based on #28500

### Reason for this change

Appsync added two additional fields documented in their CFN [here](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-graphqlapi.html#cfn-appsync-graphqlapi-resolvercountlimit) that were not previously supported in the L1 construct.

### Description of changes

Addition of field `queryDepthLimit` and `resolverCountLimit`

### Description of how you validated changes

Unit tests and integration tests were run locally. Additionally a sample app was deployed to validate these features.

### Checklist
- [ x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
aerrober authored Mar 18, 2024
1 parent 1fdac0c commit ba6d0b3
Show file tree
Hide file tree
Showing 12 changed files with 643 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"Resources": {
"ApiLimitConfigsC74D7493": {
"Type": "AWS::AppSync::GraphQLApi",
"Properties": {
"AuthenticationType": "API_KEY",
"Name": "ApiLimitConfigs",
"QueryDepthLimit": 2,
"ResolverCountLimit": 2
}
},
"ApiLimitConfigsSchema1451D8D1": {
"Type": "AWS::AppSync::GraphQLSchema",
"Properties": {
"ApiId": {
"Fn::GetAtt": [
"ApiLimitConfigsC74D7493",
"ApiId"
]
},
"Definition": "type test {\n version: String!\n}\ntype Query {\n getTests: [test]!\n}\ntype Mutation {\n addTest(version: String!): test\n}\n"
}
},
"ApiLimitConfigsDefaultApiKey7D682F04": {
"Type": "AWS::AppSync::ApiKey",
"Properties": {
"ApiId": {
"Fn::GetAtt": [
"ApiLimitConfigsC74D7493",
"ApiId"
]
}
},
"DependsOn": [
"ApiLimitConfigsSchema1451D8D1"
]
},
"ApiLimitConfigsNoneDS3CA3BDA6": {
"Type": "AWS::AppSync::DataSource",
"Properties": {
"ApiId": {
"Fn::GetAtt": [
"ApiLimitConfigsC74D7493",
"ApiId"
]
},
"Name": "NoneDS",
"Type": "NONE"
}
}
},
"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."
}
]
}
}
}
Loading

0 comments on commit ba6d0b3

Please sign in to comment.