File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
aws_lambda_powertools/utilities/feature_flags Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,17 @@ def __init__(
87
87
boto3_session = boto3_session ,
88
88
)
89
89
90
+ # Override the user agent to use "feature_flags" instead of "parameters"
91
+ self ._register_feature_flags_user_agent ()
92
+
93
+ def _register_feature_flags_user_agent (self ):
94
+ """Register feature_flags user agent to the AppConfig client"""
95
+ from aws_lambda_powertools .shared import user_agent
96
+
97
+ # Register feature_flags to the client used by the AppConfigProvider
98
+ if hasattr (self ._conf_store , "client" ) and self ._conf_store .client is not None :
99
+ user_agent .register_feature_to_client (client = self ._conf_store .client , feature = "feature_flags" )
100
+
90
101
@property
91
102
def get_raw_configuration (self ) -> dict [str , Any ]:
92
103
"""Fetch feature schema configuration from AWS AppConfig"""
You can’t perform that action at this time.
0 commit comments