samcli/hook_packages/terraform/hooks/prepare/resource_linking.py [1502:1518]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        destination_resource_tf=gateway_resources_or_rest_apis_terraform_resources,
        expected_destinations=[
            ResourcePairExceptedDestination(
                terraform_resource_type_prefix=API_GATEWAY_RESOURCE_RESOURCE_ADDRESS_PREFIX,
                terraform_attribute_name="id",
            ),
            ResourcePairExceptedDestination(
                terraform_resource_type_prefix=API_GATEWAY_REST_API_RESOURCE_ADDRESS_PREFIX,
                terraform_attribute_name="root_resource_id",
            ),
        ],
        terraform_link_field_name="resource_id",
        cfn_link_field_name="ResourceId",
        cfn_resource_update_call_back_function=_link_gateway_resource_to_gateway_resource_call_back,
        linking_exceptions=exceptions,
    )
    ResourceLinker(resource_linking_pair).link_resources()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



samcli/hook_packages/terraform/hooks/prepare/resource_linking.py [1674:1690]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        destination_resource_tf=gateway_resources_or_rest_apis_terraform_resources,
        expected_destinations=[
            ResourcePairExceptedDestination(
                terraform_resource_type_prefix=API_GATEWAY_RESOURCE_RESOURCE_ADDRESS_PREFIX,
                terraform_attribute_name="id",
            ),
            ResourcePairExceptedDestination(
                terraform_resource_type_prefix=API_GATEWAY_REST_API_RESOURCE_ADDRESS_PREFIX,
                terraform_attribute_name="root_resource_id",
            ),
        ],
        terraform_link_field_name="resource_id",
        cfn_link_field_name="ResourceId",
        cfn_resource_update_call_back_function=_link_gateway_resource_to_gateway_resource_call_back,
        linking_exceptions=exceptions,
    )
    ResourceLinker(resource_linking_pair).link_resources()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



