def _generate_resource_dict(self):
resource_dict = {}<EOL>resource_dict['<STR_LIT>'] = self.resource_type<EOL>if self.depends_on:<EOL><INDENT>resource_dict['<STR_LIT>'] = self.depends_on<EOL><DEDENT>resource_dict.update(self.resource_attributes)<EOL>properties_dict = {}<EOL>for name in self.property_types:<EOL><INDENT>value = getattr(self, name)<EOL>if value is not None:<EOL><INDENT>properties_dict[name] = value<EOL><DEDENT><DEDENT>resource_dict['<STR_LIT>'] = properties_dict<EOL>return resource_dict<EOL>
Generates the resource dict for this Resource, the value associated with the logical id in a CloudFormation
        template's Resources section.

        :returns: the resource dict for this Resource
        :rtype: dict