module Stratosphere.CloudTrail.Dashboard.RefreshScheduleProperty (
module Exports, RefreshScheduleProperty(..),
mkRefreshScheduleProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.CloudTrail.Dashboard.FrequencyProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RefreshScheduleProperty
=
RefreshScheduleProperty {RefreshScheduleProperty -> ()
haddock_workaround_ :: (),
RefreshScheduleProperty -> Maybe FrequencyProperty
frequency :: (Prelude.Maybe FrequencyProperty),
RefreshScheduleProperty -> Maybe (Value Text)
status :: (Prelude.Maybe (Value Prelude.Text)),
RefreshScheduleProperty -> Maybe (Value Text)
timeOfDay :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (RefreshScheduleProperty -> RefreshScheduleProperty -> Bool
(RefreshScheduleProperty -> RefreshScheduleProperty -> Bool)
-> (RefreshScheduleProperty -> RefreshScheduleProperty -> Bool)
-> Eq RefreshScheduleProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RefreshScheduleProperty -> RefreshScheduleProperty -> Bool
== :: RefreshScheduleProperty -> RefreshScheduleProperty -> Bool
$c/= :: RefreshScheduleProperty -> RefreshScheduleProperty -> Bool
/= :: RefreshScheduleProperty -> RefreshScheduleProperty -> Bool
Prelude.Eq, Int -> RefreshScheduleProperty -> ShowS
[RefreshScheduleProperty] -> ShowS
RefreshScheduleProperty -> String
(Int -> RefreshScheduleProperty -> ShowS)
-> (RefreshScheduleProperty -> String)
-> ([RefreshScheduleProperty] -> ShowS)
-> Show RefreshScheduleProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RefreshScheduleProperty -> ShowS
showsPrec :: Int -> RefreshScheduleProperty -> ShowS
$cshow :: RefreshScheduleProperty -> String
show :: RefreshScheduleProperty -> String
$cshowList :: [RefreshScheduleProperty] -> ShowS
showList :: [RefreshScheduleProperty] -> ShowS
Prelude.Show)
mkRefreshScheduleProperty :: RefreshScheduleProperty
mkRefreshScheduleProperty :: RefreshScheduleProperty
mkRefreshScheduleProperty
= RefreshScheduleProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), frequency :: Maybe FrequencyProperty
frequency = Maybe FrequencyProperty
forall a. Maybe a
Prelude.Nothing,
status :: Maybe (Value Text)
status = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, timeOfDay :: Maybe (Value Text)
timeOfDay = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RefreshScheduleProperty where
toResourceProperties :: RefreshScheduleProperty -> ResourceProperties
toResourceProperties RefreshScheduleProperty {Maybe (Value Text)
Maybe FrequencyProperty
()
haddock_workaround_ :: RefreshScheduleProperty -> ()
frequency :: RefreshScheduleProperty -> Maybe FrequencyProperty
status :: RefreshScheduleProperty -> Maybe (Value Text)
timeOfDay :: RefreshScheduleProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
frequency :: Maybe FrequencyProperty
status :: Maybe (Value Text)
timeOfDay :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CloudTrail::Dashboard.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 -> FrequencyProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Frequency" (FrequencyProperty -> (Key, Value))
-> Maybe FrequencyProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FrequencyProperty
frequency,
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
"Status" (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)
status,
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
"TimeOfDay" (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)
timeOfDay])}
instance JSON.ToJSON RefreshScheduleProperty where
toJSON :: RefreshScheduleProperty -> Value
toJSON RefreshScheduleProperty {Maybe (Value Text)
Maybe FrequencyProperty
()
haddock_workaround_ :: RefreshScheduleProperty -> ()
frequency :: RefreshScheduleProperty -> Maybe FrequencyProperty
status :: RefreshScheduleProperty -> Maybe (Value Text)
timeOfDay :: RefreshScheduleProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
frequency :: Maybe FrequencyProperty
status :: Maybe (Value Text)
timeOfDay :: Maybe (Value Text)
..}
= [(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 -> FrequencyProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Frequency" (FrequencyProperty -> (Key, Value))
-> Maybe FrequencyProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FrequencyProperty
frequency,
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
"Status" (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)
status,
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
"TimeOfDay" (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)
timeOfDay]))
instance Property "Frequency" RefreshScheduleProperty where
type PropertyType "Frequency" RefreshScheduleProperty = FrequencyProperty
set :: PropertyType "Frequency" RefreshScheduleProperty
-> RefreshScheduleProperty -> RefreshScheduleProperty
set PropertyType "Frequency" RefreshScheduleProperty
newValue RefreshScheduleProperty {Maybe (Value Text)
Maybe FrequencyProperty
()
haddock_workaround_ :: RefreshScheduleProperty -> ()
frequency :: RefreshScheduleProperty -> Maybe FrequencyProperty
status :: RefreshScheduleProperty -> Maybe (Value Text)
timeOfDay :: RefreshScheduleProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
frequency :: Maybe FrequencyProperty
status :: Maybe (Value Text)
timeOfDay :: Maybe (Value Text)
..}
= RefreshScheduleProperty {frequency :: Maybe FrequencyProperty
frequency = FrequencyProperty -> Maybe FrequencyProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Frequency" RefreshScheduleProperty
FrequencyProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
status :: Maybe (Value Text)
timeOfDay :: Maybe (Value Text)
haddock_workaround_ :: ()
status :: Maybe (Value Text)
timeOfDay :: Maybe (Value Text)
..}
instance Property "Status" RefreshScheduleProperty where
type PropertyType "Status" RefreshScheduleProperty = Value Prelude.Text
set :: PropertyType "Status" RefreshScheduleProperty
-> RefreshScheduleProperty -> RefreshScheduleProperty
set PropertyType "Status" RefreshScheduleProperty
newValue RefreshScheduleProperty {Maybe (Value Text)
Maybe FrequencyProperty
()
haddock_workaround_ :: RefreshScheduleProperty -> ()
frequency :: RefreshScheduleProperty -> Maybe FrequencyProperty
status :: RefreshScheduleProperty -> Maybe (Value Text)
timeOfDay :: RefreshScheduleProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
frequency :: Maybe FrequencyProperty
status :: Maybe (Value Text)
timeOfDay :: Maybe (Value Text)
..}
= RefreshScheduleProperty {status :: Maybe (Value Text)
status = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Status" RefreshScheduleProperty
Value Text
newValue, Maybe (Value Text)
Maybe FrequencyProperty
()
haddock_workaround_ :: ()
frequency :: Maybe FrequencyProperty
timeOfDay :: Maybe (Value Text)
haddock_workaround_ :: ()
frequency :: Maybe FrequencyProperty
timeOfDay :: Maybe (Value Text)
..}
instance Property "TimeOfDay" RefreshScheduleProperty where
type PropertyType "TimeOfDay" RefreshScheduleProperty = Value Prelude.Text
set :: PropertyType "TimeOfDay" RefreshScheduleProperty
-> RefreshScheduleProperty -> RefreshScheduleProperty
set PropertyType "TimeOfDay" RefreshScheduleProperty
newValue RefreshScheduleProperty {Maybe (Value Text)
Maybe FrequencyProperty
()
haddock_workaround_ :: RefreshScheduleProperty -> ()
frequency :: RefreshScheduleProperty -> Maybe FrequencyProperty
status :: RefreshScheduleProperty -> Maybe (Value Text)
timeOfDay :: RefreshScheduleProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
frequency :: Maybe FrequencyProperty
status :: Maybe (Value Text)
timeOfDay :: Maybe (Value Text)
..}
= RefreshScheduleProperty {timeOfDay :: Maybe (Value Text)
timeOfDay = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TimeOfDay" RefreshScheduleProperty
Value Text
newValue, Maybe (Value Text)
Maybe FrequencyProperty
()
haddock_workaround_ :: ()
frequency :: Maybe FrequencyProperty
status :: Maybe (Value Text)
haddock_workaround_ :: ()
frequency :: Maybe FrequencyProperty
status :: Maybe (Value Text)
..}