module Stratosphere.ImageBuilder.LifecyclePolicy.IncludeResourcesProperty (
        IncludeResourcesProperty(..), mkIncludeResourcesProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data IncludeResourcesProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-includeresources.html>
    IncludeResourcesProperty {IncludeResourcesProperty -> ()
haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-includeresources.html#cfn-imagebuilder-lifecyclepolicy-includeresources-amis>
                              IncludeResourcesProperty -> Maybe (Value Bool)
amis :: (Prelude.Maybe (Value Prelude.Bool)),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-includeresources.html#cfn-imagebuilder-lifecyclepolicy-includeresources-containers>
                              IncludeResourcesProperty -> Maybe (Value Bool)
containers :: (Prelude.Maybe (Value Prelude.Bool)),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-includeresources.html#cfn-imagebuilder-lifecyclepolicy-includeresources-snapshots>
                              IncludeResourcesProperty -> Maybe (Value Bool)
snapshots :: (Prelude.Maybe (Value Prelude.Bool))}
  deriving stock (IncludeResourcesProperty -> IncludeResourcesProperty -> Bool
(IncludeResourcesProperty -> IncludeResourcesProperty -> Bool)
-> (IncludeResourcesProperty -> IncludeResourcesProperty -> Bool)
-> Eq IncludeResourcesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: IncludeResourcesProperty -> IncludeResourcesProperty -> Bool
== :: IncludeResourcesProperty -> IncludeResourcesProperty -> Bool
$c/= :: IncludeResourcesProperty -> IncludeResourcesProperty -> Bool
/= :: IncludeResourcesProperty -> IncludeResourcesProperty -> Bool
Prelude.Eq, Int -> IncludeResourcesProperty -> ShowS
[IncludeResourcesProperty] -> ShowS
IncludeResourcesProperty -> String
(Int -> IncludeResourcesProperty -> ShowS)
-> (IncludeResourcesProperty -> String)
-> ([IncludeResourcesProperty] -> ShowS)
-> Show IncludeResourcesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> IncludeResourcesProperty -> ShowS
showsPrec :: Int -> IncludeResourcesProperty -> ShowS
$cshow :: IncludeResourcesProperty -> String
show :: IncludeResourcesProperty -> String
$cshowList :: [IncludeResourcesProperty] -> ShowS
showList :: [IncludeResourcesProperty] -> ShowS
Prelude.Show)
mkIncludeResourcesProperty :: IncludeResourcesProperty
mkIncludeResourcesProperty :: IncludeResourcesProperty
mkIncludeResourcesProperty
  = IncludeResourcesProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), amis :: Maybe (Value Bool)
amis = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       containers :: Maybe (Value Bool)
containers = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing, snapshots :: Maybe (Value Bool)
snapshots = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties IncludeResourcesProperty where
  toResourceProperties :: IncludeResourcesProperty -> ResourceProperties
toResourceProperties IncludeResourcesProperty {Maybe (Value Bool)
()
haddock_workaround_ :: IncludeResourcesProperty -> ()
amis :: IncludeResourcesProperty -> Maybe (Value Bool)
containers :: IncludeResourcesProperty -> Maybe (Value Bool)
snapshots :: IncludeResourcesProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
amis :: Maybe (Value Bool)
containers :: Maybe (Value Bool)
snapshots :: Maybe (Value Bool)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ImageBuilder::LifecyclePolicy.IncludeResources",
         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 Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Amis" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
amis,
                            Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Containers" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
containers,
                            Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Snapshots" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
snapshots])}
instance JSON.ToJSON IncludeResourcesProperty where
  toJSON :: IncludeResourcesProperty -> Value
toJSON IncludeResourcesProperty {Maybe (Value Bool)
()
haddock_workaround_ :: IncludeResourcesProperty -> ()
amis :: IncludeResourcesProperty -> Maybe (Value Bool)
containers :: IncludeResourcesProperty -> Maybe (Value Bool)
snapshots :: IncludeResourcesProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
amis :: Maybe (Value Bool)
containers :: Maybe (Value Bool)
snapshots :: Maybe (Value Bool)
..}
    = [(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 Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Amis" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
amis,
               Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Containers" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
containers,
               Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Snapshots" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
snapshots]))
instance Property "Amis" IncludeResourcesProperty where
  type PropertyType "Amis" IncludeResourcesProperty = Value Prelude.Bool
  set :: PropertyType "Amis" IncludeResourcesProperty
-> IncludeResourcesProperty -> IncludeResourcesProperty
set PropertyType "Amis" IncludeResourcesProperty
newValue IncludeResourcesProperty {Maybe (Value Bool)
()
haddock_workaround_ :: IncludeResourcesProperty -> ()
amis :: IncludeResourcesProperty -> Maybe (Value Bool)
containers :: IncludeResourcesProperty -> Maybe (Value Bool)
snapshots :: IncludeResourcesProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
amis :: Maybe (Value Bool)
containers :: Maybe (Value Bool)
snapshots :: Maybe (Value Bool)
..}
    = IncludeResourcesProperty {amis :: Maybe (Value Bool)
amis = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Amis" IncludeResourcesProperty
Value Bool
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
containers :: Maybe (Value Bool)
snapshots :: Maybe (Value Bool)
haddock_workaround_ :: ()
containers :: Maybe (Value Bool)
snapshots :: Maybe (Value Bool)
..}
instance Property "Containers" IncludeResourcesProperty where
  type PropertyType "Containers" IncludeResourcesProperty = Value Prelude.Bool
  set :: PropertyType "Containers" IncludeResourcesProperty
-> IncludeResourcesProperty -> IncludeResourcesProperty
set PropertyType "Containers" IncludeResourcesProperty
newValue IncludeResourcesProperty {Maybe (Value Bool)
()
haddock_workaround_ :: IncludeResourcesProperty -> ()
amis :: IncludeResourcesProperty -> Maybe (Value Bool)
containers :: IncludeResourcesProperty -> Maybe (Value Bool)
snapshots :: IncludeResourcesProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
amis :: Maybe (Value Bool)
containers :: Maybe (Value Bool)
snapshots :: Maybe (Value Bool)
..}
    = IncludeResourcesProperty {containers :: Maybe (Value Bool)
containers = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Containers" IncludeResourcesProperty
Value Bool
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
amis :: Maybe (Value Bool)
snapshots :: Maybe (Value Bool)
haddock_workaround_ :: ()
amis :: Maybe (Value Bool)
snapshots :: Maybe (Value Bool)
..}
instance Property "Snapshots" IncludeResourcesProperty where
  type PropertyType "Snapshots" IncludeResourcesProperty = Value Prelude.Bool
  set :: PropertyType "Snapshots" IncludeResourcesProperty
-> IncludeResourcesProperty -> IncludeResourcesProperty
set PropertyType "Snapshots" IncludeResourcesProperty
newValue IncludeResourcesProperty {Maybe (Value Bool)
()
haddock_workaround_ :: IncludeResourcesProperty -> ()
amis :: IncludeResourcesProperty -> Maybe (Value Bool)
containers :: IncludeResourcesProperty -> Maybe (Value Bool)
snapshots :: IncludeResourcesProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
amis :: Maybe (Value Bool)
containers :: Maybe (Value Bool)
snapshots :: Maybe (Value Bool)
..}
    = IncludeResourcesProperty {snapshots :: Maybe (Value Bool)
snapshots = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Snapshots" IncludeResourcesProperty
Value Bool
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
amis :: Maybe (Value Bool)
containers :: Maybe (Value Bool)
haddock_workaround_ :: ()
amis :: Maybe (Value Bool)
containers :: Maybe (Value Bool)
..}