Files
floci/src/main/java/io/github
Hector Ventura 25fc8e452f refactor(cloudformation): move ApiGateway v1 core types into ApiGatewayRestApiCfnProvisioner (#3885)
Move the six coupled REST API Gateway types (RestApi, Resource, Method, Deployment, Stage, Authorizer) out of the CloudFormationResourceProvisioner monolith into a new ApiGatewayRestApiCfnProvisioner. The shared OpenAPI Body and BodyS3Location resolver, used by both AWS::ApiGateway::RestApi and AWS::ApiGatewayV2::Api, is extracted into OpenApiDocuments so the monolith's V2 arm reuses it rather than keeping a copy. With the v1 arms gone, the monolith no longer needs its apiGatewayService dependency, so that constructor parameter is dropped.

The move preserves Ref, but it is not a pure move for Fn::GetAtt: it also resolves four keys the monolith never populated. Once a type is owned by a registry provisioner, CfnSchemaCoverageTest requires every readOnly attribute to be published or recorded as a gap, so the new provisioner sets RestApiId, ResourceId, AuthorizerId and DeploymentId, which previously resolved to the literal "Logical.Attr". RootResourceId was already set. The inventory tsv, fixture wiring and a focused unit test cover the six types.
2026-09-18 23:39:14 -04:00
..