From 30e50ba7fa72fa553eb08000ae9713d319800060 Mon Sep 17 00:00:00 2001 From: andyu17 Date: Mon, 13 Jan 2025 18:09:21 +0900 Subject: [PATCH 1/2] chore(docs): fix typos --- packages/@aws-cdk/aws-ec2-alpha/lib/route.ts | 6 +++--- packages/@aws-cdk/aws-ec2-alpha/test/vpc-add-method.test.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/@aws-cdk/aws-ec2-alpha/lib/route.ts b/packages/@aws-cdk/aws-ec2-alpha/lib/route.ts index 3d2dc4a7c22ee..6266a71106230 100644 --- a/packages/@aws-cdk/aws-ec2-alpha/lib/route.ts +++ b/packages/@aws-cdk/aws-ec2-alpha/lib/route.ts @@ -329,7 +329,7 @@ export class VPNGatewayV2 extends Resource implements IRouteTarget { private readonly _attachment: CfnVPCGatewayAttachment; /** - * The VPN Gateway Route Propogation + * The VPN Gateway Route Propagation */ private readonly _routePropagation: CfnVPNGatewayRoutePropagation; @@ -364,7 +364,7 @@ export class VPNGatewayV2 extends Resource implements IRouteTarget { const routeTableIds = allRouteTableIds(subnets); if (routeTableIds.length === 0) { - Annotations.of(scope).addWarningV2('@aws-cdk:aws-ec2-elpha:enableVpnGatewayV2', `No subnets matching selection: '${JSON.stringify(vpnRoutePropagation)}'. Select other subnets to add routes to.`); + Annotations.of(scope).addWarningV2('@aws-cdk:aws-ec2-alpha:enableVpnGatewayV2', `No subnets matching selection: '${JSON.stringify(vpnRoutePropagation)}'. Select other subnets to add routes to.`); } this._routePropagation = new CfnVPNGatewayRoutePropagation(this, 'RoutePropagation', { @@ -696,7 +696,7 @@ export class Route extends Resource implements IRouteV2 { public readonly routeTable: IRouteTable; /** - * The type of router the route is targetting + * The type of router the route is targeting */ public readonly targetRouterType: RouterType; diff --git a/packages/@aws-cdk/aws-ec2-alpha/test/vpc-add-method.test.ts b/packages/@aws-cdk/aws-ec2-alpha/test/vpc-add-method.test.ts index cff02bacc1e1a..2e6f64caa20d5 100644 --- a/packages/@aws-cdk/aws-ec2-alpha/test/vpc-add-method.test.ts +++ b/packages/@aws-cdk/aws-ec2-alpha/test/vpc-add-method.test.ts @@ -365,7 +365,7 @@ describe('Vpc V2 with full control', () => { }); }); - test('Check vpngateway has routePropogation for input subnets', () => { + test('Check vpngateway has route Propagation for input subnets', () => { myVpc.enableVpnGatewayV2({ type: VpnConnectionType.IPSEC_1, vpnRoutePropagation: [{ subnetType: SubnetType.PUBLIC }], @@ -382,7 +382,7 @@ describe('Vpc V2 with full control', () => { }); }); - test('Throws error when no subnet identified for route propogation', () => { + test('Throws error when no subnet identified for route propagation', () => { expect(() => { myVpc.enableVpnGatewayV2({ type: VpnConnectionType.IPSEC_1, From aba479c9c5f36ab05cdc8cccf219f10ae7c78d78 Mon Sep 17 00:00:00 2001 From: yu <77177966+andyu17@users.noreply.github.com> Date: Mon, 13 Jan 2025 22:45:57 +0900 Subject: [PATCH 2/2] Update route.ts --- packages/@aws-cdk/aws-ec2-alpha/lib/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@aws-cdk/aws-ec2-alpha/lib/route.ts b/packages/@aws-cdk/aws-ec2-alpha/lib/route.ts index 6266a71106230..b6f9eb1ee12e4 100644 --- a/packages/@aws-cdk/aws-ec2-alpha/lib/route.ts +++ b/packages/@aws-cdk/aws-ec2-alpha/lib/route.ts @@ -364,7 +364,7 @@ export class VPNGatewayV2 extends Resource implements IRouteTarget { const routeTableIds = allRouteTableIds(subnets); if (routeTableIds.length === 0) { - Annotations.of(scope).addWarningV2('@aws-cdk:aws-ec2-alpha:enableVpnGatewayV2', `No subnets matching selection: '${JSON.stringify(vpnRoutePropagation)}'. Select other subnets to add routes to.`); + Annotations.of(scope).addWarningV2('@aws-cdk:aws-ec2-elpha:enableVpnGatewayV2', `No subnets matching selection: '${JSON.stringify(vpnRoutePropagation)}'. Select other subnets to add routes to.`); } this._routePropagation = new CfnVPNGatewayRoutePropagation(this, 'RoutePropagation', {