Skip to content

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