module Stratosphere.FSx.Volume.AutocommitPeriodProperty (
AutocommitPeriodProperty(..), mkAutocommitPeriodProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AutocommitPeriodProperty
=
AutocommitPeriodProperty {AutocommitPeriodProperty -> ()
haddock_workaround_ :: (),
AutocommitPeriodProperty -> Value Text
type' :: (Value Prelude.Text),
AutocommitPeriodProperty -> Maybe (Value Integer)
value :: (Prelude.Maybe (Value Prelude.Integer))}
deriving stock (AutocommitPeriodProperty -> AutocommitPeriodProperty -> Bool
(AutocommitPeriodProperty -> AutocommitPeriodProperty -> Bool)
-> (AutocommitPeriodProperty -> AutocommitPeriodProperty -> Bool)
-> Eq AutocommitPeriodProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AutocommitPeriodProperty -> AutocommitPeriodProperty -> Bool
== :: AutocommitPeriodProperty -> AutocommitPeriodProperty -> Bool
$c/= :: AutocommitPeriodProperty -> AutocommitPeriodProperty -> Bool
/= :: AutocommitPeriodProperty -> AutocommitPeriodProperty -> Bool
Prelude.Eq, Int -> AutocommitPeriodProperty -> ShowS
[AutocommitPeriodProperty] -> ShowS
AutocommitPeriodProperty -> String
(Int -> AutocommitPeriodProperty -> ShowS)
-> (AutocommitPeriodProperty -> String)
-> ([AutocommitPeriodProperty] -> ShowS)
-> Show AutocommitPeriodProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AutocommitPeriodProperty -> ShowS
showsPrec :: Int -> AutocommitPeriodProperty -> ShowS
$cshow :: AutocommitPeriodProperty -> String
show :: AutocommitPeriodProperty -> String
$cshowList :: [AutocommitPeriodProperty] -> ShowS
showList :: [AutocommitPeriodProperty] -> ShowS
Prelude.Show)
mkAutocommitPeriodProperty ::
Value Prelude.Text -> AutocommitPeriodProperty
mkAutocommitPeriodProperty :: Value Text -> AutocommitPeriodProperty
mkAutocommitPeriodProperty Value Text
type'
= AutocommitPeriodProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), type' :: Value Text
type' = Value Text
type', value :: Maybe (Value Integer)
value = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AutocommitPeriodProperty where
toResourceProperties :: AutocommitPeriodProperty -> ResourceProperties
toResourceProperties AutocommitPeriodProperty {Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: AutocommitPeriodProperty -> ()
type' :: AutocommitPeriodProperty -> Value Text
value :: AutocommitPeriodProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
type' :: Value Text
value :: Maybe (Value Integer)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::FSx::Volume.AutocommitPeriod",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Type" 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
type']
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [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..=) Key
"Value" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
value]))}
instance JSON.ToJSON AutocommitPeriodProperty where
toJSON :: AutocommitPeriodProperty -> Value
toJSON AutocommitPeriodProperty {Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: AutocommitPeriodProperty -> ()
type' :: AutocommitPeriodProperty -> Value Text
value :: AutocommitPeriodProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
type' :: Value Text
value :: Maybe (Value Integer)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Type" 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
type']
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [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..=) Key
"Value" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
value])))
instance Property "Type" AutocommitPeriodProperty where
type PropertyType "Type" AutocommitPeriodProperty = Value Prelude.Text
set :: PropertyType "Type" AutocommitPeriodProperty
-> AutocommitPeriodProperty -> AutocommitPeriodProperty
set PropertyType "Type" AutocommitPeriodProperty
newValue AutocommitPeriodProperty {Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: AutocommitPeriodProperty -> ()
type' :: AutocommitPeriodProperty -> Value Text
value :: AutocommitPeriodProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
type' :: Value Text
value :: Maybe (Value Integer)
..}
= AutocommitPeriodProperty {type' :: Value Text
type' = PropertyType "Type" AutocommitPeriodProperty
Value Text
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
value :: Maybe (Value Integer)
haddock_workaround_ :: ()
value :: Maybe (Value Integer)
..}
instance Property "Value" AutocommitPeriodProperty where
type PropertyType "Value" AutocommitPeriodProperty = Value Prelude.Integer
set :: PropertyType "Value" AutocommitPeriodProperty
-> AutocommitPeriodProperty -> AutocommitPeriodProperty
set PropertyType "Value" AutocommitPeriodProperty
newValue AutocommitPeriodProperty {Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: AutocommitPeriodProperty -> ()
type' :: AutocommitPeriodProperty -> Value Text
value :: AutocommitPeriodProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
type' :: Value Text
value :: Maybe (Value Integer)
..}
= AutocommitPeriodProperty {value :: Maybe (Value Integer)
value = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Value" AutocommitPeriodProperty
Value Integer
newValue, ()
Value Text
haddock_workaround_ :: ()
type' :: Value Text
haddock_workaround_ :: ()
type' :: Value Text
..}