New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid result in func (c *Route53) ListResourceRecordSetsPages
#4386
Comments
Hi, Any updates on this issue? |
Hi @karanpopat thanks for bringing this to our attention. Can you check if this issue is persisting with the latest version of SDK |
This issue has not received a response in 1 week. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled. |
Hi, @vudh1 I checked using the SDK version svc, err := Route53Service(ctx, d)
if err != nil {
return nil, err
}
input := &route53.ListResourceRecordSetsInput{
HostedZoneId: aws.String(hostedZoneID),
MaxItems: aws.String("1000"),
StartRecordName: aws.String(&name),
}
err = svc.ListResourceRecordSetsPages(
input,
func(page *route53.ListResourceRecordSetsOutput, isLast bool) bool {
plugin.Logger(ctx).Debug("-------------->>>>>>>>>>>", page)
for _, record := range page.ResourceRecordSets {
plugin.Logger(ctx).Debug("-------------->>>>>>>>>>>======>>>", record)
}
return *page.IsTruncated
},
) |
Any updates @vudh1 ? |
@karanpopat believe you can close this issue, I think we originally misunderstood how the |
|
Describe the bug
The function ListResourceRecordSetsPages returns all the resources present in an account for the input
even if
<SomeName>
is an invalid name.Also returns error
when ListResourceRecordSetsInput has any
StartRecordType
set as inputExpected Behavior
The function ListResourceRecordSetsPages should return the resources having an exact match for the entered
StartRecordName
API should return results on setting
StartRecordType
as an input parameterCurrent Behavior
The function ListResourceRecordSetsPages returns all the resources present in an account for the input
even if
<SomeName>
is an invalid name.Also returns error
when ListResourceRecordSetsInput has any
StartRecordType
set as inputReproduction Steps
Make an API call using ListResourceRecordSetsPages setting the parameters as below
where
<SomeName>
is an invalid name.Make an API call using ListResourceRecordSetsPages setting the parameters as below
Possible Solution
No response
Additional Information/Context
No response
SDK version used
aws-sdk-go@v1.42.25
Environment details (Version of Go (
go version
)? OS name and version, etc.)go version go1.18.1 darwin/arm64
The text was updated successfully, but these errors were encountered: