module Stratosphere.KinesisFirehose.DeliveryStream.HttpEndpointConfigurationProperty (
        HttpEndpointConfigurationProperty(..),
        mkHttpEndpointConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data HttpEndpointConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-httpendpointconfiguration.html>
    HttpEndpointConfigurationProperty {HttpEndpointConfigurationProperty -> ()
haddock_workaround_ :: (),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-httpendpointconfiguration.html#cfn-kinesisfirehose-deliverystream-httpendpointconfiguration-accesskey>
                                       HttpEndpointConfigurationProperty -> Maybe (Value Text)
accessKey :: (Prelude.Maybe (Value Prelude.Text)),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-httpendpointconfiguration.html#cfn-kinesisfirehose-deliverystream-httpendpointconfiguration-name>
                                       HttpEndpointConfigurationProperty -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-httpendpointconfiguration.html#cfn-kinesisfirehose-deliverystream-httpendpointconfiguration-url>
                                       HttpEndpointConfigurationProperty -> Value Text
url :: (Value Prelude.Text)}
  deriving stock (HttpEndpointConfigurationProperty
-> HttpEndpointConfigurationProperty -> Bool
(HttpEndpointConfigurationProperty
 -> HttpEndpointConfigurationProperty -> Bool)
-> (HttpEndpointConfigurationProperty
    -> HttpEndpointConfigurationProperty -> Bool)
-> Eq HttpEndpointConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: HttpEndpointConfigurationProperty
-> HttpEndpointConfigurationProperty -> Bool
== :: HttpEndpointConfigurationProperty
-> HttpEndpointConfigurationProperty -> Bool
$c/= :: HttpEndpointConfigurationProperty
-> HttpEndpointConfigurationProperty -> Bool
/= :: HttpEndpointConfigurationProperty
-> HttpEndpointConfigurationProperty -> Bool
Prelude.Eq, Int -> HttpEndpointConfigurationProperty -> ShowS
[HttpEndpointConfigurationProperty] -> ShowS
HttpEndpointConfigurationProperty -> String
(Int -> HttpEndpointConfigurationProperty -> ShowS)
-> (HttpEndpointConfigurationProperty -> String)
-> ([HttpEndpointConfigurationProperty] -> ShowS)
-> Show HttpEndpointConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> HttpEndpointConfigurationProperty -> ShowS
showsPrec :: Int -> HttpEndpointConfigurationProperty -> ShowS
$cshow :: HttpEndpointConfigurationProperty -> String
show :: HttpEndpointConfigurationProperty -> String
$cshowList :: [HttpEndpointConfigurationProperty] -> ShowS
showList :: [HttpEndpointConfigurationProperty] -> ShowS
Prelude.Show)
mkHttpEndpointConfigurationProperty ::
  Value Prelude.Text -> HttpEndpointConfigurationProperty
mkHttpEndpointConfigurationProperty :: Value Text -> HttpEndpointConfigurationProperty
mkHttpEndpointConfigurationProperty Value Text
url
  = HttpEndpointConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), url :: Value Text
url = Value Text
url, accessKey :: Maybe (Value Text)
accessKey = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties HttpEndpointConfigurationProperty where
  toResourceProperties :: HttpEndpointConfigurationProperty -> ResourceProperties
toResourceProperties HttpEndpointConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: HttpEndpointConfigurationProperty -> ()
accessKey :: HttpEndpointConfigurationProperty -> Maybe (Value Text)
name :: HttpEndpointConfigurationProperty -> Maybe (Value Text)
url :: HttpEndpointConfigurationProperty -> Value Text
haddock_workaround_ :: ()
accessKey :: Maybe (Value Text)
name :: Maybe (Value Text)
url :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::KinesisFirehose::DeliveryStream.HttpEndpointConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"Url" 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..= Value Text
url]
                           ([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
"AccessKey" (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)
accessKey,
                               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
"Name" (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)
name]))}
instance JSON.ToJSON HttpEndpointConfigurationProperty where
  toJSON :: HttpEndpointConfigurationProperty -> Value
toJSON HttpEndpointConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: HttpEndpointConfigurationProperty -> ()
accessKey :: HttpEndpointConfigurationProperty -> Maybe (Value Text)
name :: HttpEndpointConfigurationProperty -> Maybe (Value Text)
url :: HttpEndpointConfigurationProperty -> Value Text
haddock_workaround_ :: ()
accessKey :: Maybe (Value Text)
name :: Maybe (Value Text)
url :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"Url" 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..= Value Text
url]
              ([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
"AccessKey" (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)
accessKey,
                  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
"Name" (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)
name])))
instance Property "AccessKey" HttpEndpointConfigurationProperty where
  type PropertyType "AccessKey" HttpEndpointConfigurationProperty = Value Prelude.Text
  set :: PropertyType "AccessKey" HttpEndpointConfigurationProperty
-> HttpEndpointConfigurationProperty
-> HttpEndpointConfigurationProperty
set PropertyType "AccessKey" HttpEndpointConfigurationProperty
newValue HttpEndpointConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: HttpEndpointConfigurationProperty -> ()
accessKey :: HttpEndpointConfigurationProperty -> Maybe (Value Text)
name :: HttpEndpointConfigurationProperty -> Maybe (Value Text)
url :: HttpEndpointConfigurationProperty -> Value Text
haddock_workaround_ :: ()
accessKey :: Maybe (Value Text)
name :: Maybe (Value Text)
url :: Value Text
..}
    = HttpEndpointConfigurationProperty
        {accessKey :: Maybe (Value Text)
accessKey = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AccessKey" HttpEndpointConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
name :: Maybe (Value Text)
url :: Value Text
haddock_workaround_ :: ()
name :: Maybe (Value Text)
url :: Value Text
..}
instance Property "Name" HttpEndpointConfigurationProperty where
  type PropertyType "Name" HttpEndpointConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Name" HttpEndpointConfigurationProperty
-> HttpEndpointConfigurationProperty
-> HttpEndpointConfigurationProperty
set PropertyType "Name" HttpEndpointConfigurationProperty
newValue HttpEndpointConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: HttpEndpointConfigurationProperty -> ()
accessKey :: HttpEndpointConfigurationProperty -> Maybe (Value Text)
name :: HttpEndpointConfigurationProperty -> Maybe (Value Text)
url :: HttpEndpointConfigurationProperty -> Value Text
haddock_workaround_ :: ()
accessKey :: Maybe (Value Text)
name :: Maybe (Value Text)
url :: Value Text
..}
    = HttpEndpointConfigurationProperty
        {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" HttpEndpointConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
accessKey :: Maybe (Value Text)
url :: Value Text
haddock_workaround_ :: ()
accessKey :: Maybe (Value Text)
url :: Value Text
..}
instance Property "Url" HttpEndpointConfigurationProperty where
  type PropertyType "Url" HttpEndpointConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Url" HttpEndpointConfigurationProperty
-> HttpEndpointConfigurationProperty
-> HttpEndpointConfigurationProperty
set PropertyType "Url" HttpEndpointConfigurationProperty
newValue HttpEndpointConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: HttpEndpointConfigurationProperty -> ()
accessKey :: HttpEndpointConfigurationProperty -> Maybe (Value Text)
name :: HttpEndpointConfigurationProperty -> Maybe (Value Text)
url :: HttpEndpointConfigurationProperty -> Value Text
haddock_workaround_ :: ()
accessKey :: Maybe (Value Text)
name :: Maybe (Value Text)
url :: Value Text
..}
    = HttpEndpointConfigurationProperty {url :: Value Text
url = PropertyType "Url" HttpEndpointConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
accessKey :: Maybe (Value Text)
name :: Maybe (Value Text)
haddock_workaround_ :: ()
accessKey :: Maybe (Value Text)
name :: Maybe (Value Text)
..}