Skip to content

Route53 GetHostedZoneLimit #1314

Closed
@ianbotsf

Description

@ianbotsf
Contributor

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

self-assigned this
on May 17, 2024
ianbotsf

ianbotsf commented on May 17, 2024

@ianbotsf
ContributorAuthor

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 element MaxRrsetsByZone. Sample request preamble:

GET /2013-04-01/hostedzonelimit/<my_zone_id>/MaxRrsetsByZone
github-actions

github-actions commented on May 29, 2024

@github-actions

⚠️COMMENT VISIBILITY WARNING⚠️

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

ianbotsf commented on May 29, 2024

@ianbotsf
ContributorAuthor

The fix for this has been merged and should be part of today's SDK release v1.2.22.

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

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @ianbotsf

    Issue actions

      Route53 GetHostedZoneLimit · Issue #1314 · awslabs/aws-sdk-kotlin