From d377e9e9a36419176f339a9ce87a110474974d47 Mon Sep 17 00:00:00 2001 From: Yukihiro Hasegawa <49516827+y-hsgw@users.noreply.github.com> Date: Sat, 14 Mar 2026 08:15:24 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#74676=20[aws-cloud?= =?UTF-8?q?front-function]=20fix:=20make=20kvsId=20optional=20in=20kvs()?= =?UTF-8?q?=20by=20@y-hsgw?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../aws-cloudfront-function/aws-cloudfront-function-tests.ts | 1 + types/aws-cloudfront-function/index.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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 { /**