module Stratosphere.Pipes.Pipe.FirehoseLogDestinationProperty (
        FirehoseLogDestinationProperty(..),
        mkFirehoseLogDestinationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FirehoseLogDestinationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-firehoselogdestination.html>
    FirehoseLogDestinationProperty {FirehoseLogDestinationProperty -> ()
haddock_workaround_ :: (),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-firehoselogdestination.html#cfn-pipes-pipe-firehoselogdestination-deliverystreamarn>
                                    FirehoseLogDestinationProperty -> Maybe (Value Text)
deliveryStreamArn :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (FirehoseLogDestinationProperty
-> FirehoseLogDestinationProperty -> Bool
(FirehoseLogDestinationProperty
 -> FirehoseLogDestinationProperty -> Bool)
-> (FirehoseLogDestinationProperty
    -> FirehoseLogDestinationProperty -> Bool)
-> Eq FirehoseLogDestinationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FirehoseLogDestinationProperty
-> FirehoseLogDestinationProperty -> Bool
== :: FirehoseLogDestinationProperty
-> FirehoseLogDestinationProperty -> Bool
$c/= :: FirehoseLogDestinationProperty
-> FirehoseLogDestinationProperty -> Bool
/= :: FirehoseLogDestinationProperty
-> FirehoseLogDestinationProperty -> Bool
Prelude.Eq, Int -> FirehoseLogDestinationProperty -> ShowS
[FirehoseLogDestinationProperty] -> ShowS
FirehoseLogDestinationProperty -> String
(Int -> FirehoseLogDestinationProperty -> ShowS)
-> (FirehoseLogDestinationProperty -> String)
-> ([FirehoseLogDestinationProperty] -> ShowS)
-> Show FirehoseLogDestinationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FirehoseLogDestinationProperty -> ShowS
showsPrec :: Int -> FirehoseLogDestinationProperty -> ShowS
$cshow :: FirehoseLogDestinationProperty -> String
show :: FirehoseLogDestinationProperty -> String
$cshowList :: [FirehoseLogDestinationProperty] -> ShowS
showList :: [FirehoseLogDestinationProperty] -> ShowS
Prelude.Show)
mkFirehoseLogDestinationProperty :: FirehoseLogDestinationProperty
mkFirehoseLogDestinationProperty :: FirehoseLogDestinationProperty
mkFirehoseLogDestinationProperty
  = FirehoseLogDestinationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), deliveryStreamArn :: Maybe (Value Text)
deliveryStreamArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FirehoseLogDestinationProperty where
  toResourceProperties :: FirehoseLogDestinationProperty -> ResourceProperties
toResourceProperties FirehoseLogDestinationProperty {Maybe (Value Text)
()
haddock_workaround_ :: FirehoseLogDestinationProperty -> ()
deliveryStreamArn :: FirehoseLogDestinationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
deliveryStreamArn :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Pipes::Pipe.FirehoseLogDestination",
         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
"DeliveryStreamArn" (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)
deliveryStreamArn])}
instance JSON.ToJSON FirehoseLogDestinationProperty where
  toJSON :: FirehoseLogDestinationProperty -> Value
toJSON FirehoseLogDestinationProperty {Maybe (Value Text)
()
haddock_workaround_ :: FirehoseLogDestinationProperty -> ()
deliveryStreamArn :: FirehoseLogDestinationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
deliveryStreamArn :: 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
"DeliveryStreamArn" (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)
deliveryStreamArn]))
instance Property "DeliveryStreamArn" FirehoseLogDestinationProperty where
  type PropertyType "DeliveryStreamArn" FirehoseLogDestinationProperty = Value Prelude.Text
  set :: PropertyType "DeliveryStreamArn" FirehoseLogDestinationProperty
-> FirehoseLogDestinationProperty -> FirehoseLogDestinationProperty
set PropertyType "DeliveryStreamArn" FirehoseLogDestinationProperty
newValue FirehoseLogDestinationProperty {Maybe (Value Text)
()
haddock_workaround_ :: FirehoseLogDestinationProperty -> ()
deliveryStreamArn :: FirehoseLogDestinationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
deliveryStreamArn :: Maybe (Value Text)
..}
    = FirehoseLogDestinationProperty
        {deliveryStreamArn :: Maybe (Value Text)
deliveryStreamArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DeliveryStreamArn" FirehoseLogDestinationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}