def METHOD_NAME(self):
    dead_letter_config = {"Type": "SQS"}
    dead_letter_config_translated = {"Arn": {"Fn::GetAtt": [self.logical_id + "Queue", "Arn"]}}
    self.eb_event_source.DeadLetterConfig = dead_letter_config
    resources = self.eb_event_source.to_cloudformation(function=self.func)
    self.assertEqual(len(resources), 4)
    event_rule = resources[2]
    self.assertEqual(event_rule.Targets[0]["DeadLetterConfig"], dead_letter_config_translated)