module Stratosphere.Bedrock.FlowAlias.FlowAliasRoutingConfigurationListItemProperty (
        FlowAliasRoutingConfigurationListItemProperty(..),
        mkFlowAliasRoutingConfigurationListItemProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FlowAliasRoutingConfigurationListItemProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowalias-flowaliasroutingconfigurationlistitem.html>
    FlowAliasRoutingConfigurationListItemProperty {FlowAliasRoutingConfigurationListItemProperty -> ()
haddock_workaround_ :: (),
                                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowalias-flowaliasroutingconfigurationlistitem.html#cfn-bedrock-flowalias-flowaliasroutingconfigurationlistitem-flowversion>
                                                   FlowAliasRoutingConfigurationListItemProperty -> Maybe (Value Text)
flowVersion :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (FlowAliasRoutingConfigurationListItemProperty
-> FlowAliasRoutingConfigurationListItemProperty -> Bool
(FlowAliasRoutingConfigurationListItemProperty
 -> FlowAliasRoutingConfigurationListItemProperty -> Bool)
-> (FlowAliasRoutingConfigurationListItemProperty
    -> FlowAliasRoutingConfigurationListItemProperty -> Bool)
-> Eq FlowAliasRoutingConfigurationListItemProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FlowAliasRoutingConfigurationListItemProperty
-> FlowAliasRoutingConfigurationListItemProperty -> Bool
== :: FlowAliasRoutingConfigurationListItemProperty
-> FlowAliasRoutingConfigurationListItemProperty -> Bool
$c/= :: FlowAliasRoutingConfigurationListItemProperty
-> FlowAliasRoutingConfigurationListItemProperty -> Bool
/= :: FlowAliasRoutingConfigurationListItemProperty
-> FlowAliasRoutingConfigurationListItemProperty -> Bool
Prelude.Eq, Int -> FlowAliasRoutingConfigurationListItemProperty -> ShowS
[FlowAliasRoutingConfigurationListItemProperty] -> ShowS
FlowAliasRoutingConfigurationListItemProperty -> String
(Int -> FlowAliasRoutingConfigurationListItemProperty -> ShowS)
-> (FlowAliasRoutingConfigurationListItemProperty -> String)
-> ([FlowAliasRoutingConfigurationListItemProperty] -> ShowS)
-> Show FlowAliasRoutingConfigurationListItemProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FlowAliasRoutingConfigurationListItemProperty -> ShowS
showsPrec :: Int -> FlowAliasRoutingConfigurationListItemProperty -> ShowS
$cshow :: FlowAliasRoutingConfigurationListItemProperty -> String
show :: FlowAliasRoutingConfigurationListItemProperty -> String
$cshowList :: [FlowAliasRoutingConfigurationListItemProperty] -> ShowS
showList :: [FlowAliasRoutingConfigurationListItemProperty] -> ShowS
Prelude.Show)
mkFlowAliasRoutingConfigurationListItemProperty ::
  FlowAliasRoutingConfigurationListItemProperty
mkFlowAliasRoutingConfigurationListItemProperty :: FlowAliasRoutingConfigurationListItemProperty
mkFlowAliasRoutingConfigurationListItemProperty
  = FlowAliasRoutingConfigurationListItemProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), flowVersion :: Maybe (Value Text)
flowVersion = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FlowAliasRoutingConfigurationListItemProperty where
  toResourceProperties :: FlowAliasRoutingConfigurationListItemProperty -> ResourceProperties
toResourceProperties
    FlowAliasRoutingConfigurationListItemProperty {Maybe (Value Text)
()
haddock_workaround_ :: FlowAliasRoutingConfigurationListItemProperty -> ()
flowVersion :: FlowAliasRoutingConfigurationListItemProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
flowVersion :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Bedrock::FlowAlias.FlowAliasRoutingConfigurationListItem",
         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 -> 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
"FlowVersion" (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)
flowVersion])}
instance JSON.ToJSON FlowAliasRoutingConfigurationListItemProperty where
  toJSON :: FlowAliasRoutingConfigurationListItemProperty -> Value
toJSON FlowAliasRoutingConfigurationListItemProperty {Maybe (Value Text)
()
haddock_workaround_ :: FlowAliasRoutingConfigurationListItemProperty -> ()
flowVersion :: FlowAliasRoutingConfigurationListItemProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
flowVersion :: 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 -> 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
"FlowVersion" (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)
flowVersion]))
instance Property "FlowVersion" FlowAliasRoutingConfigurationListItemProperty where
  type PropertyType "FlowVersion" FlowAliasRoutingConfigurationListItemProperty = Value Prelude.Text
  set :: PropertyType
  "FlowVersion" FlowAliasRoutingConfigurationListItemProperty
-> FlowAliasRoutingConfigurationListItemProperty
-> FlowAliasRoutingConfigurationListItemProperty
set PropertyType
  "FlowVersion" FlowAliasRoutingConfigurationListItemProperty
newValue FlowAliasRoutingConfigurationListItemProperty {Maybe (Value Text)
()
haddock_workaround_ :: FlowAliasRoutingConfigurationListItemProperty -> ()
flowVersion :: FlowAliasRoutingConfigurationListItemProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
flowVersion :: Maybe (Value Text)
..}
    = FlowAliasRoutingConfigurationListItemProperty
        {flowVersion :: Maybe (Value Text)
flowVersion = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "FlowVersion" FlowAliasRoutingConfigurationListItemProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}