From a346229fbe1313d7d01090af2cb917f0bc408756 Mon Sep 17 00:00:00 2001 From: Jimmy Gaussen Date: Fri, 22 Mar 2024 06:57:15 +0100 Subject: [PATCH] chore: signature refactor --- packages/aws-cdk-lib/aws-ec2/lib/vpc-endpoint.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/aws-cdk-lib/aws-ec2/lib/vpc-endpoint.ts b/packages/aws-cdk-lib/aws-ec2/lib/vpc-endpoint.ts index aec98340ac499..8cd8424219d2b 100644 --- a/packages/aws-cdk-lib/aws-ec2/lib/vpc-endpoint.ts +++ b/packages/aws-cdk-lib/aws-ec2/lib/vpc-endpoint.ts @@ -571,9 +571,9 @@ export class InterfaceVpcEndpointAwsService implements IInterfaceVpcEndpointServ name: string, prefix?: string, port?: number, - { global = false }: InterfaceVpcEndpointAwsServiceProps = {}, + props?: InterfaceVpcEndpointAwsServiceProps, ) { - const regionPrefix = global ? '' : (Lazy.uncachedString({ + const regionPrefix = props?.global ? '' : (Lazy.uncachedString({ produce: (context) => Stack.of(context.scope).region, }) + '.'); const defaultEndpointPrefix = Lazy.uncachedString({