Class AppsyncFunction
AppSync Functions are local functions that perform certain operations onto a backend data source.
Inherited Members
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AppsyncFunction : Resource, IAppsyncFunction, IResource, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class AppsyncFunction Inherits Resource Implements IAppsyncFunction, IResource, IConstruct, IDependable, IEnvironmentAware
Remarks
Developers can compose operations (Functions) and execute them in sequence with Pipeline Resolvers.
Resource: AWS::AppSync::FunctionConfiguration
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
| AppsyncFunction(Construct, string, IAppsyncFunctionProps) | AppSync Functions are local functions that perform certain operations onto a backend data source. |
Properties
| DataSource | the data source of this AppSync Function. |
| FunctionArn | the ARN of the AppSync function. |
| FunctionId | the ID of the AppSync function. |
| FunctionName | the name of this AppSync Function. |
| PROPERTY_INJECTION_ID | Uniquely identifies this class. |
Methods
| FromAppsyncFunctionAttributes(Construct, string, IAppsyncFunctionAttributes) | Import Appsync Function from arn. |
Constructors
AppsyncFunction(Construct, string, IAppsyncFunctionProps)
AppSync Functions are local functions that perform certain operations onto a backend data source.
public AppsyncFunction(Construct scope, string id, IAppsyncFunctionProps props)
Parameters
- scope Construct
- id string
- props IAppsyncFunctionProps
Remarks
Developers can compose operations (Functions) and execute them in sequence with Pipeline Resolvers.
Resource: AWS::AppSync::FunctionConfiguration
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")
});
Properties
DataSource
the data source of this AppSync Function.
public virtual BaseDataSource DataSource { get; }
Property Value
Remarks
Attribute: DataSourceName
FunctionArn
the ARN of the AppSync function.
public virtual string FunctionArn { get; }
Property Value
Remarks
Attribute: true
FunctionId
the ID of the AppSync function.
public virtual string FunctionId { get; }
Property Value
Remarks
Attribute: true
FunctionName
the name of this AppSync Function.
public virtual string FunctionName { get; }
Property Value
Remarks
Attribute: Name
PROPERTY_INJECTION_ID
Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
Developers can compose operations (Functions) and execute them in sequence with Pipeline Resolvers.
Resource: AWS::AppSync::FunctionConfiguration
ExampleMetadata: infused
Methods
FromAppsyncFunctionAttributes(Construct, string, IAppsyncFunctionAttributes)
Import Appsync Function from arn.
public static IAppsyncFunction FromAppsyncFunctionAttributes(Construct scope, string id, IAppsyncFunctionAttributes attrs)
Parameters
- scope Construct
- id string
- attrs IAppsyncFunctionAttributes
Returns
Remarks
Developers can compose operations (Functions) and execute them in sequence with Pipeline Resolvers.
Resource: AWS::AppSync::FunctionConfiguration
ExampleMetadata: infused