module Stratosphere.ManagedBlockchain.Member.MemberFrameworkConfigurationProperty (
        module Exports, MemberFrameworkConfigurationProperty(..),
        mkMemberFrameworkConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ManagedBlockchain.Member.MemberFabricConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data MemberFrameworkConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-managedblockchain-member-memberframeworkconfiguration.html>
    MemberFrameworkConfigurationProperty {MemberFrameworkConfigurationProperty -> ()
haddock_workaround_ :: (),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-managedblockchain-member-memberframeworkconfiguration.html#cfn-managedblockchain-member-memberframeworkconfiguration-memberfabricconfiguration>
                                          MemberFrameworkConfigurationProperty
-> Maybe MemberFabricConfigurationProperty
memberFabricConfiguration :: (Prelude.Maybe MemberFabricConfigurationProperty)}
  deriving stock (MemberFrameworkConfigurationProperty
-> MemberFrameworkConfigurationProperty -> Bool
(MemberFrameworkConfigurationProperty
 -> MemberFrameworkConfigurationProperty -> Bool)
-> (MemberFrameworkConfigurationProperty
    -> MemberFrameworkConfigurationProperty -> Bool)
-> Eq MemberFrameworkConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MemberFrameworkConfigurationProperty
-> MemberFrameworkConfigurationProperty -> Bool
== :: MemberFrameworkConfigurationProperty
-> MemberFrameworkConfigurationProperty -> Bool
$c/= :: MemberFrameworkConfigurationProperty
-> MemberFrameworkConfigurationProperty -> Bool
/= :: MemberFrameworkConfigurationProperty
-> MemberFrameworkConfigurationProperty -> Bool
Prelude.Eq, Int -> MemberFrameworkConfigurationProperty -> ShowS
[MemberFrameworkConfigurationProperty] -> ShowS
MemberFrameworkConfigurationProperty -> String
(Int -> MemberFrameworkConfigurationProperty -> ShowS)
-> (MemberFrameworkConfigurationProperty -> String)
-> ([MemberFrameworkConfigurationProperty] -> ShowS)
-> Show MemberFrameworkConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MemberFrameworkConfigurationProperty -> ShowS
showsPrec :: Int -> MemberFrameworkConfigurationProperty -> ShowS
$cshow :: MemberFrameworkConfigurationProperty -> String
show :: MemberFrameworkConfigurationProperty -> String
$cshowList :: [MemberFrameworkConfigurationProperty] -> ShowS
showList :: [MemberFrameworkConfigurationProperty] -> ShowS
Prelude.Show)
mkMemberFrameworkConfigurationProperty ::
  MemberFrameworkConfigurationProperty
mkMemberFrameworkConfigurationProperty :: MemberFrameworkConfigurationProperty
mkMemberFrameworkConfigurationProperty
  = MemberFrameworkConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       memberFabricConfiguration :: Maybe MemberFabricConfigurationProperty
memberFabricConfiguration = Maybe MemberFabricConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MemberFrameworkConfigurationProperty where
  toResourceProperties :: MemberFrameworkConfigurationProperty -> ResourceProperties
toResourceProperties MemberFrameworkConfigurationProperty {Maybe MemberFabricConfigurationProperty
()
haddock_workaround_ :: MemberFrameworkConfigurationProperty -> ()
memberFabricConfiguration :: MemberFrameworkConfigurationProperty
-> Maybe MemberFabricConfigurationProperty
haddock_workaround_ :: ()
memberFabricConfiguration :: Maybe MemberFabricConfigurationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ManagedBlockchain::Member.MemberFrameworkConfiguration",
         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 -> MemberFabricConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MemberFabricConfiguration"
                              (MemberFabricConfigurationProperty -> (Key, Value))
-> Maybe MemberFabricConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MemberFabricConfigurationProperty
memberFabricConfiguration])}
instance JSON.ToJSON MemberFrameworkConfigurationProperty where
  toJSON :: MemberFrameworkConfigurationProperty -> Value
toJSON MemberFrameworkConfigurationProperty {Maybe MemberFabricConfigurationProperty
()
haddock_workaround_ :: MemberFrameworkConfigurationProperty -> ()
memberFabricConfiguration :: MemberFrameworkConfigurationProperty
-> Maybe MemberFabricConfigurationProperty
haddock_workaround_ :: ()
memberFabricConfiguration :: Maybe MemberFabricConfigurationProperty
..}
    = [(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 -> MemberFabricConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MemberFabricConfiguration"
                 (MemberFabricConfigurationProperty -> (Key, Value))
-> Maybe MemberFabricConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MemberFabricConfigurationProperty
memberFabricConfiguration]))
instance Property "MemberFabricConfiguration" MemberFrameworkConfigurationProperty where
  type PropertyType "MemberFabricConfiguration" MemberFrameworkConfigurationProperty = MemberFabricConfigurationProperty
  set :: PropertyType
  "MemberFabricConfiguration" MemberFrameworkConfigurationProperty
-> MemberFrameworkConfigurationProperty
-> MemberFrameworkConfigurationProperty
set PropertyType
  "MemberFabricConfiguration" MemberFrameworkConfigurationProperty
newValue MemberFrameworkConfigurationProperty {Maybe MemberFabricConfigurationProperty
()
haddock_workaround_ :: MemberFrameworkConfigurationProperty -> ()
memberFabricConfiguration :: MemberFrameworkConfigurationProperty
-> Maybe MemberFabricConfigurationProperty
haddock_workaround_ :: ()
memberFabricConfiguration :: Maybe MemberFabricConfigurationProperty
..}
    = MemberFrameworkConfigurationProperty
        {memberFabricConfiguration :: Maybe MemberFabricConfigurationProperty
memberFabricConfiguration = MemberFabricConfigurationProperty
-> Maybe MemberFabricConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "MemberFabricConfiguration" MemberFrameworkConfigurationProperty
MemberFabricConfigurationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}