module Stratosphere.S3.StorageLens.StorageLensGroupLevelProperty (
module Exports, StorageLensGroupLevelProperty(..),
mkStorageLensGroupLevelProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.S3.StorageLens.StorageLensGroupSelectionCriteriaProperty as Exports
import Stratosphere.ResourceProperties
data StorageLensGroupLevelProperty
=
StorageLensGroupLevelProperty {StorageLensGroupLevelProperty -> ()
haddock_workaround_ :: (),
StorageLensGroupLevelProperty
-> Maybe StorageLensGroupSelectionCriteriaProperty
storageLensGroupSelectionCriteria :: (Prelude.Maybe StorageLensGroupSelectionCriteriaProperty)}
deriving stock (StorageLensGroupLevelProperty
-> StorageLensGroupLevelProperty -> Bool
(StorageLensGroupLevelProperty
-> StorageLensGroupLevelProperty -> Bool)
-> (StorageLensGroupLevelProperty
-> StorageLensGroupLevelProperty -> Bool)
-> Eq StorageLensGroupLevelProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: StorageLensGroupLevelProperty
-> StorageLensGroupLevelProperty -> Bool
== :: StorageLensGroupLevelProperty
-> StorageLensGroupLevelProperty -> Bool
$c/= :: StorageLensGroupLevelProperty
-> StorageLensGroupLevelProperty -> Bool
/= :: StorageLensGroupLevelProperty
-> StorageLensGroupLevelProperty -> Bool
Prelude.Eq, Int -> StorageLensGroupLevelProperty -> ShowS
[StorageLensGroupLevelProperty] -> ShowS
StorageLensGroupLevelProperty -> String
(Int -> StorageLensGroupLevelProperty -> ShowS)
-> (StorageLensGroupLevelProperty -> String)
-> ([StorageLensGroupLevelProperty] -> ShowS)
-> Show StorageLensGroupLevelProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> StorageLensGroupLevelProperty -> ShowS
showsPrec :: Int -> StorageLensGroupLevelProperty -> ShowS
$cshow :: StorageLensGroupLevelProperty -> String
show :: StorageLensGroupLevelProperty -> String
$cshowList :: [StorageLensGroupLevelProperty] -> ShowS
showList :: [StorageLensGroupLevelProperty] -> ShowS
Prelude.Show)
mkStorageLensGroupLevelProperty :: StorageLensGroupLevelProperty
mkStorageLensGroupLevelProperty :: StorageLensGroupLevelProperty
mkStorageLensGroupLevelProperty
= StorageLensGroupLevelProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
storageLensGroupSelectionCriteria :: Maybe StorageLensGroupSelectionCriteriaProperty
storageLensGroupSelectionCriteria = Maybe StorageLensGroupSelectionCriteriaProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties StorageLensGroupLevelProperty where
toResourceProperties :: StorageLensGroupLevelProperty -> ResourceProperties
toResourceProperties StorageLensGroupLevelProperty {Maybe StorageLensGroupSelectionCriteriaProperty
()
haddock_workaround_ :: StorageLensGroupLevelProperty -> ()
storageLensGroupSelectionCriteria :: StorageLensGroupLevelProperty
-> Maybe StorageLensGroupSelectionCriteriaProperty
haddock_workaround_ :: ()
storageLensGroupSelectionCriteria :: Maybe StorageLensGroupSelectionCriteriaProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::S3::StorageLens.StorageLensGroupLevel",
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 -> StorageLensGroupSelectionCriteriaProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StorageLensGroupSelectionCriteria"
(StorageLensGroupSelectionCriteriaProperty -> (Key, Value))
-> Maybe StorageLensGroupSelectionCriteriaProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StorageLensGroupSelectionCriteriaProperty
storageLensGroupSelectionCriteria])}
instance JSON.ToJSON StorageLensGroupLevelProperty where
toJSON :: StorageLensGroupLevelProperty -> Value
toJSON StorageLensGroupLevelProperty {Maybe StorageLensGroupSelectionCriteriaProperty
()
haddock_workaround_ :: StorageLensGroupLevelProperty -> ()
storageLensGroupSelectionCriteria :: StorageLensGroupLevelProperty
-> Maybe StorageLensGroupSelectionCriteriaProperty
haddock_workaround_ :: ()
storageLensGroupSelectionCriteria :: Maybe StorageLensGroupSelectionCriteriaProperty
..}
= [(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 -> StorageLensGroupSelectionCriteriaProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StorageLensGroupSelectionCriteria"
(StorageLensGroupSelectionCriteriaProperty -> (Key, Value))
-> Maybe StorageLensGroupSelectionCriteriaProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StorageLensGroupSelectionCriteriaProperty
storageLensGroupSelectionCriteria]))
instance Property "StorageLensGroupSelectionCriteria" StorageLensGroupLevelProperty where
type PropertyType "StorageLensGroupSelectionCriteria" StorageLensGroupLevelProperty = StorageLensGroupSelectionCriteriaProperty
set :: PropertyType
"StorageLensGroupSelectionCriteria" StorageLensGroupLevelProperty
-> StorageLensGroupLevelProperty -> StorageLensGroupLevelProperty
set PropertyType
"StorageLensGroupSelectionCriteria" StorageLensGroupLevelProperty
newValue StorageLensGroupLevelProperty {Maybe StorageLensGroupSelectionCriteriaProperty
()
haddock_workaround_ :: StorageLensGroupLevelProperty -> ()
storageLensGroupSelectionCriteria :: StorageLensGroupLevelProperty
-> Maybe StorageLensGroupSelectionCriteriaProperty
haddock_workaround_ :: ()
storageLensGroupSelectionCriteria :: Maybe StorageLensGroupSelectionCriteriaProperty
..}
= StorageLensGroupLevelProperty
{storageLensGroupSelectionCriteria :: Maybe StorageLensGroupSelectionCriteriaProperty
storageLensGroupSelectionCriteria = StorageLensGroupSelectionCriteriaProperty
-> Maybe StorageLensGroupSelectionCriteriaProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"StorageLensGroupSelectionCriteria" StorageLensGroupLevelProperty
StorageLensGroupSelectionCriteriaProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}