module Stratosphere.S3.StorageLens.StorageLensGroupSelectionCriteriaProperty (
        StorageLensGroupSelectionCriteriaProperty(..),
        mkStorageLensGroupSelectionCriteriaProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data StorageLensGroupSelectionCriteriaProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-storagelens-storagelensgroupselectioncriteria.html>
    StorageLensGroupSelectionCriteriaProperty {StorageLensGroupSelectionCriteriaProperty -> ()
haddock_workaround_ :: (),
                                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-storagelens-storagelensgroupselectioncriteria.html#cfn-s3-storagelens-storagelensgroupselectioncriteria-exclude>
                                               StorageLensGroupSelectionCriteriaProperty -> Maybe (ValueList Text)
exclude :: (Prelude.Maybe (ValueList Prelude.Text)),
                                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-storagelens-storagelensgroupselectioncriteria.html#cfn-s3-storagelens-storagelensgroupselectioncriteria-include>
                                               StorageLensGroupSelectionCriteriaProperty -> Maybe (ValueList Text)
include :: (Prelude.Maybe (ValueList Prelude.Text))}
  deriving stock (StorageLensGroupSelectionCriteriaProperty
-> StorageLensGroupSelectionCriteriaProperty -> Bool
(StorageLensGroupSelectionCriteriaProperty
 -> StorageLensGroupSelectionCriteriaProperty -> Bool)
-> (StorageLensGroupSelectionCriteriaProperty
    -> StorageLensGroupSelectionCriteriaProperty -> Bool)
-> Eq StorageLensGroupSelectionCriteriaProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: StorageLensGroupSelectionCriteriaProperty
-> StorageLensGroupSelectionCriteriaProperty -> Bool
== :: StorageLensGroupSelectionCriteriaProperty
-> StorageLensGroupSelectionCriteriaProperty -> Bool
$c/= :: StorageLensGroupSelectionCriteriaProperty
-> StorageLensGroupSelectionCriteriaProperty -> Bool
/= :: StorageLensGroupSelectionCriteriaProperty
-> StorageLensGroupSelectionCriteriaProperty -> Bool
Prelude.Eq, Int -> StorageLensGroupSelectionCriteriaProperty -> ShowS
[StorageLensGroupSelectionCriteriaProperty] -> ShowS
StorageLensGroupSelectionCriteriaProperty -> String
(Int -> StorageLensGroupSelectionCriteriaProperty -> ShowS)
-> (StorageLensGroupSelectionCriteriaProperty -> String)
-> ([StorageLensGroupSelectionCriteriaProperty] -> ShowS)
-> Show StorageLensGroupSelectionCriteriaProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> StorageLensGroupSelectionCriteriaProperty -> ShowS
showsPrec :: Int -> StorageLensGroupSelectionCriteriaProperty -> ShowS
$cshow :: StorageLensGroupSelectionCriteriaProperty -> String
show :: StorageLensGroupSelectionCriteriaProperty -> String
$cshowList :: [StorageLensGroupSelectionCriteriaProperty] -> ShowS
showList :: [StorageLensGroupSelectionCriteriaProperty] -> ShowS
Prelude.Show)
mkStorageLensGroupSelectionCriteriaProperty ::
  StorageLensGroupSelectionCriteriaProperty
mkStorageLensGroupSelectionCriteriaProperty :: StorageLensGroupSelectionCriteriaProperty
mkStorageLensGroupSelectionCriteriaProperty
  = StorageLensGroupSelectionCriteriaProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), exclude :: Maybe (ValueList Text)
exclude = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       include :: Maybe (ValueList Text)
include = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties StorageLensGroupSelectionCriteriaProperty where
  toResourceProperties :: StorageLensGroupSelectionCriteriaProperty -> ResourceProperties
toResourceProperties StorageLensGroupSelectionCriteriaProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: StorageLensGroupSelectionCriteriaProperty -> ()
exclude :: StorageLensGroupSelectionCriteriaProperty -> Maybe (ValueList Text)
include :: StorageLensGroupSelectionCriteriaProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
exclude :: Maybe (ValueList Text)
include :: Maybe (ValueList Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::S3::StorageLens.StorageLensGroupSelectionCriteria",
         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
"Exclude" (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)
exclude,
                            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
"Include" (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)
include])}
instance JSON.ToJSON StorageLensGroupSelectionCriteriaProperty where
  toJSON :: StorageLensGroupSelectionCriteriaProperty -> Value
toJSON StorageLensGroupSelectionCriteriaProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: StorageLensGroupSelectionCriteriaProperty -> ()
exclude :: StorageLensGroupSelectionCriteriaProperty -> Maybe (ValueList Text)
include :: StorageLensGroupSelectionCriteriaProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
exclude :: Maybe (ValueList Text)
include :: 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
"Exclude" (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)
exclude,
               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
"Include" (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)
include]))
instance Property "Exclude" StorageLensGroupSelectionCriteriaProperty where
  type PropertyType "Exclude" StorageLensGroupSelectionCriteriaProperty = ValueList Prelude.Text
  set :: PropertyType "Exclude" StorageLensGroupSelectionCriteriaProperty
-> StorageLensGroupSelectionCriteriaProperty
-> StorageLensGroupSelectionCriteriaProperty
set PropertyType "Exclude" StorageLensGroupSelectionCriteriaProperty
newValue StorageLensGroupSelectionCriteriaProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: StorageLensGroupSelectionCriteriaProperty -> ()
exclude :: StorageLensGroupSelectionCriteriaProperty -> Maybe (ValueList Text)
include :: StorageLensGroupSelectionCriteriaProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
exclude :: Maybe (ValueList Text)
include :: Maybe (ValueList Text)
..}
    = StorageLensGroupSelectionCriteriaProperty
        {exclude :: Maybe (ValueList Text)
exclude = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Exclude" StorageLensGroupSelectionCriteriaProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
include :: Maybe (ValueList Text)
haddock_workaround_ :: ()
include :: Maybe (ValueList Text)
..}
instance Property "Include" StorageLensGroupSelectionCriteriaProperty where
  type PropertyType "Include" StorageLensGroupSelectionCriteriaProperty = ValueList Prelude.Text
  set :: PropertyType "Include" StorageLensGroupSelectionCriteriaProperty
-> StorageLensGroupSelectionCriteriaProperty
-> StorageLensGroupSelectionCriteriaProperty
set PropertyType "Include" StorageLensGroupSelectionCriteriaProperty
newValue StorageLensGroupSelectionCriteriaProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: StorageLensGroupSelectionCriteriaProperty -> ()
exclude :: StorageLensGroupSelectionCriteriaProperty -> Maybe (ValueList Text)
include :: StorageLensGroupSelectionCriteriaProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
exclude :: Maybe (ValueList Text)
include :: Maybe (ValueList Text)
..}
    = StorageLensGroupSelectionCriteriaProperty
        {include :: Maybe (ValueList Text)
include = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Include" StorageLensGroupSelectionCriteriaProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
exclude :: Maybe (ValueList Text)
haddock_workaround_ :: ()
exclude :: Maybe (ValueList Text)
..}