module Stratosphere.MSK.Configuration (
module Exports, Configuration(..), mkConfiguration
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.MSK.Configuration.LatestRevisionProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data Configuration
=
Configuration {Configuration -> ()
haddock_workaround_ :: (),
Configuration -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
Configuration -> Maybe (ValueList Text)
kafkaVersionsList :: (Prelude.Maybe (ValueList Prelude.Text)),
Configuration -> Maybe LatestRevisionProperty
latestRevision :: (Prelude.Maybe LatestRevisionProperty),
Configuration -> Value Text
name :: (Value Prelude.Text),
Configuration -> Value Text
serverProperties :: (Value Prelude.Text)}
deriving stock (Configuration -> Configuration -> Bool
(Configuration -> Configuration -> Bool)
-> (Configuration -> Configuration -> Bool) -> Eq Configuration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Configuration -> Configuration -> Bool
== :: Configuration -> Configuration -> Bool
$c/= :: Configuration -> Configuration -> Bool
/= :: Configuration -> Configuration -> Bool
Prelude.Eq, Int -> Configuration -> ShowS
[Configuration] -> ShowS
Configuration -> String
(Int -> Configuration -> ShowS)
-> (Configuration -> String)
-> ([Configuration] -> ShowS)
-> Show Configuration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Configuration -> ShowS
showsPrec :: Int -> Configuration -> ShowS
$cshow :: Configuration -> String
show :: Configuration -> String
$cshowList :: [Configuration] -> ShowS
showList :: [Configuration] -> ShowS
Prelude.Show)
mkConfiguration ::
Value Prelude.Text -> Value Prelude.Text -> Configuration
mkConfiguration :: Value Text -> Value Text -> Configuration
mkConfiguration Value Text
name Value Text
serverProperties
= Configuration
{haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name,
serverProperties :: Value Text
serverProperties = Value Text
serverProperties, description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
kafkaVersionsList :: Maybe (ValueList Text)
kafkaVersionsList = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
latestRevision :: Maybe LatestRevisionProperty
latestRevision = Maybe LatestRevisionProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Configuration where
toResourceProperties :: Configuration -> ResourceProperties
toResourceProperties Configuration {Maybe (ValueList Text)
Maybe (Value Text)
Maybe LatestRevisionProperty
()
Value Text
haddock_workaround_ :: Configuration -> ()
description :: Configuration -> Maybe (Value Text)
kafkaVersionsList :: Configuration -> Maybe (ValueList Text)
latestRevision :: Configuration -> Maybe LatestRevisionProperty
name :: Configuration -> Value Text
serverProperties :: Configuration -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
kafkaVersionsList :: Maybe (ValueList Text)
latestRevision :: Maybe LatestRevisionProperty
name :: Value Text
serverProperties :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MSK::Configuration", 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
"Name" 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
name, Key
"ServerProperties" 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
serverProperties]
([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
"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 -> ValueList 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
"KafkaVersionsList" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
kafkaVersionsList,
Key -> LatestRevisionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LatestRevision" (LatestRevisionProperty -> (Key, Value))
-> Maybe LatestRevisionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LatestRevisionProperty
latestRevision]))}
instance JSON.ToJSON Configuration where
toJSON :: Configuration -> Value
toJSON Configuration {Maybe (ValueList Text)
Maybe (Value Text)
Maybe LatestRevisionProperty
()
Value Text
haddock_workaround_ :: Configuration -> ()
description :: Configuration -> Maybe (Value Text)
kafkaVersionsList :: Configuration -> Maybe (ValueList Text)
latestRevision :: Configuration -> Maybe LatestRevisionProperty
name :: Configuration -> Value Text
serverProperties :: Configuration -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
kafkaVersionsList :: Maybe (ValueList Text)
latestRevision :: Maybe LatestRevisionProperty
name :: Value Text
serverProperties :: 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
"Name" 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
name, Key
"ServerProperties" 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
serverProperties]
([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
"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 -> ValueList 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
"KafkaVersionsList" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
kafkaVersionsList,
Key -> LatestRevisionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LatestRevision" (LatestRevisionProperty -> (Key, Value))
-> Maybe LatestRevisionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LatestRevisionProperty
latestRevision])))
instance Property "Description" Configuration where
type PropertyType "Description" Configuration = Value Prelude.Text
set :: PropertyType "Description" Configuration
-> Configuration -> Configuration
set PropertyType "Description" Configuration
newValue Configuration {Maybe (ValueList Text)
Maybe (Value Text)
Maybe LatestRevisionProperty
()
Value Text
haddock_workaround_ :: Configuration -> ()
description :: Configuration -> Maybe (Value Text)
kafkaVersionsList :: Configuration -> Maybe (ValueList Text)
latestRevision :: Configuration -> Maybe LatestRevisionProperty
name :: Configuration -> Value Text
serverProperties :: Configuration -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
kafkaVersionsList :: Maybe (ValueList Text)
latestRevision :: Maybe LatestRevisionProperty
name :: Value Text
serverProperties :: Value Text
..}
= Configuration {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" Configuration
Value Text
newValue, Maybe (ValueList Text)
Maybe LatestRevisionProperty
()
Value Text
haddock_workaround_ :: ()
kafkaVersionsList :: Maybe (ValueList Text)
latestRevision :: Maybe LatestRevisionProperty
name :: Value Text
serverProperties :: Value Text
haddock_workaround_ :: ()
kafkaVersionsList :: Maybe (ValueList Text)
latestRevision :: Maybe LatestRevisionProperty
name :: Value Text
serverProperties :: Value Text
..}
instance Property "KafkaVersionsList" Configuration where
type PropertyType "KafkaVersionsList" Configuration = ValueList Prelude.Text
set :: PropertyType "KafkaVersionsList" Configuration
-> Configuration -> Configuration
set PropertyType "KafkaVersionsList" Configuration
newValue Configuration {Maybe (ValueList Text)
Maybe (Value Text)
Maybe LatestRevisionProperty
()
Value Text
haddock_workaround_ :: Configuration -> ()
description :: Configuration -> Maybe (Value Text)
kafkaVersionsList :: Configuration -> Maybe (ValueList Text)
latestRevision :: Configuration -> Maybe LatestRevisionProperty
name :: Configuration -> Value Text
serverProperties :: Configuration -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
kafkaVersionsList :: Maybe (ValueList Text)
latestRevision :: Maybe LatestRevisionProperty
name :: Value Text
serverProperties :: Value Text
..}
= Configuration {kafkaVersionsList :: Maybe (ValueList Text)
kafkaVersionsList = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KafkaVersionsList" Configuration
ValueList Text
newValue, Maybe (Value Text)
Maybe LatestRevisionProperty
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
latestRevision :: Maybe LatestRevisionProperty
name :: Value Text
serverProperties :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
latestRevision :: Maybe LatestRevisionProperty
name :: Value Text
serverProperties :: Value Text
..}
instance Property "LatestRevision" Configuration where
type PropertyType "LatestRevision" Configuration = LatestRevisionProperty
set :: PropertyType "LatestRevision" Configuration
-> Configuration -> Configuration
set PropertyType "LatestRevision" Configuration
newValue Configuration {Maybe (ValueList Text)
Maybe (Value Text)
Maybe LatestRevisionProperty
()
Value Text
haddock_workaround_ :: Configuration -> ()
description :: Configuration -> Maybe (Value Text)
kafkaVersionsList :: Configuration -> Maybe (ValueList Text)
latestRevision :: Configuration -> Maybe LatestRevisionProperty
name :: Configuration -> Value Text
serverProperties :: Configuration -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
kafkaVersionsList :: Maybe (ValueList Text)
latestRevision :: Maybe LatestRevisionProperty
name :: Value Text
serverProperties :: Value Text
..}
= Configuration {latestRevision :: Maybe LatestRevisionProperty
latestRevision = LatestRevisionProperty -> Maybe LatestRevisionProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LatestRevision" Configuration
LatestRevisionProperty
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
kafkaVersionsList :: Maybe (ValueList Text)
name :: Value Text
serverProperties :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
kafkaVersionsList :: Maybe (ValueList Text)
name :: Value Text
serverProperties :: Value Text
..}
instance Property "Name" Configuration where
type PropertyType "Name" Configuration = Value Prelude.Text
set :: PropertyType "Name" Configuration -> Configuration -> Configuration
set PropertyType "Name" Configuration
newValue Configuration {Maybe (ValueList Text)
Maybe (Value Text)
Maybe LatestRevisionProperty
()
Value Text
haddock_workaround_ :: Configuration -> ()
description :: Configuration -> Maybe (Value Text)
kafkaVersionsList :: Configuration -> Maybe (ValueList Text)
latestRevision :: Configuration -> Maybe LatestRevisionProperty
name :: Configuration -> Value Text
serverProperties :: Configuration -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
kafkaVersionsList :: Maybe (ValueList Text)
latestRevision :: Maybe LatestRevisionProperty
name :: Value Text
serverProperties :: Value Text
..}
= Configuration {name :: Value Text
name = PropertyType "Name" Configuration
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
Maybe LatestRevisionProperty
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
kafkaVersionsList :: Maybe (ValueList Text)
latestRevision :: Maybe LatestRevisionProperty
serverProperties :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
kafkaVersionsList :: Maybe (ValueList Text)
latestRevision :: Maybe LatestRevisionProperty
serverProperties :: Value Text
..}
instance Property "ServerProperties" Configuration where
type PropertyType "ServerProperties" Configuration = Value Prelude.Text
set :: PropertyType "ServerProperties" Configuration
-> Configuration -> Configuration
set PropertyType "ServerProperties" Configuration
newValue Configuration {Maybe (ValueList Text)
Maybe (Value Text)
Maybe LatestRevisionProperty
()
Value Text
haddock_workaround_ :: Configuration -> ()
description :: Configuration -> Maybe (Value Text)
kafkaVersionsList :: Configuration -> Maybe (ValueList Text)
latestRevision :: Configuration -> Maybe LatestRevisionProperty
name :: Configuration -> Value Text
serverProperties :: Configuration -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
kafkaVersionsList :: Maybe (ValueList Text)
latestRevision :: Maybe LatestRevisionProperty
name :: Value Text
serverProperties :: Value Text
..}
= Configuration {serverProperties :: Value Text
serverProperties = PropertyType "ServerProperties" Configuration
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
Maybe LatestRevisionProperty
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
kafkaVersionsList :: Maybe (ValueList Text)
latestRevision :: Maybe LatestRevisionProperty
name :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
kafkaVersionsList :: Maybe (ValueList Text)
latestRevision :: Maybe LatestRevisionProperty
name :: Value Text
..}