Provides an AppSync GraphQL API.
resource "aws_appsync_graphql_api" "example" { authentication_type = "API_KEY" name = "example" }
The following arguments are supported:
name
- (Required) A user-supplied name for the GraphqlApi. authentication_type
- (Required) The authentication type. Valid values: API_KEY
, AWS_IAM
and AMAZON_COGNITO_USER_POOLS
user_pool_config
- (Optional) The Amazon Cognito User Pool configuration. See below The following arguments are supported:
aws_region
- (Required) The AWS region in which the user pool was created. default_action
- (Required) The action that you want your GraphQL API to take when a request that uses Amazon Cognito User Pool authentication doesn't match the Amazon Cognito User Pool configuration. Valid: ALLOW
and DENY
user_pool_id
- (Required) The user pool ID. app_id_client_regex
- (Optional) A regular expression for validating the incoming Amazon Cognito User Pool app client ID. In addition to all arguments above, the following attributes are exported:
AppSync GraphQL API can be imported using the GraphQL API ID, e.g.
$ terraform import aws_appsync_graphql_api.example 0123456789
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/r/appsync_graphql_api.html