content: module Stratosphere.Bedrock.PromptVersion.PromptVariantProperty (
          module Exports, PromptVariantProperty(..), mkPromptVariantProperty
      ) where
  import qualified Data.Aeson as JSON
  import qualified Stratosphere.Prelude as Prelude
  import Stratosphere.Property
  import {-# SOURCE #-} Stratosphere.Bedrock.PromptVersion.PromptInferenceConfigurationProperty as Exports
  import {-# SOURCE #-} Stratosphere.Bedrock.PromptVersion.PromptTemplateConfigurationProperty as Exports
  import Stratosphere.ResourceProperties
  import Stratosphere.Value
  data PromptVariantProperty
    = PromptVariantProperty {inferenceConfiguration :: (Prelude.Maybe PromptInferenceConfigurationProperty),
                             modelId :: (Prelude.Maybe (Value Prelude.Text)),
                             name :: (Value Prelude.Text),
                             templateConfiguration :: PromptTemplateConfigurationProperty,
                             templateType :: (Value Prelude.Text)}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkPromptVariantProperty ::
    Value Prelude.Text
    -> PromptTemplateConfigurationProperty
       -> Value Prelude.Text -> PromptVariantProperty
  mkPromptVariantProperty name templateConfiguration templateType
    = PromptVariantProperty
        {name = name, templateConfiguration = templateConfiguration,
         templateType = templateType,
         inferenceConfiguration = Prelude.Nothing,
         modelId = Prelude.Nothing}
  instance ToResourceProperties PromptVariantProperty where
    toResourceProperties PromptVariantProperty {..}
      = ResourceProperties
          {awsType = "AWS::Bedrock::PromptVersion.PromptVariant",
           supportsTags = Prelude.False,
           properties = Prelude.fromList
                          ((Prelude.<>)
                             ["Name" JSON..= name,
                              "TemplateConfiguration" JSON..= templateConfiguration,
                              "TemplateType" JSON..= templateType]
                             (Prelude.catMaybes
                                [(JSON..=) "InferenceConfiguration"
                                   Prelude.<$> inferenceConfiguration,
                                 (JSON..=) "ModelId" Prelude.<$> modelId]))}
  instance JSON.ToJSON PromptVariantProperty where
    toJSON PromptVariantProperty {..}
      = JSON.object
          (Prelude.fromList
             ((Prelude.<>)
                ["Name" JSON..= name,
                 "TemplateConfiguration" JSON..= templateConfiguration,
                 "TemplateType" JSON..= templateType]
                (Prelude.catMaybes
                   [(JSON..=) "InferenceConfiguration"
                      Prelude.<$> inferenceConfiguration,
                    (JSON..=) "ModelId" Prelude.<$> modelId])))
  instance Property "InferenceConfiguration" PromptVariantProperty where
    type PropertyType "InferenceConfiguration" PromptVariantProperty = PromptInferenceConfigurationProperty
    set newValue PromptVariantProperty {..}
      = PromptVariantProperty
          {inferenceConfiguration = Prelude.pure newValue, ..}
  instance Property "ModelId" PromptVariantProperty where
    type PropertyType "ModelId" PromptVariantProperty = Value Prelude.Text
    set newValue PromptVariantProperty {..}
      = PromptVariantProperty {modelId = Prelude.pure newValue, ..}
  instance Property "Name" PromptVariantProperty where
    type PropertyType "Name" PromptVariantProperty = Value Prelude.Text
    set newValue PromptVariantProperty {..}
      = PromptVariantProperty {name = newValue, ..}
  instance Property "TemplateConfiguration" PromptVariantProperty where
    type PropertyType "TemplateConfiguration" PromptVariantProperty = PromptTemplateConfigurationProperty
    set newValue PromptVariantProperty {..}
      = PromptVariantProperty {templateConfiguration = newValue, ..}
  instance Property "TemplateType" PromptVariantProperty where
    type PropertyType "TemplateType" PromptVariantProperty = Value Prelude.Text
    set newValue PromptVariantProperty {..}
      = PromptVariantProperty {templateType = newValue, ..}