module Stratosphere.SecurityHub.AutomationRule.StringFilterProperty ( StringFilterProperty(..), mkStringFilterProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data StringFilterProperty = -- | See: StringFilterProperty {haddock_workaround_ :: (), -- | See: comparison :: (Value Prelude.Text), -- | See: value :: (Value Prelude.Text)} deriving stock (Prelude.Eq, Prelude.Show) mkStringFilterProperty :: Value Prelude.Text -> Value Prelude.Text -> StringFilterProperty mkStringFilterProperty comparison value = StringFilterProperty {haddock_workaround_ = (), comparison = comparison, value = value} instance ToResourceProperties StringFilterProperty where toResourceProperties StringFilterProperty {..} = ResourceProperties {awsType = "AWS::SecurityHub::AutomationRule.StringFilter", supportsTags = Prelude.False, properties = ["Comparison" JSON..= comparison, "Value" JSON..= value]} instance JSON.ToJSON StringFilterProperty where toJSON StringFilterProperty {..} = JSON.object ["Comparison" JSON..= comparison, "Value" JSON..= value] instance Property "Comparison" StringFilterProperty where type PropertyType "Comparison" StringFilterProperty = Value Prelude.Text set newValue StringFilterProperty {..} = StringFilterProperty {comparison = newValue, ..} instance Property "Value" StringFilterProperty where type PropertyType "Value" StringFilterProperty = Value Prelude.Text set newValue StringFilterProperty {..} = StringFilterProperty {value = newValue, ..}