You can add the wavelength in the description of the target bands in the BandMaths operator.
The operator supports multiple target bands.
<targetBands>
<targetBand>
<name>string</name>
<type>string</type>
<expression>string</expression>
<description>string</description>
<unit>string</unit>
<validExpression>string</validExpression>
<noDataValue>double</noDataValue>
<spectralBandIndex>integer</spectralBandIndex>
<spectralWavelength>float</spectralWavelength>
<spectralBandwidth>float</spectralBandwidth>
<scalingOffset>double</scalingOffset>
<scalingFactor>double</scalingFactor>
</targetBand>
<.../>
</targetBands>
And I think the jp2 images don’t have wavelength information attached. At least I don’t see it when I open the S2 jp2 tile images from the official ESA data. This information is only available when you use the complete product, but get’s lost during mosaic processing. I don’t know the Amazon products.