fix(ec2): preserve endpoint IP types across updates and templates (#5438)

* fix(ec2): preserve endpoint IP types across updates and templates

* fix(ec2): honor omitted endpoint address types in templates
This commit is contained in:
David Phillips authored and GitHub committed 2026-10-11 09:06:25 -04:00
1 parent f4bce30269
commit 80e8b7465d
8 files changed
+184 -20

No files matched your search

@@ -1043,6 +1043,12 @@ class Ec2Tests {
VpcEndpoint ep = described.vpcEndpoints().get(0);
assertThat(ep.ipAddressType()).isEqualTo(IpAddressType.IPV4);
assertThat(ep.stateAsString()).isEqualTo("available");
ec2.modifyVpcEndpoint(ModifyVpcEndpointRequest.builder().vpcEndpointId(endpointId)
.ipAddressType(IpAddressType.DUALSTACK).build());
assertThat(ec2.describeVpcEndpoints(DescribeVpcEndpointsRequest.builder()
.vpcEndpointIds(endpointId).build()).vpcEndpoints().get(0).ipAddressType())
.isEqualTo(IpAddressType.DUALSTACK);
assertThat(ep.networkInterfaceIds())
.as("DescribeVpcEndpoints response")