· 5 years ago · Jan 14, 2021, 09:06 AM
1{
2 "AWSTemplateFormatVersion":"2010-09-09",
3 "Description":"General nested stack.",
4 "Metadata":{
5
6 },
7 "Parameters":{
8 "AppSyncApiId":{
9 "Type":"String",
10 "Description":"The id of the AppSync API associated with this project."
11 },
12 "AppSyncApiName":{
13 "Type":"String",
14 "Description":"The name of the AppSync API",
15 "Default":"AppSyncSimpleTransform"
16 },
17 "env":{
18 "Type":"String",
19 "Description":"The environment name. e.g. Dev, Test, or Production",
20 "Default":"NONE"
21 },
22 "S3DeploymentBucket":{
23 "Type":"String",
24 "Description":"The S3 bucket containing all deployment assets for the project."
25 },
26 "S3DeploymentRootKey":{
27 "Type":"String",
28 "Description":"An S3 key relative to the S3DeploymentBucket that points to the root\nof the deployment directory."
29 }
30 },
31 "Resources":{
32 "SetRandomColorFunction":{
33 "Type":"AWS::AppSync::FunctionConfiguration",
34 "Properties":{
35 "ApiId":{
36 "Ref":"AppSyncApiId"
37 },
38 "Name":"SetRandomColorFunction",
39 "DataSourceName":"NoneDataSource",
40 "FunctionVersion":"2018-05-29",
41 "RequestMappingTemplate":"{...}",
42 "ResponseMappingTemplateS3Location":"{...}"
43 }
44 }
45 },
46 "Conditions":{
47 "HasEnvironmentParameter":{
48 "Fn::Not":[
49 {
50 "Fn::Equals":[
51 {
52 "Ref":"env"
53 },
54 "NONE"
55 ]
56 }
57 ]
58 },
59 "AlwaysFalse":{
60 "Fn::Equals":[
61 "true",
62 "false"
63 ]
64 }
65 },
66 "Outputs":{
67 "GetAttSetRandomColorFunctionFunctionId":{
68 "Description":"SetRandomColorFunction FunctionId.",
69 "Value":"SetRandomColorFunctionId",
70 "Export":{
71 "Name":{
72 "Fn::Join":[
73 ":",
74 [
75 {
76 "Ref":"AppSyncApiId"
77 },
78 "GetAtt",
79 "SetRandomColorFunction",
80 "FunctionId"
81 ]
82 ]
83 }
84 }
85 }
86 }
87}