@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.
- package/README.md +2 -2
- package/dist-cjs/AppSync.js +15 -0
- package/dist-cjs/commands/EvaluateCodeCommand.js +46 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +42 -4
- package/dist-cjs/protocols/Aws_restJson1.js +168 -14
- package/dist-es/AppSync.js +15 -0
- package/dist-es/commands/EvaluateCodeCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +31 -0
- package/dist-es/protocols/Aws_restJson1.js +163 -12
- package/dist-types/AppSync.d.ts +26 -18
- package/dist-types/AppSyncClient.d.ts +5 -4
- package/dist-types/commands/CreateFunctionCommand.d.ts +1 -2
- package/dist-types/commands/CreateResolverCommand.d.ts +2 -2
- package/dist-types/commands/EvaluateCodeCommand.d.ts +41 -0
- package/dist-types/commands/EvaluateMappingTemplateCommand.d.ts +5 -6
- package/dist-types/commands/ListApiKeysCommand.d.ts +3 -4
- package/dist-types/commands/StartSchemaCreationCommand.d.ts +2 -2
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +459 -293
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/AppSync.d.ts +17 -0
- package/dist-types/ts3.4/AppSyncClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/EvaluateCodeCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +74 -2
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +28 -28
|
@@ -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
|
-
*
|
|
13
|
-
* <p>Request templates take the incoming request after a GraphQL operation is parsed and
|
|
14
|
-
*
|
|
15
|
-
*
|
|
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
|
-
*
|
|
15
|
-
*
|
|
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
|
-
*
|
|
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";
|