module Stratosphere.Bedrock.Prompt.CachePointBlockProperty (
        CachePointBlockProperty(..), mkCachePointBlockProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CachePointBlockProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-cachepointblock.html>
    CachePointBlockProperty {CachePointBlockProperty -> ()
haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-cachepointblock.html#cfn-bedrock-prompt-cachepointblock-type>
                             CachePointBlockProperty -> Value Text
type' :: (Value Prelude.Text)}
  deriving stock (CachePointBlockProperty -> CachePointBlockProperty -> Bool
(CachePointBlockProperty -> CachePointBlockProperty -> Bool)
-> (CachePointBlockProperty -> CachePointBlockProperty -> Bool)
-> Eq CachePointBlockProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CachePointBlockProperty -> CachePointBlockProperty -> Bool
== :: CachePointBlockProperty -> CachePointBlockProperty -> Bool
$c/= :: CachePointBlockProperty -> CachePointBlockProperty -> Bool
/= :: CachePointBlockProperty -> CachePointBlockProperty -> Bool
Prelude.Eq, Int -> CachePointBlockProperty -> ShowS
[CachePointBlockProperty] -> ShowS
CachePointBlockProperty -> String
(Int -> CachePointBlockProperty -> ShowS)
-> (CachePointBlockProperty -> String)
-> ([CachePointBlockProperty] -> ShowS)
-> Show CachePointBlockProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CachePointBlockProperty -> ShowS
showsPrec :: Int -> CachePointBlockProperty -> ShowS
$cshow :: CachePointBlockProperty -> String
show :: CachePointBlockProperty -> String
$cshowList :: [CachePointBlockProperty] -> ShowS
showList :: [CachePointBlockProperty] -> ShowS
Prelude.Show)
mkCachePointBlockProperty ::
  Value Prelude.Text -> CachePointBlockProperty
mkCachePointBlockProperty :: Value Text -> CachePointBlockProperty
mkCachePointBlockProperty Value Text
type'
  = CachePointBlockProperty {haddock_workaround_ :: ()
haddock_workaround_ = (), type' :: Value Text
type' = Value Text
type'}
instance ToResourceProperties CachePointBlockProperty where
  toResourceProperties :: CachePointBlockProperty -> ResourceProperties
toResourceProperties CachePointBlockProperty {()
Value Text
haddock_workaround_ :: CachePointBlockProperty -> ()
type' :: CachePointBlockProperty -> Value Text
haddock_workaround_ :: ()
type' :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Bedrock::Prompt.CachePointBlock",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False, properties :: Object
properties = [Key
"Type" 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
type']}
instance JSON.ToJSON CachePointBlockProperty where
  toJSON :: CachePointBlockProperty -> Value
toJSON CachePointBlockProperty {()
Value Text
haddock_workaround_ :: CachePointBlockProperty -> ()
type' :: CachePointBlockProperty -> Value Text
haddock_workaround_ :: ()
type' :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Type" 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
type']
instance Property "Type" CachePointBlockProperty where
  type PropertyType "Type" CachePointBlockProperty = Value Prelude.Text
  set :: PropertyType "Type" CachePointBlockProperty
-> CachePointBlockProperty -> CachePointBlockProperty
set PropertyType "Type" CachePointBlockProperty
newValue CachePointBlockProperty {()
Value Text
haddock_workaround_ :: CachePointBlockProperty -> ()
type' :: CachePointBlockProperty -> Value Text
haddock_workaround_ :: ()
type' :: Value Text
..}
    = CachePointBlockProperty {type' :: Value Text
type' = PropertyType "Type" CachePointBlockProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}