Link two parameters of a provider

Hello,

I would like to set an parameter of a resource required only if another one is specified by the user. Is-it possible ?

Thanks.