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