module Stratosphere.Bedrock.ApplicationInferenceProfile (
        module Exports, ApplicationInferenceProfile(..),
        mkApplicationInferenceProfile
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Bedrock.ApplicationInferenceProfile.InferenceProfileModelSourceProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data ApplicationInferenceProfile
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-applicationinferenceprofile.html>
    ApplicationInferenceProfile {ApplicationInferenceProfile -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-applicationinferenceprofile.html#cfn-bedrock-applicationinferenceprofile-description>
                                 ApplicationInferenceProfile -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-applicationinferenceprofile.html#cfn-bedrock-applicationinferenceprofile-inferenceprofilename>
                                 ApplicationInferenceProfile -> Value Text
inferenceProfileName :: (Value Prelude.Text),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-applicationinferenceprofile.html#cfn-bedrock-applicationinferenceprofile-modelsource>
                                 ApplicationInferenceProfile
-> Maybe InferenceProfileModelSourceProperty
modelSource :: (Prelude.Maybe InferenceProfileModelSourceProperty),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-applicationinferenceprofile.html#cfn-bedrock-applicationinferenceprofile-tags>
                                 ApplicationInferenceProfile -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
  deriving stock (ApplicationInferenceProfile -> ApplicationInferenceProfile -> Bool
(ApplicationInferenceProfile
 -> ApplicationInferenceProfile -> Bool)
-> (ApplicationInferenceProfile
    -> ApplicationInferenceProfile -> Bool)
-> Eq ApplicationInferenceProfile
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ApplicationInferenceProfile -> ApplicationInferenceProfile -> Bool
== :: ApplicationInferenceProfile -> ApplicationInferenceProfile -> Bool
$c/= :: ApplicationInferenceProfile -> ApplicationInferenceProfile -> Bool
/= :: ApplicationInferenceProfile -> ApplicationInferenceProfile -> Bool
Prelude.Eq, Int -> ApplicationInferenceProfile -> ShowS
[ApplicationInferenceProfile] -> ShowS
ApplicationInferenceProfile -> String
(Int -> ApplicationInferenceProfile -> ShowS)
-> (ApplicationInferenceProfile -> String)
-> ([ApplicationInferenceProfile] -> ShowS)
-> Show ApplicationInferenceProfile
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ApplicationInferenceProfile -> ShowS
showsPrec :: Int -> ApplicationInferenceProfile -> ShowS
$cshow :: ApplicationInferenceProfile -> String
show :: ApplicationInferenceProfile -> String
$cshowList :: [ApplicationInferenceProfile] -> ShowS
showList :: [ApplicationInferenceProfile] -> ShowS
Prelude.Show)
mkApplicationInferenceProfile ::
  Value Prelude.Text -> ApplicationInferenceProfile
mkApplicationInferenceProfile :: Value Text -> ApplicationInferenceProfile
mkApplicationInferenceProfile Value Text
inferenceProfileName
  = ApplicationInferenceProfile
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       inferenceProfileName :: Value Text
inferenceProfileName = Value Text
inferenceProfileName,
       description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, modelSource :: Maybe InferenceProfileModelSourceProperty
modelSource = Maybe InferenceProfileModelSourceProperty
forall a. Maybe a
Prelude.Nothing,
       tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ApplicationInferenceProfile where
  toResourceProperties :: ApplicationInferenceProfile -> ResourceProperties
toResourceProperties ApplicationInferenceProfile {Maybe [Tag]
Maybe (Value Text)
Maybe InferenceProfileModelSourceProperty
()
Value Text
haddock_workaround_ :: ApplicationInferenceProfile -> ()
description :: ApplicationInferenceProfile -> Maybe (Value Text)
inferenceProfileName :: ApplicationInferenceProfile -> Value Text
modelSource :: ApplicationInferenceProfile
-> Maybe InferenceProfileModelSourceProperty
tags :: ApplicationInferenceProfile -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
inferenceProfileName :: Value Text
modelSource :: Maybe InferenceProfileModelSourceProperty
tags :: Maybe [Tag]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Bedrock::ApplicationInferenceProfile",
         supportsTags :: Bool
supportsTags = Bool
Prelude.True,
         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
"InferenceProfileName" 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
inferenceProfileName]
                           ([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,
                               Key -> InferenceProfileModelSourceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ModelSource" (InferenceProfileModelSourceProperty -> (Key, Value))
-> Maybe InferenceProfileModelSourceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InferenceProfileModelSourceProperty
modelSource,
                               Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON ApplicationInferenceProfile where
  toJSON :: ApplicationInferenceProfile -> Value
toJSON ApplicationInferenceProfile {Maybe [Tag]
Maybe (Value Text)
Maybe InferenceProfileModelSourceProperty
()
Value Text
haddock_workaround_ :: ApplicationInferenceProfile -> ()
description :: ApplicationInferenceProfile -> Maybe (Value Text)
inferenceProfileName :: ApplicationInferenceProfile -> Value Text
modelSource :: ApplicationInferenceProfile
-> Maybe InferenceProfileModelSourceProperty
tags :: ApplicationInferenceProfile -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
inferenceProfileName :: Value Text
modelSource :: Maybe InferenceProfileModelSourceProperty
tags :: Maybe [Tag]
..}
    = [(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
"InferenceProfileName" 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
inferenceProfileName]
              ([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,
                  Key -> InferenceProfileModelSourceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ModelSource" (InferenceProfileModelSourceProperty -> (Key, Value))
-> Maybe InferenceProfileModelSourceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InferenceProfileModelSourceProperty
modelSource,
                  Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "Description" ApplicationInferenceProfile where
  type PropertyType "Description" ApplicationInferenceProfile = Value Prelude.Text
  set :: PropertyType "Description" ApplicationInferenceProfile
-> ApplicationInferenceProfile -> ApplicationInferenceProfile
set PropertyType "Description" ApplicationInferenceProfile
newValue ApplicationInferenceProfile {Maybe [Tag]
Maybe (Value Text)
Maybe InferenceProfileModelSourceProperty
()
Value Text
haddock_workaround_ :: ApplicationInferenceProfile -> ()
description :: ApplicationInferenceProfile -> Maybe (Value Text)
inferenceProfileName :: ApplicationInferenceProfile -> Value Text
modelSource :: ApplicationInferenceProfile
-> Maybe InferenceProfileModelSourceProperty
tags :: ApplicationInferenceProfile -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
inferenceProfileName :: Value Text
modelSource :: Maybe InferenceProfileModelSourceProperty
tags :: Maybe [Tag]
..}
    = ApplicationInferenceProfile
        {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" ApplicationInferenceProfile
Value Text
newValue, Maybe [Tag]
Maybe InferenceProfileModelSourceProperty
()
Value Text
haddock_workaround_ :: ()
inferenceProfileName :: Value Text
modelSource :: Maybe InferenceProfileModelSourceProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
inferenceProfileName :: Value Text
modelSource :: Maybe InferenceProfileModelSourceProperty
tags :: Maybe [Tag]
..}
instance Property "InferenceProfileName" ApplicationInferenceProfile where
  type PropertyType "InferenceProfileName" ApplicationInferenceProfile = Value Prelude.Text
  set :: PropertyType "InferenceProfileName" ApplicationInferenceProfile
-> ApplicationInferenceProfile -> ApplicationInferenceProfile
set PropertyType "InferenceProfileName" ApplicationInferenceProfile
newValue ApplicationInferenceProfile {Maybe [Tag]
Maybe (Value Text)
Maybe InferenceProfileModelSourceProperty
()
Value Text
haddock_workaround_ :: ApplicationInferenceProfile -> ()
description :: ApplicationInferenceProfile -> Maybe (Value Text)
inferenceProfileName :: ApplicationInferenceProfile -> Value Text
modelSource :: ApplicationInferenceProfile
-> Maybe InferenceProfileModelSourceProperty
tags :: ApplicationInferenceProfile -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
inferenceProfileName :: Value Text
modelSource :: Maybe InferenceProfileModelSourceProperty
tags :: Maybe [Tag]
..}
    = ApplicationInferenceProfile {inferenceProfileName :: Value Text
inferenceProfileName = PropertyType "InferenceProfileName" ApplicationInferenceProfile
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe InferenceProfileModelSourceProperty
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
modelSource :: Maybe InferenceProfileModelSourceProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
modelSource :: Maybe InferenceProfileModelSourceProperty
tags :: Maybe [Tag]
..}
instance Property "ModelSource" ApplicationInferenceProfile where
  type PropertyType "ModelSource" ApplicationInferenceProfile = InferenceProfileModelSourceProperty
  set :: PropertyType "ModelSource" ApplicationInferenceProfile
-> ApplicationInferenceProfile -> ApplicationInferenceProfile
set PropertyType "ModelSource" ApplicationInferenceProfile
newValue ApplicationInferenceProfile {Maybe [Tag]
Maybe (Value Text)
Maybe InferenceProfileModelSourceProperty
()
Value Text
haddock_workaround_ :: ApplicationInferenceProfile -> ()
description :: ApplicationInferenceProfile -> Maybe (Value Text)
inferenceProfileName :: ApplicationInferenceProfile -> Value Text
modelSource :: ApplicationInferenceProfile
-> Maybe InferenceProfileModelSourceProperty
tags :: ApplicationInferenceProfile -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
inferenceProfileName :: Value Text
modelSource :: Maybe InferenceProfileModelSourceProperty
tags :: Maybe [Tag]
..}
    = ApplicationInferenceProfile
        {modelSource :: Maybe InferenceProfileModelSourceProperty
modelSource = InferenceProfileModelSourceProperty
-> Maybe InferenceProfileModelSourceProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ModelSource" ApplicationInferenceProfile
InferenceProfileModelSourceProperty
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
inferenceProfileName :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
inferenceProfileName :: Value Text
tags :: Maybe [Tag]
..}
instance Property "Tags" ApplicationInferenceProfile where
  type PropertyType "Tags" ApplicationInferenceProfile = [Tag]
  set :: PropertyType "Tags" ApplicationInferenceProfile
-> ApplicationInferenceProfile -> ApplicationInferenceProfile
set PropertyType "Tags" ApplicationInferenceProfile
newValue ApplicationInferenceProfile {Maybe [Tag]
Maybe (Value Text)
Maybe InferenceProfileModelSourceProperty
()
Value Text
haddock_workaround_ :: ApplicationInferenceProfile -> ()
description :: ApplicationInferenceProfile -> Maybe (Value Text)
inferenceProfileName :: ApplicationInferenceProfile -> Value Text
modelSource :: ApplicationInferenceProfile
-> Maybe InferenceProfileModelSourceProperty
tags :: ApplicationInferenceProfile -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
inferenceProfileName :: Value Text
modelSource :: Maybe InferenceProfileModelSourceProperty
tags :: Maybe [Tag]
..}
    = ApplicationInferenceProfile {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" ApplicationInferenceProfile
newValue, Maybe (Value Text)
Maybe InferenceProfileModelSourceProperty
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
inferenceProfileName :: Value Text
modelSource :: Maybe InferenceProfileModelSourceProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
inferenceProfileName :: Value Text
modelSource :: Maybe InferenceProfileModelSourceProperty
..}