code: func GetLongPolicy(d *schema.ResourceData, key string) *types.LongPolicy {
  	v, e := d.GetOkExists(key)
  	if e {
  		return LongPolicy(v)
  	}
  	return nil
  }
docs: // GetLongPolicy reads a ResourceData and returns an appropriate LongPolicy
  // for the state of the definition. nil is returned if it does not exist.