Skip to content

Commit a3d8b36

Browse files
author
awstools
committed
feat(client-appsync): Add stash and outErrors to EvaluateCode/EvaluateMappingTemplate response
1 parent 446f685 commit a3d8b36

File tree

5 files changed

+68
-0
lines changed

5 files changed

+68
-0
lines changed

Diff for: clients/client-appsync/src/commands/EvaluateCodeCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ export interface EvaluateCodeCommandOutput extends EvaluateCodeResponse, __Metad
7070
* // logs: [ // Logs
7171
* // "STRING_VALUE",
7272
* // ],
73+
* // stash: "STRING_VALUE",
74+
* // outErrors: "STRING_VALUE",
7375
* // };
7476
*
7577
* ```

Diff for: clients/client-appsync/src/commands/EvaluateMappingTemplateCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ export interface EvaluateMappingTemplateCommandOutput extends EvaluateMappingTem
5555
* // logs: [ // Logs
5656
* // "STRING_VALUE",
5757
* // ],
58+
* // stash: "STRING_VALUE",
59+
* // outErrors: "STRING_VALUE",
5860
* // };
5961
*
6062
* ```

Diff for: clients/client-appsync/src/models/models_0.ts

+24
Original file line numberDiff line numberDiff line change
@@ -4154,6 +4154,18 @@ export interface EvaluateCodeResponse {
41544154
* @public
41554155
*/
41564156
logs?: string[] | undefined;
4157+
4158+
/**
4159+
* <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>
4160+
* @public
4161+
*/
4162+
stash?: string | undefined;
4163+
4164+
/**
4165+
* <p>The list of runtime errors that are added to the GraphQL operation response.</p>
4166+
* @public
4167+
*/
4168+
outErrors?: string | undefined;
41574169
}
41584170

41594171
/**
@@ -4210,6 +4222,18 @@ export interface EvaluateMappingTemplateResponse {
42104222
* @public
42114223
*/
42124224
logs?: string[] | undefined;
4225+
4226+
/**
4227+
* <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>
4228+
* @public
4229+
*/
4230+
stash?: string | undefined;
4231+
4232+
/**
4233+
* <p>The list of runtime errors that are added to the GraphQL operation response.</p>
4234+
* @public
4235+
*/
4236+
outErrors?: string | undefined;
42134237
}
42144238

42154239
/**

Diff for: clients/client-appsync/src/protocols/Aws_restJson1.ts

+4
Original file line numberDiff line numberDiff line change
@@ -2343,6 +2343,8 @@ export const de_EvaluateCodeCommand = async (
23432343
error: _json,
23442344
evaluationResult: __expectString,
23452345
logs: _json,
2346+
outErrors: __expectString,
2347+
stash: __expectString,
23462348
});
23472349
Object.assign(contents, doc);
23482350
return contents;
@@ -2366,6 +2368,8 @@ export const de_EvaluateMappingTemplateCommand = async (
23662368
error: _json,
23672369
evaluationResult: __expectString,
23682370
logs: _json,
2371+
outErrors: __expectString,
2372+
stash: __expectString,
23692373
});
23702374
Object.assign(contents, doc);
23712375
return contents;

Diff for: codegen/sdk-codegen/aws-models/appsync.json

+36
Original file line numberDiff line numberDiff line change
@@ -5092,6 +5092,18 @@
50925092
"traits": {
50935093
"smithy.api#documentation": "<p>A list of logs that were generated by calls to <code>util.log.info</code> and\n <code>util.log.error</code> in the evaluated code.</p>"
50945094
}
5095+
},
5096+
"stash": {
5097+
"target": "com.amazonaws.appsync#Stash",
5098+
"traits": {
5099+
"smithy.api#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>"
5100+
}
5101+
},
5102+
"outErrors": {
5103+
"target": "com.amazonaws.appsync#OutErrors",
5104+
"traits": {
5105+
"smithy.api#documentation": "<p>The list of runtime errors that are added to the GraphQL operation response.</p>"
5106+
}
50955107
}
50965108
},
50975109
"traits": {
@@ -5168,6 +5180,18 @@
51685180
"traits": {
51695181
"smithy.api#documentation": "<p>A list of logs that were generated by calls to <code>util.log.info</code> and\n <code>util.log.error</code> in the evaluated code.</p>"
51705182
}
5183+
},
5184+
"stash": {
5185+
"target": "com.amazonaws.appsync#Stash",
5186+
"traits": {
5187+
"smithy.api#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>"
5188+
}
5189+
},
5190+
"outErrors": {
5191+
"target": "com.amazonaws.appsync#OutErrors",
5192+
"traits": {
5193+
"smithy.api#documentation": "<p>The list of runtime errors that are added to the GraphQL operation response.</p>"
5194+
}
51715195
}
51725196
},
51735197
"traits": {
@@ -8201,6 +8225,12 @@
82018225
}
82028226
}
82038227
},
8228+
"com.amazonaws.appsync#OutErrors": {
8229+
"type": "string",
8230+
"traits": {
8231+
"smithy.api#pattern": "^[\\s\\S]*$"
8232+
}
8233+
},
82048234
"com.amazonaws.appsync#OutputType": {
82058235
"type": "enum",
82068236
"members": {
@@ -9133,6 +9163,12 @@
91339163
"smithy.api#output": {}
91349164
}
91359165
},
9166+
"com.amazonaws.appsync#Stash": {
9167+
"type": "string",
9168+
"traits": {
9169+
"smithy.api#pattern": "^[\\s\\S]*$"
9170+
}
9171+
},
91369172
"com.amazonaws.appsync#String": {
91379173
"type": "string"
91389174
},

0 commit comments

Comments
 (0)