module Stratosphere.KinesisAnalyticsV2.Application.ApplicationRestoreConfigurationProperty (
ApplicationRestoreConfigurationProperty(..),
mkApplicationRestoreConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ApplicationRestoreConfigurationProperty
=
ApplicationRestoreConfigurationProperty {ApplicationRestoreConfigurationProperty -> ()
haddock_workaround_ :: (),
ApplicationRestoreConfigurationProperty -> Value Text
applicationRestoreType :: (Value Prelude.Text),
ApplicationRestoreConfigurationProperty -> Maybe (Value Text)
snapshotName :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ApplicationRestoreConfigurationProperty
-> ApplicationRestoreConfigurationProperty -> Bool
(ApplicationRestoreConfigurationProperty
-> ApplicationRestoreConfigurationProperty -> Bool)
-> (ApplicationRestoreConfigurationProperty
-> ApplicationRestoreConfigurationProperty -> Bool)
-> Eq ApplicationRestoreConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ApplicationRestoreConfigurationProperty
-> ApplicationRestoreConfigurationProperty -> Bool
== :: ApplicationRestoreConfigurationProperty
-> ApplicationRestoreConfigurationProperty -> Bool
$c/= :: ApplicationRestoreConfigurationProperty
-> ApplicationRestoreConfigurationProperty -> Bool
/= :: ApplicationRestoreConfigurationProperty
-> ApplicationRestoreConfigurationProperty -> Bool
Prelude.Eq, Int -> ApplicationRestoreConfigurationProperty -> ShowS
[ApplicationRestoreConfigurationProperty] -> ShowS
ApplicationRestoreConfigurationProperty -> String
(Int -> ApplicationRestoreConfigurationProperty -> ShowS)
-> (ApplicationRestoreConfigurationProperty -> String)
-> ([ApplicationRestoreConfigurationProperty] -> ShowS)
-> Show ApplicationRestoreConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ApplicationRestoreConfigurationProperty -> ShowS
showsPrec :: Int -> ApplicationRestoreConfigurationProperty -> ShowS
$cshow :: ApplicationRestoreConfigurationProperty -> String
show :: ApplicationRestoreConfigurationProperty -> String
$cshowList :: [ApplicationRestoreConfigurationProperty] -> ShowS
showList :: [ApplicationRestoreConfigurationProperty] -> ShowS
Prelude.Show)
mkApplicationRestoreConfigurationProperty ::
Value Prelude.Text -> ApplicationRestoreConfigurationProperty
mkApplicationRestoreConfigurationProperty :: Value Text -> ApplicationRestoreConfigurationProperty
mkApplicationRestoreConfigurationProperty Value Text
applicationRestoreType
= ApplicationRestoreConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
applicationRestoreType :: Value Text
applicationRestoreType = Value Text
applicationRestoreType,
snapshotName :: Maybe (Value Text)
snapshotName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ApplicationRestoreConfigurationProperty where
toResourceProperties :: ApplicationRestoreConfigurationProperty -> ResourceProperties
toResourceProperties ApplicationRestoreConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ApplicationRestoreConfigurationProperty -> ()
applicationRestoreType :: ApplicationRestoreConfigurationProperty -> Value Text
snapshotName :: ApplicationRestoreConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
applicationRestoreType :: Value Text
snapshotName :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::KinesisAnalyticsV2::Application.ApplicationRestoreConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"ApplicationRestoreType" 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
applicationRestoreType]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"SnapshotName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
snapshotName]))}
instance JSON.ToJSON ApplicationRestoreConfigurationProperty where
toJSON :: ApplicationRestoreConfigurationProperty -> Value
toJSON ApplicationRestoreConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ApplicationRestoreConfigurationProperty -> ()
applicationRestoreType :: ApplicationRestoreConfigurationProperty -> Value Text
snapshotName :: ApplicationRestoreConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
applicationRestoreType :: Value Text
snapshotName :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"ApplicationRestoreType" 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
applicationRestoreType]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"SnapshotName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
snapshotName])))
instance Property "ApplicationRestoreType" ApplicationRestoreConfigurationProperty where
type PropertyType "ApplicationRestoreType" ApplicationRestoreConfigurationProperty = Value Prelude.Text
set :: PropertyType
"ApplicationRestoreType" ApplicationRestoreConfigurationProperty
-> ApplicationRestoreConfigurationProperty
-> ApplicationRestoreConfigurationProperty
set PropertyType
"ApplicationRestoreType" ApplicationRestoreConfigurationProperty
newValue ApplicationRestoreConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ApplicationRestoreConfigurationProperty -> ()
applicationRestoreType :: ApplicationRestoreConfigurationProperty -> Value Text
snapshotName :: ApplicationRestoreConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
applicationRestoreType :: Value Text
snapshotName :: Maybe (Value Text)
..}
= ApplicationRestoreConfigurationProperty
{applicationRestoreType :: Value Text
applicationRestoreType = PropertyType
"ApplicationRestoreType" ApplicationRestoreConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
snapshotName :: Maybe (Value Text)
haddock_workaround_ :: ()
snapshotName :: Maybe (Value Text)
..}
instance Property "SnapshotName" ApplicationRestoreConfigurationProperty where
type PropertyType "SnapshotName" ApplicationRestoreConfigurationProperty = Value Prelude.Text
set :: PropertyType "SnapshotName" ApplicationRestoreConfigurationProperty
-> ApplicationRestoreConfigurationProperty
-> ApplicationRestoreConfigurationProperty
set PropertyType "SnapshotName" ApplicationRestoreConfigurationProperty
newValue ApplicationRestoreConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ApplicationRestoreConfigurationProperty -> ()
applicationRestoreType :: ApplicationRestoreConfigurationProperty -> Value Text
snapshotName :: ApplicationRestoreConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
applicationRestoreType :: Value Text
snapshotName :: Maybe (Value Text)
..}
= ApplicationRestoreConfigurationProperty
{snapshotName :: Maybe (Value Text)
snapshotName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SnapshotName" ApplicationRestoreConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
applicationRestoreType :: Value Text
haddock_workaround_ :: ()
applicationRestoreType :: Value Text
..}