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