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