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
Syntax (vb)
Public Class AppsyncFunction
Inherits Resource
Implements IAppsyncFunction, IResource
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(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
AppsyncFunction(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
AppsyncFunction(Construct, String, IAppsyncFunctionProps) |
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. |
Methods
FromAppsyncFunctionAttributes(Construct, String, IAppsyncFunctionAttributes) | Import Appsync Function from arn. |
Constructors
AppsyncFunction(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected AppsyncFunction(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
AppsyncFunction(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected AppsyncFunction(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
AppsyncFunction(Construct, String, IAppsyncFunctionProps)
public AppsyncFunction(Construct scope, string id, IAppsyncFunctionProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IAppsyncFunctionProps
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
System.String
Remarks
Attribute: true
FunctionId
the ID of the AppSync function.
public virtual string FunctionId { get; }
Property Value
System.String
Remarks
Attribute: true
FunctionName
the name of this AppSync Function.
public virtual string FunctionName { get; }
Property Value
System.String
Remarks
Attribute: Name
Methods
FromAppsyncFunctionAttributes(Construct, String, IAppsyncFunctionAttributes)
Import Appsync Function from arn.
public static IAppsyncFunction FromAppsyncFunctionAttributes(Construct scope, string id, IAppsyncFunctionAttributes attrs)
Parameters
- scope Constructs.Construct
- id System.String
- attrs IAppsyncFunctionAttributes
Returns