Skip to content

Commit a8b2f01

Browse files
authored
feat(appsync): add ownerContact property to the GraphqlApi (#31585)
### Issue # (if applicable) Closes #<issue number here>. ### Reason for this change Because there is no `ownerContact` prop on the aws-appsync graphqlapi.ts L2 layer. ### Description of changes Added `ownerContact` prop on the aws-appsync graphqlapi.ts L2 layer. ### Description of how you validated changes Added both of unit test and integration test. ### 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 b211189 commit a8b2f01

File tree

12 files changed

+583
-0
lines changed

12 files changed

+583
-0
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-owner-contact.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-owner-contact.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-owner-contact.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-owner-contact.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-owner-contact.js.snapshot/manifest.json

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

0 commit comments

Comments
 (0)