diff --git a/types/aws-cloudfront-function/aws-cloudfront-function-tests.ts b/types/aws-cloudfront-function/aws-cloudfront-function-tests.ts index b5da066f0a0c0f..292b41b02c9334 100644 --- a/types/aws-cloudfront-function/aws-cloudfront-function-tests.ts +++ b/types/aws-cloudfront-function/aws-cloudfront-function-tests.ts @@ -138,6 +138,7 @@ function handler2(event: AWSCloudFrontFunction.Event): AWSCloudFrontFunction.Req import cf from "cloudfront"; const kvsHandle = cf.kvs("example-kvs-id"); +const defaultKvsHandle = cf.kvs(); async function handler3( event: AWSCloudFrontFunction.Event, diff --git a/types/aws-cloudfront-function/index.d.ts b/types/aws-cloudfront-function/index.d.ts index aad317719bfc16..c64ba80eafaf3f 100644 --- a/types/aws-cloudfront-function/index.d.ts +++ b/types/aws-cloudfront-function/index.d.ts @@ -63,10 +63,10 @@ declare namespace AWSCloudFrontFunction { declare module "cloudfront" { /** * Retrieves a reference to a CloudFront Key-Value Store (KVS) by its ID. - * @param kvsId The identifier of the KVS to use. + * @param kvsId The identifier of the KVS to use (optional). * @see https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/functions-custom-methods.html */ - function kvs(kvsId: string): KVStore; + function kvs(kvsId?: string): KVStore; interface KVStore { /**