Skip to content

AddAppConfig default encapsulation #165

@akhansari

Description

@akhansari

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions