def get_resource_references(self, generated_cfn_resources, supported_resource_refs):
if supported_resource_refs is None:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>resource_id_by_type = {resource.resource_type: resource.logical_id for resource in generated_cfn_resources}<EOL>for property, cfn_type in self.referable_properties.items():<EOL><INDENT>if cfn_type in resource_id_by_type:<EOL><INDENT>supported_resource_refs.add(self.logical_id, property, resource_id_by_type[cfn_type])<EOL><DEDENT><DEDENT>return supported_resource_refs<EOL>
Constructs the list of supported resource references by going through the list of CFN resources generated
by to_cloudformation() on this SAM resource. Each SAM resource must provide a map of properties that it
supports and the type of CFN resource this property resolves to.

:param list of Resource object generated_cfn_resources: List of CloudFormation resources generated by this
    SAM resource
:param samtranslator.intrinsics.resource_refs.SupportedResourceReferences supported_resource_refs: Object
    holding the mapping between property names and LogicalId of the generated CFN resource it maps to
:return: Updated supported_resource_refs