module Stratosphere.S3.StorageLensGroup.AndProperty (
module Exports, AndProperty(..), mkAndProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.S3.StorageLensGroup.MatchObjectAgeProperty as Exports
import {-# SOURCE #-} Stratosphere.S3.StorageLensGroup.MatchObjectSizeProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data AndProperty
=
AndProperty {AndProperty -> ()
haddock_workaround_ :: (),
AndProperty -> Maybe (ValueList Text)
matchAnyPrefix :: (Prelude.Maybe (ValueList Prelude.Text)),
AndProperty -> Maybe (ValueList Text)
matchAnySuffix :: (Prelude.Maybe (ValueList Prelude.Text)),
AndProperty -> Maybe [Tag]
matchAnyTag :: (Prelude.Maybe [Tag]),
AndProperty -> Maybe MatchObjectAgeProperty
matchObjectAge :: (Prelude.Maybe MatchObjectAgeProperty),
AndProperty -> Maybe MatchObjectSizeProperty
matchObjectSize :: (Prelude.Maybe MatchObjectSizeProperty)}
deriving stock (AndProperty -> AndProperty -> Bool
(AndProperty -> AndProperty -> Bool)
-> (AndProperty -> AndProperty -> Bool) -> Eq AndProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AndProperty -> AndProperty -> Bool
== :: AndProperty -> AndProperty -> Bool
$c/= :: AndProperty -> AndProperty -> Bool
/= :: AndProperty -> AndProperty -> Bool
Prelude.Eq, Int -> AndProperty -> ShowS
[AndProperty] -> ShowS
AndProperty -> String
(Int -> AndProperty -> ShowS)
-> (AndProperty -> String)
-> ([AndProperty] -> ShowS)
-> Show AndProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AndProperty -> ShowS
showsPrec :: Int -> AndProperty -> ShowS
$cshow :: AndProperty -> String
show :: AndProperty -> String
$cshowList :: [AndProperty] -> ShowS
showList :: [AndProperty] -> ShowS
Prelude.Show)
mkAndProperty :: AndProperty
mkAndProperty :: AndProperty
mkAndProperty
= AndProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), matchAnyPrefix :: Maybe (ValueList Text)
matchAnyPrefix = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
matchAnySuffix :: Maybe (ValueList Text)
matchAnySuffix = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing, matchAnyTag :: Maybe [Tag]
matchAnyTag = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
matchObjectAge :: Maybe MatchObjectAgeProperty
matchObjectAge = Maybe MatchObjectAgeProperty
forall a. Maybe a
Prelude.Nothing,
matchObjectSize :: Maybe MatchObjectSizeProperty
matchObjectSize = Maybe MatchObjectSizeProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AndProperty where
toResourceProperties :: AndProperty -> ResourceProperties
toResourceProperties AndProperty {Maybe [Tag]
Maybe (ValueList Text)
Maybe MatchObjectAgeProperty
Maybe MatchObjectSizeProperty
()
haddock_workaround_ :: AndProperty -> ()
matchAnyPrefix :: AndProperty -> Maybe (ValueList Text)
matchAnySuffix :: AndProperty -> Maybe (ValueList Text)
matchAnyTag :: AndProperty -> Maybe [Tag]
matchObjectAge :: AndProperty -> Maybe MatchObjectAgeProperty
matchObjectSize :: AndProperty -> Maybe MatchObjectSizeProperty
haddock_workaround_ :: ()
matchAnyPrefix :: Maybe (ValueList Text)
matchAnySuffix :: Maybe (ValueList Text)
matchAnyTag :: Maybe [Tag]
matchObjectAge :: Maybe MatchObjectAgeProperty
matchObjectSize :: Maybe MatchObjectSizeProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::S3::StorageLensGroup.And",
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
"MatchAnyPrefix" (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)
matchAnyPrefix,
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
"MatchAnySuffix" (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)
matchAnySuffix,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MatchAnyTag" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
matchAnyTag,
Key -> MatchObjectAgeProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MatchObjectAge" (MatchObjectAgeProperty -> (Key, Value))
-> Maybe MatchObjectAgeProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MatchObjectAgeProperty
matchObjectAge,
Key -> MatchObjectSizeProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MatchObjectSize" (MatchObjectSizeProperty -> (Key, Value))
-> Maybe MatchObjectSizeProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MatchObjectSizeProperty
matchObjectSize])}
instance JSON.ToJSON AndProperty where
toJSON :: AndProperty -> Value
toJSON AndProperty {Maybe [Tag]
Maybe (ValueList Text)
Maybe MatchObjectAgeProperty
Maybe MatchObjectSizeProperty
()
haddock_workaround_ :: AndProperty -> ()
matchAnyPrefix :: AndProperty -> Maybe (ValueList Text)
matchAnySuffix :: AndProperty -> Maybe (ValueList Text)
matchAnyTag :: AndProperty -> Maybe [Tag]
matchObjectAge :: AndProperty -> Maybe MatchObjectAgeProperty
matchObjectSize :: AndProperty -> Maybe MatchObjectSizeProperty
haddock_workaround_ :: ()
matchAnyPrefix :: Maybe (ValueList Text)
matchAnySuffix :: Maybe (ValueList Text)
matchAnyTag :: Maybe [Tag]
matchObjectAge :: Maybe MatchObjectAgeProperty
matchObjectSize :: Maybe MatchObjectSizeProperty
..}
= [(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
"MatchAnyPrefix" (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)
matchAnyPrefix,
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
"MatchAnySuffix" (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)
matchAnySuffix,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MatchAnyTag" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
matchAnyTag,
Key -> MatchObjectAgeProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MatchObjectAge" (MatchObjectAgeProperty -> (Key, Value))
-> Maybe MatchObjectAgeProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MatchObjectAgeProperty
matchObjectAge,
Key -> MatchObjectSizeProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MatchObjectSize" (MatchObjectSizeProperty -> (Key, Value))
-> Maybe MatchObjectSizeProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MatchObjectSizeProperty
matchObjectSize]))
instance Property "MatchAnyPrefix" AndProperty where
type PropertyType "MatchAnyPrefix" AndProperty = ValueList Prelude.Text
set :: PropertyType "MatchAnyPrefix" AndProperty
-> AndProperty -> AndProperty
set PropertyType "MatchAnyPrefix" AndProperty
newValue AndProperty {Maybe [Tag]
Maybe (ValueList Text)
Maybe MatchObjectAgeProperty
Maybe MatchObjectSizeProperty
()
haddock_workaround_ :: AndProperty -> ()
matchAnyPrefix :: AndProperty -> Maybe (ValueList Text)
matchAnySuffix :: AndProperty -> Maybe (ValueList Text)
matchAnyTag :: AndProperty -> Maybe [Tag]
matchObjectAge :: AndProperty -> Maybe MatchObjectAgeProperty
matchObjectSize :: AndProperty -> Maybe MatchObjectSizeProperty
haddock_workaround_ :: ()
matchAnyPrefix :: Maybe (ValueList Text)
matchAnySuffix :: Maybe (ValueList Text)
matchAnyTag :: Maybe [Tag]
matchObjectAge :: Maybe MatchObjectAgeProperty
matchObjectSize :: Maybe MatchObjectSizeProperty
..}
= AndProperty {matchAnyPrefix :: Maybe (ValueList Text)
matchAnyPrefix = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MatchAnyPrefix" AndProperty
ValueList Text
newValue, Maybe [Tag]
Maybe (ValueList Text)
Maybe MatchObjectAgeProperty
Maybe MatchObjectSizeProperty
()
haddock_workaround_ :: ()
matchAnySuffix :: Maybe (ValueList Text)
matchAnyTag :: Maybe [Tag]
matchObjectAge :: Maybe MatchObjectAgeProperty
matchObjectSize :: Maybe MatchObjectSizeProperty
haddock_workaround_ :: ()
matchAnySuffix :: Maybe (ValueList Text)
matchAnyTag :: Maybe [Tag]
matchObjectAge :: Maybe MatchObjectAgeProperty
matchObjectSize :: Maybe MatchObjectSizeProperty
..}
instance Property "MatchAnySuffix" AndProperty where
type PropertyType "MatchAnySuffix" AndProperty = ValueList Prelude.Text
set :: PropertyType "MatchAnySuffix" AndProperty
-> AndProperty -> AndProperty
set PropertyType "MatchAnySuffix" AndProperty
newValue AndProperty {Maybe [Tag]
Maybe (ValueList Text)
Maybe MatchObjectAgeProperty
Maybe MatchObjectSizeProperty
()
haddock_workaround_ :: AndProperty -> ()
matchAnyPrefix :: AndProperty -> Maybe (ValueList Text)
matchAnySuffix :: AndProperty -> Maybe (ValueList Text)
matchAnyTag :: AndProperty -> Maybe [Tag]
matchObjectAge :: AndProperty -> Maybe MatchObjectAgeProperty
matchObjectSize :: AndProperty -> Maybe MatchObjectSizeProperty
haddock_workaround_ :: ()
matchAnyPrefix :: Maybe (ValueList Text)
matchAnySuffix :: Maybe (ValueList Text)
matchAnyTag :: Maybe [Tag]
matchObjectAge :: Maybe MatchObjectAgeProperty
matchObjectSize :: Maybe MatchObjectSizeProperty
..}
= AndProperty {matchAnySuffix :: Maybe (ValueList Text)
matchAnySuffix = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MatchAnySuffix" AndProperty
ValueList Text
newValue, Maybe [Tag]
Maybe (ValueList Text)
Maybe MatchObjectAgeProperty
Maybe MatchObjectSizeProperty
()
haddock_workaround_ :: ()
matchAnyPrefix :: Maybe (ValueList Text)
matchAnyTag :: Maybe [Tag]
matchObjectAge :: Maybe MatchObjectAgeProperty
matchObjectSize :: Maybe MatchObjectSizeProperty
haddock_workaround_ :: ()
matchAnyPrefix :: Maybe (ValueList Text)
matchAnyTag :: Maybe [Tag]
matchObjectAge :: Maybe MatchObjectAgeProperty
matchObjectSize :: Maybe MatchObjectSizeProperty
..}
instance Property "MatchAnyTag" AndProperty where
type PropertyType "MatchAnyTag" AndProperty = [Tag]
set :: PropertyType "MatchAnyTag" AndProperty
-> AndProperty -> AndProperty
set PropertyType "MatchAnyTag" AndProperty
newValue AndProperty {Maybe [Tag]
Maybe (ValueList Text)
Maybe MatchObjectAgeProperty
Maybe MatchObjectSizeProperty
()
haddock_workaround_ :: AndProperty -> ()
matchAnyPrefix :: AndProperty -> Maybe (ValueList Text)
matchAnySuffix :: AndProperty -> Maybe (ValueList Text)
matchAnyTag :: AndProperty -> Maybe [Tag]
matchObjectAge :: AndProperty -> Maybe MatchObjectAgeProperty
matchObjectSize :: AndProperty -> Maybe MatchObjectSizeProperty
haddock_workaround_ :: ()
matchAnyPrefix :: Maybe (ValueList Text)
matchAnySuffix :: Maybe (ValueList Text)
matchAnyTag :: Maybe [Tag]
matchObjectAge :: Maybe MatchObjectAgeProperty
matchObjectSize :: Maybe MatchObjectSizeProperty
..}
= AndProperty {matchAnyTag :: Maybe [Tag]
matchAnyTag = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "MatchAnyTag" AndProperty
newValue, Maybe (ValueList Text)
Maybe MatchObjectAgeProperty
Maybe MatchObjectSizeProperty
()
haddock_workaround_ :: ()
matchAnyPrefix :: Maybe (ValueList Text)
matchAnySuffix :: Maybe (ValueList Text)
matchObjectAge :: Maybe MatchObjectAgeProperty
matchObjectSize :: Maybe MatchObjectSizeProperty
haddock_workaround_ :: ()
matchAnyPrefix :: Maybe (ValueList Text)
matchAnySuffix :: Maybe (ValueList Text)
matchObjectAge :: Maybe MatchObjectAgeProperty
matchObjectSize :: Maybe MatchObjectSizeProperty
..}
instance Property "MatchObjectAge" AndProperty where
type PropertyType "MatchObjectAge" AndProperty = MatchObjectAgeProperty
set :: PropertyType "MatchObjectAge" AndProperty
-> AndProperty -> AndProperty
set PropertyType "MatchObjectAge" AndProperty
newValue AndProperty {Maybe [Tag]
Maybe (ValueList Text)
Maybe MatchObjectAgeProperty
Maybe MatchObjectSizeProperty
()
haddock_workaround_ :: AndProperty -> ()
matchAnyPrefix :: AndProperty -> Maybe (ValueList Text)
matchAnySuffix :: AndProperty -> Maybe (ValueList Text)
matchAnyTag :: AndProperty -> Maybe [Tag]
matchObjectAge :: AndProperty -> Maybe MatchObjectAgeProperty
matchObjectSize :: AndProperty -> Maybe MatchObjectSizeProperty
haddock_workaround_ :: ()
matchAnyPrefix :: Maybe (ValueList Text)
matchAnySuffix :: Maybe (ValueList Text)
matchAnyTag :: Maybe [Tag]
matchObjectAge :: Maybe MatchObjectAgeProperty
matchObjectSize :: Maybe MatchObjectSizeProperty
..}
= AndProperty {matchObjectAge :: Maybe MatchObjectAgeProperty
matchObjectAge = MatchObjectAgeProperty -> Maybe MatchObjectAgeProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MatchObjectAge" AndProperty
MatchObjectAgeProperty
newValue, Maybe [Tag]
Maybe (ValueList Text)
Maybe MatchObjectSizeProperty
()
haddock_workaround_ :: ()
matchAnyPrefix :: Maybe (ValueList Text)
matchAnySuffix :: Maybe (ValueList Text)
matchAnyTag :: Maybe [Tag]
matchObjectSize :: Maybe MatchObjectSizeProperty
haddock_workaround_ :: ()
matchAnyPrefix :: Maybe (ValueList Text)
matchAnySuffix :: Maybe (ValueList Text)
matchAnyTag :: Maybe [Tag]
matchObjectSize :: Maybe MatchObjectSizeProperty
..}
instance Property "MatchObjectSize" AndProperty where
type PropertyType "MatchObjectSize" AndProperty = MatchObjectSizeProperty
set :: PropertyType "MatchObjectSize" AndProperty
-> AndProperty -> AndProperty
set PropertyType "MatchObjectSize" AndProperty
newValue AndProperty {Maybe [Tag]
Maybe (ValueList Text)
Maybe MatchObjectAgeProperty
Maybe MatchObjectSizeProperty
()
haddock_workaround_ :: AndProperty -> ()
matchAnyPrefix :: AndProperty -> Maybe (ValueList Text)
matchAnySuffix :: AndProperty -> Maybe (ValueList Text)
matchAnyTag :: AndProperty -> Maybe [Tag]
matchObjectAge :: AndProperty -> Maybe MatchObjectAgeProperty
matchObjectSize :: AndProperty -> Maybe MatchObjectSizeProperty
haddock_workaround_ :: ()
matchAnyPrefix :: Maybe (ValueList Text)
matchAnySuffix :: Maybe (ValueList Text)
matchAnyTag :: Maybe [Tag]
matchObjectAge :: Maybe MatchObjectAgeProperty
matchObjectSize :: Maybe MatchObjectSizeProperty
..}
= AndProperty {matchObjectSize :: Maybe MatchObjectSizeProperty
matchObjectSize = MatchObjectSizeProperty -> Maybe MatchObjectSizeProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MatchObjectSize" AndProperty
MatchObjectSizeProperty
newValue, Maybe [Tag]
Maybe (ValueList Text)
Maybe MatchObjectAgeProperty
()
haddock_workaround_ :: ()
matchAnyPrefix :: Maybe (ValueList Text)
matchAnySuffix :: Maybe (ValueList Text)
matchAnyTag :: Maybe [Tag]
matchObjectAge :: Maybe MatchObjectAgeProperty
haddock_workaround_ :: ()
matchAnyPrefix :: Maybe (ValueList Text)
matchAnySuffix :: Maybe (ValueList Text)
matchAnyTag :: Maybe [Tag]
matchObjectAge :: Maybe MatchObjectAgeProperty
..}