MCPcopy Create free account
hub / github.com/aws-samples/aws-appsync-resolver-samples / request

Function request

samples/http/translate.js:8–11  ·  view source on GitHub ↗
(ctx)

Source from the content-addressed store, hash-verified

6 * @returns the request
7 */
8export function request(ctx) {
9 const { text = 'Hello World!', source = 'EN', target = 'FR' } = ctx.args;
10 return awsTranslateRequest(text, source, target);
11}
12
13/**
14 * Process the translate response

Callers

nothing calls this directly

Calls 1

awsTranslateRequestFunction · 0.85

Tested by

no test coverage detected