module Stratosphere.MSK.Configuration.LatestRevisionProperty (
LatestRevisionProperty(..), mkLatestRevisionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LatestRevisionProperty
=
LatestRevisionProperty {LatestRevisionProperty -> ()
haddock_workaround_ :: (),
LatestRevisionProperty -> Maybe (Value Text)
creationTime :: (Prelude.Maybe (Value Prelude.Text)),
LatestRevisionProperty -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
LatestRevisionProperty -> Maybe (Value Integer)
revision :: (Prelude.Maybe (Value Prelude.Integer))}
deriving stock (LatestRevisionProperty -> LatestRevisionProperty -> Bool
(LatestRevisionProperty -> LatestRevisionProperty -> Bool)
-> (LatestRevisionProperty -> LatestRevisionProperty -> Bool)
-> Eq LatestRevisionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LatestRevisionProperty -> LatestRevisionProperty -> Bool
== :: LatestRevisionProperty -> LatestRevisionProperty -> Bool
$c/= :: LatestRevisionProperty -> LatestRevisionProperty -> Bool
/= :: LatestRevisionProperty -> LatestRevisionProperty -> Bool
Prelude.Eq, Int -> LatestRevisionProperty -> ShowS
[LatestRevisionProperty] -> ShowS
LatestRevisionProperty -> String
(Int -> LatestRevisionProperty -> ShowS)
-> (LatestRevisionProperty -> String)
-> ([LatestRevisionProperty] -> ShowS)
-> Show LatestRevisionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LatestRevisionProperty -> ShowS
showsPrec :: Int -> LatestRevisionProperty -> ShowS
$cshow :: LatestRevisionProperty -> String
show :: LatestRevisionProperty -> String
$cshowList :: [LatestRevisionProperty] -> ShowS
showList :: [LatestRevisionProperty] -> ShowS
Prelude.Show)
mkLatestRevisionProperty :: LatestRevisionProperty
mkLatestRevisionProperty :: LatestRevisionProperty
mkLatestRevisionProperty
= LatestRevisionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), creationTime :: Maybe (Value Text)
creationTime = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, revision :: Maybe (Value Integer)
revision = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LatestRevisionProperty where
toResourceProperties :: LatestRevisionProperty -> ResourceProperties
toResourceProperties LatestRevisionProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: LatestRevisionProperty -> ()
creationTime :: LatestRevisionProperty -> Maybe (Value Text)
description :: LatestRevisionProperty -> Maybe (Value Text)
revision :: LatestRevisionProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
creationTime :: Maybe (Value Text)
description :: Maybe (Value Text)
revision :: Maybe (Value Integer)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MSK::Configuration.LatestRevision",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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
"CreationTime" (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)
creationTime,
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
"Description" (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)
description,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Revision" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
revision])}
instance JSON.ToJSON LatestRevisionProperty where
toJSON :: LatestRevisionProperty -> Value
toJSON LatestRevisionProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: LatestRevisionProperty -> ()
creationTime :: LatestRevisionProperty -> Maybe (Value Text)
description :: LatestRevisionProperty -> Maybe (Value Text)
revision :: LatestRevisionProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
creationTime :: Maybe (Value Text)
description :: Maybe (Value Text)
revision :: Maybe (Value Integer)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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
"CreationTime" (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)
creationTime,
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
"Description" (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)
description,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Revision" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
revision]))
instance Property "CreationTime" LatestRevisionProperty where
type PropertyType "CreationTime" LatestRevisionProperty = Value Prelude.Text
set :: PropertyType "CreationTime" LatestRevisionProperty
-> LatestRevisionProperty -> LatestRevisionProperty
set PropertyType "CreationTime" LatestRevisionProperty
newValue LatestRevisionProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: LatestRevisionProperty -> ()
creationTime :: LatestRevisionProperty -> Maybe (Value Text)
description :: LatestRevisionProperty -> Maybe (Value Text)
revision :: LatestRevisionProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
creationTime :: Maybe (Value Text)
description :: Maybe (Value Text)
revision :: Maybe (Value Integer)
..}
= LatestRevisionProperty {creationTime :: Maybe (Value Text)
creationTime = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CreationTime" LatestRevisionProperty
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
revision :: Maybe (Value Integer)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
revision :: Maybe (Value Integer)
..}
instance Property "Description" LatestRevisionProperty where
type PropertyType "Description" LatestRevisionProperty = Value Prelude.Text
set :: PropertyType "Description" LatestRevisionProperty
-> LatestRevisionProperty -> LatestRevisionProperty
set PropertyType "Description" LatestRevisionProperty
newValue LatestRevisionProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: LatestRevisionProperty -> ()
creationTime :: LatestRevisionProperty -> Maybe (Value Text)
description :: LatestRevisionProperty -> Maybe (Value Text)
revision :: LatestRevisionProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
creationTime :: Maybe (Value Text)
description :: Maybe (Value Text)
revision :: Maybe (Value Integer)
..}
= LatestRevisionProperty {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" LatestRevisionProperty
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
creationTime :: Maybe (Value Text)
revision :: Maybe (Value Integer)
haddock_workaround_ :: ()
creationTime :: Maybe (Value Text)
revision :: Maybe (Value Integer)
..}
instance Property "Revision" LatestRevisionProperty where
type PropertyType "Revision" LatestRevisionProperty = Value Prelude.Integer
set :: PropertyType "Revision" LatestRevisionProperty
-> LatestRevisionProperty -> LatestRevisionProperty
set PropertyType "Revision" LatestRevisionProperty
newValue LatestRevisionProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: LatestRevisionProperty -> ()
creationTime :: LatestRevisionProperty -> Maybe (Value Text)
description :: LatestRevisionProperty -> Maybe (Value Text)
revision :: LatestRevisionProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
creationTime :: Maybe (Value Text)
description :: Maybe (Value Text)
revision :: Maybe (Value Integer)
..}
= LatestRevisionProperty {revision :: Maybe (Value Integer)
revision = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Revision" LatestRevisionProperty
Value Integer
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
creationTime :: Maybe (Value Text)
description :: Maybe (Value Text)
haddock_workaround_ :: ()
creationTime :: Maybe (Value Text)
description :: Maybe (Value Text)
..}