File tree Expand file tree Collapse file tree
types/aws-cloudfront-function Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -138,6 +138,7 @@ function handler2(event: AWSCloudFrontFunction.Event): AWSCloudFrontFunction.Req
138138import cf from "cloudfront" ;
139139
140140const kvsHandle = cf . kvs ( "example-kvs-id" ) ;
141+ const defaultKvsHandle = cf . kvs ( ) ;
141142
142143async function handler3 (
143144 event : AWSCloudFrontFunction . Event ,
Original file line number Diff line number Diff line change @@ -63,10 +63,10 @@ declare namespace AWSCloudFrontFunction {
6363declare module "cloudfront" {
6464 /**
6565 * Retrieves a reference to a CloudFront Key-Value Store (KVS) by its ID.
66- * @param kvsId The identifier of the KVS to use.
66+ * @param kvsId The identifier of the KVS to use (optional) .
6767 * @see https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/functions-custom-methods.html
6868 */
69- function kvs ( kvsId : string ) : KVStore ;
69+ function kvs ( kvsId ? : string ) : KVStore ;
7070
7171 interface KVStore {
7272 /**
You can’t perform that action at this time.
0 commit comments