code: func expandHostNetworkSecurityPolicy(d *schema.ResourceData) *types.HostNetworkSecurityPolicy {
  	obj := &types.HostNetworkSecurityPolicy{}
  	if v, ok := d.GetOkExists("allow_promiscuous"); ok {
  		obj.AllowPromiscuous = structure.BoolPtr(v.(bool))
  	}
  	if v, ok := d.GetOkExists("allow_forged_transmits"); ok {
  		obj.ForgedTransmits = structure.BoolPtr(v.(bool))
  	}
  	if v, ok := d.GetOkExists("allow_mac_changes"); ok {
  		obj.MacChanges = structure.BoolPtr(v.(bool))
  	}
  	return obj
  }
docs: // expandHostNetworkSecurityPolicy reads certain ResourceData keys and returns
  // a HostNetworkSecurityPolicy.