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
Modifier and TypeClassDescriptionstatic final class
(experimental) A fluent builder forAppsyncFunction
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.appsync.IAppsyncFunction
IAppsyncFunction.Jsii$Default, IAppsyncFunction.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
AppsyncFunction
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
AppsyncFunction
(software.amazon.jsii.JsiiObjectRef objRef) AppsyncFunction
(software.constructs.Construct scope, String id, AppsyncFunctionProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IAppsyncFunction
fromAppsyncFunctionAttributes
(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, isResource
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.constructs.Construct
toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.awscdk.core.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStack
Methods 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:
getFunctionArn
in interfaceIAppsyncFunction
-
getFunctionId
(experimental) the ID of the AppSync function.- Specified by:
getFunctionId
in interfaceIAppsyncFunction
-
getFunctionName
(experimental) the name of this AppSync Function.
-