You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding support for additional condition keys, such as AWS global context keys or service-specific condition keys (KMS, IAM).
To add support for a condition key (that isn't multi-part, i.e. doesn't have / in it):
Add a function to simulate_custom_policy_generator.py def _get_aws_username(self) -> Optional[ContextEntryTypeDef]
The function should return ContextEntryTypeDef or None if not applicable.
If more information is needed from the event, add parsing that information to event.py.
Add a reference to that function to KEY_FUNCTION_DICT "aws:username": _get_aws_username,
The text was updated successfully, but these errors were encountered:
Adding support for additional condition keys, such as AWS global context keys or service-specific condition keys (KMS, IAM).
To add support for a condition key (that isn't multi-part, i.e. doesn't have
/
in it):simulate_custom_policy_generator.py
def _get_aws_username(self) -> Optional[ContextEntryTypeDef]
The function should return
ContextEntryTypeDef
orNone
if not applicable.If more information is needed from the event, add parsing that information to
event.py
.KEY_FUNCTION_DICT
"aws:username": _get_aws_username,
The text was updated successfully, but these errors were encountered: