Skip to content

Commit aff46d0

Browse files
author
AWS
committed
AWS AppSync Update: Add stash and outErrors to EvaluateCode/EvaluateMappingTemplate response
1 parent d36752f commit aff46d0

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS AppSync",
4+
"contributor": "",
5+
"description": "Add stash and outErrors to EvaluateCode/EvaluateMappingTemplate response"
6+
}

services/appsync/src/main/resources/codegen-resources/service-2.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3189,6 +3189,14 @@
31893189
"logs":{
31903190
"shape":"Logs",
31913191
"documentation":"<p>A list of logs that were generated by calls to <code>util.log.info</code> and <code>util.log.error</code> in the evaluated code.</p>"
3192+
},
3193+
"stash":{
3194+
"shape":"Stash",
3195+
"documentation":"<p>An object available inside each resolver and function handler. A single <code>stash</code> object lives through a single resolver run. Therefore, you can use the stash to pass arbitrary data across request and response handlers and across functions in a pipeline resolver.</p>"
3196+
},
3197+
"outErrors":{
3198+
"shape":"OutErrors",
3199+
"documentation":"<p>The list of runtime errors that are added to the GraphQL operation response.</p>"
31923200
}
31933201
}
31943202
},
@@ -3223,6 +3231,14 @@
32233231
"logs":{
32243232
"shape":"Logs",
32253233
"documentation":"<p>A list of logs that were generated by calls to <code>util.log.info</code> and <code>util.log.error</code> in the evaluated code.</p>"
3234+
},
3235+
"stash":{
3236+
"shape":"Stash",
3237+
"documentation":"<p>An object available inside each resolver and function handler. A single <code>stash</code> object lives through a single resolver run. Therefore, you can use the stash to pass arbitrary data across request and response handlers and across functions in a pipeline resolver.</p>"
3238+
},
3239+
"outErrors":{
3240+
"shape":"OutErrors",
3241+
"documentation":"<p>The list of runtime errors that are added to the GraphQL operation response.</p>"
32263242
}
32273243
}
32283244
},
@@ -4645,6 +4661,10 @@
46454661
"DISABLED"
46464662
]
46474663
},
4664+
"OutErrors":{
4665+
"type":"string",
4666+
"pattern":"^[\\s\\S]*$"
4667+
},
46484668
"OutputType":{
46494669
"type":"string",
46504670
"enum":[
@@ -5118,6 +5138,10 @@
51185138
}
51195139
}
51205140
},
5141+
"Stash":{
5142+
"type":"string",
5143+
"pattern":"^[\\s\\S]*$"
5144+
},
51215145
"String":{"type":"string"},
51225146
"SyncConfig":{
51235147
"type":"structure",

0 commit comments

Comments
 (0)