module Stratosphere.QuickSight.Template.FilterGroupProperty (
        module Exports, FilterGroupProperty(..), mkFilterGroupProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Template.FilterProperty as Exports
import {-# SOURCE #-} Stratosphere.QuickSight.Template.FilterScopeConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FilterGroupProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-filtergroup.html>
    FilterGroupProperty {FilterGroupProperty -> ()
haddock_workaround_ :: (),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-filtergroup.html#cfn-quicksight-template-filtergroup-crossdataset>
                         FilterGroupProperty -> Value Text
crossDataset :: (Value Prelude.Text),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-filtergroup.html#cfn-quicksight-template-filtergroup-filtergroupid>
                         FilterGroupProperty -> Value Text
filterGroupId :: (Value Prelude.Text),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-filtergroup.html#cfn-quicksight-template-filtergroup-filters>
                         FilterGroupProperty -> [FilterProperty]
filters :: [FilterProperty],
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-filtergroup.html#cfn-quicksight-template-filtergroup-scopeconfiguration>
                         FilterGroupProperty -> FilterScopeConfigurationProperty
scopeConfiguration :: FilterScopeConfigurationProperty,
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-filtergroup.html#cfn-quicksight-template-filtergroup-status>
                         FilterGroupProperty -> Maybe (Value Text)
status :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (FilterGroupProperty -> FilterGroupProperty -> Bool
(FilterGroupProperty -> FilterGroupProperty -> Bool)
-> (FilterGroupProperty -> FilterGroupProperty -> Bool)
-> Eq FilterGroupProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FilterGroupProperty -> FilterGroupProperty -> Bool
== :: FilterGroupProperty -> FilterGroupProperty -> Bool
$c/= :: FilterGroupProperty -> FilterGroupProperty -> Bool
/= :: FilterGroupProperty -> FilterGroupProperty -> Bool
Prelude.Eq, Int -> FilterGroupProperty -> ShowS
[FilterGroupProperty] -> ShowS
FilterGroupProperty -> String
(Int -> FilterGroupProperty -> ShowS)
-> (FilterGroupProperty -> String)
-> ([FilterGroupProperty] -> ShowS)
-> Show FilterGroupProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FilterGroupProperty -> ShowS
showsPrec :: Int -> FilterGroupProperty -> ShowS
$cshow :: FilterGroupProperty -> String
show :: FilterGroupProperty -> String
$cshowList :: [FilterGroupProperty] -> ShowS
showList :: [FilterGroupProperty] -> ShowS
Prelude.Show)
mkFilterGroupProperty ::
  Value Prelude.Text
  -> Value Prelude.Text
     -> [FilterProperty]
        -> FilterScopeConfigurationProperty -> FilterGroupProperty
mkFilterGroupProperty :: Value Text
-> Value Text
-> [FilterProperty]
-> FilterScopeConfigurationProperty
-> FilterGroupProperty
mkFilterGroupProperty
  Value Text
crossDataset
  Value Text
filterGroupId
  [FilterProperty]
filters
  FilterScopeConfigurationProperty
scopeConfiguration
  = FilterGroupProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), crossDataset :: Value Text
crossDataset = Value Text
crossDataset,
       filterGroupId :: Value Text
filterGroupId = Value Text
filterGroupId, filters :: [FilterProperty]
filters = [FilterProperty]
filters,
       scopeConfiguration :: FilterScopeConfigurationProperty
scopeConfiguration = FilterScopeConfigurationProperty
scopeConfiguration, status :: Maybe (Value Text)
status = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FilterGroupProperty where
  toResourceProperties :: FilterGroupProperty -> ResourceProperties
toResourceProperties FilterGroupProperty {[FilterProperty]
Maybe (Value Text)
()
Value Text
FilterScopeConfigurationProperty
haddock_workaround_ :: FilterGroupProperty -> ()
crossDataset :: FilterGroupProperty -> Value Text
filterGroupId :: FilterGroupProperty -> Value Text
filters :: FilterGroupProperty -> [FilterProperty]
scopeConfiguration :: FilterGroupProperty -> FilterScopeConfigurationProperty
status :: FilterGroupProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
crossDataset :: Value Text
filterGroupId :: Value Text
filters :: [FilterProperty]
scopeConfiguration :: FilterScopeConfigurationProperty
status :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Template.FilterGroup",
         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
"CrossDataset" 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
crossDataset,
                            Key
"FilterGroupId" 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
filterGroupId, Key
"Filters" Key -> [FilterProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [FilterProperty]
filters,
                            Key
"ScopeConfiguration" Key -> FilterScopeConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= FilterScopeConfigurationProperty
scopeConfiguration]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [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..=) Key
"Status" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
status]))}
instance JSON.ToJSON FilterGroupProperty where
  toJSON :: FilterGroupProperty -> Value
toJSON FilterGroupProperty {[FilterProperty]
Maybe (Value Text)
()
Value Text
FilterScopeConfigurationProperty
haddock_workaround_ :: FilterGroupProperty -> ()
crossDataset :: FilterGroupProperty -> Value Text
filterGroupId :: FilterGroupProperty -> Value Text
filters :: FilterGroupProperty -> [FilterProperty]
scopeConfiguration :: FilterGroupProperty -> FilterScopeConfigurationProperty
status :: FilterGroupProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
crossDataset :: Value Text
filterGroupId :: Value Text
filters :: [FilterProperty]
scopeConfiguration :: FilterScopeConfigurationProperty
status :: Maybe (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
"CrossDataset" 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
crossDataset,
               Key
"FilterGroupId" 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
filterGroupId, Key
"Filters" Key -> [FilterProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [FilterProperty]
filters,
               Key
"ScopeConfiguration" Key -> FilterScopeConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= FilterScopeConfigurationProperty
scopeConfiguration]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [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..=) Key
"Status" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
status])))
instance Property "CrossDataset" FilterGroupProperty where
  type PropertyType "CrossDataset" FilterGroupProperty = Value Prelude.Text
  set :: PropertyType "CrossDataset" FilterGroupProperty
-> FilterGroupProperty -> FilterGroupProperty
set PropertyType "CrossDataset" FilterGroupProperty
newValue FilterGroupProperty {[FilterProperty]
Maybe (Value Text)
()
Value Text
FilterScopeConfigurationProperty
haddock_workaround_ :: FilterGroupProperty -> ()
crossDataset :: FilterGroupProperty -> Value Text
filterGroupId :: FilterGroupProperty -> Value Text
filters :: FilterGroupProperty -> [FilterProperty]
scopeConfiguration :: FilterGroupProperty -> FilterScopeConfigurationProperty
status :: FilterGroupProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
crossDataset :: Value Text
filterGroupId :: Value Text
filters :: [FilterProperty]
scopeConfiguration :: FilterScopeConfigurationProperty
status :: Maybe (Value Text)
..}
    = FilterGroupProperty {crossDataset :: Value Text
crossDataset = PropertyType "CrossDataset" FilterGroupProperty
Value Text
newValue, [FilterProperty]
Maybe (Value Text)
()
Value Text
FilterScopeConfigurationProperty
haddock_workaround_ :: ()
filterGroupId :: Value Text
filters :: [FilterProperty]
scopeConfiguration :: FilterScopeConfigurationProperty
status :: Maybe (Value Text)
haddock_workaround_ :: ()
filterGroupId :: Value Text
filters :: [FilterProperty]
scopeConfiguration :: FilterScopeConfigurationProperty
status :: Maybe (Value Text)
..}
instance Property "FilterGroupId" FilterGroupProperty where
  type PropertyType "FilterGroupId" FilterGroupProperty = Value Prelude.Text
  set :: PropertyType "FilterGroupId" FilterGroupProperty
-> FilterGroupProperty -> FilterGroupProperty
set PropertyType "FilterGroupId" FilterGroupProperty
newValue FilterGroupProperty {[FilterProperty]
Maybe (Value Text)
()
Value Text
FilterScopeConfigurationProperty
haddock_workaround_ :: FilterGroupProperty -> ()
crossDataset :: FilterGroupProperty -> Value Text
filterGroupId :: FilterGroupProperty -> Value Text
filters :: FilterGroupProperty -> [FilterProperty]
scopeConfiguration :: FilterGroupProperty -> FilterScopeConfigurationProperty
status :: FilterGroupProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
crossDataset :: Value Text
filterGroupId :: Value Text
filters :: [FilterProperty]
scopeConfiguration :: FilterScopeConfigurationProperty
status :: Maybe (Value Text)
..}
    = FilterGroupProperty {filterGroupId :: Value Text
filterGroupId = PropertyType "FilterGroupId" FilterGroupProperty
Value Text
newValue, [FilterProperty]
Maybe (Value Text)
()
Value Text
FilterScopeConfigurationProperty
haddock_workaround_ :: ()
crossDataset :: Value Text
filters :: [FilterProperty]
scopeConfiguration :: FilterScopeConfigurationProperty
status :: Maybe (Value Text)
haddock_workaround_ :: ()
crossDataset :: Value Text
filters :: [FilterProperty]
scopeConfiguration :: FilterScopeConfigurationProperty
status :: Maybe (Value Text)
..}
instance Property "Filters" FilterGroupProperty where
  type PropertyType "Filters" FilterGroupProperty = [FilterProperty]
  set :: PropertyType "Filters" FilterGroupProperty
-> FilterGroupProperty -> FilterGroupProperty
set PropertyType "Filters" FilterGroupProperty
newValue FilterGroupProperty {[FilterProperty]
Maybe (Value Text)
()
Value Text
FilterScopeConfigurationProperty
haddock_workaround_ :: FilterGroupProperty -> ()
crossDataset :: FilterGroupProperty -> Value Text
filterGroupId :: FilterGroupProperty -> Value Text
filters :: FilterGroupProperty -> [FilterProperty]
scopeConfiguration :: FilterGroupProperty -> FilterScopeConfigurationProperty
status :: FilterGroupProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
crossDataset :: Value Text
filterGroupId :: Value Text
filters :: [FilterProperty]
scopeConfiguration :: FilterScopeConfigurationProperty
status :: Maybe (Value Text)
..}
    = FilterGroupProperty {filters :: [FilterProperty]
filters = [FilterProperty]
PropertyType "Filters" FilterGroupProperty
newValue, Maybe (Value Text)
()
Value Text
FilterScopeConfigurationProperty
haddock_workaround_ :: ()
crossDataset :: Value Text
filterGroupId :: Value Text
scopeConfiguration :: FilterScopeConfigurationProperty
status :: Maybe (Value Text)
haddock_workaround_ :: ()
crossDataset :: Value Text
filterGroupId :: Value Text
scopeConfiguration :: FilterScopeConfigurationProperty
status :: Maybe (Value Text)
..}
instance Property "ScopeConfiguration" FilterGroupProperty where
  type PropertyType "ScopeConfiguration" FilterGroupProperty = FilterScopeConfigurationProperty
  set :: PropertyType "ScopeConfiguration" FilterGroupProperty
-> FilterGroupProperty -> FilterGroupProperty
set PropertyType "ScopeConfiguration" FilterGroupProperty
newValue FilterGroupProperty {[FilterProperty]
Maybe (Value Text)
()
Value Text
FilterScopeConfigurationProperty
haddock_workaround_ :: FilterGroupProperty -> ()
crossDataset :: FilterGroupProperty -> Value Text
filterGroupId :: FilterGroupProperty -> Value Text
filters :: FilterGroupProperty -> [FilterProperty]
scopeConfiguration :: FilterGroupProperty -> FilterScopeConfigurationProperty
status :: FilterGroupProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
crossDataset :: Value Text
filterGroupId :: Value Text
filters :: [FilterProperty]
scopeConfiguration :: FilterScopeConfigurationProperty
status :: Maybe (Value Text)
..}
    = FilterGroupProperty {scopeConfiguration :: FilterScopeConfigurationProperty
scopeConfiguration = PropertyType "ScopeConfiguration" FilterGroupProperty
FilterScopeConfigurationProperty
newValue, [FilterProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
crossDataset :: Value Text
filterGroupId :: Value Text
filters :: [FilterProperty]
status :: Maybe (Value Text)
haddock_workaround_ :: ()
crossDataset :: Value Text
filterGroupId :: Value Text
filters :: [FilterProperty]
status :: Maybe (Value Text)
..}
instance Property "Status" FilterGroupProperty where
  type PropertyType "Status" FilterGroupProperty = Value Prelude.Text
  set :: PropertyType "Status" FilterGroupProperty
-> FilterGroupProperty -> FilterGroupProperty
set PropertyType "Status" FilterGroupProperty
newValue FilterGroupProperty {[FilterProperty]
Maybe (Value Text)
()
Value Text
FilterScopeConfigurationProperty
haddock_workaround_ :: FilterGroupProperty -> ()
crossDataset :: FilterGroupProperty -> Value Text
filterGroupId :: FilterGroupProperty -> Value Text
filters :: FilterGroupProperty -> [FilterProperty]
scopeConfiguration :: FilterGroupProperty -> FilterScopeConfigurationProperty
status :: FilterGroupProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
crossDataset :: Value Text
filterGroupId :: Value Text
filters :: [FilterProperty]
scopeConfiguration :: FilterScopeConfigurationProperty
status :: Maybe (Value Text)
..}
    = FilterGroupProperty {status :: Maybe (Value Text)
status = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Status" FilterGroupProperty
Value Text
newValue, [FilterProperty]
()
Value Text
FilterScopeConfigurationProperty
haddock_workaround_ :: ()
crossDataset :: Value Text
filterGroupId :: Value Text
filters :: [FilterProperty]
scopeConfiguration :: FilterScopeConfigurationProperty
haddock_workaround_ :: ()
crossDataset :: Value Text
filterGroupId :: Value Text
filters :: [FilterProperty]
scopeConfiguration :: FilterScopeConfigurationProperty
..}