module Stratosphere.NetworkManager.LinkAssociation (
LinkAssociation(..), mkLinkAssociation
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LinkAssociation
=
LinkAssociation {LinkAssociation -> ()
haddock_workaround_ :: (),
LinkAssociation -> Value Text
deviceId :: (Value Prelude.Text),
LinkAssociation -> Value Text
globalNetworkId :: (Value Prelude.Text),
LinkAssociation -> Value Text
linkId :: (Value Prelude.Text)}
deriving stock (LinkAssociation -> LinkAssociation -> Bool
(LinkAssociation -> LinkAssociation -> Bool)
-> (LinkAssociation -> LinkAssociation -> Bool)
-> Eq LinkAssociation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LinkAssociation -> LinkAssociation -> Bool
== :: LinkAssociation -> LinkAssociation -> Bool
$c/= :: LinkAssociation -> LinkAssociation -> Bool
/= :: LinkAssociation -> LinkAssociation -> Bool
Prelude.Eq, Int -> LinkAssociation -> ShowS
[LinkAssociation] -> ShowS
LinkAssociation -> String
(Int -> LinkAssociation -> ShowS)
-> (LinkAssociation -> String)
-> ([LinkAssociation] -> ShowS)
-> Show LinkAssociation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LinkAssociation -> ShowS
showsPrec :: Int -> LinkAssociation -> ShowS
$cshow :: LinkAssociation -> String
show :: LinkAssociation -> String
$cshowList :: [LinkAssociation] -> ShowS
showList :: [LinkAssociation] -> ShowS
Prelude.Show)
mkLinkAssociation ::
Value Prelude.Text
-> Value Prelude.Text -> Value Prelude.Text -> LinkAssociation
mkLinkAssociation :: Value Text -> Value Text -> Value Text -> LinkAssociation
mkLinkAssociation Value Text
deviceId Value Text
globalNetworkId Value Text
linkId
= LinkAssociation
{haddock_workaround_ :: ()
haddock_workaround_ = (), deviceId :: Value Text
deviceId = Value Text
deviceId,
globalNetworkId :: Value Text
globalNetworkId = Value Text
globalNetworkId, linkId :: Value Text
linkId = Value Text
linkId}
instance ToResourceProperties LinkAssociation where
toResourceProperties :: LinkAssociation -> ResourceProperties
toResourceProperties LinkAssociation {()
Value Text
haddock_workaround_ :: LinkAssociation -> ()
deviceId :: LinkAssociation -> Value Text
globalNetworkId :: LinkAssociation -> Value Text
linkId :: LinkAssociation -> Value Text
haddock_workaround_ :: ()
deviceId :: Value Text
globalNetworkId :: Value Text
linkId :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::NetworkManager::LinkAssociation",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"DeviceId" 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..= Value Text
deviceId,
Key
"GlobalNetworkId" 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..= Value Text
globalNetworkId,
Key
"LinkId" 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..= Value Text
linkId]}
instance JSON.ToJSON LinkAssociation where
toJSON :: LinkAssociation -> Value
toJSON LinkAssociation {()
Value Text
haddock_workaround_ :: LinkAssociation -> ()
deviceId :: LinkAssociation -> Value Text
globalNetworkId :: LinkAssociation -> Value Text
linkId :: LinkAssociation -> Value Text
haddock_workaround_ :: ()
deviceId :: Value Text
globalNetworkId :: Value Text
linkId :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"DeviceId" 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..= Value Text
deviceId,
Key
"GlobalNetworkId" 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..= Value Text
globalNetworkId, Key
"LinkId" 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..= Value Text
linkId]
instance Property "DeviceId" LinkAssociation where
type PropertyType "DeviceId" LinkAssociation = Value Prelude.Text
set :: PropertyType "DeviceId" LinkAssociation
-> LinkAssociation -> LinkAssociation
set PropertyType "DeviceId" LinkAssociation
newValue LinkAssociation {()
Value Text
haddock_workaround_ :: LinkAssociation -> ()
deviceId :: LinkAssociation -> Value Text
globalNetworkId :: LinkAssociation -> Value Text
linkId :: LinkAssociation -> Value Text
haddock_workaround_ :: ()
deviceId :: Value Text
globalNetworkId :: Value Text
linkId :: Value Text
..}
= LinkAssociation {deviceId :: Value Text
deviceId = PropertyType "DeviceId" LinkAssociation
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
globalNetworkId :: Value Text
linkId :: Value Text
haddock_workaround_ :: ()
globalNetworkId :: Value Text
linkId :: Value Text
..}
instance Property "GlobalNetworkId" LinkAssociation where
type PropertyType "GlobalNetworkId" LinkAssociation = Value Prelude.Text
set :: PropertyType "GlobalNetworkId" LinkAssociation
-> LinkAssociation -> LinkAssociation
set PropertyType "GlobalNetworkId" LinkAssociation
newValue LinkAssociation {()
Value Text
haddock_workaround_ :: LinkAssociation -> ()
deviceId :: LinkAssociation -> Value Text
globalNetworkId :: LinkAssociation -> Value Text
linkId :: LinkAssociation -> Value Text
haddock_workaround_ :: ()
deviceId :: Value Text
globalNetworkId :: Value Text
linkId :: Value Text
..}
= LinkAssociation {globalNetworkId :: Value Text
globalNetworkId = PropertyType "GlobalNetworkId" LinkAssociation
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
deviceId :: Value Text
linkId :: Value Text
haddock_workaround_ :: ()
deviceId :: Value Text
linkId :: Value Text
..}
instance Property "LinkId" LinkAssociation where
type PropertyType "LinkId" LinkAssociation = Value Prelude.Text
set :: PropertyType "LinkId" LinkAssociation
-> LinkAssociation -> LinkAssociation
set PropertyType "LinkId" LinkAssociation
newValue LinkAssociation {()
Value Text
haddock_workaround_ :: LinkAssociation -> ()
deviceId :: LinkAssociation -> Value Text
globalNetworkId :: LinkAssociation -> Value Text
linkId :: LinkAssociation -> Value Text
haddock_workaround_ :: ()
deviceId :: Value Text
globalNetworkId :: Value Text
linkId :: Value Text
..}
= LinkAssociation {linkId :: Value Text
linkId = PropertyType "LinkId" LinkAssociation
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
deviceId :: Value Text
globalNetworkId :: Value Text
haddock_workaround_ :: ()
deviceId :: Value Text
globalNetworkId :: Value Text
..}