Skip to content

Commit ba6d0b3

Browse files
authored
feat(appsync): queryDepthLimit and resolverCountLimit props on GraphqlApi (#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*
1 parent 1fdac0c commit ba6d0b3

File tree

12 files changed

+643
-0
lines changed

12 files changed

+643
-0
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-limit-configs.js.snapshot/apiDefaultTestDeployAssert018781F2.assets.json

+19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-limit-configs.js.snapshot/apiDefaultTestDeployAssert018781F2.template.json

+36
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-limit-configs.js.snapshot/cdk.out

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-limit-configs.js.snapshot/integ.json

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-limit-configs.js.snapshot/manifest.json

+131
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-limit-configs.js.snapshot/stack.assets.json

+19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
{
2+
"Resources": {
3+
"ApiLimitConfigsC74D7493": {
4+
"Type": "AWS::AppSync::GraphQLApi",
5+
"Properties": {
6+
"AuthenticationType": "API_KEY",
7+
"Name": "ApiLimitConfigs",
8+
"QueryDepthLimit": 2,
9+
"ResolverCountLimit": 2
10+
}
11+
},
12+
"ApiLimitConfigsSchema1451D8D1": {
13+
"Type": "AWS::AppSync::GraphQLSchema",
14+
"Properties": {
15+
"ApiId": {
16+
"Fn::GetAtt": [
17+
"ApiLimitConfigsC74D7493",
18+
"ApiId"
19+
]
20+
},
21+
"Definition": "type test {\n version: String!\n}\ntype Query {\n getTests: [test]!\n}\ntype Mutation {\n addTest(version: String!): test\n}\n"
22+
}
23+
},
24+
"ApiLimitConfigsDefaultApiKey7D682F04": {
25+
"Type": "AWS::AppSync::ApiKey",
26+
"Properties": {
27+
"ApiId": {
28+
"Fn::GetAtt": [
29+
"ApiLimitConfigsC74D7493",
30+
"ApiId"
31+
]
32+
}
33+
},
34+
"DependsOn": [
35+
"ApiLimitConfigsSchema1451D8D1"
36+
]
37+
},
38+
"ApiLimitConfigsNoneDS3CA3BDA6": {
39+
"Type": "AWS::AppSync::DataSource",
40+
"Properties": {
41+
"ApiId": {
42+
"Fn::GetAtt": [
43+
"ApiLimitConfigsC74D7493",
44+
"ApiId"
45+
]
46+
},
47+
"Name": "NoneDS",
48+
"Type": "NONE"
49+
}
50+
}
51+
},
52+
"Parameters": {
53+
"BootstrapVersion": {
54+
"Type": "AWS::SSM::Parameter::Value<String>",
55+
"Default": "/cdk-bootstrap/hnb659fds/version",
56+
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
57+
}
58+
},
59+
"Rules": {
60+
"CheckBootstrapVersion": {
61+
"Assertions": [
62+
{
63+
"Assert": {
64+
"Fn::Not": [
65+
{
66+
"Fn::Contains": [
67+
[
68+
"1",
69+
"2",
70+
"3",
71+
"4",
72+
"5"
73+
],
74+
{
75+
"Ref": "BootstrapVersion"
76+
}
77+
]
78+
}
79+
]
80+
},
81+
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
82+
}
83+
]
84+
}
85+
}
86+
}

0 commit comments

Comments
 (0)