@aws-sdk/client-appsync 3.211.0 → 3.213.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,41 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { AppSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppSyncClient";
5
+ import { EvaluateCodeRequest, EvaluateCodeResponse } from "../models/models_0";
6
+ export interface EvaluateCodeCommandInput extends EvaluateCodeRequest {
7
+ }
8
+ export interface EvaluateCodeCommandOutput extends EvaluateCodeResponse, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Evaluates the given code and returns the response. The code definition requirements depend on the specified
12
+ * runtime. For <code>APPSYNC_JS</code> runtimes, the code defines the request and response functions. The request
13
+ * function takes the incoming request after a GraphQL operation is parsed and converts it into a request
14
+ * configuration for the selected data source operation. The response function interprets responses from the data
15
+ * source and maps it to the shape of the GraphQL field output type. </p>
16
+ * @example
17
+ * Use a bare-bones client and the command you need to make an API call.
18
+ * ```javascript
19
+ * import { AppSyncClient, EvaluateCodeCommand } from "@aws-sdk/client-appsync"; // ES Modules import
20
+ * // const { AppSyncClient, EvaluateCodeCommand } = require("@aws-sdk/client-appsync"); // CommonJS import
21
+ * const client = new AppSyncClient(config);
22
+ * const command = new EvaluateCodeCommand(input);
23
+ * const response = await client.send(command);
24
+ * ```
25
+ *
26
+ * @see {@link EvaluateCodeCommandInput} for command's `input` shape.
27
+ * @see {@link EvaluateCodeCommandOutput} for command's `response` shape.
28
+ * @see {@link AppSyncClientResolvedConfig | config} for AppSyncClient's `config` shape.
29
+ *
30
+ */
31
+ export declare class EvaluateCodeCommand extends $Command<EvaluateCodeCommandInput, EvaluateCodeCommandOutput, AppSyncClientResolvedConfig> {
32
+ readonly input: EvaluateCodeCommandInput;
33
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
34
+ constructor(input: EvaluateCodeCommandInput);
35
+ /**
36
+ * @internal
37
+ */
38
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions): Handler<EvaluateCodeCommandInput, EvaluateCodeCommandOutput>;
39
+ private serialize;
40
+ private deserialize;
41
+ }
@@ -8,12 +8,11 @@ export interface EvaluateMappingTemplateCommandInput extends EvaluateMappingTemp
8
8
  export interface EvaluateMappingTemplateCommandOutput extends EvaluateMappingTemplateResponse, __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>Evaluates a given template and returns the response. The mapping template can be a
12
- * request or response template.</p>
13
- * <p>Request templates take the incoming request after a GraphQL operation is parsed and
14
- * convert it into a request configuration for the selected data source operation. Response
15
- * templates interpret responses from the data source and map it to the shape of the GraphQL
16
- * field output type.</p>
11
+ * <p>Evaluates a given template and returns the response. The mapping template can be a request or response
12
+ * template.</p>
13
+ * <p>Request templates take the incoming request after a GraphQL operation is parsed and convert it into a
14
+ * request configuration for the selected data source operation. Response templates interpret responses from the
15
+ * data source and map it to the shape of the GraphQL field output type.</p>
17
16
  * <p>Mapping templates are written in the Apache Velocity Template Language (VTL).</p>
18
17
  * @example
19
18
  * Use a bare-bones client and the command you need to make an API call.
@@ -10,10 +10,9 @@ export interface ListApiKeysCommandOutput extends ListApiKeysResponse, __Metadat
10
10
  /**
11
11
  * <p>Lists the API keys for a given API.</p>
12
12
  * <note>
13
- * <p>API keys are deleted automatically 60 days after they expire. However, they may still
14
- * be included in the response until they have actually been deleted. You can safely call
15
- * <code>DeleteApiKey</code> to manually delete a key before it's automatically
16
- * deleted.</p>
13
+ * <p>API keys are deleted automatically 60 days after they expire. However, they may still be included in the
14
+ * response until they have actually been deleted. You can safely call <code>DeleteApiKey</code> to manually
15
+ * delete a key before it's automatically deleted.</p>
17
16
  * </note>
18
17
  * @example
19
18
  * Use a bare-bones client and the command you need to make an API call.
@@ -9,8 +9,8 @@ export interface StartSchemaCreationCommandOutput extends StartSchemaCreationRes
9
9
  }
10
10
  /**
11
11
  * <p>Adds a new schema to your GraphQL API.</p>
12
- * <p>This operation is asynchronous. Use to
13
- * determine when it has completed.</p>
12
+ * <p>This operation is asynchronous. Use to determine when it has
13
+ * completed.</p>
14
14
  * @example
15
15
  * Use a bare-bones client and the command you need to make an API call.
16
16
  * ```javascript
@@ -16,6 +16,7 @@ export * from "./DeleteGraphqlApiCommand";
16
16
  export * from "./DeleteResolverCommand";
17
17
  export * from "./DeleteTypeCommand";
18
18
  export * from "./DisassociateApiCommand";
19
+ export * from "./EvaluateCodeCommand";
19
20
  export * from "./EvaluateMappingTemplateCommand";
20
21
  export * from "./FlushApiCacheCommand";
21
22
  export * from "./GetApiAssociationCommand";