diff --git a/moto/iam/models.py b/moto/iam/models.py index a8649e891..73d58b996 100644 --- a/moto/iam/models.py +++ b/moto/iam/models.py @@ -489,13 +489,6 @@ class SshPublicKey(BaseModel): def uploaded_iso_8601(self): return iso_8601_datetime_without_milliseconds(self.upload_date) - def get_cfn_attribute(self, attribute_name): - from moto.cloudformation.exceptions import UnformattedGetAttTemplateException - - if attribute_name == "PublicKeyBody": - return self.public_key_body - raise UnformattedGetAttTemplateException() - class Group(BaseModel): def __init__(self, name, path="/"):