Resource: aws_appsync_api_cache

Provides an AppSync API Cache.

Example Usage

resource "aws_appsync_graphql_api" "example" {
  authentication_type = "API_KEY"
  name                = "example"
}

resource "aws_appsync_api_cache" "example" {
  api_id               = aws_appsync_graphql_api.example.id
  api_caching_behavior = "FULL_REQUEST_CACHING"
  type                 = "LARGE"
  ttl                  = 900
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import aws_appsync_api_cache using the AppSync API ID. For example:

import {
  to = aws_appsync_api_cache.example
  id = "xxxxx"
}

Using terraform import, import aws_appsync_api_cache using the AppSync API ID. For example:

% terraform import aws_appsync_api_cache.example xxxxx