code: func flattenDVSFailureCriteria(d *schema.ResourceData, obj *types.DVSFailureCriteria) error {
  	if obj == nil {
  		return nil
  	}
  
  	structure.SetBoolPolicy(d, "check_beacon", obj.CheckBeacon)
  	return nil
  }
docs: // flattenDVSFailureCriteria reads various fields from a
  // DVSFailureCriteria into the passed in ResourceData.