@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-28T21:34:30.661Z") public class AppsyncFunction extends Resource implements IAppsyncFunction
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();
Modifier and Type | Class and Description |
---|---|
static class |
AppsyncFunction.Builder
(experimental) A fluent builder for
AppsyncFunction . |
IAppsyncFunction.Jsii$Default, IAppsyncFunction.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
AppsyncFunction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AppsyncFunction(software.amazon.jsii.JsiiObjectRef objRef) |
|
AppsyncFunction(software.constructs.Construct scope,
java.lang.String id,
AppsyncFunctionProps props) |
Modifier and Type | Method and Description |
---|---|
static IAppsyncFunction |
fromAppsyncFunctionAttributes(software.constructs.Construct scope,
java.lang.String id,
AppsyncFunctionAttributes attrs)
(experimental) Import Appsync Function from arn.
|
BaseDataSource |
getDataSource()
(experimental) the data source of this AppSync Function.
|
java.lang.String |
getFunctionArn()
(experimental) the ARN of the AppSync function.
|
java.lang.String |
getFunctionId()
(experimental) the ID of the AppSync function.
|
java.lang.String |
getFunctionName()
(experimental) the name of this AppSync Function.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected AppsyncFunction(software.amazon.jsii.JsiiObjectRef objRef)
protected AppsyncFunction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public AppsyncFunction(software.constructs.Construct scope, java.lang.String id, AppsyncFunctionProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public static IAppsyncFunction fromAppsyncFunctionAttributes(software.constructs.Construct scope, java.lang.String id, AppsyncFunctionAttributes attrs)
scope
- This parameter is required.id
- This parameter is required.attrs
- This parameter is required.public BaseDataSource getDataSource()
public java.lang.String getFunctionArn()
getFunctionArn
in interface IAppsyncFunction
public java.lang.String getFunctionId()
getFunctionId
in interface IAppsyncFunction
public java.lang.String getFunctionName()