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
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