@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.675Z") @Stability(value=Stable) public class CfnFunctionConfiguration extends CfnResource implements IInspectable
The AWS::AppSync::FunctionConfiguration resource defines the functions in GraphQL APIs to perform certain operations. You can use pipeline resolvers to attach functions. For more information, see Pipeline Resolvers in the AWS AppSync Developer Guide .
When you submit an update, AWS CloudFormation updates resources based on differences between what you submit and the stack's current template. To cause this resource to be updated you must change a property value for this resource in the AWS CloudFormation template. Changing the Amazon S3 file content without changing a property value will not result in an update operation.
See Update Behaviors of Stack Resources in the AWS CloudFormation User Guide .
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.*;
CfnFunctionConfiguration cfnFunctionConfiguration = CfnFunctionConfiguration.Builder.create(this, "MyCfnFunctionConfiguration")
.apiId("apiId")
.dataSourceName("dataSourceName")
.functionVersion("functionVersion")
.name("name")
// the properties below are optional
.description("description")
.maxBatchSize(123)
.requestMappingTemplate("requestMappingTemplate")
.requestMappingTemplateS3Location("requestMappingTemplateS3Location")
.responseMappingTemplate("responseMappingTemplate")
.responseMappingTemplateS3Location("responseMappingTemplateS3Location")
.syncConfig(SyncConfigProperty.builder()
.conflictDetection("conflictDetection")
// the properties below are optional
.conflictHandler("conflictHandler")
.lambdaConflictHandlerConfig(LambdaConflictHandlerConfigProperty.builder()
.lambdaConflictHandlerArn("lambdaConflictHandlerArn")
.build())
.build())
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnFunctionConfiguration.Builder
A fluent builder for
CfnFunctionConfiguration. |
static interface |
CfnFunctionConfiguration.LambdaConflictHandlerConfigProperty
The `LambdaConflictHandlerConfig` object when configuring `LAMBDA` as the Conflict Handler.
|
static interface |
CfnFunctionConfiguration.SyncConfigProperty
Describes a Sync configuration for a resolver.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnFunctionConfiguration(software.constructs.Construct scope,
String id,
CfnFunctionConfigurationProps props)
Create a new `AWS::AppSync::FunctionConfiguration`.
|
protected |
CfnFunctionConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnFunctionConfiguration(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getApiId()
The AWS AppSync GraphQL API that you want to attach using this function.
|
String |
getAttrDataSourceName()
The name of data source this function will attach.
|
String |
getAttrFunctionArn()
ARN of the function, such as `arn:aws:appsync:us-east-1:123456789012:apis/graphqlapiid/functions/functionId` .
|
String |
getAttrFunctionId()
The unique ID of this function.
|
String |
getAttrName()
The name of the function.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDataSourceName()
The name of data source this function will attach.
|
String |
getDescription()
The `Function` description.
|
String |
getFunctionVersion()
The version of the request mapping template.
|
Number |
getMaxBatchSize()
The maximum number of resolver request inputs that will be sent to a single AWS Lambda function in a `BatchInvoke` operation.
|
String |
getName()
The name of the function.
|
String |
getRequestMappingTemplate()
The `Function` request mapping template.
|
String |
getRequestMappingTemplateS3Location()
Describes a Sync configuration for a resolver.
|
String |
getResponseMappingTemplate()
The `Function` response mapping template.
|
String |
getResponseMappingTemplateS3Location()
The location of a response mapping template in an Amazon S3 bucket.
|
Object |
getSyncConfig()
Describes a Sync configuration for a resolver.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setApiId(String value)
The AWS AppSync GraphQL API that you want to attach using this function.
|
void |
setDataSourceName(String value)
The name of data source this function will attach.
|
void |
setDescription(String value)
The `Function` description.
|
void |
setFunctionVersion(String value)
The version of the request mapping template.
|
void |
setMaxBatchSize(Number value)
The maximum number of resolver request inputs that will be sent to a single AWS Lambda function in a `BatchInvoke` operation.
|
void |
setName(String value)
The name of the function.
|
void |
setRequestMappingTemplate(String value)
The `Function` request mapping template.
|
void |
setRequestMappingTemplateS3Location(String value)
Describes a Sync configuration for a resolver.
|
void |
setResponseMappingTemplate(String value)
The `Function` response mapping template.
|
void |
setResponseMappingTemplateS3Location(String value)
The location of a response mapping template in an Amazon S3 bucket.
|
void |
setSyncConfig(CfnFunctionConfiguration.SyncConfigProperty value)
Describes a Sync configuration for a resolver.
|
void |
setSyncConfig(IResolvable value)
Describes a Sync configuration for a resolver.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnFunctionConfiguration(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnFunctionConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnFunctionConfiguration(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnFunctionConfigurationProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrDataSourceName()
@Stability(value=Stable) @NotNull public String getAttrFunctionArn()
@Stability(value=Stable) @NotNull public String getAttrFunctionId()
@Stability(value=Stable) @NotNull public String getAttrName()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getApiId()
@Stability(value=Stable)
public void setApiId(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getDataSourceName()
@Stability(value=Stable)
public void setDataSourceName(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getFunctionVersion()
Currently, only the 2018-05-29 version of the template is supported.
@Stability(value=Stable)
public void setFunctionVersion(@NotNull
String value)
Currently, only the 2018-05-29 version of the template is supported.
@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public Number getMaxBatchSize()
@Stability(value=Stable)
public void setMaxBatchSize(@Nullable
Number value)
@Stability(value=Stable) @Nullable public String getRequestMappingTemplate()
Functions support only the 2018-05-29 version of the request mapping template.
@Stability(value=Stable)
public void setRequestMappingTemplate(@Nullable
String value)
Functions support only the 2018-05-29 version of the request mapping template.
@Stability(value=Stable) @Nullable public String getRequestMappingTemplateS3Location()
Contains information on which Conflict Detection, as well as Resolution strategy, should be performed when the resolver is invoked.
@Stability(value=Stable)
public void setRequestMappingTemplateS3Location(@Nullable
String value)
Contains information on which Conflict Detection, as well as Resolution strategy, should be performed when the resolver is invoked.
@Stability(value=Stable) @Nullable public String getResponseMappingTemplate()
@Stability(value=Stable)
public void setResponseMappingTemplate(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getResponseMappingTemplateS3Location()
Use this if you want to provision with a template file in Amazon S3 rather than embedding it in your CloudFormation template.
@Stability(value=Stable)
public void setResponseMappingTemplateS3Location(@Nullable
String value)
Use this if you want to provision with a template file in Amazon S3 rather than embedding it in your CloudFormation template.
@Stability(value=Stable) @Nullable public Object getSyncConfig()
Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is invoked.
@Stability(value=Stable)
public void setSyncConfig(@Nullable
CfnFunctionConfiguration.SyncConfigProperty value)
Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is invoked.
@Stability(value=Stable)
public void setSyncConfig(@Nullable
IResolvable value)
Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is invoked.
Copyright © 2022. All rights reserved.