Show / Hide Table of Contents

Class AppsyncFunction

AppSync Functions are local functions that perform certain operations onto a backend data source.

Inheritance
object
Resource
AppsyncFunction
Implements
IAppsyncFunction
IResource
IConstruct
IDependable
IEnvironmentAware
Inherited Members
Resource.IsOwnedResource(IConstruct)
Resource.IsResource(IConstruct)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(string, IArnComponents)
Resource.GetResourceNameAttribute(string)
Resource.Env
Resource.PhysicalName
Resource.Stack
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

BaseDataSource

Remarks

Attribute: DataSourceName

FunctionArn

the ARN of the AppSync function.

public virtual string FunctionArn { get; }
Property Value

string

Remarks

Attribute: true

FunctionId

the ID of the AppSync function.

public virtual string FunctionId { get; }
Property Value

string

Remarks

Attribute: true

FunctionName

the name of this AppSync Function.

public virtual string FunctionName { get; }
Property Value

string

Remarks

Attribute: Name

PROPERTY_INJECTION_ID

Uniquely identifies this class.

public static string PROPERTY_INJECTION_ID { get; }
Property Value

string

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

IAppsyncFunction

Remarks

Developers can compose operations (Functions) and execute them in sequence with Pipeline Resolvers.

Resource: AWS::AppSync::FunctionConfiguration

ExampleMetadata: infused

Implements

IAppsyncFunction
IResource
Constructs.IConstruct
Constructs.IDependable
IEnvironmentAware
Back to top Generated by DocFX