Assuming that the coast is defined as a multiline in the 'Rivers' layer, with an attribute 'name', and one of those lines has the name 'Amazon':
Then, the expression in the Field Calulator to fill the field 'd_Amazon' in the layer containing the points should be:
distance($geometry,(geometry(get_feature('Rivers','name','Amazon'))))
Note that the distance will be calculated based on the coordinates of the entities in their own reference systems, so it is advisable that both layers have the same system assigned to them.
If the coast is defined in a layer of polygons, the expression works in the same way for the points that are outside the polygon, but returns 0 if the point is inside the polygon.