arn and role_name were defined as being optional
@@ -51,7 +51,9 @@ class IamRoleView(EntityView[SelfV, SelfQ]):
uid, node_key, graph_client, node_types, **kwargs
)
+ if arn:
self.set_predicate("arn", arn)
+ if role_name:
self.set_predicate("role_name", role_name)
@classmethod
