module Stratosphere.KinesisFirehose.DeliveryStream.ElasticsearchRetryOptionsProperty (
ElasticsearchRetryOptionsProperty(..),
mkElasticsearchRetryOptionsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ElasticsearchRetryOptionsProperty
=
ElasticsearchRetryOptionsProperty {ElasticsearchRetryOptionsProperty -> ()
haddock_workaround_ :: (),
ElasticsearchRetryOptionsProperty -> Maybe (Value Integer)
durationInSeconds :: (Prelude.Maybe (Value Prelude.Integer))}
deriving stock (ElasticsearchRetryOptionsProperty
-> ElasticsearchRetryOptionsProperty -> Bool
(ElasticsearchRetryOptionsProperty
-> ElasticsearchRetryOptionsProperty -> Bool)
-> (ElasticsearchRetryOptionsProperty
-> ElasticsearchRetryOptionsProperty -> Bool)
-> Eq ElasticsearchRetryOptionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ElasticsearchRetryOptionsProperty
-> ElasticsearchRetryOptionsProperty -> Bool
== :: ElasticsearchRetryOptionsProperty
-> ElasticsearchRetryOptionsProperty -> Bool
$c/= :: ElasticsearchRetryOptionsProperty
-> ElasticsearchRetryOptionsProperty -> Bool
/= :: ElasticsearchRetryOptionsProperty
-> ElasticsearchRetryOptionsProperty -> Bool
Prelude.Eq, Int -> ElasticsearchRetryOptionsProperty -> ShowS
[ElasticsearchRetryOptionsProperty] -> ShowS
ElasticsearchRetryOptionsProperty -> String
(Int -> ElasticsearchRetryOptionsProperty -> ShowS)
-> (ElasticsearchRetryOptionsProperty -> String)
-> ([ElasticsearchRetryOptionsProperty] -> ShowS)
-> Show ElasticsearchRetryOptionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ElasticsearchRetryOptionsProperty -> ShowS
showsPrec :: Int -> ElasticsearchRetryOptionsProperty -> ShowS
$cshow :: ElasticsearchRetryOptionsProperty -> String
show :: ElasticsearchRetryOptionsProperty -> String
$cshowList :: [ElasticsearchRetryOptionsProperty] -> ShowS
showList :: [ElasticsearchRetryOptionsProperty] -> ShowS
Prelude.Show)
mkElasticsearchRetryOptionsProperty ::
ElasticsearchRetryOptionsProperty
mkElasticsearchRetryOptionsProperty :: ElasticsearchRetryOptionsProperty
mkElasticsearchRetryOptionsProperty
= ElasticsearchRetryOptionsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), durationInSeconds :: Maybe (Value Integer)
durationInSeconds = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ElasticsearchRetryOptionsProperty where
toResourceProperties :: ElasticsearchRetryOptionsProperty -> ResourceProperties
toResourceProperties ElasticsearchRetryOptionsProperty {Maybe (Value Integer)
()
haddock_workaround_ :: ElasticsearchRetryOptionsProperty -> ()
durationInSeconds :: ElasticsearchRetryOptionsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
durationInSeconds :: Maybe (Value Integer)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::KinesisFirehose::DeliveryStream.ElasticsearchRetryOptions",
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 ElasticsearchRetryOptionsProperty where
toJSON :: ElasticsearchRetryOptionsProperty -> Value
toJSON ElasticsearchRetryOptionsProperty {Maybe (Value Integer)
()
haddock_workaround_ :: ElasticsearchRetryOptionsProperty -> ()
durationInSeconds :: ElasticsearchRetryOptionsProperty -> 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" ElasticsearchRetryOptionsProperty where
type PropertyType "DurationInSeconds" ElasticsearchRetryOptionsProperty = Value Prelude.Integer
set :: PropertyType "DurationInSeconds" ElasticsearchRetryOptionsProperty
-> ElasticsearchRetryOptionsProperty
-> ElasticsearchRetryOptionsProperty
set PropertyType "DurationInSeconds" ElasticsearchRetryOptionsProperty
newValue ElasticsearchRetryOptionsProperty {Maybe (Value Integer)
()
haddock_workaround_ :: ElasticsearchRetryOptionsProperty -> ()
durationInSeconds :: ElasticsearchRetryOptionsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
durationInSeconds :: Maybe (Value Integer)
..}
= ElasticsearchRetryOptionsProperty
{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" ElasticsearchRetryOptionsProperty
Value Integer
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}