diff --git a/policyuniverse/arn.py b/policyuniverse/arn.py index 9aa07d6..d2d2f06 100644 --- a/policyuniverse/arn.py +++ b/policyuniverse/arn.py @@ -78,3 +78,10 @@ def _from_account_number(self, raw): def _from_aws_service(self, service): self.tech = service self.service = True + + def __hash__(self): + return hash(self.arn) + + def __eq__(self, other): + if isinstance(other, ARN): + return self.__hash__() == other.__hash__()