def mask_secret_parameters(parameters, secret_parameters):
 result = copy.deepcopy(parameters)
 for parameter in secret_parameters:
  if (parameter in result):
   result[parameter] = MASKED_ATTRIBUTE_VALUE
 return result

def mask_secret_parameters ( parameters , secret_parameters ) : result = copy . deepcopy ( parameters ) for parameter in secret_parameters : if ( parameter in result ) : result [ parameter ] = MASKED_ATTRIBUTE_VALUE return result
introspect the parameters dict and return a new dict with masked secret parameters .