Class AppsyncFunction
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.appsync.AppsyncFunction
- All Implemented Interfaces:
IEnvironmentAware,IResource,IAppsyncFunction,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:40:45.373Z")
@Stability(Stable)
public class AppsyncFunction
extends Resource
implements IAppsyncFunction
AppSync Functions are local functions that perform certain operations onto a backend data source.
Developers can compose operations (Functions) and execute them in sequence with Pipeline Resolvers.
Example:
GraphqlApi api;
AppsyncFunction appsyncFunction = AppsyncFunction.Builder.create(this, "function")
.name("appsync_function")
.api(api)
.dataSource(api.addNoneDataSource("none"))
.requestMappingTemplate(MappingTemplate.fromFile("request.vtl"))
.responseMappingTemplate(MappingTemplate.fromFile("response.vtl"))
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.appsync.IAppsyncFunction
IAppsyncFunction.Jsii$Default, IAppsyncFunction.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAppsyncFunction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedAppsyncFunction(software.amazon.jsii.JsiiObjectRef objRef) AppsyncFunction(software.constructs.Construct scope, String id, AppsyncFunctionProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IAppsyncFunctionfromAppsyncFunctionAttributes(software.constructs.Construct scope, String id, AppsyncFunctionAttributes attrs) Import Appsync Function from arn.the data source of this AppSync Function.the ARN of the AppSync function.the ID of the AppSync function.the name of this AppSync Function.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
Constructor Details
-
AppsyncFunction
protected AppsyncFunction(software.amazon.jsii.JsiiObjectRef objRef) -
AppsyncFunction
protected AppsyncFunction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
AppsyncFunction
@Stability(Stable) public AppsyncFunction(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AppsyncFunctionProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromAppsyncFunctionAttributes
@Stability(Stable) @NotNull public static IAppsyncFunction fromAppsyncFunctionAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AppsyncFunctionAttributes attrs) Import Appsync Function from arn.- Parameters:
scope- This parameter is required.id- This parameter is required.attrs- This parameter is required.
-
getDataSource
the data source of this AppSync Function. -
getFunctionArn
the ARN of the AppSync function.- Specified by:
getFunctionArnin interfaceIAppsyncFunction
-
getFunctionId
the ID of the AppSync function.- Specified by:
getFunctionIdin interfaceIAppsyncFunction
-
getFunctionName
the name of this AppSync Function.
-