module Stratosphere.WAFv2.LoggingConfiguration.ActionConditionProperty ( ActionConditionProperty(..), mkActionConditionProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data ActionConditionProperty = -- | See: ActionConditionProperty {haddock_workaround_ :: (), -- | See: action :: (Value Prelude.Text)} deriving stock (Prelude.Eq, Prelude.Show) mkActionConditionProperty :: Value Prelude.Text -> ActionConditionProperty mkActionConditionProperty action = ActionConditionProperty {haddock_workaround_ = (), action = action} instance ToResourceProperties ActionConditionProperty where toResourceProperties ActionConditionProperty {..} = ResourceProperties {awsType = "AWS::WAFv2::LoggingConfiguration.ActionCondition", supportsTags = Prelude.False, properties = ["Action" JSON..= action]} instance JSON.ToJSON ActionConditionProperty where toJSON ActionConditionProperty {..} = JSON.object ["Action" JSON..= action] instance Property "Action" ActionConditionProperty where type PropertyType "Action" ActionConditionProperty = Value Prelude.Text set newValue ActionConditionProperty {..} = ActionConditionProperty {action = newValue, ..}