module Stratosphere.MSK.BatchScramSecret (
        BatchScramSecret(..), mkBatchScramSecret
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data BatchScramSecret
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-batchscramsecret.html>
    BatchScramSecret {BatchScramSecret -> ()
haddock_workaround_ :: (),
                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-batchscramsecret.html#cfn-msk-batchscramsecret-clusterarn>
                      BatchScramSecret -> Value Text
clusterArn :: (Value Prelude.Text),
                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-batchscramsecret.html#cfn-msk-batchscramsecret-secretarnlist>
                      BatchScramSecret -> Maybe (ValueList Text)
secretArnList :: (Prelude.Maybe (ValueList Prelude.Text))}
  deriving stock (BatchScramSecret -> BatchScramSecret -> Bool
(BatchScramSecret -> BatchScramSecret -> Bool)
-> (BatchScramSecret -> BatchScramSecret -> Bool)
-> Eq BatchScramSecret
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: BatchScramSecret -> BatchScramSecret -> Bool
== :: BatchScramSecret -> BatchScramSecret -> Bool
$c/= :: BatchScramSecret -> BatchScramSecret -> Bool
/= :: BatchScramSecret -> BatchScramSecret -> Bool
Prelude.Eq, Int -> BatchScramSecret -> ShowS
[BatchScramSecret] -> ShowS
BatchScramSecret -> String
(Int -> BatchScramSecret -> ShowS)
-> (BatchScramSecret -> String)
-> ([BatchScramSecret] -> ShowS)
-> Show BatchScramSecret
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> BatchScramSecret -> ShowS
showsPrec :: Int -> BatchScramSecret -> ShowS
$cshow :: BatchScramSecret -> String
show :: BatchScramSecret -> String
$cshowList :: [BatchScramSecret] -> ShowS
showList :: [BatchScramSecret] -> ShowS
Prelude.Show)
mkBatchScramSecret :: Value Prelude.Text -> BatchScramSecret
mkBatchScramSecret :: Value Text -> BatchScramSecret
mkBatchScramSecret Value Text
clusterArn
  = BatchScramSecret
      {haddock_workaround_ :: ()
haddock_workaround_ = (), clusterArn :: Value Text
clusterArn = Value Text
clusterArn,
       secretArnList :: Maybe (ValueList Text)
secretArnList = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties BatchScramSecret where
  toResourceProperties :: BatchScramSecret -> ResourceProperties
toResourceProperties BatchScramSecret {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: BatchScramSecret -> ()
clusterArn :: BatchScramSecret -> Value Text
secretArnList :: BatchScramSecret -> Maybe (ValueList Text)
haddock_workaround_ :: ()
clusterArn :: Value Text
secretArnList :: Maybe (ValueList Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MSK::BatchScramSecret",
         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
"ClusterArn" 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
clusterArn]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [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
"SecretArnList" (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)
secretArnList]))}
instance JSON.ToJSON BatchScramSecret where
  toJSON :: BatchScramSecret -> Value
toJSON BatchScramSecret {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: BatchScramSecret -> ()
clusterArn :: BatchScramSecret -> Value Text
secretArnList :: BatchScramSecret -> Maybe (ValueList Text)
haddock_workaround_ :: ()
clusterArn :: Value Text
secretArnList :: Maybe (ValueList 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
"ClusterArn" 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
clusterArn]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [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
"SecretArnList" (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)
secretArnList])))
instance Property "ClusterArn" BatchScramSecret where
  type PropertyType "ClusterArn" BatchScramSecret = Value Prelude.Text
  set :: PropertyType "ClusterArn" BatchScramSecret
-> BatchScramSecret -> BatchScramSecret
set PropertyType "ClusterArn" BatchScramSecret
newValue BatchScramSecret {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: BatchScramSecret -> ()
clusterArn :: BatchScramSecret -> Value Text
secretArnList :: BatchScramSecret -> Maybe (ValueList Text)
haddock_workaround_ :: ()
clusterArn :: Value Text
secretArnList :: Maybe (ValueList Text)
..}
    = BatchScramSecret {clusterArn :: Value Text
clusterArn = PropertyType "ClusterArn" BatchScramSecret
Value Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
secretArnList :: Maybe (ValueList Text)
haddock_workaround_ :: ()
secretArnList :: Maybe (ValueList Text)
..}
instance Property "SecretArnList" BatchScramSecret where
  type PropertyType "SecretArnList" BatchScramSecret = ValueList Prelude.Text
  set :: PropertyType "SecretArnList" BatchScramSecret
-> BatchScramSecret -> BatchScramSecret
set PropertyType "SecretArnList" BatchScramSecret
newValue BatchScramSecret {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: BatchScramSecret -> ()
clusterArn :: BatchScramSecret -> Value Text
secretArnList :: BatchScramSecret -> Maybe (ValueList Text)
haddock_workaround_ :: ()
clusterArn :: Value Text
secretArnList :: Maybe (ValueList Text)
..}
    = BatchScramSecret {secretArnList :: Maybe (ValueList Text)
secretArnList = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SecretArnList" BatchScramSecret
ValueList Text
newValue, ()
Value Text
haddock_workaround_ :: ()
clusterArn :: Value Text
haddock_workaround_ :: ()
clusterArn :: Value Text
..}