module Stratosphere.QuickSight.DataSet.DataSetUsageConfigurationProperty (
DataSetUsageConfigurationProperty(..),
mkDataSetUsageConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DataSetUsageConfigurationProperty
=
DataSetUsageConfigurationProperty {DataSetUsageConfigurationProperty -> ()
haddock_workaround_ :: (),
DataSetUsageConfigurationProperty -> Maybe (Value Bool)
disableUseAsDirectQuerySource :: (Prelude.Maybe (Value Prelude.Bool)),
DataSetUsageConfigurationProperty -> Maybe (Value Bool)
disableUseAsImportedSource :: (Prelude.Maybe (Value Prelude.Bool))}
deriving stock (DataSetUsageConfigurationProperty
-> DataSetUsageConfigurationProperty -> Bool
(DataSetUsageConfigurationProperty
-> DataSetUsageConfigurationProperty -> Bool)
-> (DataSetUsageConfigurationProperty
-> DataSetUsageConfigurationProperty -> Bool)
-> Eq DataSetUsageConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DataSetUsageConfigurationProperty
-> DataSetUsageConfigurationProperty -> Bool
== :: DataSetUsageConfigurationProperty
-> DataSetUsageConfigurationProperty -> Bool
$c/= :: DataSetUsageConfigurationProperty
-> DataSetUsageConfigurationProperty -> Bool
/= :: DataSetUsageConfigurationProperty
-> DataSetUsageConfigurationProperty -> Bool
Prelude.Eq, Int -> DataSetUsageConfigurationProperty -> ShowS
[DataSetUsageConfigurationProperty] -> ShowS
DataSetUsageConfigurationProperty -> String
(Int -> DataSetUsageConfigurationProperty -> ShowS)
-> (DataSetUsageConfigurationProperty -> String)
-> ([DataSetUsageConfigurationProperty] -> ShowS)
-> Show DataSetUsageConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DataSetUsageConfigurationProperty -> ShowS
showsPrec :: Int -> DataSetUsageConfigurationProperty -> ShowS
$cshow :: DataSetUsageConfigurationProperty -> String
show :: DataSetUsageConfigurationProperty -> String
$cshowList :: [DataSetUsageConfigurationProperty] -> ShowS
showList :: [DataSetUsageConfigurationProperty] -> ShowS
Prelude.Show)
mkDataSetUsageConfigurationProperty ::
DataSetUsageConfigurationProperty
mkDataSetUsageConfigurationProperty :: DataSetUsageConfigurationProperty
mkDataSetUsageConfigurationProperty
= DataSetUsageConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
disableUseAsDirectQuerySource :: Maybe (Value Bool)
disableUseAsDirectQuerySource = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
disableUseAsImportedSource :: Maybe (Value Bool)
disableUseAsImportedSource = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DataSetUsageConfigurationProperty where
toResourceProperties :: DataSetUsageConfigurationProperty -> ResourceProperties
toResourceProperties DataSetUsageConfigurationProperty {Maybe (Value Bool)
()
haddock_workaround_ :: DataSetUsageConfigurationProperty -> ()
disableUseAsDirectQuerySource :: DataSetUsageConfigurationProperty -> Maybe (Value Bool)
disableUseAsImportedSource :: DataSetUsageConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
disableUseAsDirectQuerySource :: Maybe (Value Bool)
disableUseAsImportedSource :: Maybe (Value Bool)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::DataSet.DataSetUsageConfiguration",
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 -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DisableUseAsDirectQuerySource"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
disableUseAsDirectQuerySource,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DisableUseAsImportedSource"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
disableUseAsImportedSource])}
instance JSON.ToJSON DataSetUsageConfigurationProperty where
toJSON :: DataSetUsageConfigurationProperty -> Value
toJSON DataSetUsageConfigurationProperty {Maybe (Value Bool)
()
haddock_workaround_ :: DataSetUsageConfigurationProperty -> ()
disableUseAsDirectQuerySource :: DataSetUsageConfigurationProperty -> Maybe (Value Bool)
disableUseAsImportedSource :: DataSetUsageConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
disableUseAsDirectQuerySource :: Maybe (Value Bool)
disableUseAsImportedSource :: Maybe (Value Bool)
..}
= [(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 -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DisableUseAsDirectQuerySource"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
disableUseAsDirectQuerySource,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DisableUseAsImportedSource"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
disableUseAsImportedSource]))
instance Property "DisableUseAsDirectQuerySource" DataSetUsageConfigurationProperty where
type PropertyType "DisableUseAsDirectQuerySource" DataSetUsageConfigurationProperty = Value Prelude.Bool
set :: PropertyType
"DisableUseAsDirectQuerySource" DataSetUsageConfigurationProperty
-> DataSetUsageConfigurationProperty
-> DataSetUsageConfigurationProperty
set PropertyType
"DisableUseAsDirectQuerySource" DataSetUsageConfigurationProperty
newValue DataSetUsageConfigurationProperty {Maybe (Value Bool)
()
haddock_workaround_ :: DataSetUsageConfigurationProperty -> ()
disableUseAsDirectQuerySource :: DataSetUsageConfigurationProperty -> Maybe (Value Bool)
disableUseAsImportedSource :: DataSetUsageConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
disableUseAsDirectQuerySource :: Maybe (Value Bool)
disableUseAsImportedSource :: Maybe (Value Bool)
..}
= DataSetUsageConfigurationProperty
{disableUseAsDirectQuerySource :: Maybe (Value Bool)
disableUseAsDirectQuerySource = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"DisableUseAsDirectQuerySource" DataSetUsageConfigurationProperty
Value Bool
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
disableUseAsImportedSource :: Maybe (Value Bool)
haddock_workaround_ :: ()
disableUseAsImportedSource :: Maybe (Value Bool)
..}
instance Property "DisableUseAsImportedSource" DataSetUsageConfigurationProperty where
type PropertyType "DisableUseAsImportedSource" DataSetUsageConfigurationProperty = Value Prelude.Bool
set :: PropertyType
"DisableUseAsImportedSource" DataSetUsageConfigurationProperty
-> DataSetUsageConfigurationProperty
-> DataSetUsageConfigurationProperty
set PropertyType
"DisableUseAsImportedSource" DataSetUsageConfigurationProperty
newValue DataSetUsageConfigurationProperty {Maybe (Value Bool)
()
haddock_workaround_ :: DataSetUsageConfigurationProperty -> ()
disableUseAsDirectQuerySource :: DataSetUsageConfigurationProperty -> Maybe (Value Bool)
disableUseAsImportedSource :: DataSetUsageConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
disableUseAsDirectQuerySource :: Maybe (Value Bool)
disableUseAsImportedSource :: Maybe (Value Bool)
..}
= DataSetUsageConfigurationProperty
{disableUseAsImportedSource :: Maybe (Value Bool)
disableUseAsImportedSource = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"DisableUseAsImportedSource" DataSetUsageConfigurationProperty
Value Bool
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
disableUseAsDirectQuerySource :: Maybe (Value Bool)
haddock_workaround_ :: ()
disableUseAsDirectQuerySource :: Maybe (Value Bool)
..}