AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.10.0 published on Monday, Jul 11, 2022 by Pulumi

Function

Provides an AppSync Function.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var exampleGraphQLApi = new Aws.AppSync.GraphQLApi("exampleGraphQLApi", new Aws.AppSync.GraphQLApiArgs
        {
            AuthenticationType = "API_KEY",
            Schema = @"type Mutation {
  putPost(id: ID!, title: String!): Post
}

type Post {
  id: ID!
  title: String!
}

type Query {
  singlePost(id: ID!): Post
}

schema {
  query: Query
  mutation: Mutation
}
",
        });
        var exampleDataSource = new Aws.AppSync.DataSource("exampleDataSource", new Aws.AppSync.DataSourceArgs
        {
            ApiId = exampleGraphQLApi.Id,
            Name = "example",
            Type = "HTTP",
            HttpConfig = new Aws.AppSync.Inputs.DataSourceHttpConfigArgs
            {
                Endpoint = "http://example.com",
            },
        });
        var exampleFunction = new Aws.AppSync.Function("exampleFunction", new Aws.AppSync.FunctionArgs
        {
            ApiId = exampleGraphQLApi.Id,
            DataSource = exampleDataSource.Name,
            Name = "example",
            RequestMappingTemplate = @"{
    ""version"": ""2018-05-29"",
    ""method"": ""GET"",
    ""resourcePath"": ""/"",
    ""params"":{
        ""headers"": $utils.http.copyheaders($ctx.request.headers)
    }
}
",
            ResponseMappingTemplate = @"#if($ctx.result.statusCode == 200)
    $ctx.result.body
#else
    $utils.appendError($ctx.result.body, $ctx.result.statusCode)
#end
",
        });
    }

}
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/appsync"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleGraphQLApi, err := appsync.NewGraphQLApi(ctx, "exampleGraphQLApi", &appsync.GraphQLApiArgs{
			AuthenticationType: pulumi.String("API_KEY"),
			Schema:             pulumi.String(fmt.Sprintf("%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v", "type Mutation {\n", "  putPost(id: ID!, title: String!): Post\n", "}\n", "\n", "type Post {\n", "  id: ID!\n", "  title: String!\n", "}\n", "\n", "type Query {\n", "  singlePost(id: ID!): Post\n", "}\n", "\n", "schema {\n", "  query: Query\n", "  mutation: Mutation\n", "}\n")),
		})
		if err != nil {
			return err
		}
		exampleDataSource, err := appsync.NewDataSource(ctx, "exampleDataSource", &appsync.DataSourceArgs{
			ApiId: exampleGraphQLApi.ID(),
			Name:  pulumi.String("example"),
			Type:  pulumi.String("HTTP"),
			HttpConfig: &appsync.DataSourceHttpConfigArgs{
				Endpoint: pulumi.String("http://example.com"),
			},
		})
		if err != nil {
			return err
		}
		_, err = appsync.NewFunction(ctx, "exampleFunction", &appsync.FunctionArgs{
			ApiId:                   exampleGraphQLApi.ID(),
			DataSource:              exampleDataSource.Name,
			Name:                    pulumi.String("example"),
			RequestMappingTemplate:  pulumi.String(fmt.Sprintf("%v%v%v%v%v%v%v%v%v%v%v%v", "{\n", "    \"version\": \"2018-05-29\",\n", "    \"method\": \"GET\",\n", "    \"resourcePath\": \"/\",\n", "    \"params\":{\n", "        \"headers\": ", "$", "utils.http.copyheaders(", "$", "ctx.request.headers)\n", "    }\n", "}\n")),
			ResponseMappingTemplate: pulumi.String(fmt.Sprintf("%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v", "#if(", "$", "ctx.result.statusCode == 200)\n", "    ", "$", "ctx.result.body\n", "#else\n", "    ", "$", "utils.appendError(", "$", "ctx.result.body, ", "$", "ctx.result.statusCode)\n", "#end\n")),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var exampleGraphQLApi = new GraphQLApi("exampleGraphQLApi", GraphQLApiArgs.builder()        
            .authenticationType("API_KEY")
            .schema("""
type Mutation {
  putPost(id: ID!, title: String!): Post
}

type Post {
  id: ID!
  title: String!
}

type Query {
  singlePost(id: ID!): Post
}

schema {
  query: Query
  mutation: Mutation
}
            """)
            .build());

        var exampleDataSource = new DataSource("exampleDataSource", DataSourceArgs.builder()        
            .apiId(exampleGraphQLApi.id())
            .name("example")
            .type("HTTP")
            .httpConfig(DataSourceHttpConfigArgs.builder()
                .endpoint("http://example.com")
                .build())
            .build());

        var exampleFunction = new Function("exampleFunction", FunctionArgs.builder()        
            .apiId(exampleGraphQLApi.id())
            .dataSource(exampleDataSource.name())
            .name("example")
            .requestMappingTemplate("""
{
    "version": "2018-05-29",
    "method": "GET",
    "resourcePath": "/",
    "params":{
        "headers": $utils.http.copyheaders($ctx.request.headers)
    }
}
            """)
            .responseMappingTemplate("""
#if($ctx.result.statusCode == 200)
    $ctx.result.body
#else
    $utils.appendError($ctx.result.body, $ctx.result.statusCode)
#end
            """)
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example_graph_ql_api = aws.appsync.GraphQLApi("exampleGraphQLApi",
    authentication_type="API_KEY",
    schema="""type Mutation {
  putPost(id: ID!, title: String!): Post
}

type Post {
  id: ID!
  title: String!
}

type Query {
  singlePost(id: ID!): Post
}

schema {
  query: Query
  mutation: Mutation
}
""")
example_data_source = aws.appsync.DataSource("exampleDataSource",
    api_id=example_graph_ql_api.id,
    name="example",
    type="HTTP",
    http_config=aws.appsync.DataSourceHttpConfigArgs(
        endpoint="http://example.com",
    ))
example_function = aws.appsync.Function("exampleFunction",
    api_id=example_graph_ql_api.id,
    data_source=example_data_source.name,
    name="example",
    request_mapping_template="""{
    "version": "2018-05-29",
    "method": "GET",
    "resourcePath": "/",
    "params":{
        "headers": $utils.http.copyheaders($ctx.request.headers)
    }
}
""",
    response_mapping_template="""#if($ctx.result.statusCode == 200)
    $ctx.result.body
#else
    $utils.appendError($ctx.result.body, $ctx.result.statusCode)
#end
""")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const exampleGraphQLApi = new aws.appsync.GraphQLApi("exampleGraphQLApi", {
    authenticationType: "API_KEY",
    schema: `type Mutation {
  putPost(id: ID!, title: String!): Post
}

type Post {
  id: ID!
  title: String!
}

type Query {
  singlePost(id: ID!): Post
}

schema {
  query: Query
  mutation: Mutation
}
`,
});
const exampleDataSource = new aws.appsync.DataSource("exampleDataSource", {
    apiId: exampleGraphQLApi.id,
    name: "example",
    type: "HTTP",
    httpConfig: {
        endpoint: "http://example.com",
    },
});
const exampleFunction = new aws.appsync.Function("exampleFunction", {
    apiId: exampleGraphQLApi.id,
    dataSource: exampleDataSource.name,
    name: "example",
    requestMappingTemplate: `{
    "version": "2018-05-29",
    "method": "GET",
    "resourcePath": "/",
    "params":{
        "headers": $utils.http.copyheaders($ctx.request.headers)
    }
}
`,
    responseMappingTemplate: `#if($ctx.result.statusCode == 200)
    $ctx.result.body
#else
    $utils.appendError($ctx.result.body, $ctx.result.statusCode)
#end
`,
});
resources:
  exampleGraphQLApi:
    type: aws:appsync:GraphQLApi
    properties:
      authenticationType: API_KEY
      schema: |
        type Mutation {
          putPost(id: ID!, title: String!): Post
        }

        type Post {
          id: ID!
          title: String!
        }

        type Query {
          singlePost(id: ID!): Post
        }

        schema {
          query: Query
          mutation: Mutation
        }        
  exampleDataSource:
    type: aws:appsync:DataSource
    properties:
      apiId: ${exampleGraphQLApi.id}
      name: example
      type: HTTP
      httpConfig:
        endpoint: http://example.com
  exampleFunction:
    type: aws:appsync:Function
    properties:
      apiId: ${exampleGraphQLApi.id}
      dataSource: ${exampleDataSource.name}
      name: example
      requestMappingTemplate: |
        {
            "version": "2018-05-29",
            "method": "GET",
            "resourcePath": "/",
            "params":{
                "headers": $utils.http.copyheaders($ctx.request.headers)
            }
        }        
      responseMappingTemplate: |
        #if($ctx.result.statusCode == 200)
            $ctx.result.body
        #else
            $utils.appendError($ctx.result.body, $ctx.result.statusCode)
        #end        

Create a Function Resource

new Function(name: string, args: FunctionArgs, opts?: CustomResourceOptions);
@overload
def Function(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             api_id: Optional[str] = None,
             data_source: Optional[str] = None,
             description: Optional[str] = None,
             function_version: Optional[str] = None,
             max_batch_size: Optional[int] = None,
             name: Optional[str] = None,
             request_mapping_template: Optional[str] = None,
             response_mapping_template: Optional[str] = None,
             sync_config: Optional[FunctionSyncConfigArgs] = None)
@overload
def Function(resource_name: str,
             args: FunctionArgs,
             opts: Optional[ResourceOptions] = None)
func NewFunction(ctx *Context, name string, args FunctionArgs, opts ...ResourceOption) (*Function, error)
public Function(string name, FunctionArgs args, CustomResourceOptions? opts = null)
public Function(String name, FunctionArgs args)
public Function(String name, FunctionArgs args, CustomResourceOptions options)
type: aws:appsync:Function
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args FunctionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args FunctionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args FunctionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args FunctionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args FunctionArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Function Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Function resource accepts the following input properties:

ApiId string

The ID of the associated AppSync API.

DataSource string

The Function DataSource name.

RequestMappingTemplate string

The Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.

ResponseMappingTemplate string

The Function response mapping template.

Description string

The Function description.

FunctionVersion string

The version of the request mapping template. Currently the supported value is 2018-05-29.

MaxBatchSize int

The maximum batching size for a resolver. Valid values are between 0 and 2000.

Name string

The Function name. The function name does not have to be unique.

SyncConfig FunctionSyncConfigArgs

Describes a Sync configuration for a resolver. See Sync Config.

ApiId string

The ID of the associated AppSync API.

DataSource string

The Function DataSource name.

RequestMappingTemplate string

The Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.

ResponseMappingTemplate string

The Function response mapping template.

Description string

The Function description.

FunctionVersion string

The version of the request mapping template. Currently the supported value is 2018-05-29.

MaxBatchSize int

The maximum batching size for a resolver. Valid values are between 0 and 2000.

Name string

The Function name. The function name does not have to be unique.

SyncConfig FunctionSyncConfigArgs

Describes a Sync configuration for a resolver. See Sync Config.

apiId String

The ID of the associated AppSync API.

dataSource String

The Function DataSource name.

requestMappingTemplate String

The Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.

responseMappingTemplate String

The Function response mapping template.

description String

The Function description.

functionVersion String

The version of the request mapping template. Currently the supported value is 2018-05-29.

maxBatchSize Integer

The maximum batching size for a resolver. Valid values are between 0 and 2000.

name String

The Function name. The function name does not have to be unique.

syncConfig FunctionSyncConfigArgs

Describes a Sync configuration for a resolver. See Sync Config.

apiId string

The ID of the associated AppSync API.

dataSource string

The Function DataSource name.

requestMappingTemplate string

The Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.

responseMappingTemplate string

The Function response mapping template.

description string

The Function description.

functionVersion string

The version of the request mapping template. Currently the supported value is 2018-05-29.

maxBatchSize number

The maximum batching size for a resolver. Valid values are between 0 and 2000.

name string

The Function name. The function name does not have to be unique.

syncConfig FunctionSyncConfigArgs

Describes a Sync configuration for a resolver. See Sync Config.

api_id str

The ID of the associated AppSync API.

data_source str

The Function DataSource name.

request_mapping_template str

The Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.

response_mapping_template str

The Function response mapping template.

description str

The Function description.

function_version str

The version of the request mapping template. Currently the supported value is 2018-05-29.

max_batch_size int

The maximum batching size for a resolver. Valid values are between 0 and 2000.

name str

The Function name. The function name does not have to be unique.

sync_config FunctionSyncConfigArgs

Describes a Sync configuration for a resolver. See Sync Config.

apiId String

The ID of the associated AppSync API.

dataSource String

The Function DataSource name.

requestMappingTemplate String

The Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.

responseMappingTemplate String

The Function response mapping template.

description String

The Function description.

functionVersion String

The version of the request mapping template. Currently the supported value is 2018-05-29.

maxBatchSize Number

The maximum batching size for a resolver. Valid values are between 0 and 2000.

name String

The Function name. The function name does not have to be unique.

syncConfig Property Map

Describes a Sync configuration for a resolver. See Sync Config.

Outputs

All input properties are implicitly available as output properties. Additionally, the Function resource produces the following output properties:

Arn string

The ARN of the Function object.

FunctionId string

A unique ID representing the Function object.

Id string

The provider-assigned unique ID for this managed resource.

Arn string

The ARN of the Function object.

FunctionId string

A unique ID representing the Function object.

Id string

The provider-assigned unique ID for this managed resource.

arn String

The ARN of the Function object.

functionId String

A unique ID representing the Function object.

id String

The provider-assigned unique ID for this managed resource.

arn string

The ARN of the Function object.

functionId string

A unique ID representing the Function object.

id string

The provider-assigned unique ID for this managed resource.

arn str

The ARN of the Function object.

function_id str

A unique ID representing the Function object.

id str

The provider-assigned unique ID for this managed resource.

arn String

The ARN of the Function object.

functionId String

A unique ID representing the Function object.

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing Function Resource

Get an existing Function resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: FunctionState, opts?: CustomResourceOptions): Function
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        api_id: Optional[str] = None,
        arn: Optional[str] = None,
        data_source: Optional[str] = None,
        description: Optional[str] = None,
        function_id: Optional[str] = None,
        function_version: Optional[str] = None,
        max_batch_size: Optional[int] = None,
        name: Optional[str] = None,
        request_mapping_template: Optional[str] = None,
        response_mapping_template: Optional[str] = None,
        sync_config: Optional[FunctionSyncConfigArgs] = None) -> Function
func GetFunction(ctx *Context, name string, id IDInput, state *FunctionState, opts ...ResourceOption) (*Function, error)
public static Function Get(string name, Input<string> id, FunctionState? state, CustomResourceOptions? opts = null)
public static Function get(String name, Output<String> id, FunctionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
ApiId string

The ID of the associated AppSync API.

Arn string

The ARN of the Function object.

DataSource string

The Function DataSource name.

Description string

The Function description.

FunctionId string

A unique ID representing the Function object.

FunctionVersion string

The version of the request mapping template. Currently the supported value is 2018-05-29.

MaxBatchSize int

The maximum batching size for a resolver. Valid values are between 0 and 2000.

Name string

The Function name. The function name does not have to be unique.

RequestMappingTemplate string

The Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.

ResponseMappingTemplate string

The Function response mapping template.

SyncConfig FunctionSyncConfigArgs

Describes a Sync configuration for a resolver. See Sync Config.

ApiId string

The ID of the associated AppSync API.

Arn string

The ARN of the Function object.

DataSource string

The Function DataSource name.

Description string

The Function description.

FunctionId string

A unique ID representing the Function object.

FunctionVersion string

The version of the request mapping template. Currently the supported value is 2018-05-29.

MaxBatchSize int

The maximum batching size for a resolver. Valid values are between 0 and 2000.

Name string

The Function name. The function name does not have to be unique.

RequestMappingTemplate string

The Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.

ResponseMappingTemplate string

The Function response mapping template.

SyncConfig FunctionSyncConfigArgs

Describes a Sync configuration for a resolver. See Sync Config.

apiId String

The ID of the associated AppSync API.

arn String

The ARN of the Function object.

dataSource String

The Function DataSource name.

description String

The Function description.

functionId String

A unique ID representing the Function object.

functionVersion String

The version of the request mapping template. Currently the supported value is 2018-05-29.

maxBatchSize Integer

The maximum batching size for a resolver. Valid values are between 0 and 2000.

name String

The Function name. The function name does not have to be unique.

requestMappingTemplate String

The Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.

responseMappingTemplate String

The Function response mapping template.

syncConfig FunctionSyncConfigArgs

Describes a Sync configuration for a resolver. See Sync Config.

apiId string

The ID of the associated AppSync API.

arn string

The ARN of the Function object.

dataSource string

The Function DataSource name.

description string

The Function description.

functionId string

A unique ID representing the Function object.

functionVersion string

The version of the request mapping template. Currently the supported value is 2018-05-29.

maxBatchSize number

The maximum batching size for a resolver. Valid values are between 0 and 2000.

name string

The Function name. The function name does not have to be unique.

requestMappingTemplate string

The Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.

responseMappingTemplate string

The Function response mapping template.

syncConfig FunctionSyncConfigArgs

Describes a Sync configuration for a resolver. See Sync Config.

api_id str

The ID of the associated AppSync API.

arn str

The ARN of the Function object.

data_source str

The Function DataSource name.

description str

The Function description.

function_id str

A unique ID representing the Function object.

function_version str

The version of the request mapping template. Currently the supported value is 2018-05-29.

max_batch_size int

The maximum batching size for a resolver. Valid values are between 0 and 2000.

name str

The Function name. The function name does not have to be unique.

request_mapping_template str

The Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.

response_mapping_template str

The Function response mapping template.

sync_config FunctionSyncConfigArgs

Describes a Sync configuration for a resolver. See Sync Config.

apiId String

The ID of the associated AppSync API.

arn String

The ARN of the Function object.

dataSource String

The Function DataSource name.

description String

The Function description.

functionId String

A unique ID representing the Function object.

functionVersion String

The version of the request mapping template. Currently the supported value is 2018-05-29.

maxBatchSize Number

The maximum batching size for a resolver. Valid values are between 0 and 2000.

name String

The Function name. The function name does not have to be unique.

requestMappingTemplate String

The Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.

responseMappingTemplate String

The Function response mapping template.

syncConfig Property Map

Describes a Sync configuration for a resolver. See Sync Config.

Supporting Types

FunctionSyncConfig

ConflictDetection string

The Conflict Detection strategy to use. Valid values are NONE and VERSION.

ConflictHandler string

The Conflict Resolution strategy to perform in the event of a conflict. Valid values are NONE, OPTIMISTIC_CONCURRENCY, AUTOMERGE, and LAMBDA.

LambdaConflictHandlerConfig FunctionSyncConfigLambdaConflictHandlerConfig

The Lambda Conflict Handler Config when configuring LAMBDA as the Conflict Handler. See Lambda Conflict Handler Config.

ConflictDetection string

The Conflict Detection strategy to use. Valid values are NONE and VERSION.

ConflictHandler string

The Conflict Resolution strategy to perform in the event of a conflict. Valid values are NONE, OPTIMISTIC_CONCURRENCY, AUTOMERGE, and LAMBDA.

LambdaConflictHandlerConfig FunctionSyncConfigLambdaConflictHandlerConfig

The Lambda Conflict Handler Config when configuring LAMBDA as the Conflict Handler. See Lambda Conflict Handler Config.

conflictDetection String

The Conflict Detection strategy to use. Valid values are NONE and VERSION.

conflictHandler String

The Conflict Resolution strategy to perform in the event of a conflict. Valid values are NONE, OPTIMISTIC_CONCURRENCY, AUTOMERGE, and LAMBDA.

lambdaConflictHandlerConfig FunctionSyncConfigLambdaConflictHandlerConfig

The Lambda Conflict Handler Config when configuring LAMBDA as the Conflict Handler. See Lambda Conflict Handler Config.

conflictDetection string

The Conflict Detection strategy to use. Valid values are NONE and VERSION.

conflictHandler string

The Conflict Resolution strategy to perform in the event of a conflict. Valid values are NONE, OPTIMISTIC_CONCURRENCY, AUTOMERGE, and LAMBDA.

lambdaConflictHandlerConfig FunctionSyncConfigLambdaConflictHandlerConfig

The Lambda Conflict Handler Config when configuring LAMBDA as the Conflict Handler. See Lambda Conflict Handler Config.

conflict_detection str

The Conflict Detection strategy to use. Valid values are NONE and VERSION.

conflict_handler str

The Conflict Resolution strategy to perform in the event of a conflict. Valid values are NONE, OPTIMISTIC_CONCURRENCY, AUTOMERGE, and LAMBDA.

lambda_conflict_handler_config FunctionSyncConfigLambdaConflictHandlerConfig

The Lambda Conflict Handler Config when configuring LAMBDA as the Conflict Handler. See Lambda Conflict Handler Config.

conflictDetection String

The Conflict Detection strategy to use. Valid values are NONE and VERSION.

conflictHandler String

The Conflict Resolution strategy to perform in the event of a conflict. Valid values are NONE, OPTIMISTIC_CONCURRENCY, AUTOMERGE, and LAMBDA.

lambdaConflictHandlerConfig Property Map

The Lambda Conflict Handler Config when configuring LAMBDA as the Conflict Handler. See Lambda Conflict Handler Config.

FunctionSyncConfigLambdaConflictHandlerConfig

LambdaConflictHandlerArn string

The Amazon Resource Name (ARN) for the Lambda function to use as the Conflict Handler.

LambdaConflictHandlerArn string

The Amazon Resource Name (ARN) for the Lambda function to use as the Conflict Handler.

lambdaConflictHandlerArn String

The Amazon Resource Name (ARN) for the Lambda function to use as the Conflict Handler.

lambdaConflictHandlerArn string

The Amazon Resource Name (ARN) for the Lambda function to use as the Conflict Handler.

lambda_conflict_handler_arn str

The Amazon Resource Name (ARN) for the Lambda function to use as the Conflict Handler.

lambdaConflictHandlerArn String

The Amazon Resource Name (ARN) for the Lambda function to use as the Conflict Handler.

Import

aws_appsync_function can be imported using the AppSync API ID and Function ID separated by -, e.g.,

 $ pulumi import aws:appsync/function:Function example xxxxx-yyyyy

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.