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