Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IWireGuardVpnManager

interface IWireGuardVpnManager
Extends IVpnManager WireGuard-specific VPN manager interface. Inherits from IVpnManager and adds WireGuard-specific operations.

Methods

updateWireguardPeer()

void updateWireguardPeer(com.amazon.kepler.net.vpn.wireguard.WgUpdatePeer updateType, com.amazon.kepler.net.vpn.wireguard.WgPeerConfig* peerConfig)
Update WireGuard peer configuration.

Parameters

updateType
com.amazon.kepler.net.vpn.wireguard.WgUpdatePeer — Required The type of peer update to perform.
peerConfig
com.amazon.kepler.net.vpn.wireguard.WgPeerConfig* — Required The WireGuard peer configuration containing the new values.

Throws

Requires com.amazon.network.privilege.net-vpn-ctrl

updateWireguardInterface()

void updateWireguardInterface(com.amazon.kepler.net.vpn.wireguard.WgUpdateInterface updateType, com.amazon.kepler.net.vpn.wireguard.WgInterfaceConfig* config)
Update WireGuard interface configuration.

Parameters

updateType
com.amazon.kepler.net.vpn.wireguard.WgUpdateInterface — Required The type of interface update to perform.
config
com.amazon.kepler.net.vpn.wireguard.WgInterfaceConfig* — Required The WireGuard interface configuration containing the new values.

Throws

Requires com.amazon.network.privilege.net-vpn-ctrl

removeWireGuardPeer()

void removeWireGuardPeer(u8[] wgPeerKey)
Remove a WireGuard peer from the VPN interface.

Parameters

wgPeerKey
u8[] — Required The WireGuard peer key (32 bytes) to remove.

Throws

Requires com.amazon.network.privilege.net-vpn-ctrl

getWgPeerStats()

com.amazon.kepler.net.vpn.wireguard.WgInterfaceStats? getWgPeerStats(u8[] wgPeerKey)
Get WireGuard peer statistics.

Parameters

wgPeerKey
u8[] — Required The WireGuard peer key (32 bytes) to get statistics for.

Returns

com.amazon.kepler.net.vpn.wireguard.WgInterfaceStats? The return value is optional and might be absent. The WireGuard peer statistics or null if not available.

Throws

Requires com.amazon.network.privilege.net-vpn-ctrl
Last modified on October 29, 2026