From 3818234eb72c84f7a32b59c35696cef163b31d9f Mon Sep 17 00:00:00 2001 From: Rico Hermans Date: Wed, 30 Oct 2024 17:55:55 +0100 Subject: [PATCH] chore: fix C# build (#31946) Currently, the generated C# code doesn't compile with this error: ``` error CS0115: 'VpcV2Base._Proxy.Ipv4IpamProvisionedCidrs': no suitable method found to override ``` The reason is that the abstract base class that implements an interface doesn't have an abstract field for that interface. Then when a subclass does implement it, it gets rendered to an `override` in C#, but there is no method to override. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- packages/@aws-cdk/aws-ec2-alpha/lib/vpc-v2-base.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/@aws-cdk/aws-ec2-alpha/lib/vpc-v2-base.ts b/packages/@aws-cdk/aws-ec2-alpha/lib/vpc-v2-base.ts index cc45b67659c99..458b4e8757340 100644 --- a/packages/@aws-cdk/aws-ec2-alpha/lib/vpc-v2-base.ts +++ b/packages/@aws-cdk/aws-ec2-alpha/lib/vpc-v2-base.ts @@ -230,6 +230,13 @@ export abstract class VpcV2Base extends Resource implements IVpcV2 { */ public abstract readonly ownerAccountId: string; + /** + * IPv4 CIDR provisioned under pool + * Required to check for overlapping CIDRs after provisioning + * is complete under IPAM pool + */ + public abstract readonly ipv4IpamProvisionedCidrs?: string[]; + /** * If this is set to true, don't error out on trying to select subnets */