Interface CfnFunctionConfigurationProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFunctionConfigurationProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:49.432Z")
@Stability(Stable)
public interface CfnFunctionConfigurationProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnFunctionConfiguration.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appsync.*;
CfnFunctionConfigurationProps cfnFunctionConfigurationProps = CfnFunctionConfigurationProps.builder()
.apiId("apiId")
.dataSourceName("dataSourceName")
.name("name")
// the properties below are optional
.code("code")
.codeS3Location("codeS3Location")
.description("description")
.functionVersion("functionVersion")
.maxBatchSize(123)
.requestMappingTemplate("requestMappingTemplate")
.requestMappingTemplateS3Location("requestMappingTemplateS3Location")
.responseMappingTemplate("responseMappingTemplate")
.responseMappingTemplateS3Location("responseMappingTemplateS3Location")
.runtime(AppSyncRuntimeProperty.builder()
.name("name")
.runtimeVersion("runtimeVersion")
.build())
.syncConfig(SyncConfigProperty.builder()
.conflictDetection("conflictDetection")
// the properties below are optional
.conflictHandler("conflictHandler")
.lambdaConflictHandlerConfig(LambdaConflictHandlerConfigProperty.builder()
.lambdaConflictHandlerArn("lambdaConflictHandlerArn")
.build())
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnFunctionConfigurationPropsstatic final classAn implementation forCfnFunctionConfigurationProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()getApiId()The AWS AppSync GraphQL API that you want to attach using this function.default StringgetCode()Theresolvercode that contains the request and response functions.default StringThe Amazon S3 endpoint.The name of data source this function will attach.default StringTheFunctiondescription.default StringThe version of the request mapping template.default NumberThe maximum number of resolver request inputs that will be sent to a single AWS Lambda function in aBatchInvokeoperation.getName()The name of the function.default StringTheFunctionrequest mapping template.default StringDescribes a Sync configuration for a resolver.default StringTheFunctionresponse mapping template.default StringThe location of a response mapping template in an Amazon S3 bucket.default ObjectDescribes a runtime used by an AWS AppSync pipeline resolver or AWS AppSync function.default ObjectDescribes a Sync configuration for a resolver.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getApiId
The AWS AppSync GraphQL API that you want to attach using this function. -
getDataSourceName
The name of data source this function will attach. -
getName
The name of the function. -
getCode
Theresolvercode that contains the request and response functions.When code is used, the
runtimeis required. The runtime value must beAPPSYNC_JS. -
getCodeS3Location
The Amazon S3 endpoint. -
getDescription
TheFunctiondescription. -
getFunctionVersion
The version of the request mapping template.Currently, only the 2018-05-29 version of the template is supported.
-
getMaxBatchSize
The maximum number of resolver request inputs that will be sent to a single AWS Lambda function in aBatchInvokeoperation. -
getRequestMappingTemplate
TheFunctionrequest mapping template.Functions support only the 2018-05-29 version of the request mapping template.
-
getRequestMappingTemplateS3Location
Describes a Sync configuration for a resolver.Contains information on which Conflict Detection, as well as Resolution strategy, should be performed when the resolver is invoked.
-
getResponseMappingTemplate
TheFunctionresponse mapping template. -
getResponseMappingTemplateS3Location
The location of a response mapping template in an Amazon S3 bucket.Use this if you want to provision with a template file in Amazon S3 rather than embedding it in your CloudFormation template.
-
getRuntime
Describes a runtime used by an AWS AppSync pipeline resolver or AWS AppSync function.Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified.
-
getSyncConfig
Describes a Sync configuration for a resolver.Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is invoked.
-
builder
-