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