Closed
Description
Discussed in #1312
Originally posted by Fruan-Atlassian May 16, 2024
Just wondering whether the Route53 GetHostedZoneLimit request is working for anyone? For me, I can't use getHostedZoneLimitRequest
's type
parameter as I get an error saying that it's not of enum MAX_RRSETS_BY_ZONE
when I use HostedZoneLimitType.MaxRrsetsByZone
.
Is anyone able to do this on their end?
Repro code
Route53Client.fromEnvironment().use { r53 ->
r53.getHostedZoneLimit {
hostedZoneId = "<my_zone_id>"
type = HostedZoneLimitType.MaxRrsetsByZone
}
}
Result
InvalidInput(message=1 validation error detected: Value 'MaxRrsetsByZone' at 'type' failed to satisfy constraint: Member must satisfy enum value set: [MAX_RRSETS_BY_ZONE, MAX_VPCS_ASSOCIATED_BY_ZONE])
Activity
ianbotsf commentedon May 17, 2024
Invocations of this API seem to be serializing the request parameter into the URI path incorrectly. As noted by the GetHostedZoneLimit documentation and above error message, the expected serialization is
MAX_RRSETS_BY_ZONE
but instead it's using the name of the enum elementMaxRrsetsByZone
. Sample request preamble:github-actions commentedon May 29, 2024
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
ianbotsf commentedon May 29, 2024
The fix for this has been merged and should be part of today's SDK release v1.2.22.