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