module Stratosphere.KinesisFirehose.DeliveryStream.SplunkRetryOptionsProperty (
        SplunkRetryOptionsProperty(..), mkSplunkRetryOptionsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SplunkRetryOptionsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-splunkretryoptions.html>
    SplunkRetryOptionsProperty {SplunkRetryOptionsProperty -> ()
haddock_workaround_ :: (),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-splunkretryoptions.html#cfn-kinesisfirehose-deliverystream-splunkretryoptions-durationinseconds>
                                SplunkRetryOptionsProperty -> Maybe (Value Integer)
durationInSeconds :: (Prelude.Maybe (Value Prelude.Integer))}
  deriving stock (SplunkRetryOptionsProperty -> SplunkRetryOptionsProperty -> Bool
(SplunkRetryOptionsProperty -> SplunkRetryOptionsProperty -> Bool)
-> (SplunkRetryOptionsProperty
    -> SplunkRetryOptionsProperty -> Bool)
-> Eq SplunkRetryOptionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SplunkRetryOptionsProperty -> SplunkRetryOptionsProperty -> Bool
== :: SplunkRetryOptionsProperty -> SplunkRetryOptionsProperty -> Bool
$c/= :: SplunkRetryOptionsProperty -> SplunkRetryOptionsProperty -> Bool
/= :: SplunkRetryOptionsProperty -> SplunkRetryOptionsProperty -> Bool
Prelude.Eq, Int -> SplunkRetryOptionsProperty -> ShowS
[SplunkRetryOptionsProperty] -> ShowS
SplunkRetryOptionsProperty -> String
(Int -> SplunkRetryOptionsProperty -> ShowS)
-> (SplunkRetryOptionsProperty -> String)
-> ([SplunkRetryOptionsProperty] -> ShowS)
-> Show SplunkRetryOptionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SplunkRetryOptionsProperty -> ShowS
showsPrec :: Int -> SplunkRetryOptionsProperty -> ShowS
$cshow :: SplunkRetryOptionsProperty -> String
show :: SplunkRetryOptionsProperty -> String
$cshowList :: [SplunkRetryOptionsProperty] -> ShowS
showList :: [SplunkRetryOptionsProperty] -> ShowS
Prelude.Show)
mkSplunkRetryOptionsProperty :: SplunkRetryOptionsProperty
mkSplunkRetryOptionsProperty :: SplunkRetryOptionsProperty
mkSplunkRetryOptionsProperty
  = SplunkRetryOptionsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), durationInSeconds :: Maybe (Value Integer)
durationInSeconds = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SplunkRetryOptionsProperty where
  toResourceProperties :: SplunkRetryOptionsProperty -> ResourceProperties
toResourceProperties SplunkRetryOptionsProperty {Maybe (Value Integer)
()
haddock_workaround_ :: SplunkRetryOptionsProperty -> ()
durationInSeconds :: SplunkRetryOptionsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
durationInSeconds :: Maybe (Value Integer)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::KinesisFirehose::DeliveryStream.SplunkRetryOptions",
         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 SplunkRetryOptionsProperty where
  toJSON :: SplunkRetryOptionsProperty -> Value
toJSON SplunkRetryOptionsProperty {Maybe (Value Integer)
()
haddock_workaround_ :: SplunkRetryOptionsProperty -> ()
durationInSeconds :: SplunkRetryOptionsProperty -> 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" SplunkRetryOptionsProperty where
  type PropertyType "DurationInSeconds" SplunkRetryOptionsProperty = Value Prelude.Integer
  set :: PropertyType "DurationInSeconds" SplunkRetryOptionsProperty
-> SplunkRetryOptionsProperty -> SplunkRetryOptionsProperty
set PropertyType "DurationInSeconds" SplunkRetryOptionsProperty
newValue SplunkRetryOptionsProperty {Maybe (Value Integer)
()
haddock_workaround_ :: SplunkRetryOptionsProperty -> ()
durationInSeconds :: SplunkRetryOptionsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
durationInSeconds :: Maybe (Value Integer)
..}
    = SplunkRetryOptionsProperty
        {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" SplunkRetryOptionsProperty
Value Integer
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}