Api Cache Args
data class ApiCacheArgs(val apiCachingBehavior: Output<String>? = null, val apiId: Output<String>? = null, val atRestEncryptionEnabled: Output<Boolean>? = null, val transitEncryptionEnabled: Output<Boolean>? = null, val ttl: Output<Int>? = null, val type: Output<String>? = null) : ConvertibleToJava<ApiCacheArgs>
Provides an AppSync API Cache.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.appsync.GraphQLApi;
import com.pulumi.aws.appsync.GraphQLApiArgs;
import com.pulumi.aws.appsync.ApiCache;
import com.pulumi.aws.appsync.ApiCacheArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
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")
.build());
var exampleApiCache = new ApiCache("exampleApiCache", ApiCacheArgs.builder()
.apiId(exampleGraphQLApi.id())
.apiCachingBehavior("FULL_REQUEST_CACHING")
.type("LARGE")
.ttl(900)
.build());
}
}
Content copied to clipboard
Import
aws_appsync_api_cache
can be imported using the AppSync API ID, e.g.,
$ pulumi import aws:appsync/apiCache:ApiCache example xxxxx
Content copied to clipboard
Constructors
Properties
Link copied to clipboard
Caching behavior. Valid values are FULL_REQUEST_CACHING
and PER_RESOLVER_CACHING
.
Link copied to clipboard
At-rest encryption flag for cache. You cannot update this setting after creation.
Link copied to clipboard
Transit encryption flag when connecting to cache. You cannot update this setting after creation.