module Stratosphere.KinesisAnalyticsV2.Application.ApplicationSnapshotConfigurationProperty (
        ApplicationSnapshotConfigurationProperty(..),
        mkApplicationSnapshotConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ApplicationSnapshotConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-applicationsnapshotconfiguration.html>
    ApplicationSnapshotConfigurationProperty {ApplicationSnapshotConfigurationProperty -> ()
haddock_workaround_ :: (),
                                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-applicationsnapshotconfiguration.html#cfn-kinesisanalyticsv2-application-applicationsnapshotconfiguration-snapshotsenabled>
                                              ApplicationSnapshotConfigurationProperty -> Value Bool
snapshotsEnabled :: (Value Prelude.Bool)}
  deriving stock (ApplicationSnapshotConfigurationProperty
-> ApplicationSnapshotConfigurationProperty -> Bool
(ApplicationSnapshotConfigurationProperty
 -> ApplicationSnapshotConfigurationProperty -> Bool)
-> (ApplicationSnapshotConfigurationProperty
    -> ApplicationSnapshotConfigurationProperty -> Bool)
-> Eq ApplicationSnapshotConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ApplicationSnapshotConfigurationProperty
-> ApplicationSnapshotConfigurationProperty -> Bool
== :: ApplicationSnapshotConfigurationProperty
-> ApplicationSnapshotConfigurationProperty -> Bool
$c/= :: ApplicationSnapshotConfigurationProperty
-> ApplicationSnapshotConfigurationProperty -> Bool
/= :: ApplicationSnapshotConfigurationProperty
-> ApplicationSnapshotConfigurationProperty -> Bool
Prelude.Eq, Int -> ApplicationSnapshotConfigurationProperty -> ShowS
[ApplicationSnapshotConfigurationProperty] -> ShowS
ApplicationSnapshotConfigurationProperty -> String
(Int -> ApplicationSnapshotConfigurationProperty -> ShowS)
-> (ApplicationSnapshotConfigurationProperty -> String)
-> ([ApplicationSnapshotConfigurationProperty] -> ShowS)
-> Show ApplicationSnapshotConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ApplicationSnapshotConfigurationProperty -> ShowS
showsPrec :: Int -> ApplicationSnapshotConfigurationProperty -> ShowS
$cshow :: ApplicationSnapshotConfigurationProperty -> String
show :: ApplicationSnapshotConfigurationProperty -> String
$cshowList :: [ApplicationSnapshotConfigurationProperty] -> ShowS
showList :: [ApplicationSnapshotConfigurationProperty] -> ShowS
Prelude.Show)
mkApplicationSnapshotConfigurationProperty ::
  Value Prelude.Bool -> ApplicationSnapshotConfigurationProperty
mkApplicationSnapshotConfigurationProperty :: Value Bool -> ApplicationSnapshotConfigurationProperty
mkApplicationSnapshotConfigurationProperty Value Bool
snapshotsEnabled
  = ApplicationSnapshotConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), snapshotsEnabled :: Value Bool
snapshotsEnabled = Value Bool
snapshotsEnabled}
instance ToResourceProperties ApplicationSnapshotConfigurationProperty where
  toResourceProperties :: ApplicationSnapshotConfigurationProperty -> ResourceProperties
toResourceProperties ApplicationSnapshotConfigurationProperty {()
Value Bool
haddock_workaround_ :: ApplicationSnapshotConfigurationProperty -> ()
snapshotsEnabled :: ApplicationSnapshotConfigurationProperty -> Value Bool
haddock_workaround_ :: ()
snapshotsEnabled :: Value Bool
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::KinesisAnalyticsV2::Application.ApplicationSnapshotConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"SnapshotsEnabled" 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
snapshotsEnabled]}
instance JSON.ToJSON ApplicationSnapshotConfigurationProperty where
  toJSON :: ApplicationSnapshotConfigurationProperty -> Value
toJSON ApplicationSnapshotConfigurationProperty {()
Value Bool
haddock_workaround_ :: ApplicationSnapshotConfigurationProperty -> ()
snapshotsEnabled :: ApplicationSnapshotConfigurationProperty -> Value Bool
haddock_workaround_ :: ()
snapshotsEnabled :: Value Bool
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"SnapshotsEnabled" 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
snapshotsEnabled]
instance Property "SnapshotsEnabled" ApplicationSnapshotConfigurationProperty where
  type PropertyType "SnapshotsEnabled" ApplicationSnapshotConfigurationProperty = Value Prelude.Bool
  set :: PropertyType
  "SnapshotsEnabled" ApplicationSnapshotConfigurationProperty
-> ApplicationSnapshotConfigurationProperty
-> ApplicationSnapshotConfigurationProperty
set PropertyType
  "SnapshotsEnabled" ApplicationSnapshotConfigurationProperty
newValue ApplicationSnapshotConfigurationProperty {()
Value Bool
haddock_workaround_ :: ApplicationSnapshotConfigurationProperty -> ()
snapshotsEnabled :: ApplicationSnapshotConfigurationProperty -> Value Bool
haddock_workaround_ :: ()
snapshotsEnabled :: Value Bool
..}
    = ApplicationSnapshotConfigurationProperty
        {snapshotsEnabled :: Value Bool
snapshotsEnabled = PropertyType
  "SnapshotsEnabled" ApplicationSnapshotConfigurationProperty
Value Bool
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}