generated from amazon-archives/__template_MIT-0
-
Notifications
You must be signed in to change notification settings - Fork 455
Closed as not planned
Labels
Description
Use case
Currently the key
of the conditions
of the feature flags only support that the values sent in the context
are first level.
It would be very interesting to be able to support depth levels, like with a dot attribute access or with a string list of dictionary keys, so that for example a feature flag can be defined based on the raw content of the event
without having to transform it or extract something from it.
Solution/User Experience
Context:
{
"foo": {
"bar": "premium"
}
}
Schema:
{
"premium_feature": {
"default": false,
"rules": {
"customer tier equals premium": {
"when_match": true,
"conditions": [
{
"action": "EQUALS",
"key": ["foo", "bar"],
"value": "premium"
}
]
}
}
}
}
Alternative solutions
No response
Acknowledgment
- This feature request meets Powertools for AWS Lambda (Python) Tenets
- Should this be considered in other Powertools for AWS Lambda languages? i.e. Java, TypeScript, and .NET
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Closed