def METHOD_NAME(self):
    dead_letter_config = {"Type": "SQS", "QueueLogicalId": "MyDLQ"}
    dead_letter_config_translated = {"Arn": {"Fn::GetAtt": ["MyDLQ", "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)