Skip to content

Maintenance: Set sdk.ua.appId JVM System Property #2086

@phipag

Description

@phipag

Summary

The AWS SDK offers the possibility of appending a user agent to requests sourcing the value from a known JVM system property sdk.ua.appId (https://docs.aws.amazon.com/sdkref/latest/guide/feature-appid.html). We should set/append this system property.

Why is this needed?

So that we can append the Powertools user agent to AWS SDK clients more effectively.

Which area does this relate to?

Governance

Solution

We can use SDK Global Execution Interceptors with a static {} block setting this JVM property before an SDK client is initialized.

https://sdk.amazonaws.com/java/api/2.0.0/index.html?software/amazon/awssdk/core/interceptor/ExecutionInterceptor.html

Acknowledgment

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Pending review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions