Class AppsyncFunction
(experimental) AppSync Functions are local functions that perform certain operations onto a backend data source.
Inherited Members
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.AWS.AppSync.dll
Syntax (csharp)
public class AppsyncFunction : Resource, IAppsyncFunction, IResource, IConstruct, IDependable
Syntax (vb)
Public Class AppsyncFunction
Inherits Resource
Implements IAppsyncFunction, IResource, IConstruct, IDependable
Remarks
Developers can compose operations (Functions) and execute them in sequence with Pipeline Resolvers.
Stability: Experimental
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 | (experimental) the data source of this AppSync Function. |
FunctionArn | (experimental) the ARN of the AppSync function. |
FunctionId | (experimental) the ID of the AppSync function. |
FunctionName | (experimental) the name of this AppSync Function. |
Methods
FromAppsyncFunctionAttributes(Construct, String, IAppsyncFunctionAttributes) | (experimental) 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
Remarks
Stability: Experimental
Properties
DataSource
(experimental) the data source of this AppSync Function.
public virtual BaseDataSource DataSource { get; }
Property Value
Remarks
Stability: Experimental
Attribute: DataSourceName
FunctionArn
(experimental) the ARN of the AppSync function.
public virtual string FunctionArn { get; }
Property Value
System.String
Remarks
Stability: Experimental
Attribute: true
FunctionId
(experimental) the ID of the AppSync function.
public virtual string FunctionId { get; }
Property Value
System.String
Remarks
Stability: Experimental
Attribute: true
FunctionName
(experimental) the name of this AppSync Function.
public virtual string FunctionName { get; }
Property Value
System.String
Remarks
Stability: Experimental
Attribute: Name
Methods
FromAppsyncFunctionAttributes(Construct, String, IAppsyncFunctionAttributes)
(experimental) 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
Remarks
Stability: Experimental