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