module Stratosphere.IoTFleetWise.Campaign.StorageMinimumTimeToLiveProperty (
StorageMinimumTimeToLiveProperty(..),
mkStorageMinimumTimeToLiveProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data StorageMinimumTimeToLiveProperty
=
StorageMinimumTimeToLiveProperty {StorageMinimumTimeToLiveProperty -> ()
haddock_workaround_ :: (),
StorageMinimumTimeToLiveProperty -> Value Text
unit :: (Value Prelude.Text),
StorageMinimumTimeToLiveProperty -> Value Integer
value :: (Value Prelude.Integer)}
deriving stock (StorageMinimumTimeToLiveProperty
-> StorageMinimumTimeToLiveProperty -> Bool
(StorageMinimumTimeToLiveProperty
-> StorageMinimumTimeToLiveProperty -> Bool)
-> (StorageMinimumTimeToLiveProperty
-> StorageMinimumTimeToLiveProperty -> Bool)
-> Eq StorageMinimumTimeToLiveProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: StorageMinimumTimeToLiveProperty
-> StorageMinimumTimeToLiveProperty -> Bool
== :: StorageMinimumTimeToLiveProperty
-> StorageMinimumTimeToLiveProperty -> Bool
$c/= :: StorageMinimumTimeToLiveProperty
-> StorageMinimumTimeToLiveProperty -> Bool
/= :: StorageMinimumTimeToLiveProperty
-> StorageMinimumTimeToLiveProperty -> Bool
Prelude.Eq, Int -> StorageMinimumTimeToLiveProperty -> ShowS
[StorageMinimumTimeToLiveProperty] -> ShowS
StorageMinimumTimeToLiveProperty -> String
(Int -> StorageMinimumTimeToLiveProperty -> ShowS)
-> (StorageMinimumTimeToLiveProperty -> String)
-> ([StorageMinimumTimeToLiveProperty] -> ShowS)
-> Show StorageMinimumTimeToLiveProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> StorageMinimumTimeToLiveProperty -> ShowS
showsPrec :: Int -> StorageMinimumTimeToLiveProperty -> ShowS
$cshow :: StorageMinimumTimeToLiveProperty -> String
show :: StorageMinimumTimeToLiveProperty -> String
$cshowList :: [StorageMinimumTimeToLiveProperty] -> ShowS
showList :: [StorageMinimumTimeToLiveProperty] -> ShowS
Prelude.Show)
mkStorageMinimumTimeToLiveProperty ::
Value Prelude.Text
-> Value Prelude.Integer -> StorageMinimumTimeToLiveProperty
mkStorageMinimumTimeToLiveProperty :: Value Text -> Value Integer -> StorageMinimumTimeToLiveProperty
mkStorageMinimumTimeToLiveProperty Value Text
unit Value Integer
value
= StorageMinimumTimeToLiveProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), unit :: Value Text
unit = Value Text
unit, value :: Value Integer
value = Value Integer
value}
instance ToResourceProperties StorageMinimumTimeToLiveProperty where
toResourceProperties :: StorageMinimumTimeToLiveProperty -> ResourceProperties
toResourceProperties StorageMinimumTimeToLiveProperty {()
Value Integer
Value Text
haddock_workaround_ :: StorageMinimumTimeToLiveProperty -> ()
unit :: StorageMinimumTimeToLiveProperty -> Value Text
value :: StorageMinimumTimeToLiveProperty -> Value Integer
haddock_workaround_ :: ()
unit :: Value Text
value :: Value Integer
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoTFleetWise::Campaign.StorageMinimumTimeToLive",
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 Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
value]}
instance JSON.ToJSON StorageMinimumTimeToLiveProperty where
toJSON :: StorageMinimumTimeToLiveProperty -> Value
toJSON StorageMinimumTimeToLiveProperty {()
Value Integer
Value Text
haddock_workaround_ :: StorageMinimumTimeToLiveProperty -> ()
unit :: StorageMinimumTimeToLiveProperty -> Value Text
value :: StorageMinimumTimeToLiveProperty -> Value Integer
haddock_workaround_ :: ()
unit :: Value Text
value :: Value Integer
..}
= [(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 Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
value]
instance Property "Unit" StorageMinimumTimeToLiveProperty where
type PropertyType "Unit" StorageMinimumTimeToLiveProperty = Value Prelude.Text
set :: PropertyType "Unit" StorageMinimumTimeToLiveProperty
-> StorageMinimumTimeToLiveProperty
-> StorageMinimumTimeToLiveProperty
set PropertyType "Unit" StorageMinimumTimeToLiveProperty
newValue StorageMinimumTimeToLiveProperty {()
Value Integer
Value Text
haddock_workaround_ :: StorageMinimumTimeToLiveProperty -> ()
unit :: StorageMinimumTimeToLiveProperty -> Value Text
value :: StorageMinimumTimeToLiveProperty -> Value Integer
haddock_workaround_ :: ()
unit :: Value Text
value :: Value Integer
..}
= StorageMinimumTimeToLiveProperty {unit :: Value Text
unit = PropertyType "Unit" StorageMinimumTimeToLiveProperty
Value Text
newValue, ()
Value Integer
haddock_workaround_ :: ()
value :: Value Integer
haddock_workaround_ :: ()
value :: Value Integer
..}
instance Property "Value" StorageMinimumTimeToLiveProperty where
type PropertyType "Value" StorageMinimumTimeToLiveProperty = Value Prelude.Integer
set :: PropertyType "Value" StorageMinimumTimeToLiveProperty
-> StorageMinimumTimeToLiveProperty
-> StorageMinimumTimeToLiveProperty
set PropertyType "Value" StorageMinimumTimeToLiveProperty
newValue StorageMinimumTimeToLiveProperty {()
Value Integer
Value Text
haddock_workaround_ :: StorageMinimumTimeToLiveProperty -> ()
unit :: StorageMinimumTimeToLiveProperty -> Value Text
value :: StorageMinimumTimeToLiveProperty -> Value Integer
haddock_workaround_ :: ()
unit :: Value Text
value :: Value Integer
..}
= StorageMinimumTimeToLiveProperty {value :: Value Integer
value = PropertyType "Value" StorageMinimumTimeToLiveProperty
Value Integer
newValue, ()
Value Text
haddock_workaround_ :: ()
unit :: Value Text
haddock_workaround_ :: ()
unit :: Value Text
..}