module Stratosphere.S3.StorageLensGroup.OrProperty (
module Exports, OrProperty(..), mkOrProperty
) 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 OrProperty
=
OrProperty {OrProperty -> ()
haddock_workaround_ :: (),
OrProperty -> Maybe (ValueList Text)
matchAnyPrefix :: (Prelude.Maybe (ValueList Prelude.Text)),
OrProperty -> Maybe (ValueList Text)
matchAnySuffix :: (Prelude.Maybe (ValueList Prelude.Text)),
OrProperty -> Maybe [Tag]
matchAnyTag :: (Prelude.Maybe [Tag]),
OrProperty -> Maybe MatchObjectAgeProperty
matchObjectAge :: (Prelude.Maybe MatchObjectAgeProperty),
OrProperty -> Maybe MatchObjectSizeProperty
matchObjectSize :: (Prelude.Maybe MatchObjectSizeProperty)}
deriving stock (OrProperty -> OrProperty -> Bool
(OrProperty -> OrProperty -> Bool)
-> (OrProperty -> OrProperty -> Bool) -> Eq OrProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OrProperty -> OrProperty -> Bool
== :: OrProperty -> OrProperty -> Bool
$c/= :: OrProperty -> OrProperty -> Bool
/= :: OrProperty -> OrProperty -> Bool
Prelude.Eq, Int -> OrProperty -> ShowS
[OrProperty] -> ShowS
OrProperty -> String
(Int -> OrProperty -> ShowS)
-> (OrProperty -> String)
-> ([OrProperty] -> ShowS)
-> Show OrProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OrProperty -> ShowS
showsPrec :: Int -> OrProperty -> ShowS
$cshow :: OrProperty -> String
show :: OrProperty -> String
$cshowList :: [OrProperty] -> ShowS
showList :: [OrProperty] -> ShowS
Prelude.Show)
mkOrProperty :: OrProperty
mkOrProperty :: OrProperty
mkOrProperty
= OrProperty
{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 OrProperty where
toResourceProperties :: OrProperty -> ResourceProperties
toResourceProperties OrProperty {Maybe [Tag]
Maybe (ValueList Text)
Maybe MatchObjectAgeProperty
Maybe MatchObjectSizeProperty
()
haddock_workaround_ :: OrProperty -> ()
matchAnyPrefix :: OrProperty -> Maybe (ValueList Text)
matchAnySuffix :: OrProperty -> Maybe (ValueList Text)
matchAnyTag :: OrProperty -> Maybe [Tag]
matchObjectAge :: OrProperty -> Maybe MatchObjectAgeProperty
matchObjectSize :: OrProperty -> 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.Or",
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 OrProperty where
toJSON :: OrProperty -> Value
toJSON OrProperty {Maybe [Tag]
Maybe (ValueList Text)
Maybe MatchObjectAgeProperty
Maybe MatchObjectSizeProperty
()
haddock_workaround_ :: OrProperty -> ()
matchAnyPrefix :: OrProperty -> Maybe (ValueList Text)
matchAnySuffix :: OrProperty -> Maybe (ValueList Text)
matchAnyTag :: OrProperty -> Maybe [Tag]
matchObjectAge :: OrProperty -> Maybe MatchObjectAgeProperty
matchObjectSize :: OrProperty -> 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" OrProperty where
type PropertyType "MatchAnyPrefix" OrProperty = ValueList Prelude.Text
set :: PropertyType "MatchAnyPrefix" OrProperty
-> OrProperty -> OrProperty
set PropertyType "MatchAnyPrefix" OrProperty
newValue OrProperty {Maybe [Tag]
Maybe (ValueList Text)
Maybe MatchObjectAgeProperty
Maybe MatchObjectSizeProperty
()
haddock_workaround_ :: OrProperty -> ()
matchAnyPrefix :: OrProperty -> Maybe (ValueList Text)
matchAnySuffix :: OrProperty -> Maybe (ValueList Text)
matchAnyTag :: OrProperty -> Maybe [Tag]
matchObjectAge :: OrProperty -> Maybe MatchObjectAgeProperty
matchObjectSize :: OrProperty -> Maybe MatchObjectSizeProperty
haddock_workaround_ :: ()
matchAnyPrefix :: Maybe (ValueList Text)
matchAnySuffix :: Maybe (ValueList Text)
matchAnyTag :: Maybe [Tag]
matchObjectAge :: Maybe MatchObjectAgeProperty
matchObjectSize :: Maybe MatchObjectSizeProperty
..}
= OrProperty {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" OrProperty
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" OrProperty where
type PropertyType "MatchAnySuffix" OrProperty = ValueList Prelude.Text
set :: PropertyType "MatchAnySuffix" OrProperty
-> OrProperty -> OrProperty
set PropertyType "MatchAnySuffix" OrProperty
newValue OrProperty {Maybe [Tag]
Maybe (ValueList Text)
Maybe MatchObjectAgeProperty
Maybe MatchObjectSizeProperty
()
haddock_workaround_ :: OrProperty -> ()
matchAnyPrefix :: OrProperty -> Maybe (ValueList Text)
matchAnySuffix :: OrProperty -> Maybe (ValueList Text)
matchAnyTag :: OrProperty -> Maybe [Tag]
matchObjectAge :: OrProperty -> Maybe MatchObjectAgeProperty
matchObjectSize :: OrProperty -> Maybe MatchObjectSizeProperty
haddock_workaround_ :: ()
matchAnyPrefix :: Maybe (ValueList Text)
matchAnySuffix :: Maybe (ValueList Text)
matchAnyTag :: Maybe [Tag]
matchObjectAge :: Maybe MatchObjectAgeProperty
matchObjectSize :: Maybe MatchObjectSizeProperty
..}
= OrProperty {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" OrProperty
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" OrProperty where
type PropertyType "MatchAnyTag" OrProperty = [Tag]
set :: PropertyType "MatchAnyTag" OrProperty -> OrProperty -> OrProperty
set PropertyType "MatchAnyTag" OrProperty
newValue OrProperty {Maybe [Tag]
Maybe (ValueList Text)
Maybe MatchObjectAgeProperty
Maybe MatchObjectSizeProperty
()
haddock_workaround_ :: OrProperty -> ()
matchAnyPrefix :: OrProperty -> Maybe (ValueList Text)
matchAnySuffix :: OrProperty -> Maybe (ValueList Text)
matchAnyTag :: OrProperty -> Maybe [Tag]
matchObjectAge :: OrProperty -> Maybe MatchObjectAgeProperty
matchObjectSize :: OrProperty -> Maybe MatchObjectSizeProperty
haddock_workaround_ :: ()
matchAnyPrefix :: Maybe (ValueList Text)
matchAnySuffix :: Maybe (ValueList Text)
matchAnyTag :: Maybe [Tag]
matchObjectAge :: Maybe MatchObjectAgeProperty
matchObjectSize :: Maybe MatchObjectSizeProperty
..}
= OrProperty {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" OrProperty
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" OrProperty where
type PropertyType "MatchObjectAge" OrProperty = MatchObjectAgeProperty
set :: PropertyType "MatchObjectAge" OrProperty
-> OrProperty -> OrProperty
set PropertyType "MatchObjectAge" OrProperty
newValue OrProperty {Maybe [Tag]
Maybe (ValueList Text)
Maybe MatchObjectAgeProperty
Maybe MatchObjectSizeProperty
()
haddock_workaround_ :: OrProperty -> ()
matchAnyPrefix :: OrProperty -> Maybe (ValueList Text)
matchAnySuffix :: OrProperty -> Maybe (ValueList Text)
matchAnyTag :: OrProperty -> Maybe [Tag]
matchObjectAge :: OrProperty -> Maybe MatchObjectAgeProperty
matchObjectSize :: OrProperty -> Maybe MatchObjectSizeProperty
haddock_workaround_ :: ()
matchAnyPrefix :: Maybe (ValueList Text)
matchAnySuffix :: Maybe (ValueList Text)
matchAnyTag :: Maybe [Tag]
matchObjectAge :: Maybe MatchObjectAgeProperty
matchObjectSize :: Maybe MatchObjectSizeProperty
..}
= OrProperty {matchObjectAge :: Maybe MatchObjectAgeProperty
matchObjectAge = MatchObjectAgeProperty -> Maybe MatchObjectAgeProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MatchObjectAge" OrProperty
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" OrProperty where
type PropertyType "MatchObjectSize" OrProperty = MatchObjectSizeProperty
set :: PropertyType "MatchObjectSize" OrProperty
-> OrProperty -> OrProperty
set PropertyType "MatchObjectSize" OrProperty
newValue OrProperty {Maybe [Tag]
Maybe (ValueList Text)
Maybe MatchObjectAgeProperty
Maybe MatchObjectSizeProperty
()
haddock_workaround_ :: OrProperty -> ()
matchAnyPrefix :: OrProperty -> Maybe (ValueList Text)
matchAnySuffix :: OrProperty -> Maybe (ValueList Text)
matchAnyTag :: OrProperty -> Maybe [Tag]
matchObjectAge :: OrProperty -> Maybe MatchObjectAgeProperty
matchObjectSize :: OrProperty -> Maybe MatchObjectSizeProperty
haddock_workaround_ :: ()
matchAnyPrefix :: Maybe (ValueList Text)
matchAnySuffix :: Maybe (ValueList Text)
matchAnyTag :: Maybe [Tag]
matchObjectAge :: Maybe MatchObjectAgeProperty
matchObjectSize :: Maybe MatchObjectSizeProperty
..}
= OrProperty {matchObjectSize :: Maybe MatchObjectSizeProperty
matchObjectSize = MatchObjectSizeProperty -> Maybe MatchObjectSizeProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MatchObjectSize" OrProperty
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
..}