Skip to content

Conversation

@br0connor
Copy link

@br0connor br0connor commented Nov 6, 2025

Issue #, if available

closes 3757

Description of changes

Enables us to set AWS::ApiGateway::RestApi resource's EndpointConfiguration.IpAddressType with SAM by adding that property to the template. I'm an AWS employee message me on slack for more details @toocon

Description of how you validated changes

  • Ran all integ tests related to the serverless api (the full suite was going to take over 2 hours): pytest --no-cov integration/combination/test_*api*.py
  • Added a new integ test to validate this property.

Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@br0connor br0connor requested a review from a team as a code owner November 6, 2025 20:57
@valerena
Copy link
Contributor

valerena commented Nov 7, 2025

We discussed offline. The PR looks good, but ideally this can include the changes required to support IpAddressType for custom Domain's EndpointConfiguration too and not only for the top level API.

current_region_does_not_support([REST_API]),
"Rest API is not supported in this testing region",
)
class TestApiWithDomainIpAddressType(BaseInternalTest):
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this kind of test uses internal domain / certificate's that are already created I was not able to run it.

return ApiDomainResponse(domain, basepath_resource_list, record_set_group)

def _construct_api_domain_v2(
def _construct_api_domain_v2( # noqa: PLR0915
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The three lines I added put this over the tipping point

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants