module Stratosphere.MediaTailor.SourceLocation.HttpConfigurationProperty (
        HttpConfigurationProperty(..), mkHttpConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data HttpConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediatailor-sourcelocation-httpconfiguration.html>
    HttpConfigurationProperty {HttpConfigurationProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediatailor-sourcelocation-httpconfiguration.html#cfn-mediatailor-sourcelocation-httpconfiguration-baseurl>
                               HttpConfigurationProperty -> Value Text
baseUrl :: (Value Prelude.Text)}
  deriving stock (HttpConfigurationProperty -> HttpConfigurationProperty -> Bool
(HttpConfigurationProperty -> HttpConfigurationProperty -> Bool)
-> (HttpConfigurationProperty -> HttpConfigurationProperty -> Bool)
-> Eq HttpConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: HttpConfigurationProperty -> HttpConfigurationProperty -> Bool
== :: HttpConfigurationProperty -> HttpConfigurationProperty -> Bool
$c/= :: HttpConfigurationProperty -> HttpConfigurationProperty -> Bool
/= :: HttpConfigurationProperty -> HttpConfigurationProperty -> Bool
Prelude.Eq, Int -> HttpConfigurationProperty -> ShowS
[HttpConfigurationProperty] -> ShowS
HttpConfigurationProperty -> String
(Int -> HttpConfigurationProperty -> ShowS)
-> (HttpConfigurationProperty -> String)
-> ([HttpConfigurationProperty] -> ShowS)
-> Show HttpConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> HttpConfigurationProperty -> ShowS
showsPrec :: Int -> HttpConfigurationProperty -> ShowS
$cshow :: HttpConfigurationProperty -> String
show :: HttpConfigurationProperty -> String
$cshowList :: [HttpConfigurationProperty] -> ShowS
showList :: [HttpConfigurationProperty] -> ShowS
Prelude.Show)
mkHttpConfigurationProperty ::
  Value Prelude.Text -> HttpConfigurationProperty
mkHttpConfigurationProperty :: Value Text -> HttpConfigurationProperty
mkHttpConfigurationProperty Value Text
baseUrl
  = HttpConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), baseUrl :: Value Text
baseUrl = Value Text
baseUrl}
instance ToResourceProperties HttpConfigurationProperty where
  toResourceProperties :: HttpConfigurationProperty -> ResourceProperties
toResourceProperties HttpConfigurationProperty {()
Value Text
haddock_workaround_ :: HttpConfigurationProperty -> ()
baseUrl :: HttpConfigurationProperty -> Value Text
haddock_workaround_ :: ()
baseUrl :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaTailor::SourceLocation.HttpConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"BaseUrl" 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
baseUrl]}
instance JSON.ToJSON HttpConfigurationProperty where
  toJSON :: HttpConfigurationProperty -> Value
toJSON HttpConfigurationProperty {()
Value Text
haddock_workaround_ :: HttpConfigurationProperty -> ()
baseUrl :: HttpConfigurationProperty -> Value Text
haddock_workaround_ :: ()
baseUrl :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"BaseUrl" 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
baseUrl]
instance Property "BaseUrl" HttpConfigurationProperty where
  type PropertyType "BaseUrl" HttpConfigurationProperty = Value Prelude.Text
  set :: PropertyType "BaseUrl" HttpConfigurationProperty
-> HttpConfigurationProperty -> HttpConfigurationProperty
set PropertyType "BaseUrl" HttpConfigurationProperty
newValue HttpConfigurationProperty {()
Value Text
haddock_workaround_ :: HttpConfigurationProperty -> ()
baseUrl :: HttpConfigurationProperty -> Value Text
haddock_workaround_ :: ()
baseUrl :: Value Text
..}
    = HttpConfigurationProperty {baseUrl :: Value Text
baseUrl = PropertyType "BaseUrl" HttpConfigurationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}