{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.DirectoryService.Types.RadiusSettings
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.DirectoryService.Types.RadiusSettings where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.DirectoryService.Types.RadiusAuthenticationProtocol
import qualified Amazonka.Prelude as Prelude

-- | Contains information about a Remote Authentication Dial In User Service
-- (RADIUS) server.
--
-- /See:/ 'newRadiusSettings' smart constructor.
data RadiusSettings = RadiusSettings'
  { -- | The protocol specified for your RADIUS endpoints.
    RadiusSettings -> Maybe RadiusAuthenticationProtocol
authenticationProtocol :: Prelude.Maybe RadiusAuthenticationProtocol,
    -- | Not currently used.
    RadiusSettings -> Maybe Text
displayLabel :: Prelude.Maybe Prelude.Text,
    -- | The port that your RADIUS server is using for communications. Your
    -- self-managed network must allow inbound traffic over this port from the
    -- Directory Service servers.
    RadiusSettings -> Maybe Natural
radiusPort :: Prelude.Maybe Prelude.Natural,
    -- | The maximum number of times that communication with the RADIUS server is
    -- attempted.
    RadiusSettings -> Maybe Natural
radiusRetries :: Prelude.Maybe Prelude.Natural,
    -- | An array of strings that contains the fully qualified domain name (FQDN)
    -- or IP addresses of the RADIUS server endpoints, or the FQDN or IP
    -- addresses of your RADIUS server load balancer.
    RadiusSettings -> Maybe [Text]
radiusServers :: Prelude.Maybe [Prelude.Text],
    -- | The amount of time, in seconds, to wait for the RADIUS server to
    -- respond.
    RadiusSettings -> Maybe Natural
radiusTimeout :: Prelude.Maybe Prelude.Natural,
    -- | Required for enabling RADIUS on the directory.
    RadiusSettings -> Maybe (Sensitive Text)
sharedSecret :: Prelude.Maybe (Data.Sensitive Prelude.Text),
    -- | Not currently used.
    RadiusSettings -> Maybe Bool
useSameUsername :: Prelude.Maybe Prelude.Bool
  }
  deriving (RadiusSettings -> RadiusSettings -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RadiusSettings -> RadiusSettings -> Bool
$c/= :: RadiusSettings -> RadiusSettings -> Bool
== :: RadiusSettings -> RadiusSettings -> Bool
$c== :: RadiusSettings -> RadiusSettings -> Bool
Prelude.Eq, Int -> RadiusSettings -> ShowS
[RadiusSettings] -> ShowS
RadiusSettings -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RadiusSettings] -> ShowS
$cshowList :: [RadiusSettings] -> ShowS
show :: RadiusSettings -> String
$cshow :: RadiusSettings -> String
showsPrec :: Int -> RadiusSettings -> ShowS
$cshowsPrec :: Int -> RadiusSettings -> ShowS
Prelude.Show, forall x. Rep RadiusSettings x -> RadiusSettings
forall x. RadiusSettings -> Rep RadiusSettings x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RadiusSettings x -> RadiusSettings
$cfrom :: forall x. RadiusSettings -> Rep RadiusSettings x
Prelude.Generic)

-- |
-- Create a value of 'RadiusSettings' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'authenticationProtocol', 'radiusSettings_authenticationProtocol' - The protocol specified for your RADIUS endpoints.
--
-- 'displayLabel', 'radiusSettings_displayLabel' - Not currently used.
--
-- 'radiusPort', 'radiusSettings_radiusPort' - The port that your RADIUS server is using for communications. Your
-- self-managed network must allow inbound traffic over this port from the
-- Directory Service servers.
--
-- 'radiusRetries', 'radiusSettings_radiusRetries' - The maximum number of times that communication with the RADIUS server is
-- attempted.
--
-- 'radiusServers', 'radiusSettings_radiusServers' - An array of strings that contains the fully qualified domain name (FQDN)
-- or IP addresses of the RADIUS server endpoints, or the FQDN or IP
-- addresses of your RADIUS server load balancer.
--
-- 'radiusTimeout', 'radiusSettings_radiusTimeout' - The amount of time, in seconds, to wait for the RADIUS server to
-- respond.
--
-- 'sharedSecret', 'radiusSettings_sharedSecret' - Required for enabling RADIUS on the directory.
--
-- 'useSameUsername', 'radiusSettings_useSameUsername' - Not currently used.
newRadiusSettings ::
  RadiusSettings
newRadiusSettings :: RadiusSettings
newRadiusSettings =
  RadiusSettings'
    { $sel:authenticationProtocol:RadiusSettings' :: Maybe RadiusAuthenticationProtocol
authenticationProtocol =
        forall a. Maybe a
Prelude.Nothing,
      $sel:displayLabel:RadiusSettings' :: Maybe Text
displayLabel = forall a. Maybe a
Prelude.Nothing,
      $sel:radiusPort:RadiusSettings' :: Maybe Natural
radiusPort = forall a. Maybe a
Prelude.Nothing,
      $sel:radiusRetries:RadiusSettings' :: Maybe Natural
radiusRetries = forall a. Maybe a
Prelude.Nothing,
      $sel:radiusServers:RadiusSettings' :: Maybe [Text]
radiusServers = forall a. Maybe a
Prelude.Nothing,
      $sel:radiusTimeout:RadiusSettings' :: Maybe Natural
radiusTimeout = forall a. Maybe a
Prelude.Nothing,
      $sel:sharedSecret:RadiusSettings' :: Maybe (Sensitive Text)
sharedSecret = forall a. Maybe a
Prelude.Nothing,
      $sel:useSameUsername:RadiusSettings' :: Maybe Bool
useSameUsername = forall a. Maybe a
Prelude.Nothing
    }

-- | The protocol specified for your RADIUS endpoints.
radiusSettings_authenticationProtocol :: Lens.Lens' RadiusSettings (Prelude.Maybe RadiusAuthenticationProtocol)
radiusSettings_authenticationProtocol :: Lens' RadiusSettings (Maybe RadiusAuthenticationProtocol)
radiusSettings_authenticationProtocol = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RadiusSettings' {Maybe RadiusAuthenticationProtocol
authenticationProtocol :: Maybe RadiusAuthenticationProtocol
$sel:authenticationProtocol:RadiusSettings' :: RadiusSettings -> Maybe RadiusAuthenticationProtocol
authenticationProtocol} -> Maybe RadiusAuthenticationProtocol
authenticationProtocol) (\s :: RadiusSettings
s@RadiusSettings' {} Maybe RadiusAuthenticationProtocol
a -> RadiusSettings
s {$sel:authenticationProtocol:RadiusSettings' :: Maybe RadiusAuthenticationProtocol
authenticationProtocol = Maybe RadiusAuthenticationProtocol
a} :: RadiusSettings)

-- | Not currently used.
radiusSettings_displayLabel :: Lens.Lens' RadiusSettings (Prelude.Maybe Prelude.Text)
radiusSettings_displayLabel :: Lens' RadiusSettings (Maybe Text)
radiusSettings_displayLabel = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RadiusSettings' {Maybe Text
displayLabel :: Maybe Text
$sel:displayLabel:RadiusSettings' :: RadiusSettings -> Maybe Text
displayLabel} -> Maybe Text
displayLabel) (\s :: RadiusSettings
s@RadiusSettings' {} Maybe Text
a -> RadiusSettings
s {$sel:displayLabel:RadiusSettings' :: Maybe Text
displayLabel = Maybe Text
a} :: RadiusSettings)

-- | The port that your RADIUS server is using for communications. Your
-- self-managed network must allow inbound traffic over this port from the
-- Directory Service servers.
radiusSettings_radiusPort :: Lens.Lens' RadiusSettings (Prelude.Maybe Prelude.Natural)
radiusSettings_radiusPort :: Lens' RadiusSettings (Maybe Natural)
radiusSettings_radiusPort = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RadiusSettings' {Maybe Natural
radiusPort :: Maybe Natural
$sel:radiusPort:RadiusSettings' :: RadiusSettings -> Maybe Natural
radiusPort} -> Maybe Natural
radiusPort) (\s :: RadiusSettings
s@RadiusSettings' {} Maybe Natural
a -> RadiusSettings
s {$sel:radiusPort:RadiusSettings' :: Maybe Natural
radiusPort = Maybe Natural
a} :: RadiusSettings)

-- | The maximum number of times that communication with the RADIUS server is
-- attempted.
radiusSettings_radiusRetries :: Lens.Lens' RadiusSettings (Prelude.Maybe Prelude.Natural)
radiusSettings_radiusRetries :: Lens' RadiusSettings (Maybe Natural)
radiusSettings_radiusRetries = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RadiusSettings' {Maybe Natural
radiusRetries :: Maybe Natural
$sel:radiusRetries:RadiusSettings' :: RadiusSettings -> Maybe Natural
radiusRetries} -> Maybe Natural
radiusRetries) (\s :: RadiusSettings
s@RadiusSettings' {} Maybe Natural
a -> RadiusSettings
s {$sel:radiusRetries:RadiusSettings' :: Maybe Natural
radiusRetries = Maybe Natural
a} :: RadiusSettings)

-- | An array of strings that contains the fully qualified domain name (FQDN)
-- or IP addresses of the RADIUS server endpoints, or the FQDN or IP
-- addresses of your RADIUS server load balancer.
radiusSettings_radiusServers :: Lens.Lens' RadiusSettings (Prelude.Maybe [Prelude.Text])
radiusSettings_radiusServers :: Lens' RadiusSettings (Maybe [Text])
radiusSettings_radiusServers = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RadiusSettings' {Maybe [Text]
radiusServers :: Maybe [Text]
$sel:radiusServers:RadiusSettings' :: RadiusSettings -> Maybe [Text]
radiusServers} -> Maybe [Text]
radiusServers) (\s :: RadiusSettings
s@RadiusSettings' {} Maybe [Text]
a -> RadiusSettings
s {$sel:radiusServers:RadiusSettings' :: Maybe [Text]
radiusServers = Maybe [Text]
a} :: RadiusSettings) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The amount of time, in seconds, to wait for the RADIUS server to
-- respond.
radiusSettings_radiusTimeout :: Lens.Lens' RadiusSettings (Prelude.Maybe Prelude.Natural)
radiusSettings_radiusTimeout :: Lens' RadiusSettings (Maybe Natural)
radiusSettings_radiusTimeout = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RadiusSettings' {Maybe Natural
radiusTimeout :: Maybe Natural
$sel:radiusTimeout:RadiusSettings' :: RadiusSettings -> Maybe Natural
radiusTimeout} -> Maybe Natural
radiusTimeout) (\s :: RadiusSettings
s@RadiusSettings' {} Maybe Natural
a -> RadiusSettings
s {$sel:radiusTimeout:RadiusSettings' :: Maybe Natural
radiusTimeout = Maybe Natural
a} :: RadiusSettings)

-- | Required for enabling RADIUS on the directory.
radiusSettings_sharedSecret :: Lens.Lens' RadiusSettings (Prelude.Maybe Prelude.Text)
radiusSettings_sharedSecret :: Lens' RadiusSettings (Maybe Text)
radiusSettings_sharedSecret = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RadiusSettings' {Maybe (Sensitive Text)
sharedSecret :: Maybe (Sensitive Text)
$sel:sharedSecret:RadiusSettings' :: RadiusSettings -> Maybe (Sensitive Text)
sharedSecret} -> Maybe (Sensitive Text)
sharedSecret) (\s :: RadiusSettings
s@RadiusSettings' {} Maybe (Sensitive Text)
a -> RadiusSettings
s {$sel:sharedSecret:RadiusSettings' :: Maybe (Sensitive Text)
sharedSecret = Maybe (Sensitive Text)
a} :: RadiusSettings) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall a. Iso' (Sensitive a) a
Data._Sensitive

-- | Not currently used.
radiusSettings_useSameUsername :: Lens.Lens' RadiusSettings (Prelude.Maybe Prelude.Bool)
radiusSettings_useSameUsername :: Lens' RadiusSettings (Maybe Bool)
radiusSettings_useSameUsername = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RadiusSettings' {Maybe Bool
useSameUsername :: Maybe Bool
$sel:useSameUsername:RadiusSettings' :: RadiusSettings -> Maybe Bool
useSameUsername} -> Maybe Bool
useSameUsername) (\s :: RadiusSettings
s@RadiusSettings' {} Maybe Bool
a -> RadiusSettings
s {$sel:useSameUsername:RadiusSettings' :: Maybe Bool
useSameUsername = Maybe Bool
a} :: RadiusSettings)

instance Data.FromJSON RadiusSettings where
  parseJSON :: Value -> Parser RadiusSettings
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"RadiusSettings"
      ( \Object
x ->
          Maybe RadiusAuthenticationProtocol
-> Maybe Text
-> Maybe Natural
-> Maybe Natural
-> Maybe [Text]
-> Maybe Natural
-> Maybe (Sensitive Text)
-> Maybe Bool
-> RadiusSettings
RadiusSettings'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"AuthenticationProtocol")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DisplayLabel")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"RadiusPort")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"RadiusRetries")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"RadiusServers" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"RadiusTimeout")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"SharedSecret")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"UseSameUsername")
      )

instance Prelude.Hashable RadiusSettings where
  hashWithSalt :: Int -> RadiusSettings -> Int
hashWithSalt Int
_salt RadiusSettings' {Maybe Bool
Maybe Natural
Maybe [Text]
Maybe Text
Maybe (Sensitive Text)
Maybe RadiusAuthenticationProtocol
useSameUsername :: Maybe Bool
sharedSecret :: Maybe (Sensitive Text)
radiusTimeout :: Maybe Natural
radiusServers :: Maybe [Text]
radiusRetries :: Maybe Natural
radiusPort :: Maybe Natural
displayLabel :: Maybe Text
authenticationProtocol :: Maybe RadiusAuthenticationProtocol
$sel:useSameUsername:RadiusSettings' :: RadiusSettings -> Maybe Bool
$sel:sharedSecret:RadiusSettings' :: RadiusSettings -> Maybe (Sensitive Text)
$sel:radiusTimeout:RadiusSettings' :: RadiusSettings -> Maybe Natural
$sel:radiusServers:RadiusSettings' :: RadiusSettings -> Maybe [Text]
$sel:radiusRetries:RadiusSettings' :: RadiusSettings -> Maybe Natural
$sel:radiusPort:RadiusSettings' :: RadiusSettings -> Maybe Natural
$sel:displayLabel:RadiusSettings' :: RadiusSettings -> Maybe Text
$sel:authenticationProtocol:RadiusSettings' :: RadiusSettings -> Maybe RadiusAuthenticationProtocol
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe RadiusAuthenticationProtocol
authenticationProtocol
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
displayLabel
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
radiusPort
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
radiusRetries
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
radiusServers
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
radiusTimeout
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive Text)
sharedSecret
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
useSameUsername

instance Prelude.NFData RadiusSettings where
  rnf :: RadiusSettings -> ()
rnf RadiusSettings' {Maybe Bool
Maybe Natural
Maybe [Text]
Maybe Text
Maybe (Sensitive Text)
Maybe RadiusAuthenticationProtocol
useSameUsername :: Maybe Bool
sharedSecret :: Maybe (Sensitive Text)
radiusTimeout :: Maybe Natural
radiusServers :: Maybe [Text]
radiusRetries :: Maybe Natural
radiusPort :: Maybe Natural
displayLabel :: Maybe Text
authenticationProtocol :: Maybe RadiusAuthenticationProtocol
$sel:useSameUsername:RadiusSettings' :: RadiusSettings -> Maybe Bool
$sel:sharedSecret:RadiusSettings' :: RadiusSettings -> Maybe (Sensitive Text)
$sel:radiusTimeout:RadiusSettings' :: RadiusSettings -> Maybe Natural
$sel:radiusServers:RadiusSettings' :: RadiusSettings -> Maybe [Text]
$sel:radiusRetries:RadiusSettings' :: RadiusSettings -> Maybe Natural
$sel:radiusPort:RadiusSettings' :: RadiusSettings -> Maybe Natural
$sel:displayLabel:RadiusSettings' :: RadiusSettings -> Maybe Text
$sel:authenticationProtocol:RadiusSettings' :: RadiusSettings -> Maybe RadiusAuthenticationProtocol
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe RadiusAuthenticationProtocol
authenticationProtocol
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
displayLabel
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
radiusPort
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
radiusRetries
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
radiusServers
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
radiusTimeout
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive Text)
sharedSecret
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
useSameUsername

instance Data.ToJSON RadiusSettings where
  toJSON :: RadiusSettings -> Value
toJSON RadiusSettings' {Maybe Bool
Maybe Natural
Maybe [Text]
Maybe Text
Maybe (Sensitive Text)
Maybe RadiusAuthenticationProtocol
useSameUsername :: Maybe Bool
sharedSecret :: Maybe (Sensitive Text)
radiusTimeout :: Maybe Natural
radiusServers :: Maybe [Text]
radiusRetries :: Maybe Natural
radiusPort :: Maybe Natural
displayLabel :: Maybe Text
authenticationProtocol :: Maybe RadiusAuthenticationProtocol
$sel:useSameUsername:RadiusSettings' :: RadiusSettings -> Maybe Bool
$sel:sharedSecret:RadiusSettings' :: RadiusSettings -> Maybe (Sensitive Text)
$sel:radiusTimeout:RadiusSettings' :: RadiusSettings -> Maybe Natural
$sel:radiusServers:RadiusSettings' :: RadiusSettings -> Maybe [Text]
$sel:radiusRetries:RadiusSettings' :: RadiusSettings -> Maybe Natural
$sel:radiusPort:RadiusSettings' :: RadiusSettings -> Maybe Natural
$sel:displayLabel:RadiusSettings' :: RadiusSettings -> Maybe Text
$sel:authenticationProtocol:RadiusSettings' :: RadiusSettings -> Maybe RadiusAuthenticationProtocol
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"AuthenticationProtocol" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RadiusAuthenticationProtocol
authenticationProtocol,
            (Key
"DisplayLabel" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
displayLabel,
            (Key
"RadiusPort" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
radiusPort,
            (Key
"RadiusRetries" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
radiusRetries,
            (Key
"RadiusServers" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
radiusServers,
            (Key
"RadiusTimeout" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
radiusTimeout,
            (Key
"SharedSecret" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Sensitive Text)
sharedSecret,
            (Key
"UseSameUsername" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
useSameUsername
          ]
      )