'Format the StackId field in the response as an ARN.
Also, process other IDs into the correct format.'

@staticmethod
def _id_format(resp):

    if ('StackId' in resp):
        identity = identifier.HeatIdentifier(**resp['StackId'])
        resp['StackId'] = identity.arn()
    if ('EventId' in resp):
        identity = identifier.EventIdentifier(**resp['EventId'])
        resp['EventId'] = identity.event_id
    return resp
