module Stratosphere.AccessAnalyzer.Analyzer.FilterProperty (
        FilterProperty(..), mkFilterProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FilterProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-filter.html>
    FilterProperty {FilterProperty -> ()
haddock_workaround_ :: (),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-filter.html#cfn-accessanalyzer-analyzer-filter-contains>
                    FilterProperty -> Maybe (ValueList Text)
contains :: (Prelude.Maybe (ValueList Prelude.Text)),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-filter.html#cfn-accessanalyzer-analyzer-filter-eq>
                    FilterProperty -> Maybe (ValueList Text)
eq :: (Prelude.Maybe (ValueList Prelude.Text)),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-filter.html#cfn-accessanalyzer-analyzer-filter-exists>
                    FilterProperty -> Maybe (Value Bool)
exists :: (Prelude.Maybe (Value Prelude.Bool)),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-filter.html#cfn-accessanalyzer-analyzer-filter-neq>
                    FilterProperty -> Maybe (ValueList Text)
neq :: (Prelude.Maybe (ValueList Prelude.Text)),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-filter.html#cfn-accessanalyzer-analyzer-filter-property>
                    FilterProperty -> Value Text
property :: (Value Prelude.Text)}
  deriving stock (FilterProperty -> FilterProperty -> Bool
(FilterProperty -> FilterProperty -> Bool)
-> (FilterProperty -> FilterProperty -> Bool) -> Eq FilterProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FilterProperty -> FilterProperty -> Bool
== :: FilterProperty -> FilterProperty -> Bool
$c/= :: FilterProperty -> FilterProperty -> Bool
/= :: FilterProperty -> FilterProperty -> Bool
Prelude.Eq, Int -> FilterProperty -> ShowS
[FilterProperty] -> ShowS
FilterProperty -> String
(Int -> FilterProperty -> ShowS)
-> (FilterProperty -> String)
-> ([FilterProperty] -> ShowS)
-> Show FilterProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FilterProperty -> ShowS
showsPrec :: Int -> FilterProperty -> ShowS
$cshow :: FilterProperty -> String
show :: FilterProperty -> String
$cshowList :: [FilterProperty] -> ShowS
showList :: [FilterProperty] -> ShowS
Prelude.Show)
mkFilterProperty :: Value Prelude.Text -> FilterProperty
mkFilterProperty :: Value Text -> FilterProperty
mkFilterProperty Value Text
property
  = FilterProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), property :: Value Text
property = Value Text
property,
       contains :: Maybe (ValueList Text)
contains = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing, eq :: Maybe (ValueList Text)
eq = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       exists :: Maybe (Value Bool)
exists = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing, neq :: Maybe (ValueList Text)
neq = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FilterProperty where
  toResourceProperties :: FilterProperty -> ResourceProperties
toResourceProperties FilterProperty {Maybe (ValueList Text)
Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: FilterProperty -> ()
contains :: FilterProperty -> Maybe (ValueList Text)
eq :: FilterProperty -> Maybe (ValueList Text)
exists :: FilterProperty -> Maybe (Value Bool)
neq :: FilterProperty -> Maybe (ValueList Text)
property :: FilterProperty -> Value Text
haddock_workaround_ :: ()
contains :: Maybe (ValueList Text)
eq :: Maybe (ValueList Text)
exists :: Maybe (Value Bool)
neq :: Maybe (ValueList Text)
property :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AccessAnalyzer::Analyzer.Filter",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"Property" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
property]
                           ([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
"Contains" (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)
contains,
                               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
"Eq" (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)
eq,
                               Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Exists" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
exists,
                               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
"Neq" (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)
neq]))}
instance JSON.ToJSON FilterProperty where
  toJSON :: FilterProperty -> Value
toJSON FilterProperty {Maybe (ValueList Text)
Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: FilterProperty -> ()
contains :: FilterProperty -> Maybe (ValueList Text)
eq :: FilterProperty -> Maybe (ValueList Text)
exists :: FilterProperty -> Maybe (Value Bool)
neq :: FilterProperty -> Maybe (ValueList Text)
property :: FilterProperty -> Value Text
haddock_workaround_ :: ()
contains :: Maybe (ValueList Text)
eq :: Maybe (ValueList Text)
exists :: Maybe (Value Bool)
neq :: Maybe (ValueList Text)
property :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"Property" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
property]
              ([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
"Contains" (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)
contains,
                  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
"Eq" (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)
eq,
                  Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Exists" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
exists,
                  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
"Neq" (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)
neq])))
instance Property "Contains" FilterProperty where
  type PropertyType "Contains" FilterProperty = ValueList Prelude.Text
  set :: PropertyType "Contains" FilterProperty
-> FilterProperty -> FilterProperty
set PropertyType "Contains" FilterProperty
newValue FilterProperty {Maybe (ValueList Text)
Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: FilterProperty -> ()
contains :: FilterProperty -> Maybe (ValueList Text)
eq :: FilterProperty -> Maybe (ValueList Text)
exists :: FilterProperty -> Maybe (Value Bool)
neq :: FilterProperty -> Maybe (ValueList Text)
property :: FilterProperty -> Value Text
haddock_workaround_ :: ()
contains :: Maybe (ValueList Text)
eq :: Maybe (ValueList Text)
exists :: Maybe (Value Bool)
neq :: Maybe (ValueList Text)
property :: Value Text
..}
    = FilterProperty {contains :: Maybe (ValueList Text)
contains = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Contains" FilterProperty
ValueList Text
newValue, Maybe (ValueList Text)
Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
eq :: Maybe (ValueList Text)
exists :: Maybe (Value Bool)
neq :: Maybe (ValueList Text)
property :: Value Text
haddock_workaround_ :: ()
eq :: Maybe (ValueList Text)
exists :: Maybe (Value Bool)
neq :: Maybe (ValueList Text)
property :: Value Text
..}
instance Property "Eq" FilterProperty where
  type PropertyType "Eq" FilterProperty = ValueList Prelude.Text
  set :: PropertyType "Eq" FilterProperty
-> FilterProperty -> FilterProperty
set PropertyType "Eq" FilterProperty
newValue FilterProperty {Maybe (ValueList Text)
Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: FilterProperty -> ()
contains :: FilterProperty -> Maybe (ValueList Text)
eq :: FilterProperty -> Maybe (ValueList Text)
exists :: FilterProperty -> Maybe (Value Bool)
neq :: FilterProperty -> Maybe (ValueList Text)
property :: FilterProperty -> Value Text
haddock_workaround_ :: ()
contains :: Maybe (ValueList Text)
eq :: Maybe (ValueList Text)
exists :: Maybe (Value Bool)
neq :: Maybe (ValueList Text)
property :: Value Text
..}
    = FilterProperty {eq :: Maybe (ValueList Text)
eq = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Eq" FilterProperty
ValueList Text
newValue, Maybe (ValueList Text)
Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
contains :: Maybe (ValueList Text)
exists :: Maybe (Value Bool)
neq :: Maybe (ValueList Text)
property :: Value Text
haddock_workaround_ :: ()
contains :: Maybe (ValueList Text)
exists :: Maybe (Value Bool)
neq :: Maybe (ValueList Text)
property :: Value Text
..}
instance Property "Exists" FilterProperty where
  type PropertyType "Exists" FilterProperty = Value Prelude.Bool
  set :: PropertyType "Exists" FilterProperty
-> FilterProperty -> FilterProperty
set PropertyType "Exists" FilterProperty
newValue FilterProperty {Maybe (ValueList Text)
Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: FilterProperty -> ()
contains :: FilterProperty -> Maybe (ValueList Text)
eq :: FilterProperty -> Maybe (ValueList Text)
exists :: FilterProperty -> Maybe (Value Bool)
neq :: FilterProperty -> Maybe (ValueList Text)
property :: FilterProperty -> Value Text
haddock_workaround_ :: ()
contains :: Maybe (ValueList Text)
eq :: Maybe (ValueList Text)
exists :: Maybe (Value Bool)
neq :: Maybe (ValueList Text)
property :: Value Text
..}
    = FilterProperty {exists :: Maybe (Value Bool)
exists = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Exists" FilterProperty
Value Bool
newValue, Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: ()
contains :: Maybe (ValueList Text)
eq :: Maybe (ValueList Text)
neq :: Maybe (ValueList Text)
property :: Value Text
haddock_workaround_ :: ()
contains :: Maybe (ValueList Text)
eq :: Maybe (ValueList Text)
neq :: Maybe (ValueList Text)
property :: Value Text
..}
instance Property "Neq" FilterProperty where
  type PropertyType "Neq" FilterProperty = ValueList Prelude.Text
  set :: PropertyType "Neq" FilterProperty
-> FilterProperty -> FilterProperty
set PropertyType "Neq" FilterProperty
newValue FilterProperty {Maybe (ValueList Text)
Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: FilterProperty -> ()
contains :: FilterProperty -> Maybe (ValueList Text)
eq :: FilterProperty -> Maybe (ValueList Text)
exists :: FilterProperty -> Maybe (Value Bool)
neq :: FilterProperty -> Maybe (ValueList Text)
property :: FilterProperty -> Value Text
haddock_workaround_ :: ()
contains :: Maybe (ValueList Text)
eq :: Maybe (ValueList Text)
exists :: Maybe (Value Bool)
neq :: Maybe (ValueList Text)
property :: Value Text
..}
    = FilterProperty {neq :: Maybe (ValueList Text)
neq = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Neq" FilterProperty
ValueList Text
newValue, Maybe (ValueList Text)
Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
contains :: Maybe (ValueList Text)
eq :: Maybe (ValueList Text)
exists :: Maybe (Value Bool)
property :: Value Text
haddock_workaround_ :: ()
contains :: Maybe (ValueList Text)
eq :: Maybe (ValueList Text)
exists :: Maybe (Value Bool)
property :: Value Text
..}
instance Property "Property" FilterProperty where
  type PropertyType "Property" FilterProperty = Value Prelude.Text
  set :: PropertyType "Property" FilterProperty
-> FilterProperty -> FilterProperty
set PropertyType "Property" FilterProperty
newValue FilterProperty {Maybe (ValueList Text)
Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: FilterProperty -> ()
contains :: FilterProperty -> Maybe (ValueList Text)
eq :: FilterProperty -> Maybe (ValueList Text)
exists :: FilterProperty -> Maybe (Value Bool)
neq :: FilterProperty -> Maybe (ValueList Text)
property :: FilterProperty -> Value Text
haddock_workaround_ :: ()
contains :: Maybe (ValueList Text)
eq :: Maybe (ValueList Text)
exists :: Maybe (Value Bool)
neq :: Maybe (ValueList Text)
property :: Value Text
..}
    = FilterProperty {property :: Value Text
property = PropertyType "Property" FilterProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Bool)
()
haddock_workaround_ :: ()
contains :: Maybe (ValueList Text)
eq :: Maybe (ValueList Text)
exists :: Maybe (Value Bool)
neq :: Maybe (ValueList Text)
haddock_workaround_ :: ()
contains :: Maybe (ValueList Text)
eq :: Maybe (ValueList Text)
exists :: Maybe (Value Bool)
neq :: Maybe (ValueList Text)
..}