Class AppsyncFunction
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Resource
software.amazon.awscdk.services.appsync.AppsyncFunction
- All Implemented Interfaces:
IConstruct,IDependable,IResource,IAppsyncFunction,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:49.352Z")
@Stability(Experimental)
public class AppsyncFunction
extends Resource
implements IAppsyncFunction
(experimental) 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 ClassesModifier and TypeClassDescriptionstatic final class(experimental) A fluent builder forAppsyncFunction.Nested 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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default -
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) (experimental) Import Appsync Function from arn.(experimental) the data source of this AppSync Function.(experimental) the ARN of the AppSync function.(experimental) the ID of the AppSync function.(experimental) the name of this AppSync Function.Methods inherited from class software.amazon.awscdk.core.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourceMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.constructs.Construct
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.amazon.awscdk.core.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
AppsyncFunction
protected AppsyncFunction(software.amazon.jsii.JsiiObjectRef objRef) -
AppsyncFunction
protected AppsyncFunction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
AppsyncFunction
@Stability(Experimental) 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(Experimental) @NotNull public static IAppsyncFunction fromAppsyncFunctionAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AppsyncFunctionAttributes attrs) (experimental) Import Appsync Function from arn.- Parameters:
scope- This parameter is required.id- This parameter is required.attrs- This parameter is required.
-
getDataSource
(experimental) the data source of this AppSync Function. -
getFunctionArn
(experimental) the ARN of the AppSync function.- Specified by:
getFunctionArnin interfaceIAppsyncFunction
-
getFunctionId
(experimental) the ID of the AppSync function.- Specified by:
getFunctionIdin interfaceIAppsyncFunction
-
getFunctionName
(experimental) the name of this AppSync Function.
-