module Stratosphere.QBusiness.Application.QAppsConfigurationProperty (
        QAppsConfigurationProperty(..), mkQAppsConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data QAppsConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-application-qappsconfiguration.html>
    QAppsConfigurationProperty {QAppsConfigurationProperty -> ()
haddock_workaround_ :: (),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-application-qappsconfiguration.html#cfn-qbusiness-application-qappsconfiguration-qappscontrolmode>
                                QAppsConfigurationProperty -> Value Text
qAppsControlMode :: (Value Prelude.Text)}
  deriving stock (QAppsConfigurationProperty -> QAppsConfigurationProperty -> Bool
(QAppsConfigurationProperty -> QAppsConfigurationProperty -> Bool)
-> (QAppsConfigurationProperty
    -> QAppsConfigurationProperty -> Bool)
-> Eq QAppsConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: QAppsConfigurationProperty -> QAppsConfigurationProperty -> Bool
== :: QAppsConfigurationProperty -> QAppsConfigurationProperty -> Bool
$c/= :: QAppsConfigurationProperty -> QAppsConfigurationProperty -> Bool
/= :: QAppsConfigurationProperty -> QAppsConfigurationProperty -> Bool
Prelude.Eq, Int -> QAppsConfigurationProperty -> ShowS
[QAppsConfigurationProperty] -> ShowS
QAppsConfigurationProperty -> String
(Int -> QAppsConfigurationProperty -> ShowS)
-> (QAppsConfigurationProperty -> String)
-> ([QAppsConfigurationProperty] -> ShowS)
-> Show QAppsConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> QAppsConfigurationProperty -> ShowS
showsPrec :: Int -> QAppsConfigurationProperty -> ShowS
$cshow :: QAppsConfigurationProperty -> String
show :: QAppsConfigurationProperty -> String
$cshowList :: [QAppsConfigurationProperty] -> ShowS
showList :: [QAppsConfigurationProperty] -> ShowS
Prelude.Show)
mkQAppsConfigurationProperty ::
  Value Prelude.Text -> QAppsConfigurationProperty
mkQAppsConfigurationProperty :: Value Text -> QAppsConfigurationProperty
mkQAppsConfigurationProperty Value Text
qAppsControlMode
  = QAppsConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), qAppsControlMode :: Value Text
qAppsControlMode = Value Text
qAppsControlMode}
instance ToResourceProperties QAppsConfigurationProperty where
  toResourceProperties :: QAppsConfigurationProperty -> ResourceProperties
toResourceProperties QAppsConfigurationProperty {()
Value Text
haddock_workaround_ :: QAppsConfigurationProperty -> ()
qAppsControlMode :: QAppsConfigurationProperty -> Value Text
haddock_workaround_ :: ()
qAppsControlMode :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QBusiness::Application.QAppsConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"QAppsControlMode" 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
qAppsControlMode]}
instance JSON.ToJSON QAppsConfigurationProperty where
  toJSON :: QAppsConfigurationProperty -> Value
toJSON QAppsConfigurationProperty {()
Value Text
haddock_workaround_ :: QAppsConfigurationProperty -> ()
qAppsControlMode :: QAppsConfigurationProperty -> Value Text
haddock_workaround_ :: ()
qAppsControlMode :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"QAppsControlMode" 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
qAppsControlMode]
instance Property "QAppsControlMode" QAppsConfigurationProperty where
  type PropertyType "QAppsControlMode" QAppsConfigurationProperty = Value Prelude.Text
  set :: PropertyType "QAppsControlMode" QAppsConfigurationProperty
-> QAppsConfigurationProperty -> QAppsConfigurationProperty
set PropertyType "QAppsControlMode" QAppsConfigurationProperty
newValue QAppsConfigurationProperty {()
Value Text
haddock_workaround_ :: QAppsConfigurationProperty -> ()
qAppsControlMode :: QAppsConfigurationProperty -> Value Text
haddock_workaround_ :: ()
qAppsControlMode :: Value Text
..}
    = QAppsConfigurationProperty {qAppsControlMode :: Value Text
qAppsControlMode = PropertyType "QAppsControlMode" QAppsConfigurationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}