module Stratosphere.Bedrock.Guardrail.ContextualGroundingFilterConfigProperty ( ContextualGroundingFilterConfigProperty(..), mkContextualGroundingFilterConfigProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data ContextualGroundingFilterConfigProperty = -- | See: ContextualGroundingFilterConfigProperty {haddock_workaround_ :: (), -- | See: action :: (Prelude.Maybe (Value Prelude.Text)), -- | See: enabled :: (Prelude.Maybe (Value Prelude.Bool)), -- | See: threshold :: (Value Prelude.Double), -- | See: type' :: (Value Prelude.Text)} deriving stock (Prelude.Eq, Prelude.Show) mkContextualGroundingFilterConfigProperty :: Value Prelude.Double -> Value Prelude.Text -> ContextualGroundingFilterConfigProperty mkContextualGroundingFilterConfigProperty threshold type' = ContextualGroundingFilterConfigProperty {haddock_workaround_ = (), threshold = threshold, type' = type', action = Prelude.Nothing, enabled = Prelude.Nothing} instance ToResourceProperties ContextualGroundingFilterConfigProperty where toResourceProperties ContextualGroundingFilterConfigProperty {..} = ResourceProperties {awsType = "AWS::Bedrock::Guardrail.ContextualGroundingFilterConfig", supportsTags = Prelude.False, properties = Prelude.fromList ((Prelude.<>) ["Threshold" JSON..= threshold, "Type" JSON..= type'] (Prelude.catMaybes [(JSON..=) "Action" Prelude.<$> action, (JSON..=) "Enabled" Prelude.<$> enabled]))} instance JSON.ToJSON ContextualGroundingFilterConfigProperty where toJSON ContextualGroundingFilterConfigProperty {..} = JSON.object (Prelude.fromList ((Prelude.<>) ["Threshold" JSON..= threshold, "Type" JSON..= type'] (Prelude.catMaybes [(JSON..=) "Action" Prelude.<$> action, (JSON..=) "Enabled" Prelude.<$> enabled]))) instance Property "Action" ContextualGroundingFilterConfigProperty where type PropertyType "Action" ContextualGroundingFilterConfigProperty = Value Prelude.Text set newValue ContextualGroundingFilterConfigProperty {..} = ContextualGroundingFilterConfigProperty {action = Prelude.pure newValue, ..} instance Property "Enabled" ContextualGroundingFilterConfigProperty where type PropertyType "Enabled" ContextualGroundingFilterConfigProperty = Value Prelude.Bool set newValue ContextualGroundingFilterConfigProperty {..} = ContextualGroundingFilterConfigProperty {enabled = Prelude.pure newValue, ..} instance Property "Threshold" ContextualGroundingFilterConfigProperty where type PropertyType "Threshold" ContextualGroundingFilterConfigProperty = Value Prelude.Double set newValue ContextualGroundingFilterConfigProperty {..} = ContextualGroundingFilterConfigProperty {threshold = newValue, ..} instance Property "Type" ContextualGroundingFilterConfigProperty where type PropertyType "Type" ContextualGroundingFilterConfigProperty = Value Prelude.Text set newValue ContextualGroundingFilterConfigProperty {..} = ContextualGroundingFilterConfigProperty {type' = newValue, ..}