module Stratosphere.MSK.Cluster.ConfigurationInfoProperty (
        ConfigurationInfoProperty(..), mkConfigurationInfoProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ConfigurationInfoProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-configurationinfo.html>
    ConfigurationInfoProperty {ConfigurationInfoProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-configurationinfo.html#cfn-msk-cluster-configurationinfo-arn>
                               ConfigurationInfoProperty -> Value Text
arn :: (Value Prelude.Text),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-configurationinfo.html#cfn-msk-cluster-configurationinfo-revision>
                               ConfigurationInfoProperty -> Value Integer
revision :: (Value Prelude.Integer)}
  deriving stock (ConfigurationInfoProperty -> ConfigurationInfoProperty -> Bool
(ConfigurationInfoProperty -> ConfigurationInfoProperty -> Bool)
-> (ConfigurationInfoProperty -> ConfigurationInfoProperty -> Bool)
-> Eq ConfigurationInfoProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ConfigurationInfoProperty -> ConfigurationInfoProperty -> Bool
== :: ConfigurationInfoProperty -> ConfigurationInfoProperty -> Bool
$c/= :: ConfigurationInfoProperty -> ConfigurationInfoProperty -> Bool
/= :: ConfigurationInfoProperty -> ConfigurationInfoProperty -> Bool
Prelude.Eq, Int -> ConfigurationInfoProperty -> ShowS
[ConfigurationInfoProperty] -> ShowS
ConfigurationInfoProperty -> String
(Int -> ConfigurationInfoProperty -> ShowS)
-> (ConfigurationInfoProperty -> String)
-> ([ConfigurationInfoProperty] -> ShowS)
-> Show ConfigurationInfoProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ConfigurationInfoProperty -> ShowS
showsPrec :: Int -> ConfigurationInfoProperty -> ShowS
$cshow :: ConfigurationInfoProperty -> String
show :: ConfigurationInfoProperty -> String
$cshowList :: [ConfigurationInfoProperty] -> ShowS
showList :: [ConfigurationInfoProperty] -> ShowS
Prelude.Show)
mkConfigurationInfoProperty ::
  Value Prelude.Text
  -> Value Prelude.Integer -> ConfigurationInfoProperty
mkConfigurationInfoProperty :: Value Text -> Value Integer -> ConfigurationInfoProperty
mkConfigurationInfoProperty Value Text
arn Value Integer
revision
  = ConfigurationInfoProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), arn :: Value Text
arn = Value Text
arn, revision :: Value Integer
revision = Value Integer
revision}
instance ToResourceProperties ConfigurationInfoProperty where
  toResourceProperties :: ConfigurationInfoProperty -> ResourceProperties
toResourceProperties ConfigurationInfoProperty {()
Value Integer
Value Text
haddock_workaround_ :: ConfigurationInfoProperty -> ()
arn :: ConfigurationInfoProperty -> Value Text
revision :: ConfigurationInfoProperty -> Value Integer
haddock_workaround_ :: ()
arn :: Value Text
revision :: Value Integer
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MSK::Cluster.ConfigurationInfo",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Arn" 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
arn, Key
"Revision" 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..= Value Integer
revision]}
instance JSON.ToJSON ConfigurationInfoProperty where
  toJSON :: ConfigurationInfoProperty -> Value
toJSON ConfigurationInfoProperty {()
Value Integer
Value Text
haddock_workaround_ :: ConfigurationInfoProperty -> ()
arn :: ConfigurationInfoProperty -> Value Text
revision :: ConfigurationInfoProperty -> Value Integer
haddock_workaround_ :: ()
arn :: Value Text
revision :: Value Integer
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Arn" 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
arn, Key
"Revision" 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..= Value Integer
revision]
instance Property "Arn" ConfigurationInfoProperty where
  type PropertyType "Arn" ConfigurationInfoProperty = Value Prelude.Text
  set :: PropertyType "Arn" ConfigurationInfoProperty
-> ConfigurationInfoProperty -> ConfigurationInfoProperty
set PropertyType "Arn" ConfigurationInfoProperty
newValue ConfigurationInfoProperty {()
Value Integer
Value Text
haddock_workaround_ :: ConfigurationInfoProperty -> ()
arn :: ConfigurationInfoProperty -> Value Text
revision :: ConfigurationInfoProperty -> Value Integer
haddock_workaround_ :: ()
arn :: Value Text
revision :: Value Integer
..}
    = ConfigurationInfoProperty {arn :: Value Text
arn = PropertyType "Arn" ConfigurationInfoProperty
Value Text
newValue, ()
Value Integer
haddock_workaround_ :: ()
revision :: Value Integer
haddock_workaround_ :: ()
revision :: Value Integer
..}
instance Property "Revision" ConfigurationInfoProperty where
  type PropertyType "Revision" ConfigurationInfoProperty = Value Prelude.Integer
  set :: PropertyType "Revision" ConfigurationInfoProperty
-> ConfigurationInfoProperty -> ConfigurationInfoProperty
set PropertyType "Revision" ConfigurationInfoProperty
newValue ConfigurationInfoProperty {()
Value Integer
Value Text
haddock_workaround_ :: ConfigurationInfoProperty -> ()
arn :: ConfigurationInfoProperty -> Value Text
revision :: ConfigurationInfoProperty -> Value Integer
haddock_workaround_ :: ()
arn :: Value Text
revision :: Value Integer
..}
    = ConfigurationInfoProperty {revision :: Value Integer
revision = PropertyType "Revision" ConfigurationInfoProperty
Value Integer
newValue, ()
Value Text
haddock_workaround_ :: ()
arn :: Value Text
haddock_workaround_ :: ()
arn :: Value Text
..}