code: func flattenHostNetworkSecurityPolicy(d *schema.ResourceData, obj *types.HostNetworkSecurityPolicy) error {
  	if obj.AllowPromiscuous != nil {
  		d.Set("allow_promiscuous", *obj.AllowPromiscuous)
  	}
  	if obj.ForgedTransmits != nil {
  		d.Set("allow_forged_transmits", *obj.ForgedTransmits)
  	}
  	if obj.MacChanges != nil {
  		d.Set("allow_mac_changes", *obj.MacChanges)
  	}
  	return nil
  }
docs: // flattenHostNetworkSecurityPolicy reads various fields from a
  // HostNetworkSecurityPolicy into the passed in ResourceData.