Class AppsyncFunctionProps
(experimental) the CDK properties for AppSync Functions.
Inheritance
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.AWS.AppSync.dll
Syntax (csharp)
public class AppsyncFunctionProps : Object, IAppsyncFunctionProps, IBaseAppsyncFunctionProps
Syntax (vb)
Public Class AppsyncFunctionProps
Inherits Object
Implements IAppsyncFunctionProps, IBaseAppsyncFunctionProps
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
GraphqlApi api;
var appsyncFunction = new AppsyncFunction(this, "function", new AppsyncFunctionProps {
Name = "appsync_function",
Api = api,
DataSource = api.AddNoneDataSource("none"),
RequestMappingTemplate = MappingTemplate.FromFile("request.vtl"),
ResponseMappingTemplate = MappingTemplate.FromFile("response.vtl")
});
Synopsis
Constructors
AppsyncFunctionProps() |
Properties
Api | (experimental) the GraphQL Api linked to this AppSync Function. |
DataSource | (experimental) the data source linked to this AppSync Function. |
Description | (experimental) the description for this AppSync Function. |
Name | (experimental) the name of the AppSync Function. |
RequestMappingTemplate | (experimental) the request mapping template for the AppSync Function. |
ResponseMappingTemplate | (experimental) the response mapping template for the AppSync Function. |
Constructors
AppsyncFunctionProps()
public AppsyncFunctionProps()
Properties
Api
(experimental) the GraphQL Api linked to this AppSync Function.
public IGraphqlApi Api { get; set; }
Property Value
Remarks
Stability: Experimental
DataSource
(experimental) the data source linked to this AppSync Function.
public BaseDataSource DataSource { get; set; }
Property Value
Remarks
Stability: Experimental
Description
(experimental) the description for this AppSync Function.
public string Description { get; set; }
Property Value
System.String
Remarks
Default: - no description
Stability: Experimental
Name
(experimental) the name of the AppSync Function.
public string Name { get; set; }
Property Value
System.String
Remarks
Stability: Experimental
RequestMappingTemplate
(experimental) the request mapping template for the AppSync Function.
public MappingTemplate RequestMappingTemplate { get; set; }
Property Value
Remarks
Default: - no request mapping template
Stability: Experimental
ResponseMappingTemplate
(experimental) the response mapping template for the AppSync Function.
public MappingTemplate ResponseMappingTemplate { get; set; }
Property Value
Remarks
Default: - no response mapping template
Stability: Experimental