packages feed

stratosphere-bedrock-1.0.0: gen/Stratosphere/Bedrock/PromptVersion/SystemContentBlockProperty.hs

module Stratosphere.Bedrock.PromptVersion.SystemContentBlockProperty (
        module Exports, SystemContentBlockProperty(..),
        mkSystemContentBlockProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Bedrock.PromptVersion.CachePointBlockProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SystemContentBlockProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-systemcontentblock.html>
    SystemContentBlockProperty {haddock_workaround_ :: (),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-systemcontentblock.html#cfn-bedrock-promptversion-systemcontentblock-cachepoint>
                                cachePoint :: (Prelude.Maybe CachePointBlockProperty),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-systemcontentblock.html#cfn-bedrock-promptversion-systemcontentblock-text>
                                text :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (Prelude.Eq, Prelude.Show)
mkSystemContentBlockProperty :: SystemContentBlockProperty
mkSystemContentBlockProperty
  = SystemContentBlockProperty
      {haddock_workaround_ = (), cachePoint = Prelude.Nothing,
       text = Prelude.Nothing}
instance ToResourceProperties SystemContentBlockProperty where
  toResourceProperties SystemContentBlockProperty {..}
    = ResourceProperties
        {awsType = "AWS::Bedrock::PromptVersion.SystemContentBlock",
         supportsTags = Prelude.False,
         properties = Prelude.fromList
                        (Prelude.catMaybes
                           [(JSON..=) "CachePoint" Prelude.<$> cachePoint,
                            (JSON..=) "Text" Prelude.<$> text])}
instance JSON.ToJSON SystemContentBlockProperty where
  toJSON SystemContentBlockProperty {..}
    = JSON.object
        (Prelude.fromList
           (Prelude.catMaybes
              [(JSON..=) "CachePoint" Prelude.<$> cachePoint,
               (JSON..=) "Text" Prelude.<$> text]))
instance Property "CachePoint" SystemContentBlockProperty where
  type PropertyType "CachePoint" SystemContentBlockProperty = CachePointBlockProperty
  set newValue SystemContentBlockProperty {..}
    = SystemContentBlockProperty
        {cachePoint = Prelude.pure newValue, ..}
instance Property "Text" SystemContentBlockProperty where
  type PropertyType "Text" SystemContentBlockProperty = Value Prelude.Text
  set newValue SystemContentBlockProperty {..}
    = SystemContentBlockProperty {text = Prelude.pure newValue, ..}