module Stratosphere.KinesisAnalyticsV2.Application.ApplicationSystemRollbackConfigurationProperty (
ApplicationSystemRollbackConfigurationProperty(..),
mkApplicationSystemRollbackConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ApplicationSystemRollbackConfigurationProperty
=
ApplicationSystemRollbackConfigurationProperty {ApplicationSystemRollbackConfigurationProperty -> ()
haddock_workaround_ :: (),
ApplicationSystemRollbackConfigurationProperty -> Value Bool
rollbackEnabled :: (Value Prelude.Bool)}
deriving stock (ApplicationSystemRollbackConfigurationProperty
-> ApplicationSystemRollbackConfigurationProperty -> Bool
(ApplicationSystemRollbackConfigurationProperty
-> ApplicationSystemRollbackConfigurationProperty -> Bool)
-> (ApplicationSystemRollbackConfigurationProperty
-> ApplicationSystemRollbackConfigurationProperty -> Bool)
-> Eq ApplicationSystemRollbackConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ApplicationSystemRollbackConfigurationProperty
-> ApplicationSystemRollbackConfigurationProperty -> Bool
== :: ApplicationSystemRollbackConfigurationProperty
-> ApplicationSystemRollbackConfigurationProperty -> Bool
$c/= :: ApplicationSystemRollbackConfigurationProperty
-> ApplicationSystemRollbackConfigurationProperty -> Bool
/= :: ApplicationSystemRollbackConfigurationProperty
-> ApplicationSystemRollbackConfigurationProperty -> Bool
Prelude.Eq, Int -> ApplicationSystemRollbackConfigurationProperty -> ShowS
[ApplicationSystemRollbackConfigurationProperty] -> ShowS
ApplicationSystemRollbackConfigurationProperty -> String
(Int -> ApplicationSystemRollbackConfigurationProperty -> ShowS)
-> (ApplicationSystemRollbackConfigurationProperty -> String)
-> ([ApplicationSystemRollbackConfigurationProperty] -> ShowS)
-> Show ApplicationSystemRollbackConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ApplicationSystemRollbackConfigurationProperty -> ShowS
showsPrec :: Int -> ApplicationSystemRollbackConfigurationProperty -> ShowS
$cshow :: ApplicationSystemRollbackConfigurationProperty -> String
show :: ApplicationSystemRollbackConfigurationProperty -> String
$cshowList :: [ApplicationSystemRollbackConfigurationProperty] -> ShowS
showList :: [ApplicationSystemRollbackConfigurationProperty] -> ShowS
Prelude.Show)
mkApplicationSystemRollbackConfigurationProperty ::
Value Prelude.Bool
-> ApplicationSystemRollbackConfigurationProperty
mkApplicationSystemRollbackConfigurationProperty :: Value Bool -> ApplicationSystemRollbackConfigurationProperty
mkApplicationSystemRollbackConfigurationProperty Value Bool
rollbackEnabled
= ApplicationSystemRollbackConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), rollbackEnabled :: Value Bool
rollbackEnabled = Value Bool
rollbackEnabled}
instance ToResourceProperties ApplicationSystemRollbackConfigurationProperty where
toResourceProperties :: ApplicationSystemRollbackConfigurationProperty
-> ResourceProperties
toResourceProperties
ApplicationSystemRollbackConfigurationProperty {()
Value Bool
haddock_workaround_ :: ApplicationSystemRollbackConfigurationProperty -> ()
rollbackEnabled :: ApplicationSystemRollbackConfigurationProperty -> Value Bool
haddock_workaround_ :: ()
rollbackEnabled :: Value Bool
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::KinesisAnalyticsV2::Application.ApplicationSystemRollbackConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"RollbackEnabled" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
rollbackEnabled]}
instance JSON.ToJSON ApplicationSystemRollbackConfigurationProperty where
toJSON :: ApplicationSystemRollbackConfigurationProperty -> Value
toJSON ApplicationSystemRollbackConfigurationProperty {()
Value Bool
haddock_workaround_ :: ApplicationSystemRollbackConfigurationProperty -> ()
rollbackEnabled :: ApplicationSystemRollbackConfigurationProperty -> Value Bool
haddock_workaround_ :: ()
rollbackEnabled :: Value Bool
..}
= [(Key, Value)] -> Value
JSON.object [Key
"RollbackEnabled" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
rollbackEnabled]
instance Property "RollbackEnabled" ApplicationSystemRollbackConfigurationProperty where
type PropertyType "RollbackEnabled" ApplicationSystemRollbackConfigurationProperty = Value Prelude.Bool
set :: PropertyType
"RollbackEnabled" ApplicationSystemRollbackConfigurationProperty
-> ApplicationSystemRollbackConfigurationProperty
-> ApplicationSystemRollbackConfigurationProperty
set PropertyType
"RollbackEnabled" ApplicationSystemRollbackConfigurationProperty
newValue ApplicationSystemRollbackConfigurationProperty {()
Value Bool
haddock_workaround_ :: ApplicationSystemRollbackConfigurationProperty -> ()
rollbackEnabled :: ApplicationSystemRollbackConfigurationProperty -> Value Bool
haddock_workaround_ :: ()
rollbackEnabled :: Value Bool
..}
= ApplicationSystemRollbackConfigurationProperty
{rollbackEnabled :: Value Bool
rollbackEnabled = PropertyType
"RollbackEnabled" ApplicationSystemRollbackConfigurationProperty
Value Bool
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}