module Stratosphere.RefactorSpaces.Route.UriPathRouteInputProperty (
UriPathRouteInputProperty(..), mkUriPathRouteInputProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data UriPathRouteInputProperty
=
UriPathRouteInputProperty {UriPathRouteInputProperty -> ()
haddock_workaround_ :: (),
UriPathRouteInputProperty -> Value Text
activationState :: (Value Prelude.Text),
UriPathRouteInputProperty -> Maybe (Value Bool)
appendSourcePath :: (Prelude.Maybe (Value Prelude.Bool)),
UriPathRouteInputProperty -> Maybe (Value Bool)
includeChildPaths :: (Prelude.Maybe (Value Prelude.Bool)),
UriPathRouteInputProperty -> Maybe (ValueList Text)
methods :: (Prelude.Maybe (ValueList Prelude.Text)),
UriPathRouteInputProperty -> Maybe (Value Text)
sourcePath :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (UriPathRouteInputProperty -> UriPathRouteInputProperty -> Bool
(UriPathRouteInputProperty -> UriPathRouteInputProperty -> Bool)
-> (UriPathRouteInputProperty -> UriPathRouteInputProperty -> Bool)
-> Eq UriPathRouteInputProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: UriPathRouteInputProperty -> UriPathRouteInputProperty -> Bool
== :: UriPathRouteInputProperty -> UriPathRouteInputProperty -> Bool
$c/= :: UriPathRouteInputProperty -> UriPathRouteInputProperty -> Bool
/= :: UriPathRouteInputProperty -> UriPathRouteInputProperty -> Bool
Prelude.Eq, Int -> UriPathRouteInputProperty -> ShowS
[UriPathRouteInputProperty] -> ShowS
UriPathRouteInputProperty -> String
(Int -> UriPathRouteInputProperty -> ShowS)
-> (UriPathRouteInputProperty -> String)
-> ([UriPathRouteInputProperty] -> ShowS)
-> Show UriPathRouteInputProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> UriPathRouteInputProperty -> ShowS
showsPrec :: Int -> UriPathRouteInputProperty -> ShowS
$cshow :: UriPathRouteInputProperty -> String
show :: UriPathRouteInputProperty -> String
$cshowList :: [UriPathRouteInputProperty] -> ShowS
showList :: [UriPathRouteInputProperty] -> ShowS
Prelude.Show)
mkUriPathRouteInputProperty ::
Value Prelude.Text -> UriPathRouteInputProperty
mkUriPathRouteInputProperty :: Value Text -> UriPathRouteInputProperty
mkUriPathRouteInputProperty Value Text
activationState
= UriPathRouteInputProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), activationState :: Value Text
activationState = Value Text
activationState,
appendSourcePath :: Maybe (Value Bool)
appendSourcePath = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
includeChildPaths :: Maybe (Value Bool)
includeChildPaths = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing, methods :: Maybe (ValueList Text)
methods = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
sourcePath :: Maybe (Value Text)
sourcePath = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties UriPathRouteInputProperty where
toResourceProperties :: UriPathRouteInputProperty -> ResourceProperties
toResourceProperties UriPathRouteInputProperty {Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UriPathRouteInputProperty -> ()
activationState :: UriPathRouteInputProperty -> Value Text
appendSourcePath :: UriPathRouteInputProperty -> Maybe (Value Bool)
includeChildPaths :: UriPathRouteInputProperty -> Maybe (Value Bool)
methods :: UriPathRouteInputProperty -> Maybe (ValueList Text)
sourcePath :: UriPathRouteInputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
activationState :: Value Text
appendSourcePath :: Maybe (Value Bool)
includeChildPaths :: Maybe (Value Bool)
methods :: Maybe (ValueList Text)
sourcePath :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::RefactorSpaces::Route.UriPathRouteInput",
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
"ActivationState" 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
activationState]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AppendSourcePath" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
appendSourcePath,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IncludeChildPaths" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
includeChildPaths,
Key -> ValueList 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
"Methods" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
methods,
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
"SourcePath" (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)
sourcePath]))}
instance JSON.ToJSON UriPathRouteInputProperty where
toJSON :: UriPathRouteInputProperty -> Value
toJSON UriPathRouteInputProperty {Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UriPathRouteInputProperty -> ()
activationState :: UriPathRouteInputProperty -> Value Text
appendSourcePath :: UriPathRouteInputProperty -> Maybe (Value Bool)
includeChildPaths :: UriPathRouteInputProperty -> Maybe (Value Bool)
methods :: UriPathRouteInputProperty -> Maybe (ValueList Text)
sourcePath :: UriPathRouteInputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
activationState :: Value Text
appendSourcePath :: Maybe (Value Bool)
includeChildPaths :: Maybe (Value Bool)
methods :: Maybe (ValueList Text)
sourcePath :: Maybe (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
"ActivationState" 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
activationState]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AppendSourcePath" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
appendSourcePath,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IncludeChildPaths" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
includeChildPaths,
Key -> ValueList 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
"Methods" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
methods,
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
"SourcePath" (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)
sourcePath])))
instance Property "ActivationState" UriPathRouteInputProperty where
type PropertyType "ActivationState" UriPathRouteInputProperty = Value Prelude.Text
set :: PropertyType "ActivationState" UriPathRouteInputProperty
-> UriPathRouteInputProperty -> UriPathRouteInputProperty
set PropertyType "ActivationState" UriPathRouteInputProperty
newValue UriPathRouteInputProperty {Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UriPathRouteInputProperty -> ()
activationState :: UriPathRouteInputProperty -> Value Text
appendSourcePath :: UriPathRouteInputProperty -> Maybe (Value Bool)
includeChildPaths :: UriPathRouteInputProperty -> Maybe (Value Bool)
methods :: UriPathRouteInputProperty -> Maybe (ValueList Text)
sourcePath :: UriPathRouteInputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
activationState :: Value Text
appendSourcePath :: Maybe (Value Bool)
includeChildPaths :: Maybe (Value Bool)
methods :: Maybe (ValueList Text)
sourcePath :: Maybe (Value Text)
..}
= UriPathRouteInputProperty {activationState :: Value Text
activationState = PropertyType "ActivationState" UriPathRouteInputProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
appendSourcePath :: Maybe (Value Bool)
includeChildPaths :: Maybe (Value Bool)
methods :: Maybe (ValueList Text)
sourcePath :: Maybe (Value Text)
haddock_workaround_ :: ()
appendSourcePath :: Maybe (Value Bool)
includeChildPaths :: Maybe (Value Bool)
methods :: Maybe (ValueList Text)
sourcePath :: Maybe (Value Text)
..}
instance Property "AppendSourcePath" UriPathRouteInputProperty where
type PropertyType "AppendSourcePath" UriPathRouteInputProperty = Value Prelude.Bool
set :: PropertyType "AppendSourcePath" UriPathRouteInputProperty
-> UriPathRouteInputProperty -> UriPathRouteInputProperty
set PropertyType "AppendSourcePath" UriPathRouteInputProperty
newValue UriPathRouteInputProperty {Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UriPathRouteInputProperty -> ()
activationState :: UriPathRouteInputProperty -> Value Text
appendSourcePath :: UriPathRouteInputProperty -> Maybe (Value Bool)
includeChildPaths :: UriPathRouteInputProperty -> Maybe (Value Bool)
methods :: UriPathRouteInputProperty -> Maybe (ValueList Text)
sourcePath :: UriPathRouteInputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
activationState :: Value Text
appendSourcePath :: Maybe (Value Bool)
includeChildPaths :: Maybe (Value Bool)
methods :: Maybe (ValueList Text)
sourcePath :: Maybe (Value Text)
..}
= UriPathRouteInputProperty
{appendSourcePath :: Maybe (Value Bool)
appendSourcePath = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AppendSourcePath" UriPathRouteInputProperty
Value Bool
newValue, Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
activationState :: Value Text
includeChildPaths :: Maybe (Value Bool)
methods :: Maybe (ValueList Text)
sourcePath :: Maybe (Value Text)
haddock_workaround_ :: ()
activationState :: Value Text
includeChildPaths :: Maybe (Value Bool)
methods :: Maybe (ValueList Text)
sourcePath :: Maybe (Value Text)
..}
instance Property "IncludeChildPaths" UriPathRouteInputProperty where
type PropertyType "IncludeChildPaths" UriPathRouteInputProperty = Value Prelude.Bool
set :: PropertyType "IncludeChildPaths" UriPathRouteInputProperty
-> UriPathRouteInputProperty -> UriPathRouteInputProperty
set PropertyType "IncludeChildPaths" UriPathRouteInputProperty
newValue UriPathRouteInputProperty {Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UriPathRouteInputProperty -> ()
activationState :: UriPathRouteInputProperty -> Value Text
appendSourcePath :: UriPathRouteInputProperty -> Maybe (Value Bool)
includeChildPaths :: UriPathRouteInputProperty -> Maybe (Value Bool)
methods :: UriPathRouteInputProperty -> Maybe (ValueList Text)
sourcePath :: UriPathRouteInputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
activationState :: Value Text
appendSourcePath :: Maybe (Value Bool)
includeChildPaths :: Maybe (Value Bool)
methods :: Maybe (ValueList Text)
sourcePath :: Maybe (Value Text)
..}
= UriPathRouteInputProperty
{includeChildPaths :: Maybe (Value Bool)
includeChildPaths = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IncludeChildPaths" UriPathRouteInputProperty
Value Bool
newValue, Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
activationState :: Value Text
appendSourcePath :: Maybe (Value Bool)
methods :: Maybe (ValueList Text)
sourcePath :: Maybe (Value Text)
haddock_workaround_ :: ()
activationState :: Value Text
appendSourcePath :: Maybe (Value Bool)
methods :: Maybe (ValueList Text)
sourcePath :: Maybe (Value Text)
..}
instance Property "Methods" UriPathRouteInputProperty where
type PropertyType "Methods" UriPathRouteInputProperty = ValueList Prelude.Text
set :: PropertyType "Methods" UriPathRouteInputProperty
-> UriPathRouteInputProperty -> UriPathRouteInputProperty
set PropertyType "Methods" UriPathRouteInputProperty
newValue UriPathRouteInputProperty {Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UriPathRouteInputProperty -> ()
activationState :: UriPathRouteInputProperty -> Value Text
appendSourcePath :: UriPathRouteInputProperty -> Maybe (Value Bool)
includeChildPaths :: UriPathRouteInputProperty -> Maybe (Value Bool)
methods :: UriPathRouteInputProperty -> Maybe (ValueList Text)
sourcePath :: UriPathRouteInputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
activationState :: Value Text
appendSourcePath :: Maybe (Value Bool)
includeChildPaths :: Maybe (Value Bool)
methods :: Maybe (ValueList Text)
sourcePath :: Maybe (Value Text)
..}
= UriPathRouteInputProperty {methods :: Maybe (ValueList Text)
methods = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Methods" UriPathRouteInputProperty
ValueList Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
activationState :: Value Text
appendSourcePath :: Maybe (Value Bool)
includeChildPaths :: Maybe (Value Bool)
sourcePath :: Maybe (Value Text)
haddock_workaround_ :: ()
activationState :: Value Text
appendSourcePath :: Maybe (Value Bool)
includeChildPaths :: Maybe (Value Bool)
sourcePath :: Maybe (Value Text)
..}
instance Property "SourcePath" UriPathRouteInputProperty where
type PropertyType "SourcePath" UriPathRouteInputProperty = Value Prelude.Text
set :: PropertyType "SourcePath" UriPathRouteInputProperty
-> UriPathRouteInputProperty -> UriPathRouteInputProperty
set PropertyType "SourcePath" UriPathRouteInputProperty
newValue UriPathRouteInputProperty {Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UriPathRouteInputProperty -> ()
activationState :: UriPathRouteInputProperty -> Value Text
appendSourcePath :: UriPathRouteInputProperty -> Maybe (Value Bool)
includeChildPaths :: UriPathRouteInputProperty -> Maybe (Value Bool)
methods :: UriPathRouteInputProperty -> Maybe (ValueList Text)
sourcePath :: UriPathRouteInputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
activationState :: Value Text
appendSourcePath :: Maybe (Value Bool)
includeChildPaths :: Maybe (Value Bool)
methods :: Maybe (ValueList Text)
sourcePath :: Maybe (Value Text)
..}
= UriPathRouteInputProperty
{sourcePath :: Maybe (Value Text)
sourcePath = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SourcePath" UriPathRouteInputProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
activationState :: Value Text
appendSourcePath :: Maybe (Value Bool)
includeChildPaths :: Maybe (Value Bool)
methods :: Maybe (ValueList Text)
haddock_workaround_ :: ()
activationState :: Value Text
appendSourcePath :: Maybe (Value Bool)
includeChildPaths :: Maybe (Value Bool)
methods :: Maybe (ValueList Text)
..}