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