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