module Stratosphere.Config.DeliveryChannel.ConfigSnapshotDeliveryPropertiesProperty (
ConfigSnapshotDeliveryPropertiesProperty(..),
mkConfigSnapshotDeliveryPropertiesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ConfigSnapshotDeliveryPropertiesProperty
=
ConfigSnapshotDeliveryPropertiesProperty {ConfigSnapshotDeliveryPropertiesProperty -> ()
haddock_workaround_ :: (),
ConfigSnapshotDeliveryPropertiesProperty -> Maybe (Value Text)
deliveryFrequency :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ConfigSnapshotDeliveryPropertiesProperty
-> ConfigSnapshotDeliveryPropertiesProperty -> Bool
(ConfigSnapshotDeliveryPropertiesProperty
-> ConfigSnapshotDeliveryPropertiesProperty -> Bool)
-> (ConfigSnapshotDeliveryPropertiesProperty
-> ConfigSnapshotDeliveryPropertiesProperty -> Bool)
-> Eq ConfigSnapshotDeliveryPropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ConfigSnapshotDeliveryPropertiesProperty
-> ConfigSnapshotDeliveryPropertiesProperty -> Bool
== :: ConfigSnapshotDeliveryPropertiesProperty
-> ConfigSnapshotDeliveryPropertiesProperty -> Bool
$c/= :: ConfigSnapshotDeliveryPropertiesProperty
-> ConfigSnapshotDeliveryPropertiesProperty -> Bool
/= :: ConfigSnapshotDeliveryPropertiesProperty
-> ConfigSnapshotDeliveryPropertiesProperty -> Bool
Prelude.Eq, Int -> ConfigSnapshotDeliveryPropertiesProperty -> ShowS
[ConfigSnapshotDeliveryPropertiesProperty] -> ShowS
ConfigSnapshotDeliveryPropertiesProperty -> String
(Int -> ConfigSnapshotDeliveryPropertiesProperty -> ShowS)
-> (ConfigSnapshotDeliveryPropertiesProperty -> String)
-> ([ConfigSnapshotDeliveryPropertiesProperty] -> ShowS)
-> Show ConfigSnapshotDeliveryPropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ConfigSnapshotDeliveryPropertiesProperty -> ShowS
showsPrec :: Int -> ConfigSnapshotDeliveryPropertiesProperty -> ShowS
$cshow :: ConfigSnapshotDeliveryPropertiesProperty -> String
show :: ConfigSnapshotDeliveryPropertiesProperty -> String
$cshowList :: [ConfigSnapshotDeliveryPropertiesProperty] -> ShowS
showList :: [ConfigSnapshotDeliveryPropertiesProperty] -> ShowS
Prelude.Show)
mkConfigSnapshotDeliveryPropertiesProperty ::
ConfigSnapshotDeliveryPropertiesProperty
mkConfigSnapshotDeliveryPropertiesProperty :: ConfigSnapshotDeliveryPropertiesProperty
mkConfigSnapshotDeliveryPropertiesProperty
= ConfigSnapshotDeliveryPropertiesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), deliveryFrequency :: Maybe (Value Text)
deliveryFrequency = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ConfigSnapshotDeliveryPropertiesProperty where
toResourceProperties :: ConfigSnapshotDeliveryPropertiesProperty -> ResourceProperties
toResourceProperties ConfigSnapshotDeliveryPropertiesProperty {Maybe (Value Text)
()
haddock_workaround_ :: ConfigSnapshotDeliveryPropertiesProperty -> ()
deliveryFrequency :: ConfigSnapshotDeliveryPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
deliveryFrequency :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Config::DeliveryChannel.ConfigSnapshotDeliveryProperties",
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
"DeliveryFrequency" (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)
deliveryFrequency])}
instance JSON.ToJSON ConfigSnapshotDeliveryPropertiesProperty where
toJSON :: ConfigSnapshotDeliveryPropertiesProperty -> Value
toJSON ConfigSnapshotDeliveryPropertiesProperty {Maybe (Value Text)
()
haddock_workaround_ :: ConfigSnapshotDeliveryPropertiesProperty -> ()
deliveryFrequency :: ConfigSnapshotDeliveryPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
deliveryFrequency :: 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 -> 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
"DeliveryFrequency" (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)
deliveryFrequency]))
instance Property "DeliveryFrequency" ConfigSnapshotDeliveryPropertiesProperty where
type PropertyType "DeliveryFrequency" ConfigSnapshotDeliveryPropertiesProperty = Value Prelude.Text
set :: PropertyType
"DeliveryFrequency" ConfigSnapshotDeliveryPropertiesProperty
-> ConfigSnapshotDeliveryPropertiesProperty
-> ConfigSnapshotDeliveryPropertiesProperty
set PropertyType
"DeliveryFrequency" ConfigSnapshotDeliveryPropertiesProperty
newValue ConfigSnapshotDeliveryPropertiesProperty {Maybe (Value Text)
()
haddock_workaround_ :: ConfigSnapshotDeliveryPropertiesProperty -> ()
deliveryFrequency :: ConfigSnapshotDeliveryPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
deliveryFrequency :: Maybe (Value Text)
..}
= ConfigSnapshotDeliveryPropertiesProperty
{deliveryFrequency :: Maybe (Value Text)
deliveryFrequency = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"DeliveryFrequency" ConfigSnapshotDeliveryPropertiesProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}