module Stratosphere.SecurityHub.AutomationRule.DateRangeProperty (
        DateRangeProperty(..), mkDateRangeProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DateRangeProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-automationrule-daterange.html>
    DateRangeProperty {DateRangeProperty -> ()
haddock_workaround_ :: (),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-automationrule-daterange.html#cfn-securityhub-automationrule-daterange-unit>
                       DateRangeProperty -> Value Text
unit :: (Value Prelude.Text),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-automationrule-daterange.html#cfn-securityhub-automationrule-daterange-value>
                       DateRangeProperty -> Value Double
value :: (Value Prelude.Double)}
  deriving stock (DateRangeProperty -> DateRangeProperty -> Bool
(DateRangeProperty -> DateRangeProperty -> Bool)
-> (DateRangeProperty -> DateRangeProperty -> Bool)
-> Eq DateRangeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DateRangeProperty -> DateRangeProperty -> Bool
== :: DateRangeProperty -> DateRangeProperty -> Bool
$c/= :: DateRangeProperty -> DateRangeProperty -> Bool
/= :: DateRangeProperty -> DateRangeProperty -> Bool
Prelude.Eq, Int -> DateRangeProperty -> ShowS
[DateRangeProperty] -> ShowS
DateRangeProperty -> String
(Int -> DateRangeProperty -> ShowS)
-> (DateRangeProperty -> String)
-> ([DateRangeProperty] -> ShowS)
-> Show DateRangeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DateRangeProperty -> ShowS
showsPrec :: Int -> DateRangeProperty -> ShowS
$cshow :: DateRangeProperty -> String
show :: DateRangeProperty -> String
$cshowList :: [DateRangeProperty] -> ShowS
showList :: [DateRangeProperty] -> ShowS
Prelude.Show)
mkDateRangeProperty ::
  Value Prelude.Text -> Value Prelude.Double -> DateRangeProperty
mkDateRangeProperty :: Value Text -> Value Double -> DateRangeProperty
mkDateRangeProperty Value Text
unit Value Double
value
  = DateRangeProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), unit :: Value Text
unit = Value Text
unit, value :: Value Double
value = Value Double
value}
instance ToResourceProperties DateRangeProperty where
  toResourceProperties :: DateRangeProperty -> ResourceProperties
toResourceProperties DateRangeProperty {()
Value Double
Value Text
haddock_workaround_ :: DateRangeProperty -> ()
unit :: DateRangeProperty -> Value Text
value :: DateRangeProperty -> Value Double
haddock_workaround_ :: ()
unit :: Value Text
value :: Value Double
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SecurityHub::AutomationRule.DateRange",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Unit" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
unit, Key
"Value" 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..= Value Double
value]}
instance JSON.ToJSON DateRangeProperty where
  toJSON :: DateRangeProperty -> Value
toJSON DateRangeProperty {()
Value Double
Value Text
haddock_workaround_ :: DateRangeProperty -> ()
unit :: DateRangeProperty -> Value Text
value :: DateRangeProperty -> Value Double
haddock_workaround_ :: ()
unit :: Value Text
value :: Value Double
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Unit" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
unit, Key
"Value" 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..= Value Double
value]
instance Property "Unit" DateRangeProperty where
  type PropertyType "Unit" DateRangeProperty = Value Prelude.Text
  set :: PropertyType "Unit" DateRangeProperty
-> DateRangeProperty -> DateRangeProperty
set PropertyType "Unit" DateRangeProperty
newValue DateRangeProperty {()
Value Double
Value Text
haddock_workaround_ :: DateRangeProperty -> ()
unit :: DateRangeProperty -> Value Text
value :: DateRangeProperty -> Value Double
haddock_workaround_ :: ()
unit :: Value Text
value :: Value Double
..}
    = DateRangeProperty {unit :: Value Text
unit = PropertyType "Unit" DateRangeProperty
Value Text
newValue, ()
Value Double
haddock_workaround_ :: ()
value :: Value Double
haddock_workaround_ :: ()
value :: Value Double
..}
instance Property "Value" DateRangeProperty where
  type PropertyType "Value" DateRangeProperty = Value Prelude.Double
  set :: PropertyType "Value" DateRangeProperty
-> DateRangeProperty -> DateRangeProperty
set PropertyType "Value" DateRangeProperty
newValue DateRangeProperty {()
Value Double
Value Text
haddock_workaround_ :: DateRangeProperty -> ()
unit :: DateRangeProperty -> Value Text
value :: DateRangeProperty -> Value Double
haddock_workaround_ :: ()
unit :: Value Text
value :: Value Double
..}
    = DateRangeProperty {value :: Value Double
value = PropertyType "Value" DateRangeProperty
Value Double
newValue, ()
Value Text
haddock_workaround_ :: ()
unit :: Value Text
haddock_workaround_ :: ()
unit :: Value Text
..}