@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:02.987Z") @Stability(value=Experimental) 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. |
software.amazon.jsii.JsiiObject.InitializationModeIAppsyncFunction.Jsii$Default, IAppsyncFunction.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
AppsyncFunction(software.constructs.Construct scope,
String id,
AppsyncFunctionProps props) |
protected |
AppsyncFunction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AppsyncFunction(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static IAppsyncFunction |
fromAppsyncFunctionAttributes(software.constructs.Construct scope,
String id,
AppsyncFunctionAttributes attrs)
(experimental) Import Appsync Function from arn.
|
BaseDataSource |
getDataSource()
(experimental) the data source of this AppSync Function.
|
String |
getFunctionArn()
(experimental) the ARN of the AppSync function.
|
String |
getFunctionId()
(experimental) the ID of the AppSync function.
|
String |
getFunctionName()
(experimental) the name of this AppSync Function.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackgetNodeprotected AppsyncFunction(software.amazon.jsii.JsiiObjectRef objRef)
protected AppsyncFunction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public AppsyncFunction(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
AppsyncFunctionProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public static IAppsyncFunction fromAppsyncFunctionAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AppsyncFunctionAttributes attrs)
scope - This parameter is required.id - This parameter is required.attrs - This parameter is required.@Stability(value=Experimental) @NotNull public BaseDataSource getDataSource()
@Stability(value=Experimental) @NotNull public String getFunctionArn()
getFunctionArn in interface IAppsyncFunction@Stability(value=Experimental) @NotNull public String getFunctionId()
getFunctionId in interface IAppsyncFunction@Stability(value=Experimental) @NotNull public String getFunctionName()
Copyright © 2022. All rights reserved.