code: func expandDVSFailureCriteria(d *schema.ResourceData) *types.DVSFailureCriteria {
  	obj := &types.DVSFailureCriteria{
  		CheckBeacon: structure.GetBoolPolicy(d, "check_beacon"),
  	}
  
  	if structure.AllFieldsEmpty(obj) {
  		return nil
  	}
  	return obj
  }
docs: // expandDVSFailureCriteria reads certain ResourceData keys and
  // returns a DVSFailureCriteria.