mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
* feat(rds): EnableHttpEndpoint, DisableHttpEndpoint and HttpEndpointEnabled EnableHttpEndpoint and DisableHttpEndpoint answered UnsupportedOperation and DBCluster carried no HttpEndpointEnabled, so Terraform's enable_http_endpoint and CDK's enableDataApi never read back what they set. Clusters now record the flag and report it. The two actions take the cluster's ARN and raise ResourceNotFoundFault and InvalidResourceStateFault as the model lists them; CreateDBCluster, ModifyDBCluster and the AWS::RDS::DBCluster EnableHttpEndpoint property set it too. Turning it on is refused for engines other than Aurora PostgreSQL and Aurora MySQL. The Data API itself does not check the flag, so existing callers keep working. Closes #5732 * refactor(rds): one cluster ARN parser, and stricter Data API inputs clusterForResourceArn repeated the ARN parsing, cluster: prefix and account and Region check of clusterIdentifierFromArnOrName; both now call clusterIdFromArn, each raising the error its API documents. The Data API engine check takes aurora-postgresql, aurora-mysql and the older aurora name exactly instead of any name starting with aurora, and the AWS::RDS::DBCluster EnableHttpEndpoint property accepts true or false only, so a malformed value fails instead of turning the endpoint off. * fix(rds): take only aurora-mysql and aurora-postgresql for the Data API The API reference lists those two engines, and new clusters cannot carry the bare aurora name, so the check no longer accepts it.