module Stratosphere.Bedrock.Guardrail.AutomatedReasoningPolicyConfigProperty (
        AutomatedReasoningPolicyConfigProperty(..),
        mkAutomatedReasoningPolicyConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AutomatedReasoningPolicyConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-automatedreasoningpolicyconfig.html>
    AutomatedReasoningPolicyConfigProperty {AutomatedReasoningPolicyConfigProperty -> ()
haddock_workaround_ :: (),
                                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-automatedreasoningpolicyconfig.html#cfn-bedrock-guardrail-automatedreasoningpolicyconfig-confidencethreshold>
                                            AutomatedReasoningPolicyConfigProperty -> Maybe (Value Double)
confidenceThreshold :: (Prelude.Maybe (Value Prelude.Double)),
                                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-automatedreasoningpolicyconfig.html#cfn-bedrock-guardrail-automatedreasoningpolicyconfig-policies>
                                            AutomatedReasoningPolicyConfigProperty -> ValueList Text
policies :: (ValueList Prelude.Text)}
  deriving stock (AutomatedReasoningPolicyConfigProperty
-> AutomatedReasoningPolicyConfigProperty -> Bool
(AutomatedReasoningPolicyConfigProperty
 -> AutomatedReasoningPolicyConfigProperty -> Bool)
-> (AutomatedReasoningPolicyConfigProperty
    -> AutomatedReasoningPolicyConfigProperty -> Bool)
-> Eq AutomatedReasoningPolicyConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AutomatedReasoningPolicyConfigProperty
-> AutomatedReasoningPolicyConfigProperty -> Bool
== :: AutomatedReasoningPolicyConfigProperty
-> AutomatedReasoningPolicyConfigProperty -> Bool
$c/= :: AutomatedReasoningPolicyConfigProperty
-> AutomatedReasoningPolicyConfigProperty -> Bool
/= :: AutomatedReasoningPolicyConfigProperty
-> AutomatedReasoningPolicyConfigProperty -> Bool
Prelude.Eq, Int -> AutomatedReasoningPolicyConfigProperty -> ShowS
[AutomatedReasoningPolicyConfigProperty] -> ShowS
AutomatedReasoningPolicyConfigProperty -> String
(Int -> AutomatedReasoningPolicyConfigProperty -> ShowS)
-> (AutomatedReasoningPolicyConfigProperty -> String)
-> ([AutomatedReasoningPolicyConfigProperty] -> ShowS)
-> Show AutomatedReasoningPolicyConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AutomatedReasoningPolicyConfigProperty -> ShowS
showsPrec :: Int -> AutomatedReasoningPolicyConfigProperty -> ShowS
$cshow :: AutomatedReasoningPolicyConfigProperty -> String
show :: AutomatedReasoningPolicyConfigProperty -> String
$cshowList :: [AutomatedReasoningPolicyConfigProperty] -> ShowS
showList :: [AutomatedReasoningPolicyConfigProperty] -> ShowS
Prelude.Show)
mkAutomatedReasoningPolicyConfigProperty ::
  ValueList Prelude.Text -> AutomatedReasoningPolicyConfigProperty
mkAutomatedReasoningPolicyConfigProperty :: ValueList Text -> AutomatedReasoningPolicyConfigProperty
mkAutomatedReasoningPolicyConfigProperty ValueList Text
policies
  = AutomatedReasoningPolicyConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), policies :: ValueList Text
policies = ValueList Text
policies,
       confidenceThreshold :: Maybe (Value Double)
confidenceThreshold = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AutomatedReasoningPolicyConfigProperty where
  toResourceProperties :: AutomatedReasoningPolicyConfigProperty -> ResourceProperties
toResourceProperties AutomatedReasoningPolicyConfigProperty {Maybe (Value Double)
()
ValueList Text
haddock_workaround_ :: AutomatedReasoningPolicyConfigProperty -> ()
confidenceThreshold :: AutomatedReasoningPolicyConfigProperty -> Maybe (Value Double)
policies :: AutomatedReasoningPolicyConfigProperty -> ValueList Text
haddock_workaround_ :: ()
confidenceThreshold :: Maybe (Value Double)
policies :: ValueList Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Bedrock::Guardrail.AutomatedReasoningPolicyConfig",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         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
"Policies" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
policies]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ConfidenceThreshold"
                                 (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
confidenceThreshold]))}
instance JSON.ToJSON AutomatedReasoningPolicyConfigProperty where
  toJSON :: AutomatedReasoningPolicyConfigProperty -> Value
toJSON AutomatedReasoningPolicyConfigProperty {Maybe (Value Double)
()
ValueList Text
haddock_workaround_ :: AutomatedReasoningPolicyConfigProperty -> ()
confidenceThreshold :: AutomatedReasoningPolicyConfigProperty -> Maybe (Value Double)
policies :: AutomatedReasoningPolicyConfigProperty -> ValueList Text
haddock_workaround_ :: ()
confidenceThreshold :: Maybe (Value Double)
policies :: ValueList Text
..}
    = [(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
"Policies" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
policies]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ConfidenceThreshold"
                    (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
confidenceThreshold])))
instance Property "ConfidenceThreshold" AutomatedReasoningPolicyConfigProperty where
  type PropertyType "ConfidenceThreshold" AutomatedReasoningPolicyConfigProperty = Value Prelude.Double
  set :: PropertyType
  "ConfidenceThreshold" AutomatedReasoningPolicyConfigProperty
-> AutomatedReasoningPolicyConfigProperty
-> AutomatedReasoningPolicyConfigProperty
set PropertyType
  "ConfidenceThreshold" AutomatedReasoningPolicyConfigProperty
newValue AutomatedReasoningPolicyConfigProperty {Maybe (Value Double)
()
ValueList Text
haddock_workaround_ :: AutomatedReasoningPolicyConfigProperty -> ()
confidenceThreshold :: AutomatedReasoningPolicyConfigProperty -> Maybe (Value Double)
policies :: AutomatedReasoningPolicyConfigProperty -> ValueList Text
haddock_workaround_ :: ()
confidenceThreshold :: Maybe (Value Double)
policies :: ValueList Text
..}
    = AutomatedReasoningPolicyConfigProperty
        {confidenceThreshold :: Maybe (Value Double)
confidenceThreshold = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "ConfidenceThreshold" AutomatedReasoningPolicyConfigProperty
Value Double
newValue, ()
ValueList Text
haddock_workaround_ :: ()
policies :: ValueList Text
haddock_workaround_ :: ()
policies :: ValueList Text
..}
instance Property "Policies" AutomatedReasoningPolicyConfigProperty where
  type PropertyType "Policies" AutomatedReasoningPolicyConfigProperty = ValueList Prelude.Text
  set :: PropertyType "Policies" AutomatedReasoningPolicyConfigProperty
-> AutomatedReasoningPolicyConfigProperty
-> AutomatedReasoningPolicyConfigProperty
set PropertyType "Policies" AutomatedReasoningPolicyConfigProperty
newValue AutomatedReasoningPolicyConfigProperty {Maybe (Value Double)
()
ValueList Text
haddock_workaround_ :: AutomatedReasoningPolicyConfigProperty -> ()
confidenceThreshold :: AutomatedReasoningPolicyConfigProperty -> Maybe (Value Double)
policies :: AutomatedReasoningPolicyConfigProperty -> ValueList Text
haddock_workaround_ :: ()
confidenceThreshold :: Maybe (Value Double)
policies :: ValueList Text
..}
    = AutomatedReasoningPolicyConfigProperty {policies :: ValueList Text
policies = PropertyType "Policies" AutomatedReasoningPolicyConfigProperty
ValueList Text
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
confidenceThreshold :: Maybe (Value Double)
haddock_workaround_ :: ()
confidenceThreshold :: Maybe (Value Double)
..}