aws-dotnet-extensions-configuration icon indicating copy to clipboard operation
aws-dotnet-extensions-configuration copied to clipboard

AddAppConfig default encapsulation

Open akhansari opened this issue 4 months ago • 1 comments

Describe the feature

Hi,

Currently if we have a configuration profile of JSON type, its content is added at the root. This is quite restrictive, especially when AddAppConfig is used alongside other providers, or when the type is an array.

Allow to encapsulate the content into a specified section.

Use Case

For instance here, sections will be 0, 1, 2 and not MyProfile:0, MyProfile:1, MyProfile:2

[ "Ironman", "Hulk", "Thor" ]
.AddAppConfig("app_name", "env_name", "MyProfile")

Or if two different profiles are injected, the second one fields could override the first one.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • [ ] I may be able to implement this feature request
  • [ ] This feature might incur a breaking change

AWS .NET SDK and/or Package version used

Amazon.Extensions.Configuration.SystemsManager 6.0.0

Targeted .NET Platform

.NET 8

Operating System and version

AmazonLinux

akhansari avatar Feb 28 '24 18:02 akhansari