Skip to content

NewListAccessPointsPaginator API of s3control package doesn't list out resource with network origin Internet type #1942

Answered by RanVaknin
ParthaI asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ParthaI ,

Not sure how you set your resources. Maybe your internet access point is on a different region.

Using your code I'm able to successfully retrieve both VPC and Internet type access points.

AWS Console:

Only changed this in your Go code to display the results clearly:

	for paginator.HasMorePages() {
		output, err := paginator.NextPage(ctx)
		if err != nil {
			log.Fatalln("S3 access points", "api_error", err)
			break
		}

		for i, accessPoint := range output.AccessPointList {
			fmt.Println(i, *accessPoint.Name, accessPoint.NetworkOrigin) // <- change is here
		}
	}
SDK 2022/11/23 14:56:25 DEBUG Response
HTTP/1.1 200 OK
Content-Length: 1103
Date: Wed, 23 Nov 2022 22:56:26 GMT

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by RanVaknin
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug This issue is a bug. response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
3 participants
Converted from issue

This discussion was converted from issue #1932 on November 29, 2022 18:06.