# coding=utf-8
# *** WARNING: this file was generated by Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***

import builtins as _builtins
import warnings
import sys
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
if sys.version_info >= (3, 11):
    from typing import NotRequired, TypedDict, TypeAlias
else:
    from typing_extensions import NotRequired, TypedDict, TypeAlias
from . import _utilities

__all__ = [
    'PeerRelaySettingsArgs',
    'PeerRelaySettingsArgsDict',
]

MYPY = False

if not MYPY:
    class PeerRelaySettingsArgsDict(TypedDict):
        """
        Settings for configuring this node as a peer relay server.
        """
        enable: NotRequired[pulumi.Input[_builtins.bool]]
        """
        Whether to enable peer relay functionality.
        """
        port: NotRequired[pulumi.Input[_builtins.int]]
        """
        The port to use for the relay server.
        """
elif False:
    PeerRelaySettingsArgsDict: TypeAlias = Mapping[str, Any]

@pulumi.input_type
class PeerRelaySettingsArgs:
    def __init__(__self__, *,
                 enable: Optional[pulumi.Input[_builtins.bool]] = None,
                 port: Optional[pulumi.Input[_builtins.int]] = None):
        """
        Settings for configuring this node as a peer relay server.
        :param pulumi.Input[_builtins.bool] enable: Whether to enable peer relay functionality.
        :param pulumi.Input[_builtins.int] port: The port to use for the relay server.
        """
        if enable is None:
            enable = False
        if enable is not None:
            pulumi.set(__self__, "enable", enable)
        if port is None:
            port = 12345
        if port is not None:
            pulumi.set(__self__, "port", port)

    @_builtins.property
    @pulumi.getter
    def enable(self) -> Optional[pulumi.Input[_builtins.bool]]:
        """
        Whether to enable peer relay functionality.
        """
        return pulumi.get(self, "enable")

    @enable.setter
    def enable(self, value: Optional[pulumi.Input[_builtins.bool]]):
        pulumi.set(self, "enable", value)

    @_builtins.property
    @pulumi.getter
    def port(self) -> Optional[pulumi.Input[_builtins.int]]:
        """
        The port to use for the relay server.
        """
        return pulumi.get(self, "port")

    @port.setter
    def port(self, value: Optional[pulumi.Input[_builtins.int]]):
        pulumi.set(self, "port", value)


