module Stratosphere.KinesisFirehose.DeliveryStream.HttpEndpointRequestConfigurationProperty (
        module Exports, HttpEndpointRequestConfigurationProperty(..),
        mkHttpEndpointRequestConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.KinesisFirehose.DeliveryStream.HttpEndpointCommonAttributeProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data HttpEndpointRequestConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-httpendpointrequestconfiguration.html>
    HttpEndpointRequestConfigurationProperty {HttpEndpointRequestConfigurationProperty -> ()
haddock_workaround_ :: (),
                                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-httpendpointrequestconfiguration.html#cfn-kinesisfirehose-deliverystream-httpendpointrequestconfiguration-commonattributes>
                                              HttpEndpointRequestConfigurationProperty
-> Maybe [HttpEndpointCommonAttributeProperty]
commonAttributes :: (Prelude.Maybe [HttpEndpointCommonAttributeProperty]),
                                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-httpendpointrequestconfiguration.html#cfn-kinesisfirehose-deliverystream-httpendpointrequestconfiguration-contentencoding>
                                              HttpEndpointRequestConfigurationProperty -> Maybe (Value Text)
contentEncoding :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (HttpEndpointRequestConfigurationProperty
-> HttpEndpointRequestConfigurationProperty -> Bool
(HttpEndpointRequestConfigurationProperty
 -> HttpEndpointRequestConfigurationProperty -> Bool)
-> (HttpEndpointRequestConfigurationProperty
    -> HttpEndpointRequestConfigurationProperty -> Bool)
-> Eq HttpEndpointRequestConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: HttpEndpointRequestConfigurationProperty
-> HttpEndpointRequestConfigurationProperty -> Bool
== :: HttpEndpointRequestConfigurationProperty
-> HttpEndpointRequestConfigurationProperty -> Bool
$c/= :: HttpEndpointRequestConfigurationProperty
-> HttpEndpointRequestConfigurationProperty -> Bool
/= :: HttpEndpointRequestConfigurationProperty
-> HttpEndpointRequestConfigurationProperty -> Bool
Prelude.Eq, Int -> HttpEndpointRequestConfigurationProperty -> ShowS
[HttpEndpointRequestConfigurationProperty] -> ShowS
HttpEndpointRequestConfigurationProperty -> String
(Int -> HttpEndpointRequestConfigurationProperty -> ShowS)
-> (HttpEndpointRequestConfigurationProperty -> String)
-> ([HttpEndpointRequestConfigurationProperty] -> ShowS)
-> Show HttpEndpointRequestConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> HttpEndpointRequestConfigurationProperty -> ShowS
showsPrec :: Int -> HttpEndpointRequestConfigurationProperty -> ShowS
$cshow :: HttpEndpointRequestConfigurationProperty -> String
show :: HttpEndpointRequestConfigurationProperty -> String
$cshowList :: [HttpEndpointRequestConfigurationProperty] -> ShowS
showList :: [HttpEndpointRequestConfigurationProperty] -> ShowS
Prelude.Show)
mkHttpEndpointRequestConfigurationProperty ::
  HttpEndpointRequestConfigurationProperty
mkHttpEndpointRequestConfigurationProperty :: HttpEndpointRequestConfigurationProperty
mkHttpEndpointRequestConfigurationProperty
  = HttpEndpointRequestConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), commonAttributes :: Maybe [HttpEndpointCommonAttributeProperty]
commonAttributes = Maybe [HttpEndpointCommonAttributeProperty]
forall a. Maybe a
Prelude.Nothing,
       contentEncoding :: Maybe (Value Text)
contentEncoding = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties HttpEndpointRequestConfigurationProperty where
  toResourceProperties :: HttpEndpointRequestConfigurationProperty -> ResourceProperties
toResourceProperties HttpEndpointRequestConfigurationProperty {Maybe [HttpEndpointCommonAttributeProperty]
Maybe (Value Text)
()
haddock_workaround_ :: HttpEndpointRequestConfigurationProperty -> ()
commonAttributes :: HttpEndpointRequestConfigurationProperty
-> Maybe [HttpEndpointCommonAttributeProperty]
contentEncoding :: HttpEndpointRequestConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
commonAttributes :: Maybe [HttpEndpointCommonAttributeProperty]
contentEncoding :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::KinesisFirehose::DeliveryStream.HttpEndpointRequestConfiguration",
         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 -> [HttpEndpointCommonAttributeProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CommonAttributes" ([HttpEndpointCommonAttributeProperty] -> (Key, Value))
-> Maybe [HttpEndpointCommonAttributeProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [HttpEndpointCommonAttributeProperty]
commonAttributes,
                            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
"ContentEncoding" (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)
contentEncoding])}
instance JSON.ToJSON HttpEndpointRequestConfigurationProperty where
  toJSON :: HttpEndpointRequestConfigurationProperty -> Value
toJSON HttpEndpointRequestConfigurationProperty {Maybe [HttpEndpointCommonAttributeProperty]
Maybe (Value Text)
()
haddock_workaround_ :: HttpEndpointRequestConfigurationProperty -> ()
commonAttributes :: HttpEndpointRequestConfigurationProperty
-> Maybe [HttpEndpointCommonAttributeProperty]
contentEncoding :: HttpEndpointRequestConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
commonAttributes :: Maybe [HttpEndpointCommonAttributeProperty]
contentEncoding :: 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 -> [HttpEndpointCommonAttributeProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CommonAttributes" ([HttpEndpointCommonAttributeProperty] -> (Key, Value))
-> Maybe [HttpEndpointCommonAttributeProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [HttpEndpointCommonAttributeProperty]
commonAttributes,
               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
"ContentEncoding" (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)
contentEncoding]))
instance Property "CommonAttributes" HttpEndpointRequestConfigurationProperty where
  type PropertyType "CommonAttributes" HttpEndpointRequestConfigurationProperty = [HttpEndpointCommonAttributeProperty]
  set :: PropertyType
  "CommonAttributes" HttpEndpointRequestConfigurationProperty
-> HttpEndpointRequestConfigurationProperty
-> HttpEndpointRequestConfigurationProperty
set PropertyType
  "CommonAttributes" HttpEndpointRequestConfigurationProperty
newValue HttpEndpointRequestConfigurationProperty {Maybe [HttpEndpointCommonAttributeProperty]
Maybe (Value Text)
()
haddock_workaround_ :: HttpEndpointRequestConfigurationProperty -> ()
commonAttributes :: HttpEndpointRequestConfigurationProperty
-> Maybe [HttpEndpointCommonAttributeProperty]
contentEncoding :: HttpEndpointRequestConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
commonAttributes :: Maybe [HttpEndpointCommonAttributeProperty]
contentEncoding :: Maybe (Value Text)
..}
    = HttpEndpointRequestConfigurationProperty
        {commonAttributes :: Maybe [HttpEndpointCommonAttributeProperty]
commonAttributes = [HttpEndpointCommonAttributeProperty]
-> Maybe [HttpEndpointCommonAttributeProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [HttpEndpointCommonAttributeProperty]
PropertyType
  "CommonAttributes" HttpEndpointRequestConfigurationProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
contentEncoding :: Maybe (Value Text)
haddock_workaround_ :: ()
contentEncoding :: Maybe (Value Text)
..}
instance Property "ContentEncoding" HttpEndpointRequestConfigurationProperty where
  type PropertyType "ContentEncoding" HttpEndpointRequestConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "ContentEncoding" HttpEndpointRequestConfigurationProperty
-> HttpEndpointRequestConfigurationProperty
-> HttpEndpointRequestConfigurationProperty
set PropertyType
  "ContentEncoding" HttpEndpointRequestConfigurationProperty
newValue HttpEndpointRequestConfigurationProperty {Maybe [HttpEndpointCommonAttributeProperty]
Maybe (Value Text)
()
haddock_workaround_ :: HttpEndpointRequestConfigurationProperty -> ()
commonAttributes :: HttpEndpointRequestConfigurationProperty
-> Maybe [HttpEndpointCommonAttributeProperty]
contentEncoding :: HttpEndpointRequestConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
commonAttributes :: Maybe [HttpEndpointCommonAttributeProperty]
contentEncoding :: Maybe (Value Text)
..}
    = HttpEndpointRequestConfigurationProperty
        {contentEncoding :: Maybe (Value Text)
contentEncoding = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "ContentEncoding" HttpEndpointRequestConfigurationProperty
Value Text
newValue, Maybe [HttpEndpointCommonAttributeProperty]
()
haddock_workaround_ :: ()
commonAttributes :: Maybe [HttpEndpointCommonAttributeProperty]
haddock_workaround_ :: ()
commonAttributes :: Maybe [HttpEndpointCommonAttributeProperty]
..}