module Stratosphere.RefactorSpaces.Route.DefaultRouteInputProperty (
        DefaultRouteInputProperty(..), mkDefaultRouteInputProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DefaultRouteInputProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-refactorspaces-route-defaultrouteinput.html>
    DefaultRouteInputProperty {DefaultRouteInputProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-refactorspaces-route-defaultrouteinput.html#cfn-refactorspaces-route-defaultrouteinput-activationstate>
                               DefaultRouteInputProperty -> Value Text
activationState :: (Value Prelude.Text)}
  deriving stock (DefaultRouteInputProperty -> DefaultRouteInputProperty -> Bool
(DefaultRouteInputProperty -> DefaultRouteInputProperty -> Bool)
-> (DefaultRouteInputProperty -> DefaultRouteInputProperty -> Bool)
-> Eq DefaultRouteInputProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DefaultRouteInputProperty -> DefaultRouteInputProperty -> Bool
== :: DefaultRouteInputProperty -> DefaultRouteInputProperty -> Bool
$c/= :: DefaultRouteInputProperty -> DefaultRouteInputProperty -> Bool
/= :: DefaultRouteInputProperty -> DefaultRouteInputProperty -> Bool
Prelude.Eq, Int -> DefaultRouteInputProperty -> ShowS
[DefaultRouteInputProperty] -> ShowS
DefaultRouteInputProperty -> String
(Int -> DefaultRouteInputProperty -> ShowS)
-> (DefaultRouteInputProperty -> String)
-> ([DefaultRouteInputProperty] -> ShowS)
-> Show DefaultRouteInputProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DefaultRouteInputProperty -> ShowS
showsPrec :: Int -> DefaultRouteInputProperty -> ShowS
$cshow :: DefaultRouteInputProperty -> String
show :: DefaultRouteInputProperty -> String
$cshowList :: [DefaultRouteInputProperty] -> ShowS
showList :: [DefaultRouteInputProperty] -> ShowS
Prelude.Show)
mkDefaultRouteInputProperty ::
  Value Prelude.Text -> DefaultRouteInputProperty
mkDefaultRouteInputProperty :: Value Text -> DefaultRouteInputProperty
mkDefaultRouteInputProperty Value Text
activationState
  = DefaultRouteInputProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), activationState :: Value Text
activationState = Value Text
activationState}
instance ToResourceProperties DefaultRouteInputProperty where
  toResourceProperties :: DefaultRouteInputProperty -> ResourceProperties
toResourceProperties DefaultRouteInputProperty {()
Value Text
haddock_workaround_ :: DefaultRouteInputProperty -> ()
activationState :: DefaultRouteInputProperty -> Value Text
haddock_workaround_ :: ()
activationState :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::RefactorSpaces::Route.DefaultRouteInput",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"ActivationState" 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
activationState]}
instance JSON.ToJSON DefaultRouteInputProperty where
  toJSON :: DefaultRouteInputProperty -> Value
toJSON DefaultRouteInputProperty {()
Value Text
haddock_workaround_ :: DefaultRouteInputProperty -> ()
activationState :: DefaultRouteInputProperty -> Value Text
haddock_workaround_ :: ()
activationState :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"ActivationState" 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
activationState]
instance Property "ActivationState" DefaultRouteInputProperty where
  type PropertyType "ActivationState" DefaultRouteInputProperty = Value Prelude.Text
  set :: PropertyType "ActivationState" DefaultRouteInputProperty
-> DefaultRouteInputProperty -> DefaultRouteInputProperty
set PropertyType "ActivationState" DefaultRouteInputProperty
newValue DefaultRouteInputProperty {()
Value Text
haddock_workaround_ :: DefaultRouteInputProperty -> ()
activationState :: DefaultRouteInputProperty -> Value Text
haddock_workaround_ :: ()
activationState :: Value Text
..}
    = DefaultRouteInputProperty {activationState :: Value Text
activationState = PropertyType "ActivationState" DefaultRouteInputProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}