module Stratosphere.RefactorSpaces.Service.UrlEndpointInputProperty (
UrlEndpointInputProperty(..), mkUrlEndpointInputProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data UrlEndpointInputProperty
=
UrlEndpointInputProperty {UrlEndpointInputProperty -> ()
haddock_workaround_ :: (),
UrlEndpointInputProperty -> Maybe (Value Text)
healthUrl :: (Prelude.Maybe (Value Prelude.Text)),
UrlEndpointInputProperty -> Value Text
url :: (Value Prelude.Text)}
deriving stock (UrlEndpointInputProperty -> UrlEndpointInputProperty -> Bool
(UrlEndpointInputProperty -> UrlEndpointInputProperty -> Bool)
-> (UrlEndpointInputProperty -> UrlEndpointInputProperty -> Bool)
-> Eq UrlEndpointInputProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: UrlEndpointInputProperty -> UrlEndpointInputProperty -> Bool
== :: UrlEndpointInputProperty -> UrlEndpointInputProperty -> Bool
$c/= :: UrlEndpointInputProperty -> UrlEndpointInputProperty -> Bool
/= :: UrlEndpointInputProperty -> UrlEndpointInputProperty -> Bool
Prelude.Eq, Int -> UrlEndpointInputProperty -> ShowS
[UrlEndpointInputProperty] -> ShowS
UrlEndpointInputProperty -> String
(Int -> UrlEndpointInputProperty -> ShowS)
-> (UrlEndpointInputProperty -> String)
-> ([UrlEndpointInputProperty] -> ShowS)
-> Show UrlEndpointInputProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> UrlEndpointInputProperty -> ShowS
showsPrec :: Int -> UrlEndpointInputProperty -> ShowS
$cshow :: UrlEndpointInputProperty -> String
show :: UrlEndpointInputProperty -> String
$cshowList :: [UrlEndpointInputProperty] -> ShowS
showList :: [UrlEndpointInputProperty] -> ShowS
Prelude.Show)
mkUrlEndpointInputProperty ::
Value Prelude.Text -> UrlEndpointInputProperty
mkUrlEndpointInputProperty :: Value Text -> UrlEndpointInputProperty
mkUrlEndpointInputProperty Value Text
url
= UrlEndpointInputProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), url :: Value Text
url = Value Text
url, healthUrl :: Maybe (Value Text)
healthUrl = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties UrlEndpointInputProperty where
toResourceProperties :: UrlEndpointInputProperty -> ResourceProperties
toResourceProperties UrlEndpointInputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UrlEndpointInputProperty -> ()
healthUrl :: UrlEndpointInputProperty -> Maybe (Value Text)
url :: UrlEndpointInputProperty -> Value Text
haddock_workaround_ :: ()
healthUrl :: Maybe (Value Text)
url :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::RefactorSpaces::Service.UrlEndpointInput",
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
"HealthUrl" (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)
healthUrl]))}
instance JSON.ToJSON UrlEndpointInputProperty where
toJSON :: UrlEndpointInputProperty -> Value
toJSON UrlEndpointInputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UrlEndpointInputProperty -> ()
healthUrl :: UrlEndpointInputProperty -> Maybe (Value Text)
url :: UrlEndpointInputProperty -> Value Text
haddock_workaround_ :: ()
healthUrl :: 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
"HealthUrl" (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)
healthUrl])))
instance Property "HealthUrl" UrlEndpointInputProperty where
type PropertyType "HealthUrl" UrlEndpointInputProperty = Value Prelude.Text
set :: PropertyType "HealthUrl" UrlEndpointInputProperty
-> UrlEndpointInputProperty -> UrlEndpointInputProperty
set PropertyType "HealthUrl" UrlEndpointInputProperty
newValue UrlEndpointInputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UrlEndpointInputProperty -> ()
healthUrl :: UrlEndpointInputProperty -> Maybe (Value Text)
url :: UrlEndpointInputProperty -> Value Text
haddock_workaround_ :: ()
healthUrl :: Maybe (Value Text)
url :: Value Text
..}
= UrlEndpointInputProperty {healthUrl :: Maybe (Value Text)
healthUrl = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "HealthUrl" UrlEndpointInputProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
url :: Value Text
haddock_workaround_ :: ()
url :: Value Text
..}
instance Property "Url" UrlEndpointInputProperty where
type PropertyType "Url" UrlEndpointInputProperty = Value Prelude.Text
set :: PropertyType "Url" UrlEndpointInputProperty
-> UrlEndpointInputProperty -> UrlEndpointInputProperty
set PropertyType "Url" UrlEndpointInputProperty
newValue UrlEndpointInputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UrlEndpointInputProperty -> ()
healthUrl :: UrlEndpointInputProperty -> Maybe (Value Text)
url :: UrlEndpointInputProperty -> Value Text
haddock_workaround_ :: ()
healthUrl :: Maybe (Value Text)
url :: Value Text
..}
= UrlEndpointInputProperty {url :: Value Text
url = PropertyType "Url" UrlEndpointInputProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
healthUrl :: Maybe (Value Text)
haddock_workaround_ :: ()
healthUrl :: Maybe (Value Text)
..}