module Stratosphere.NetworkManager.TransitGatewayRegistration (
        TransitGatewayRegistration(..), mkTransitGatewayRegistration
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TransitGatewayRegistration
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-transitgatewayregistration.html>
    TransitGatewayRegistration {TransitGatewayRegistration -> ()
haddock_workaround_ :: (),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-transitgatewayregistration.html#cfn-networkmanager-transitgatewayregistration-globalnetworkid>
                                TransitGatewayRegistration -> Value Text
globalNetworkId :: (Value Prelude.Text),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-transitgatewayregistration.html#cfn-networkmanager-transitgatewayregistration-transitgatewayarn>
                                TransitGatewayRegistration -> Value Text
transitGatewayArn :: (Value Prelude.Text)}
  deriving stock (TransitGatewayRegistration -> TransitGatewayRegistration -> Bool
(TransitGatewayRegistration -> TransitGatewayRegistration -> Bool)
-> (TransitGatewayRegistration
    -> TransitGatewayRegistration -> Bool)
-> Eq TransitGatewayRegistration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TransitGatewayRegistration -> TransitGatewayRegistration -> Bool
== :: TransitGatewayRegistration -> TransitGatewayRegistration -> Bool
$c/= :: TransitGatewayRegistration -> TransitGatewayRegistration -> Bool
/= :: TransitGatewayRegistration -> TransitGatewayRegistration -> Bool
Prelude.Eq, Int -> TransitGatewayRegistration -> ShowS
[TransitGatewayRegistration] -> ShowS
TransitGatewayRegistration -> String
(Int -> TransitGatewayRegistration -> ShowS)
-> (TransitGatewayRegistration -> String)
-> ([TransitGatewayRegistration] -> ShowS)
-> Show TransitGatewayRegistration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TransitGatewayRegistration -> ShowS
showsPrec :: Int -> TransitGatewayRegistration -> ShowS
$cshow :: TransitGatewayRegistration -> String
show :: TransitGatewayRegistration -> String
$cshowList :: [TransitGatewayRegistration] -> ShowS
showList :: [TransitGatewayRegistration] -> ShowS
Prelude.Show)
mkTransitGatewayRegistration ::
  Value Prelude.Text
  -> Value Prelude.Text -> TransitGatewayRegistration
mkTransitGatewayRegistration :: Value Text -> Value Text -> TransitGatewayRegistration
mkTransitGatewayRegistration Value Text
globalNetworkId Value Text
transitGatewayArn
  = TransitGatewayRegistration
      {haddock_workaround_ :: ()
haddock_workaround_ = (), globalNetworkId :: Value Text
globalNetworkId = Value Text
globalNetworkId,
       transitGatewayArn :: Value Text
transitGatewayArn = Value Text
transitGatewayArn}
instance ToResourceProperties TransitGatewayRegistration where
  toResourceProperties :: TransitGatewayRegistration -> ResourceProperties
toResourceProperties TransitGatewayRegistration {()
Value Text
haddock_workaround_ :: TransitGatewayRegistration -> ()
globalNetworkId :: TransitGatewayRegistration -> Value Text
transitGatewayArn :: TransitGatewayRegistration -> Value Text
haddock_workaround_ :: ()
globalNetworkId :: Value Text
transitGatewayArn :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::NetworkManager::TransitGatewayRegistration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [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
"TransitGatewayArn" 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
transitGatewayArn]}
instance JSON.ToJSON TransitGatewayRegistration where
  toJSON :: TransitGatewayRegistration -> Value
toJSON TransitGatewayRegistration {()
Value Text
haddock_workaround_ :: TransitGatewayRegistration -> ()
globalNetworkId :: TransitGatewayRegistration -> Value Text
transitGatewayArn :: TransitGatewayRegistration -> Value Text
haddock_workaround_ :: ()
globalNetworkId :: Value Text
transitGatewayArn :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [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
"TransitGatewayArn" 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
transitGatewayArn]
instance Property "GlobalNetworkId" TransitGatewayRegistration where
  type PropertyType "GlobalNetworkId" TransitGatewayRegistration = Value Prelude.Text
  set :: PropertyType "GlobalNetworkId" TransitGatewayRegistration
-> TransitGatewayRegistration -> TransitGatewayRegistration
set PropertyType "GlobalNetworkId" TransitGatewayRegistration
newValue TransitGatewayRegistration {()
Value Text
haddock_workaround_ :: TransitGatewayRegistration -> ()
globalNetworkId :: TransitGatewayRegistration -> Value Text
transitGatewayArn :: TransitGatewayRegistration -> Value Text
haddock_workaround_ :: ()
globalNetworkId :: Value Text
transitGatewayArn :: Value Text
..}
    = TransitGatewayRegistration {globalNetworkId :: Value Text
globalNetworkId = PropertyType "GlobalNetworkId" TransitGatewayRegistration
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
transitGatewayArn :: Value Text
haddock_workaround_ :: ()
transitGatewayArn :: Value Text
..}
instance Property "TransitGatewayArn" TransitGatewayRegistration where
  type PropertyType "TransitGatewayArn" TransitGatewayRegistration = Value Prelude.Text
  set :: PropertyType "TransitGatewayArn" TransitGatewayRegistration
-> TransitGatewayRegistration -> TransitGatewayRegistration
set PropertyType "TransitGatewayArn" TransitGatewayRegistration
newValue TransitGatewayRegistration {()
Value Text
haddock_workaround_ :: TransitGatewayRegistration -> ()
globalNetworkId :: TransitGatewayRegistration -> Value Text
transitGatewayArn :: TransitGatewayRegistration -> Value Text
haddock_workaround_ :: ()
globalNetworkId :: Value Text
transitGatewayArn :: Value Text
..}
    = TransitGatewayRegistration {transitGatewayArn :: Value Text
transitGatewayArn = PropertyType "TransitGatewayArn" TransitGatewayRegistration
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
globalNetworkId :: Value Text
haddock_workaround_ :: ()
globalNetworkId :: Value Text
..}