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