Skip to content

Conversation

ianbotsf
Copy link
Contributor

Issue #

Closes #575

Description of changes

Adds support for parsing custom metadata from system properties and environment variables.

System properties starting with aws.customMetadata. will be parsed for key/value pairs. The keys are taken from the part of the system property name after aws.customMetadata. For example, a system property of aws.customMetadata.foo set to bar will yield the custom metadata md/foo/bar.

Environment variables starting with AWS_CUSTOM_METADATA_ will be parsed for key/value pairs. The keys are take from the part of the env var name after AWS_CUSTOM_METADATA_. For example, an environment variable of AWS_CUSTOM_METADATA_foo set to bar will yield the custom metadata md/foo/bar.

Companion PR: smithy-kotlin#638

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions
Copy link

A new generated diff is ready to view: __generated-main...__generated-feat-custom-metadata-from-env

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 6 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions
Copy link

A new generated diff is ready to view: __generated-main...__generated-feat-custom-metadata-from-env

@ianbotsf ianbotsf merged commit 00a12d6 into main May 12, 2022
@ianbotsf ianbotsf deleted the feat-custom-metadata-from-env branch May 12, 2022 16:07
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.

need a way to setmd/* extras param for useragent
2 participants