Skip to content

Commit

Permalink
fix docstring formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
TonySherman committed Aug 22, 2024
1 parent 6e59e14 commit 2f9d274
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import * as path from 'path';
import * as cdk from 'aws-cdk-lib';
import { IntegTest } from '@aws-cdk/integ-tests-alpha';
import * as appsync from 'aws-cdk-lib/aws-appsync';

const app = new cdk.App();
const stack = new cdk.Stack(app, 'stack');

const api = new appsync.GraphqlApi(stack, 'baseAPI', {
name: 'baseAPI',
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.test.graphql')),
});

new appsync.ApiCache(stack, 'apiCache', {
apiId: api.apiId,
apiCachingBehavior: appsync.CacheBehavior.FULL_REQUEST_CACHING,
type: appsync.CacheType.LARGE,
ttl: 60,
});

new IntegTest(app, 'api', {
testCases: [stack],
});

app.synth();
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-appsync/lib/api-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { CfnApiCache } from './appsync.generated';
* enum with all Api Caching Behavior values
*/
export enum CacheBehavior {
/*
/**
* FULL_REQUEST_CACHING: All requests are fully cached.
*/
FULL_REQUEST_CACHING = 'FULL_REQUEST_CACHING',
Expand Down

0 comments on commit 2f9d274

Please sign in to comment.