Skip to content

Track accountID endpoint mode in user-agent #3000

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

Merged
merged 3 commits into from
Feb 4, 2025

Conversation

lucix-aws
Copy link
Contributor

@lucix-aws lucix-aws commented Feb 4, 2025

Adds the following user agent feature IDs:

UserAgentFeatureAccountIDModePreferred = "P"
UserAgentFeatureAccountIDModeDisabled  = "Q"
UserAgentFeatureAccountIDModeRequired  = "R"

Rather than writing a test script for this and demonstrating its output, I figured I'd just add a unit test. Why run something once to validate it when you could just have it validate forevermore?

@lucix-aws lucix-aws requested a review from a team as a code owner February 4, 2025 17:55
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
)

type captureUserAgentFeatures struct {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, I'm currently in the process of testing something very similar, so I'm stealing this

}

ctx.writerDelegator().useFileWriter("api_client.go", ctx.settings().getModuleName(), goTemplate("""
$aws:D $awsMiddleware:D
Copy link
Contributor

@wty-Bryant wty-Bryant Feb 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

love the new format of import dependencies

@lucix-aws lucix-aws merged commit 68c4649 into main Feb 4, 2025
13 checks passed
@lucix-aws lucix-aws deleted the feat-useragentaccountidendptmode branch February 4, 2025 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants