module Stratosphere.NetworkManager.ConnectPeer.ConnectPeerBgpConfigurationProperty (
ConnectPeerBgpConfigurationProperty(..),
mkConnectPeerBgpConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ConnectPeerBgpConfigurationProperty
=
ConnectPeerBgpConfigurationProperty {ConnectPeerBgpConfigurationProperty -> ()
haddock_workaround_ :: (),
ConnectPeerBgpConfigurationProperty -> Maybe (Value Text)
coreNetworkAddress :: (Prelude.Maybe (Value Prelude.Text)),
ConnectPeerBgpConfigurationProperty -> Maybe (Value Double)
coreNetworkAsn :: (Prelude.Maybe (Value Prelude.Double)),
ConnectPeerBgpConfigurationProperty -> Maybe (Value Text)
peerAddress :: (Prelude.Maybe (Value Prelude.Text)),
ConnectPeerBgpConfigurationProperty -> Maybe (Value Double)
peerAsn :: (Prelude.Maybe (Value Prelude.Double))}
deriving stock (ConnectPeerBgpConfigurationProperty
-> ConnectPeerBgpConfigurationProperty -> Bool
(ConnectPeerBgpConfigurationProperty
-> ConnectPeerBgpConfigurationProperty -> Bool)
-> (ConnectPeerBgpConfigurationProperty
-> ConnectPeerBgpConfigurationProperty -> Bool)
-> Eq ConnectPeerBgpConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ConnectPeerBgpConfigurationProperty
-> ConnectPeerBgpConfigurationProperty -> Bool
== :: ConnectPeerBgpConfigurationProperty
-> ConnectPeerBgpConfigurationProperty -> Bool
$c/= :: ConnectPeerBgpConfigurationProperty
-> ConnectPeerBgpConfigurationProperty -> Bool
/= :: ConnectPeerBgpConfigurationProperty
-> ConnectPeerBgpConfigurationProperty -> Bool
Prelude.Eq, Int -> ConnectPeerBgpConfigurationProperty -> ShowS
[ConnectPeerBgpConfigurationProperty] -> ShowS
ConnectPeerBgpConfigurationProperty -> String
(Int -> ConnectPeerBgpConfigurationProperty -> ShowS)
-> (ConnectPeerBgpConfigurationProperty -> String)
-> ([ConnectPeerBgpConfigurationProperty] -> ShowS)
-> Show ConnectPeerBgpConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ConnectPeerBgpConfigurationProperty -> ShowS
showsPrec :: Int -> ConnectPeerBgpConfigurationProperty -> ShowS
$cshow :: ConnectPeerBgpConfigurationProperty -> String
show :: ConnectPeerBgpConfigurationProperty -> String
$cshowList :: [ConnectPeerBgpConfigurationProperty] -> ShowS
showList :: [ConnectPeerBgpConfigurationProperty] -> ShowS
Prelude.Show)
mkConnectPeerBgpConfigurationProperty ::
ConnectPeerBgpConfigurationProperty
mkConnectPeerBgpConfigurationProperty :: ConnectPeerBgpConfigurationProperty
mkConnectPeerBgpConfigurationProperty
= ConnectPeerBgpConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), coreNetworkAddress :: Maybe (Value Text)
coreNetworkAddress = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
coreNetworkAsn :: Maybe (Value Double)
coreNetworkAsn = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing, peerAddress :: Maybe (Value Text)
peerAddress = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
peerAsn :: Maybe (Value Double)
peerAsn = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ConnectPeerBgpConfigurationProperty where
toResourceProperties :: ConnectPeerBgpConfigurationProperty -> ResourceProperties
toResourceProperties ConnectPeerBgpConfigurationProperty {Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ConnectPeerBgpConfigurationProperty -> ()
coreNetworkAddress :: ConnectPeerBgpConfigurationProperty -> Maybe (Value Text)
coreNetworkAsn :: ConnectPeerBgpConfigurationProperty -> Maybe (Value Double)
peerAddress :: ConnectPeerBgpConfigurationProperty -> Maybe (Value Text)
peerAsn :: ConnectPeerBgpConfigurationProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
coreNetworkAddress :: Maybe (Value Text)
coreNetworkAsn :: Maybe (Value Double)
peerAddress :: Maybe (Value Text)
peerAsn :: Maybe (Value Double)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::NetworkManager::ConnectPeer.ConnectPeerBgpConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CoreNetworkAddress" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
coreNetworkAddress,
Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CoreNetworkAsn" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
coreNetworkAsn,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PeerAddress" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
peerAddress,
Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PeerAsn" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
peerAsn])}
instance JSON.ToJSON ConnectPeerBgpConfigurationProperty where
toJSON :: ConnectPeerBgpConfigurationProperty -> Value
toJSON ConnectPeerBgpConfigurationProperty {Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ConnectPeerBgpConfigurationProperty -> ()
coreNetworkAddress :: ConnectPeerBgpConfigurationProperty -> Maybe (Value Text)
coreNetworkAsn :: ConnectPeerBgpConfigurationProperty -> Maybe (Value Double)
peerAddress :: ConnectPeerBgpConfigurationProperty -> Maybe (Value Text)
peerAsn :: ConnectPeerBgpConfigurationProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
coreNetworkAddress :: Maybe (Value Text)
coreNetworkAsn :: Maybe (Value Double)
peerAddress :: Maybe (Value Text)
peerAsn :: Maybe (Value Double)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CoreNetworkAddress" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
coreNetworkAddress,
Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CoreNetworkAsn" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
coreNetworkAsn,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PeerAddress" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
peerAddress,
Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PeerAsn" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
peerAsn]))
instance Property "CoreNetworkAddress" ConnectPeerBgpConfigurationProperty where
type PropertyType "CoreNetworkAddress" ConnectPeerBgpConfigurationProperty = Value Prelude.Text
set :: PropertyType
"CoreNetworkAddress" ConnectPeerBgpConfigurationProperty
-> ConnectPeerBgpConfigurationProperty
-> ConnectPeerBgpConfigurationProperty
set PropertyType
"CoreNetworkAddress" ConnectPeerBgpConfigurationProperty
newValue ConnectPeerBgpConfigurationProperty {Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ConnectPeerBgpConfigurationProperty -> ()
coreNetworkAddress :: ConnectPeerBgpConfigurationProperty -> Maybe (Value Text)
coreNetworkAsn :: ConnectPeerBgpConfigurationProperty -> Maybe (Value Double)
peerAddress :: ConnectPeerBgpConfigurationProperty -> Maybe (Value Text)
peerAsn :: ConnectPeerBgpConfigurationProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
coreNetworkAddress :: Maybe (Value Text)
coreNetworkAsn :: Maybe (Value Double)
peerAddress :: Maybe (Value Text)
peerAsn :: Maybe (Value Double)
..}
= ConnectPeerBgpConfigurationProperty
{coreNetworkAddress :: Maybe (Value Text)
coreNetworkAddress = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"CoreNetworkAddress" ConnectPeerBgpConfigurationProperty
Value Text
newValue, Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ()
coreNetworkAsn :: Maybe (Value Double)
peerAddress :: Maybe (Value Text)
peerAsn :: Maybe (Value Double)
haddock_workaround_ :: ()
coreNetworkAsn :: Maybe (Value Double)
peerAddress :: Maybe (Value Text)
peerAsn :: Maybe (Value Double)
..}
instance Property "CoreNetworkAsn" ConnectPeerBgpConfigurationProperty where
type PropertyType "CoreNetworkAsn" ConnectPeerBgpConfigurationProperty = Value Prelude.Double
set :: PropertyType "CoreNetworkAsn" ConnectPeerBgpConfigurationProperty
-> ConnectPeerBgpConfigurationProperty
-> ConnectPeerBgpConfigurationProperty
set PropertyType "CoreNetworkAsn" ConnectPeerBgpConfigurationProperty
newValue ConnectPeerBgpConfigurationProperty {Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ConnectPeerBgpConfigurationProperty -> ()
coreNetworkAddress :: ConnectPeerBgpConfigurationProperty -> Maybe (Value Text)
coreNetworkAsn :: ConnectPeerBgpConfigurationProperty -> Maybe (Value Double)
peerAddress :: ConnectPeerBgpConfigurationProperty -> Maybe (Value Text)
peerAsn :: ConnectPeerBgpConfigurationProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
coreNetworkAddress :: Maybe (Value Text)
coreNetworkAsn :: Maybe (Value Double)
peerAddress :: Maybe (Value Text)
peerAsn :: Maybe (Value Double)
..}
= ConnectPeerBgpConfigurationProperty
{coreNetworkAsn :: Maybe (Value Double)
coreNetworkAsn = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CoreNetworkAsn" ConnectPeerBgpConfigurationProperty
Value Double
newValue, Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ()
coreNetworkAddress :: Maybe (Value Text)
peerAddress :: Maybe (Value Text)
peerAsn :: Maybe (Value Double)
haddock_workaround_ :: ()
coreNetworkAddress :: Maybe (Value Text)
peerAddress :: Maybe (Value Text)
peerAsn :: Maybe (Value Double)
..}
instance Property "PeerAddress" ConnectPeerBgpConfigurationProperty where
type PropertyType "PeerAddress" ConnectPeerBgpConfigurationProperty = Value Prelude.Text
set :: PropertyType "PeerAddress" ConnectPeerBgpConfigurationProperty
-> ConnectPeerBgpConfigurationProperty
-> ConnectPeerBgpConfigurationProperty
set PropertyType "PeerAddress" ConnectPeerBgpConfigurationProperty
newValue ConnectPeerBgpConfigurationProperty {Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ConnectPeerBgpConfigurationProperty -> ()
coreNetworkAddress :: ConnectPeerBgpConfigurationProperty -> Maybe (Value Text)
coreNetworkAsn :: ConnectPeerBgpConfigurationProperty -> Maybe (Value Double)
peerAddress :: ConnectPeerBgpConfigurationProperty -> Maybe (Value Text)
peerAsn :: ConnectPeerBgpConfigurationProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
coreNetworkAddress :: Maybe (Value Text)
coreNetworkAsn :: Maybe (Value Double)
peerAddress :: Maybe (Value Text)
peerAsn :: Maybe (Value Double)
..}
= ConnectPeerBgpConfigurationProperty
{peerAddress :: Maybe (Value Text)
peerAddress = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PeerAddress" ConnectPeerBgpConfigurationProperty
Value Text
newValue, Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ()
coreNetworkAddress :: Maybe (Value Text)
coreNetworkAsn :: Maybe (Value Double)
peerAsn :: Maybe (Value Double)
haddock_workaround_ :: ()
coreNetworkAddress :: Maybe (Value Text)
coreNetworkAsn :: Maybe (Value Double)
peerAsn :: Maybe (Value Double)
..}
instance Property "PeerAsn" ConnectPeerBgpConfigurationProperty where
type PropertyType "PeerAsn" ConnectPeerBgpConfigurationProperty = Value Prelude.Double
set :: PropertyType "PeerAsn" ConnectPeerBgpConfigurationProperty
-> ConnectPeerBgpConfigurationProperty
-> ConnectPeerBgpConfigurationProperty
set PropertyType "PeerAsn" ConnectPeerBgpConfigurationProperty
newValue ConnectPeerBgpConfigurationProperty {Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ConnectPeerBgpConfigurationProperty -> ()
coreNetworkAddress :: ConnectPeerBgpConfigurationProperty -> Maybe (Value Text)
coreNetworkAsn :: ConnectPeerBgpConfigurationProperty -> Maybe (Value Double)
peerAddress :: ConnectPeerBgpConfigurationProperty -> Maybe (Value Text)
peerAsn :: ConnectPeerBgpConfigurationProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
coreNetworkAddress :: Maybe (Value Text)
coreNetworkAsn :: Maybe (Value Double)
peerAddress :: Maybe (Value Text)
peerAsn :: Maybe (Value Double)
..}
= ConnectPeerBgpConfigurationProperty
{peerAsn :: Maybe (Value Double)
peerAsn = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PeerAsn" ConnectPeerBgpConfigurationProperty
Value Double
newValue, Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ()
coreNetworkAddress :: Maybe (Value Text)
coreNetworkAsn :: Maybe (Value Double)
peerAddress :: Maybe (Value Text)
haddock_workaround_ :: ()
coreNetworkAddress :: Maybe (Value Text)
coreNetworkAsn :: Maybe (Value Double)
peerAddress :: Maybe (Value Text)
..}