module Stratosphere.Backup.BackupPlan.IndexActionsResourceTypeProperty (
        IndexActionsResourceTypeProperty(..),
        mkIndexActionsResourceTypeProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data IndexActionsResourceTypeProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-backup-backupplan-indexactionsresourcetype.html>
    IndexActionsResourceTypeProperty {IndexActionsResourceTypeProperty -> ()
haddock_workaround_ :: (),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-backup-backupplan-indexactionsresourcetype.html#cfn-backup-backupplan-indexactionsresourcetype-resourcetypes>
                                      IndexActionsResourceTypeProperty -> Maybe (ValueList Text)
resourceTypes :: (Prelude.Maybe (ValueList Prelude.Text))}
  deriving stock (IndexActionsResourceTypeProperty
-> IndexActionsResourceTypeProperty -> Bool
(IndexActionsResourceTypeProperty
 -> IndexActionsResourceTypeProperty -> Bool)
-> (IndexActionsResourceTypeProperty
    -> IndexActionsResourceTypeProperty -> Bool)
-> Eq IndexActionsResourceTypeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: IndexActionsResourceTypeProperty
-> IndexActionsResourceTypeProperty -> Bool
== :: IndexActionsResourceTypeProperty
-> IndexActionsResourceTypeProperty -> Bool
$c/= :: IndexActionsResourceTypeProperty
-> IndexActionsResourceTypeProperty -> Bool
/= :: IndexActionsResourceTypeProperty
-> IndexActionsResourceTypeProperty -> Bool
Prelude.Eq, Int -> IndexActionsResourceTypeProperty -> ShowS
[IndexActionsResourceTypeProperty] -> ShowS
IndexActionsResourceTypeProperty -> String
(Int -> IndexActionsResourceTypeProperty -> ShowS)
-> (IndexActionsResourceTypeProperty -> String)
-> ([IndexActionsResourceTypeProperty] -> ShowS)
-> Show IndexActionsResourceTypeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> IndexActionsResourceTypeProperty -> ShowS
showsPrec :: Int -> IndexActionsResourceTypeProperty -> ShowS
$cshow :: IndexActionsResourceTypeProperty -> String
show :: IndexActionsResourceTypeProperty -> String
$cshowList :: [IndexActionsResourceTypeProperty] -> ShowS
showList :: [IndexActionsResourceTypeProperty] -> ShowS
Prelude.Show)
mkIndexActionsResourceTypeProperty ::
  IndexActionsResourceTypeProperty
mkIndexActionsResourceTypeProperty :: IndexActionsResourceTypeProperty
mkIndexActionsResourceTypeProperty
  = IndexActionsResourceTypeProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), resourceTypes :: Maybe (ValueList Text)
resourceTypes = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties IndexActionsResourceTypeProperty where
  toResourceProperties :: IndexActionsResourceTypeProperty -> ResourceProperties
toResourceProperties IndexActionsResourceTypeProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: IndexActionsResourceTypeProperty -> ()
resourceTypes :: IndexActionsResourceTypeProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
resourceTypes :: Maybe (ValueList Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Backup::BackupPlan.IndexActionsResourceType",
         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 -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ResourceTypes" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
resourceTypes])}
instance JSON.ToJSON IndexActionsResourceTypeProperty where
  toJSON :: IndexActionsResourceTypeProperty -> Value
toJSON IndexActionsResourceTypeProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: IndexActionsResourceTypeProperty -> ()
resourceTypes :: IndexActionsResourceTypeProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
resourceTypes :: Maybe (ValueList Text)
..}
    = [(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 -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ResourceTypes" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
resourceTypes]))
instance Property "ResourceTypes" IndexActionsResourceTypeProperty where
  type PropertyType "ResourceTypes" IndexActionsResourceTypeProperty = ValueList Prelude.Text
  set :: PropertyType "ResourceTypes" IndexActionsResourceTypeProperty
-> IndexActionsResourceTypeProperty
-> IndexActionsResourceTypeProperty
set PropertyType "ResourceTypes" IndexActionsResourceTypeProperty
newValue IndexActionsResourceTypeProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: IndexActionsResourceTypeProperty -> ()
resourceTypes :: IndexActionsResourceTypeProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
resourceTypes :: Maybe (ValueList Text)
..}
    = IndexActionsResourceTypeProperty
        {resourceTypes :: Maybe (ValueList Text)
resourceTypes = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ResourceTypes" IndexActionsResourceTypeProperty
ValueList Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}