module Stratosphere.DLM.LifecyclePolicy.ExclusionsProperty (
        module Exports, ExclusionsProperty(..), mkExclusionsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.DLM.LifecyclePolicy.ExcludeTagsProperty as Exports
import {-# SOURCE #-} Stratosphere.DLM.LifecyclePolicy.ExcludeVolumeTypesListProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ExclusionsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-exclusions.html>
    ExclusionsProperty {ExclusionsProperty -> ()
haddock_workaround_ :: (),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-exclusions.html#cfn-dlm-lifecyclepolicy-exclusions-excludebootvolumes>
                        ExclusionsProperty -> Maybe (Value Bool)
excludeBootVolumes :: (Prelude.Maybe (Value Prelude.Bool)),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-exclusions.html#cfn-dlm-lifecyclepolicy-exclusions-excludetags>
                        ExclusionsProperty -> Maybe ExcludeTagsProperty
excludeTags :: (Prelude.Maybe ExcludeTagsProperty),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-exclusions.html#cfn-dlm-lifecyclepolicy-exclusions-excludevolumetypes>
                        ExclusionsProperty -> Maybe ExcludeVolumeTypesListProperty
excludeVolumeTypes :: (Prelude.Maybe ExcludeVolumeTypesListProperty)}
  deriving stock (ExclusionsProperty -> ExclusionsProperty -> Bool
(ExclusionsProperty -> ExclusionsProperty -> Bool)
-> (ExclusionsProperty -> ExclusionsProperty -> Bool)
-> Eq ExclusionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ExclusionsProperty -> ExclusionsProperty -> Bool
== :: ExclusionsProperty -> ExclusionsProperty -> Bool
$c/= :: ExclusionsProperty -> ExclusionsProperty -> Bool
/= :: ExclusionsProperty -> ExclusionsProperty -> Bool
Prelude.Eq, Int -> ExclusionsProperty -> ShowS
[ExclusionsProperty] -> ShowS
ExclusionsProperty -> String
(Int -> ExclusionsProperty -> ShowS)
-> (ExclusionsProperty -> String)
-> ([ExclusionsProperty] -> ShowS)
-> Show ExclusionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ExclusionsProperty -> ShowS
showsPrec :: Int -> ExclusionsProperty -> ShowS
$cshow :: ExclusionsProperty -> String
show :: ExclusionsProperty -> String
$cshowList :: [ExclusionsProperty] -> ShowS
showList :: [ExclusionsProperty] -> ShowS
Prelude.Show)
mkExclusionsProperty :: ExclusionsProperty
mkExclusionsProperty :: ExclusionsProperty
mkExclusionsProperty
  = ExclusionsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), excludeBootVolumes :: Maybe (Value Bool)
excludeBootVolumes = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       excludeTags :: Maybe ExcludeTagsProperty
excludeTags = Maybe ExcludeTagsProperty
forall a. Maybe a
Prelude.Nothing,
       excludeVolumeTypes :: Maybe ExcludeVolumeTypesListProperty
excludeVolumeTypes = Maybe ExcludeVolumeTypesListProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ExclusionsProperty where
  toResourceProperties :: ExclusionsProperty -> ResourceProperties
toResourceProperties ExclusionsProperty {Maybe ExcludeVolumeTypesListProperty
Maybe ExcludeTagsProperty
Maybe (Value Bool)
()
haddock_workaround_ :: ExclusionsProperty -> ()
excludeBootVolumes :: ExclusionsProperty -> Maybe (Value Bool)
excludeTags :: ExclusionsProperty -> Maybe ExcludeTagsProperty
excludeVolumeTypes :: ExclusionsProperty -> Maybe ExcludeVolumeTypesListProperty
haddock_workaround_ :: ()
excludeBootVolumes :: Maybe (Value Bool)
excludeTags :: Maybe ExcludeTagsProperty
excludeVolumeTypes :: Maybe ExcludeVolumeTypesListProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::DLM::LifecyclePolicy.Exclusions",
         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
"ExcludeBootVolumes" (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)
excludeBootVolumes,
                            Key -> ExcludeTagsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ExcludeTags" (ExcludeTagsProperty -> (Key, Value))
-> Maybe ExcludeTagsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ExcludeTagsProperty
excludeTags,
                            Key -> ExcludeVolumeTypesListProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ExcludeVolumeTypes" (ExcludeVolumeTypesListProperty -> (Key, Value))
-> Maybe ExcludeVolumeTypesListProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ExcludeVolumeTypesListProperty
excludeVolumeTypes])}
instance JSON.ToJSON ExclusionsProperty where
  toJSON :: ExclusionsProperty -> Value
toJSON ExclusionsProperty {Maybe ExcludeVolumeTypesListProperty
Maybe ExcludeTagsProperty
Maybe (Value Bool)
()
haddock_workaround_ :: ExclusionsProperty -> ()
excludeBootVolumes :: ExclusionsProperty -> Maybe (Value Bool)
excludeTags :: ExclusionsProperty -> Maybe ExcludeTagsProperty
excludeVolumeTypes :: ExclusionsProperty -> Maybe ExcludeVolumeTypesListProperty
haddock_workaround_ :: ()
excludeBootVolumes :: Maybe (Value Bool)
excludeTags :: Maybe ExcludeTagsProperty
excludeVolumeTypes :: Maybe ExcludeVolumeTypesListProperty
..}
    = [(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
"ExcludeBootVolumes" (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)
excludeBootVolumes,
               Key -> ExcludeTagsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ExcludeTags" (ExcludeTagsProperty -> (Key, Value))
-> Maybe ExcludeTagsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ExcludeTagsProperty
excludeTags,
               Key -> ExcludeVolumeTypesListProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ExcludeVolumeTypes" (ExcludeVolumeTypesListProperty -> (Key, Value))
-> Maybe ExcludeVolumeTypesListProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ExcludeVolumeTypesListProperty
excludeVolumeTypes]))
instance Property "ExcludeBootVolumes" ExclusionsProperty where
  type PropertyType "ExcludeBootVolumes" ExclusionsProperty = Value Prelude.Bool
  set :: PropertyType "ExcludeBootVolumes" ExclusionsProperty
-> ExclusionsProperty -> ExclusionsProperty
set PropertyType "ExcludeBootVolumes" ExclusionsProperty
newValue ExclusionsProperty {Maybe ExcludeVolumeTypesListProperty
Maybe ExcludeTagsProperty
Maybe (Value Bool)
()
haddock_workaround_ :: ExclusionsProperty -> ()
excludeBootVolumes :: ExclusionsProperty -> Maybe (Value Bool)
excludeTags :: ExclusionsProperty -> Maybe ExcludeTagsProperty
excludeVolumeTypes :: ExclusionsProperty -> Maybe ExcludeVolumeTypesListProperty
haddock_workaround_ :: ()
excludeBootVolumes :: Maybe (Value Bool)
excludeTags :: Maybe ExcludeTagsProperty
excludeVolumeTypes :: Maybe ExcludeVolumeTypesListProperty
..}
    = ExclusionsProperty
        {excludeBootVolumes :: Maybe (Value Bool)
excludeBootVolumes = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ExcludeBootVolumes" ExclusionsProperty
Value Bool
newValue, Maybe ExcludeVolumeTypesListProperty
Maybe ExcludeTagsProperty
()
haddock_workaround_ :: ()
excludeTags :: Maybe ExcludeTagsProperty
excludeVolumeTypes :: Maybe ExcludeVolumeTypesListProperty
haddock_workaround_ :: ()
excludeTags :: Maybe ExcludeTagsProperty
excludeVolumeTypes :: Maybe ExcludeVolumeTypesListProperty
..}
instance Property "ExcludeTags" ExclusionsProperty where
  type PropertyType "ExcludeTags" ExclusionsProperty = ExcludeTagsProperty
  set :: PropertyType "ExcludeTags" ExclusionsProperty
-> ExclusionsProperty -> ExclusionsProperty
set PropertyType "ExcludeTags" ExclusionsProperty
newValue ExclusionsProperty {Maybe ExcludeVolumeTypesListProperty
Maybe ExcludeTagsProperty
Maybe (Value Bool)
()
haddock_workaround_ :: ExclusionsProperty -> ()
excludeBootVolumes :: ExclusionsProperty -> Maybe (Value Bool)
excludeTags :: ExclusionsProperty -> Maybe ExcludeTagsProperty
excludeVolumeTypes :: ExclusionsProperty -> Maybe ExcludeVolumeTypesListProperty
haddock_workaround_ :: ()
excludeBootVolumes :: Maybe (Value Bool)
excludeTags :: Maybe ExcludeTagsProperty
excludeVolumeTypes :: Maybe ExcludeVolumeTypesListProperty
..}
    = ExclusionsProperty {excludeTags :: Maybe ExcludeTagsProperty
excludeTags = ExcludeTagsProperty -> Maybe ExcludeTagsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure ExcludeTagsProperty
PropertyType "ExcludeTags" ExclusionsProperty
newValue, Maybe ExcludeVolumeTypesListProperty
Maybe (Value Bool)
()
haddock_workaround_ :: ()
excludeBootVolumes :: Maybe (Value Bool)
excludeVolumeTypes :: Maybe ExcludeVolumeTypesListProperty
haddock_workaround_ :: ()
excludeBootVolumes :: Maybe (Value Bool)
excludeVolumeTypes :: Maybe ExcludeVolumeTypesListProperty
..}
instance Property "ExcludeVolumeTypes" ExclusionsProperty where
  type PropertyType "ExcludeVolumeTypes" ExclusionsProperty = ExcludeVolumeTypesListProperty
  set :: PropertyType "ExcludeVolumeTypes" ExclusionsProperty
-> ExclusionsProperty -> ExclusionsProperty
set PropertyType "ExcludeVolumeTypes" ExclusionsProperty
newValue ExclusionsProperty {Maybe ExcludeVolumeTypesListProperty
Maybe ExcludeTagsProperty
Maybe (Value Bool)
()
haddock_workaround_ :: ExclusionsProperty -> ()
excludeBootVolumes :: ExclusionsProperty -> Maybe (Value Bool)
excludeTags :: ExclusionsProperty -> Maybe ExcludeTagsProperty
excludeVolumeTypes :: ExclusionsProperty -> Maybe ExcludeVolumeTypesListProperty
haddock_workaround_ :: ()
excludeBootVolumes :: Maybe (Value Bool)
excludeTags :: Maybe ExcludeTagsProperty
excludeVolumeTypes :: Maybe ExcludeVolumeTypesListProperty
..}
    = ExclusionsProperty
        {excludeVolumeTypes :: Maybe ExcludeVolumeTypesListProperty
excludeVolumeTypes = ExcludeVolumeTypesListProperty
-> Maybe ExcludeVolumeTypesListProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure ExcludeVolumeTypesListProperty
PropertyType "ExcludeVolumeTypes" ExclusionsProperty
newValue, Maybe ExcludeTagsProperty
Maybe (Value Bool)
()
haddock_workaround_ :: ()
excludeBootVolumes :: Maybe (Value Bool)
excludeTags :: Maybe ExcludeTagsProperty
haddock_workaround_ :: ()
excludeBootVolumes :: Maybe (Value Bool)
excludeTags :: Maybe ExcludeTagsProperty
..}