{-# 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 #-}
module Amazonka.DirectConnect.Types.NewPublicVirtualInterface where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.DirectConnect.Types.AddressFamily
import Amazonka.DirectConnect.Types.RouteFilterPrefix
import Amazonka.DirectConnect.Types.Tag
import qualified Amazonka.Prelude as Prelude
data NewPublicVirtualInterface = NewPublicVirtualInterface'
{
NewPublicVirtualInterface -> Maybe AddressFamily
addressFamily :: Prelude.Maybe AddressFamily,
NewPublicVirtualInterface -> Maybe Text
amazonAddress :: Prelude.Maybe Prelude.Text,
NewPublicVirtualInterface -> Maybe Text
authKey :: Prelude.Maybe Prelude.Text,
NewPublicVirtualInterface -> Maybe Text
customerAddress :: Prelude.Maybe Prelude.Text,
NewPublicVirtualInterface -> Maybe [RouteFilterPrefix]
routeFilterPrefixes :: Prelude.Maybe [RouteFilterPrefix],
NewPublicVirtualInterface -> Maybe (NonEmpty Tag)
tags :: Prelude.Maybe (Prelude.NonEmpty Tag),
NewPublicVirtualInterface -> Text
virtualInterfaceName :: Prelude.Text,
NewPublicVirtualInterface -> Int
vlan :: Prelude.Int,
NewPublicVirtualInterface -> Int
asn :: Prelude.Int
}
deriving (NewPublicVirtualInterface -> NewPublicVirtualInterface -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: NewPublicVirtualInterface -> NewPublicVirtualInterface -> Bool
$c/= :: NewPublicVirtualInterface -> NewPublicVirtualInterface -> Bool
== :: NewPublicVirtualInterface -> NewPublicVirtualInterface -> Bool
$c== :: NewPublicVirtualInterface -> NewPublicVirtualInterface -> Bool
Prelude.Eq, ReadPrec [NewPublicVirtualInterface]
ReadPrec NewPublicVirtualInterface
Int -> ReadS NewPublicVirtualInterface
ReadS [NewPublicVirtualInterface]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [NewPublicVirtualInterface]
$creadListPrec :: ReadPrec [NewPublicVirtualInterface]
readPrec :: ReadPrec NewPublicVirtualInterface
$creadPrec :: ReadPrec NewPublicVirtualInterface
readList :: ReadS [NewPublicVirtualInterface]
$creadList :: ReadS [NewPublicVirtualInterface]
readsPrec :: Int -> ReadS NewPublicVirtualInterface
$creadsPrec :: Int -> ReadS NewPublicVirtualInterface
Prelude.Read, Int -> NewPublicVirtualInterface -> ShowS
[NewPublicVirtualInterface] -> ShowS
NewPublicVirtualInterface -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [NewPublicVirtualInterface] -> ShowS
$cshowList :: [NewPublicVirtualInterface] -> ShowS
show :: NewPublicVirtualInterface -> String
$cshow :: NewPublicVirtualInterface -> String
showsPrec :: Int -> NewPublicVirtualInterface -> ShowS
$cshowsPrec :: Int -> NewPublicVirtualInterface -> ShowS
Prelude.Show, forall x.
Rep NewPublicVirtualInterface x -> NewPublicVirtualInterface
forall x.
NewPublicVirtualInterface -> Rep NewPublicVirtualInterface x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep NewPublicVirtualInterface x -> NewPublicVirtualInterface
$cfrom :: forall x.
NewPublicVirtualInterface -> Rep NewPublicVirtualInterface x
Prelude.Generic)
newNewPublicVirtualInterface ::
Prelude.Text ->
Prelude.Int ->
Prelude.Int ->
NewPublicVirtualInterface
newNewPublicVirtualInterface :: Text -> Int -> Int -> NewPublicVirtualInterface
newNewPublicVirtualInterface
Text
pVirtualInterfaceName_
Int
pVlan_
Int
pAsn_ =
NewPublicVirtualInterface'
{ $sel:addressFamily:NewPublicVirtualInterface' :: Maybe AddressFamily
addressFamily =
forall a. Maybe a
Prelude.Nothing,
$sel:amazonAddress:NewPublicVirtualInterface' :: Maybe Text
amazonAddress = forall a. Maybe a
Prelude.Nothing,
$sel:authKey:NewPublicVirtualInterface' :: Maybe Text
authKey = forall a. Maybe a
Prelude.Nothing,
$sel:customerAddress:NewPublicVirtualInterface' :: Maybe Text
customerAddress = forall a. Maybe a
Prelude.Nothing,
$sel:routeFilterPrefixes:NewPublicVirtualInterface' :: Maybe [RouteFilterPrefix]
routeFilterPrefixes = forall a. Maybe a
Prelude.Nothing,
$sel:tags:NewPublicVirtualInterface' :: Maybe (NonEmpty Tag)
tags = forall a. Maybe a
Prelude.Nothing,
$sel:virtualInterfaceName:NewPublicVirtualInterface' :: Text
virtualInterfaceName = Text
pVirtualInterfaceName_,
$sel:vlan:NewPublicVirtualInterface' :: Int
vlan = Int
pVlan_,
$sel:asn:NewPublicVirtualInterface' :: Int
asn = Int
pAsn_
}
newPublicVirtualInterface_addressFamily :: Lens.Lens' NewPublicVirtualInterface (Prelude.Maybe AddressFamily)
newPublicVirtualInterface_addressFamily :: Lens' NewPublicVirtualInterface (Maybe AddressFamily)
newPublicVirtualInterface_addressFamily = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NewPublicVirtualInterface' {Maybe AddressFamily
addressFamily :: Maybe AddressFamily
$sel:addressFamily:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Maybe AddressFamily
addressFamily} -> Maybe AddressFamily
addressFamily) (\s :: NewPublicVirtualInterface
s@NewPublicVirtualInterface' {} Maybe AddressFamily
a -> NewPublicVirtualInterface
s {$sel:addressFamily:NewPublicVirtualInterface' :: Maybe AddressFamily
addressFamily = Maybe AddressFamily
a} :: NewPublicVirtualInterface)
newPublicVirtualInterface_amazonAddress :: Lens.Lens' NewPublicVirtualInterface (Prelude.Maybe Prelude.Text)
newPublicVirtualInterface_amazonAddress :: Lens' NewPublicVirtualInterface (Maybe Text)
newPublicVirtualInterface_amazonAddress = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NewPublicVirtualInterface' {Maybe Text
amazonAddress :: Maybe Text
$sel:amazonAddress:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Maybe Text
amazonAddress} -> Maybe Text
amazonAddress) (\s :: NewPublicVirtualInterface
s@NewPublicVirtualInterface' {} Maybe Text
a -> NewPublicVirtualInterface
s {$sel:amazonAddress:NewPublicVirtualInterface' :: Maybe Text
amazonAddress = Maybe Text
a} :: NewPublicVirtualInterface)
newPublicVirtualInterface_authKey :: Lens.Lens' NewPublicVirtualInterface (Prelude.Maybe Prelude.Text)
newPublicVirtualInterface_authKey :: Lens' NewPublicVirtualInterface (Maybe Text)
newPublicVirtualInterface_authKey = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NewPublicVirtualInterface' {Maybe Text
authKey :: Maybe Text
$sel:authKey:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Maybe Text
authKey} -> Maybe Text
authKey) (\s :: NewPublicVirtualInterface
s@NewPublicVirtualInterface' {} Maybe Text
a -> NewPublicVirtualInterface
s {$sel:authKey:NewPublicVirtualInterface' :: Maybe Text
authKey = Maybe Text
a} :: NewPublicVirtualInterface)
newPublicVirtualInterface_customerAddress :: Lens.Lens' NewPublicVirtualInterface (Prelude.Maybe Prelude.Text)
newPublicVirtualInterface_customerAddress :: Lens' NewPublicVirtualInterface (Maybe Text)
newPublicVirtualInterface_customerAddress = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NewPublicVirtualInterface' {Maybe Text
customerAddress :: Maybe Text
$sel:customerAddress:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Maybe Text
customerAddress} -> Maybe Text
customerAddress) (\s :: NewPublicVirtualInterface
s@NewPublicVirtualInterface' {} Maybe Text
a -> NewPublicVirtualInterface
s {$sel:customerAddress:NewPublicVirtualInterface' :: Maybe Text
customerAddress = Maybe Text
a} :: NewPublicVirtualInterface)
newPublicVirtualInterface_routeFilterPrefixes :: Lens.Lens' NewPublicVirtualInterface (Prelude.Maybe [RouteFilterPrefix])
newPublicVirtualInterface_routeFilterPrefixes :: Lens' NewPublicVirtualInterface (Maybe [RouteFilterPrefix])
newPublicVirtualInterface_routeFilterPrefixes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NewPublicVirtualInterface' {Maybe [RouteFilterPrefix]
routeFilterPrefixes :: Maybe [RouteFilterPrefix]
$sel:routeFilterPrefixes:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Maybe [RouteFilterPrefix]
routeFilterPrefixes} -> Maybe [RouteFilterPrefix]
routeFilterPrefixes) (\s :: NewPublicVirtualInterface
s@NewPublicVirtualInterface' {} Maybe [RouteFilterPrefix]
a -> NewPublicVirtualInterface
s {$sel:routeFilterPrefixes:NewPublicVirtualInterface' :: Maybe [RouteFilterPrefix]
routeFilterPrefixes = Maybe [RouteFilterPrefix]
a} :: NewPublicVirtualInterface) 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
newPublicVirtualInterface_tags :: Lens.Lens' NewPublicVirtualInterface (Prelude.Maybe (Prelude.NonEmpty Tag))
newPublicVirtualInterface_tags :: Lens' NewPublicVirtualInterface (Maybe (NonEmpty Tag))
newPublicVirtualInterface_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NewPublicVirtualInterface' {Maybe (NonEmpty Tag)
tags :: Maybe (NonEmpty Tag)
$sel:tags:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Maybe (NonEmpty Tag)
tags} -> Maybe (NonEmpty Tag)
tags) (\s :: NewPublicVirtualInterface
s@NewPublicVirtualInterface' {} Maybe (NonEmpty Tag)
a -> NewPublicVirtualInterface
s {$sel:tags:NewPublicVirtualInterface' :: Maybe (NonEmpty Tag)
tags = Maybe (NonEmpty Tag)
a} :: NewPublicVirtualInterface) 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
newPublicVirtualInterface_virtualInterfaceName :: Lens.Lens' NewPublicVirtualInterface Prelude.Text
newPublicVirtualInterface_virtualInterfaceName :: Lens' NewPublicVirtualInterface Text
newPublicVirtualInterface_virtualInterfaceName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NewPublicVirtualInterface' {Text
virtualInterfaceName :: Text
$sel:virtualInterfaceName:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Text
virtualInterfaceName} -> Text
virtualInterfaceName) (\s :: NewPublicVirtualInterface
s@NewPublicVirtualInterface' {} Text
a -> NewPublicVirtualInterface
s {$sel:virtualInterfaceName:NewPublicVirtualInterface' :: Text
virtualInterfaceName = Text
a} :: NewPublicVirtualInterface)
newPublicVirtualInterface_vlan :: Lens.Lens' NewPublicVirtualInterface Prelude.Int
newPublicVirtualInterface_vlan :: Lens' NewPublicVirtualInterface Int
newPublicVirtualInterface_vlan = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NewPublicVirtualInterface' {Int
vlan :: Int
$sel:vlan:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Int
vlan} -> Int
vlan) (\s :: NewPublicVirtualInterface
s@NewPublicVirtualInterface' {} Int
a -> NewPublicVirtualInterface
s {$sel:vlan:NewPublicVirtualInterface' :: Int
vlan = Int
a} :: NewPublicVirtualInterface)
newPublicVirtualInterface_asn :: Lens.Lens' NewPublicVirtualInterface Prelude.Int
newPublicVirtualInterface_asn :: Lens' NewPublicVirtualInterface Int
newPublicVirtualInterface_asn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NewPublicVirtualInterface' {Int
asn :: Int
$sel:asn:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Int
asn} -> Int
asn) (\s :: NewPublicVirtualInterface
s@NewPublicVirtualInterface' {} Int
a -> NewPublicVirtualInterface
s {$sel:asn:NewPublicVirtualInterface' :: Int
asn = Int
a} :: NewPublicVirtualInterface)
instance Prelude.Hashable NewPublicVirtualInterface where
hashWithSalt :: Int -> NewPublicVirtualInterface -> Int
hashWithSalt Int
_salt NewPublicVirtualInterface' {Int
Maybe [RouteFilterPrefix]
Maybe (NonEmpty Tag)
Maybe Text
Maybe AddressFamily
Text
asn :: Int
vlan :: Int
virtualInterfaceName :: Text
tags :: Maybe (NonEmpty Tag)
routeFilterPrefixes :: Maybe [RouteFilterPrefix]
customerAddress :: Maybe Text
authKey :: Maybe Text
amazonAddress :: Maybe Text
addressFamily :: Maybe AddressFamily
$sel:asn:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Int
$sel:vlan:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Int
$sel:virtualInterfaceName:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Text
$sel:tags:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Maybe (NonEmpty Tag)
$sel:routeFilterPrefixes:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Maybe [RouteFilterPrefix]
$sel:customerAddress:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Maybe Text
$sel:authKey:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Maybe Text
$sel:amazonAddress:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Maybe Text
$sel:addressFamily:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Maybe AddressFamily
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AddressFamily
addressFamily
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
amazonAddress
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
authKey
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
customerAddress
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [RouteFilterPrefix]
routeFilterPrefixes
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty Tag)
tags
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
virtualInterfaceName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Int
vlan
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Int
asn
instance Prelude.NFData NewPublicVirtualInterface where
rnf :: NewPublicVirtualInterface -> ()
rnf NewPublicVirtualInterface' {Int
Maybe [RouteFilterPrefix]
Maybe (NonEmpty Tag)
Maybe Text
Maybe AddressFamily
Text
asn :: Int
vlan :: Int
virtualInterfaceName :: Text
tags :: Maybe (NonEmpty Tag)
routeFilterPrefixes :: Maybe [RouteFilterPrefix]
customerAddress :: Maybe Text
authKey :: Maybe Text
amazonAddress :: Maybe Text
addressFamily :: Maybe AddressFamily
$sel:asn:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Int
$sel:vlan:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Int
$sel:virtualInterfaceName:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Text
$sel:tags:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Maybe (NonEmpty Tag)
$sel:routeFilterPrefixes:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Maybe [RouteFilterPrefix]
$sel:customerAddress:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Maybe Text
$sel:authKey:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Maybe Text
$sel:amazonAddress:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Maybe Text
$sel:addressFamily:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Maybe AddressFamily
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe AddressFamily
addressFamily
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
amazonAddress
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
authKey
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
customerAddress
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [RouteFilterPrefix]
routeFilterPrefixes
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty Tag)
tags
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
virtualInterfaceName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
vlan
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
asn
instance Data.ToJSON NewPublicVirtualInterface where
toJSON :: NewPublicVirtualInterface -> Value
toJSON NewPublicVirtualInterface' {Int
Maybe [RouteFilterPrefix]
Maybe (NonEmpty Tag)
Maybe Text
Maybe AddressFamily
Text
asn :: Int
vlan :: Int
virtualInterfaceName :: Text
tags :: Maybe (NonEmpty Tag)
routeFilterPrefixes :: Maybe [RouteFilterPrefix]
customerAddress :: Maybe Text
authKey :: Maybe Text
amazonAddress :: Maybe Text
addressFamily :: Maybe AddressFamily
$sel:asn:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Int
$sel:vlan:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Int
$sel:virtualInterfaceName:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Text
$sel:tags:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Maybe (NonEmpty Tag)
$sel:routeFilterPrefixes:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Maybe [RouteFilterPrefix]
$sel:customerAddress:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Maybe Text
$sel:authKey:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Maybe Text
$sel:amazonAddress:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Maybe Text
$sel:addressFamily:NewPublicVirtualInterface' :: NewPublicVirtualInterface -> Maybe AddressFamily
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"addressFamily" 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 AddressFamily
addressFamily,
(Key
"amazonAddress" 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
amazonAddress,
(Key
"authKey" 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
authKey,
(Key
"customerAddress" 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
customerAddress,
(Key
"routeFilterPrefixes" 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 [RouteFilterPrefix]
routeFilterPrefixes,
(Key
"tags" 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 (NonEmpty Tag)
tags,
forall a. a -> Maybe a
Prelude.Just
( Key
"virtualInterfaceName"
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
virtualInterfaceName
),
forall a. a -> Maybe a
Prelude.Just (Key
"vlan" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Int
vlan),
forall a. a -> Maybe a
Prelude.Just (Key
"asn" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Int
asn)
]
)