From ef8bae6d5dbae1a68eb5247ce50a55024490471e Mon Sep 17 00:00:00 2001 From: Brian Flad Date: Thu, 29 Apr 2021 16:30:18 -0400 Subject: [PATCH] Apply suggestions from code review --- aws/resource_aws_appsync_resolver_test.go | 1 + website/docs/r/appsync_resolver.html.markdown | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/aws/resource_aws_appsync_resolver_test.go b/aws/resource_aws_appsync_resolver_test.go index c38e8833e03..2fef81c00b7 100644 --- a/aws/resource_aws_appsync_resolver_test.go +++ b/aws/resource_aws_appsync_resolver_test.go @@ -105,6 +105,7 @@ func TestAccAwsAppsyncResolver_DataSource_lambda(t *testing.T) { resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t); testAccPreCheckAWSAppSync(t) }, + ErrorCheck: testAccErrorCheck(t, appsync.EndpointsID), Providers: testAccProviders, CheckDestroy: testAccCheckAwsAppsyncResolverDestroy, Steps: []resource.TestStep{ diff --git a/website/docs/r/appsync_resolver.html.markdown b/website/docs/r/appsync_resolver.html.markdown index 1d619a0c7e8..a0db8878f70 100644 --- a/website/docs/r/appsync_resolver.html.markdown +++ b/website/docs/r/appsync_resolver.html.markdown @@ -108,8 +108,8 @@ The following arguments are supported: * `api_id` - (Required) The API ID for the GraphQL API. * `type` - (Required) The type name from the schema defined in the GraphQL API. * `field` - (Required) The field name from the schema defined in the GraphQL API. -* `request_template` - (Optional) The request mapping template for UNIT resolver or 'before mapping template' for PIPELINE resolver. -* `response_template` - (Optional) The response mapping template for UNIT resolver or 'after mapping template' for PIPELINE resolver. +* `request_template` - (Optional) The request mapping template for UNIT resolver or 'before mapping template' for PIPELINE resolver. Required for non-Lambda resolvers. +* `response_template` - (Optional) The response mapping template for UNIT resolver or 'after mapping template' for PIPELINE resolver. Required for non-Lambda resolvers. * `data_source` - (Optional) The DataSource name. * `kind` - (Optional) The resolver type. Valid values are `UNIT` and `PIPELINE`. * `pipeline_config` - (Optional) The PipelineConfig.