module Stratosphere.QuickSight.Dashboard.FilterTextAreaControlProperty (
        module Exports, FilterTextAreaControlProperty(..),
        mkFilterTextAreaControlProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.TextAreaControlDisplayOptionsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FilterTextAreaControlProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-filtertextareacontrol.html>
    FilterTextAreaControlProperty {FilterTextAreaControlProperty -> ()
haddock_workaround_ :: (),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-filtertextareacontrol.html#cfn-quicksight-dashboard-filtertextareacontrol-delimiter>
                                   FilterTextAreaControlProperty -> Maybe (Value Text)
delimiter :: (Prelude.Maybe (Value Prelude.Text)),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-filtertextareacontrol.html#cfn-quicksight-dashboard-filtertextareacontrol-displayoptions>
                                   FilterTextAreaControlProperty
-> Maybe TextAreaControlDisplayOptionsProperty
displayOptions :: (Prelude.Maybe TextAreaControlDisplayOptionsProperty),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-filtertextareacontrol.html#cfn-quicksight-dashboard-filtertextareacontrol-filtercontrolid>
                                   FilterTextAreaControlProperty -> Value Text
filterControlId :: (Value Prelude.Text),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-filtertextareacontrol.html#cfn-quicksight-dashboard-filtertextareacontrol-sourcefilterid>
                                   FilterTextAreaControlProperty -> Value Text
sourceFilterId :: (Value Prelude.Text),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-filtertextareacontrol.html#cfn-quicksight-dashboard-filtertextareacontrol-title>
                                   FilterTextAreaControlProperty -> Value Text
title :: (Value Prelude.Text)}
  deriving stock (FilterTextAreaControlProperty
-> FilterTextAreaControlProperty -> Bool
(FilterTextAreaControlProperty
 -> FilterTextAreaControlProperty -> Bool)
-> (FilterTextAreaControlProperty
    -> FilterTextAreaControlProperty -> Bool)
-> Eq FilterTextAreaControlProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FilterTextAreaControlProperty
-> FilterTextAreaControlProperty -> Bool
== :: FilterTextAreaControlProperty
-> FilterTextAreaControlProperty -> Bool
$c/= :: FilterTextAreaControlProperty
-> FilterTextAreaControlProperty -> Bool
/= :: FilterTextAreaControlProperty
-> FilterTextAreaControlProperty -> Bool
Prelude.Eq, Int -> FilterTextAreaControlProperty -> ShowS
[FilterTextAreaControlProperty] -> ShowS
FilterTextAreaControlProperty -> String
(Int -> FilterTextAreaControlProperty -> ShowS)
-> (FilterTextAreaControlProperty -> String)
-> ([FilterTextAreaControlProperty] -> ShowS)
-> Show FilterTextAreaControlProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FilterTextAreaControlProperty -> ShowS
showsPrec :: Int -> FilterTextAreaControlProperty -> ShowS
$cshow :: FilterTextAreaControlProperty -> String
show :: FilterTextAreaControlProperty -> String
$cshowList :: [FilterTextAreaControlProperty] -> ShowS
showList :: [FilterTextAreaControlProperty] -> ShowS
Prelude.Show)
mkFilterTextAreaControlProperty ::
  Value Prelude.Text
  -> Value Prelude.Text
     -> Value Prelude.Text -> FilterTextAreaControlProperty
mkFilterTextAreaControlProperty :: Value Text
-> Value Text -> Value Text -> FilterTextAreaControlProperty
mkFilterTextAreaControlProperty
  Value Text
filterControlId
  Value Text
sourceFilterId
  Value Text
title
  = FilterTextAreaControlProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), filterControlId :: Value Text
filterControlId = Value Text
filterControlId,
       sourceFilterId :: Value Text
sourceFilterId = Value Text
sourceFilterId, title :: Value Text
title = Value Text
title,
       delimiter :: Maybe (Value Text)
delimiter = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, displayOptions :: Maybe TextAreaControlDisplayOptionsProperty
displayOptions = Maybe TextAreaControlDisplayOptionsProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FilterTextAreaControlProperty where
  toResourceProperties :: FilterTextAreaControlProperty -> ResourceProperties
toResourceProperties FilterTextAreaControlProperty {Maybe (Value Text)
Maybe TextAreaControlDisplayOptionsProperty
()
Value Text
haddock_workaround_ :: FilterTextAreaControlProperty -> ()
delimiter :: FilterTextAreaControlProperty -> Maybe (Value Text)
displayOptions :: FilterTextAreaControlProperty
-> Maybe TextAreaControlDisplayOptionsProperty
filterControlId :: FilterTextAreaControlProperty -> Value Text
sourceFilterId :: FilterTextAreaControlProperty -> Value Text
title :: FilterTextAreaControlProperty -> Value Text
haddock_workaround_ :: ()
delimiter :: Maybe (Value Text)
displayOptions :: Maybe TextAreaControlDisplayOptionsProperty
filterControlId :: Value Text
sourceFilterId :: Value Text
title :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Dashboard.FilterTextAreaControl",
         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
"FilterControlId" 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
filterControlId,
                            Key
"SourceFilterId" 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
sourceFilterId, Key
"Title" 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
title]
                           ([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
"Delimiter" (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)
delimiter,
                               Key -> TextAreaControlDisplayOptionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DisplayOptions" (TextAreaControlDisplayOptionsProperty -> (Key, Value))
-> Maybe TextAreaControlDisplayOptionsProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TextAreaControlDisplayOptionsProperty
displayOptions]))}
instance JSON.ToJSON FilterTextAreaControlProperty where
  toJSON :: FilterTextAreaControlProperty -> Value
toJSON FilterTextAreaControlProperty {Maybe (Value Text)
Maybe TextAreaControlDisplayOptionsProperty
()
Value Text
haddock_workaround_ :: FilterTextAreaControlProperty -> ()
delimiter :: FilterTextAreaControlProperty -> Maybe (Value Text)
displayOptions :: FilterTextAreaControlProperty
-> Maybe TextAreaControlDisplayOptionsProperty
filterControlId :: FilterTextAreaControlProperty -> Value Text
sourceFilterId :: FilterTextAreaControlProperty -> Value Text
title :: FilterTextAreaControlProperty -> Value Text
haddock_workaround_ :: ()
delimiter :: Maybe (Value Text)
displayOptions :: Maybe TextAreaControlDisplayOptionsProperty
filterControlId :: Value Text
sourceFilterId :: Value Text
title :: 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
"FilterControlId" 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
filterControlId,
               Key
"SourceFilterId" 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
sourceFilterId, Key
"Title" 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
title]
              ([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
"Delimiter" (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)
delimiter,
                  Key -> TextAreaControlDisplayOptionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DisplayOptions" (TextAreaControlDisplayOptionsProperty -> (Key, Value))
-> Maybe TextAreaControlDisplayOptionsProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TextAreaControlDisplayOptionsProperty
displayOptions])))
instance Property "Delimiter" FilterTextAreaControlProperty where
  type PropertyType "Delimiter" FilterTextAreaControlProperty = Value Prelude.Text
  set :: PropertyType "Delimiter" FilterTextAreaControlProperty
-> FilterTextAreaControlProperty -> FilterTextAreaControlProperty
set PropertyType "Delimiter" FilterTextAreaControlProperty
newValue FilterTextAreaControlProperty {Maybe (Value Text)
Maybe TextAreaControlDisplayOptionsProperty
()
Value Text
haddock_workaround_ :: FilterTextAreaControlProperty -> ()
delimiter :: FilterTextAreaControlProperty -> Maybe (Value Text)
displayOptions :: FilterTextAreaControlProperty
-> Maybe TextAreaControlDisplayOptionsProperty
filterControlId :: FilterTextAreaControlProperty -> Value Text
sourceFilterId :: FilterTextAreaControlProperty -> Value Text
title :: FilterTextAreaControlProperty -> Value Text
haddock_workaround_ :: ()
delimiter :: Maybe (Value Text)
displayOptions :: Maybe TextAreaControlDisplayOptionsProperty
filterControlId :: Value Text
sourceFilterId :: Value Text
title :: Value Text
..}
    = FilterTextAreaControlProperty
        {delimiter :: Maybe (Value Text)
delimiter = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Delimiter" FilterTextAreaControlProperty
Value Text
newValue, Maybe TextAreaControlDisplayOptionsProperty
()
Value Text
haddock_workaround_ :: ()
displayOptions :: Maybe TextAreaControlDisplayOptionsProperty
filterControlId :: Value Text
sourceFilterId :: Value Text
title :: Value Text
haddock_workaround_ :: ()
displayOptions :: Maybe TextAreaControlDisplayOptionsProperty
filterControlId :: Value Text
sourceFilterId :: Value Text
title :: Value Text
..}
instance Property "DisplayOptions" FilterTextAreaControlProperty where
  type PropertyType "DisplayOptions" FilterTextAreaControlProperty = TextAreaControlDisplayOptionsProperty
  set :: PropertyType "DisplayOptions" FilterTextAreaControlProperty
-> FilterTextAreaControlProperty -> FilterTextAreaControlProperty
set PropertyType "DisplayOptions" FilterTextAreaControlProperty
newValue FilterTextAreaControlProperty {Maybe (Value Text)
Maybe TextAreaControlDisplayOptionsProperty
()
Value Text
haddock_workaround_ :: FilterTextAreaControlProperty -> ()
delimiter :: FilterTextAreaControlProperty -> Maybe (Value Text)
displayOptions :: FilterTextAreaControlProperty
-> Maybe TextAreaControlDisplayOptionsProperty
filterControlId :: FilterTextAreaControlProperty -> Value Text
sourceFilterId :: FilterTextAreaControlProperty -> Value Text
title :: FilterTextAreaControlProperty -> Value Text
haddock_workaround_ :: ()
delimiter :: Maybe (Value Text)
displayOptions :: Maybe TextAreaControlDisplayOptionsProperty
filterControlId :: Value Text
sourceFilterId :: Value Text
title :: Value Text
..}
    = FilterTextAreaControlProperty
        {displayOptions :: Maybe TextAreaControlDisplayOptionsProperty
displayOptions = TextAreaControlDisplayOptionsProperty
-> Maybe TextAreaControlDisplayOptionsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DisplayOptions" FilterTextAreaControlProperty
TextAreaControlDisplayOptionsProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
delimiter :: Maybe (Value Text)
filterControlId :: Value Text
sourceFilterId :: Value Text
title :: Value Text
haddock_workaround_ :: ()
delimiter :: Maybe (Value Text)
filterControlId :: Value Text
sourceFilterId :: Value Text
title :: Value Text
..}
instance Property "FilterControlId" FilterTextAreaControlProperty where
  type PropertyType "FilterControlId" FilterTextAreaControlProperty = Value Prelude.Text
  set :: PropertyType "FilterControlId" FilterTextAreaControlProperty
-> FilterTextAreaControlProperty -> FilterTextAreaControlProperty
set PropertyType "FilterControlId" FilterTextAreaControlProperty
newValue FilterTextAreaControlProperty {Maybe (Value Text)
Maybe TextAreaControlDisplayOptionsProperty
()
Value Text
haddock_workaround_ :: FilterTextAreaControlProperty -> ()
delimiter :: FilterTextAreaControlProperty -> Maybe (Value Text)
displayOptions :: FilterTextAreaControlProperty
-> Maybe TextAreaControlDisplayOptionsProperty
filterControlId :: FilterTextAreaControlProperty -> Value Text
sourceFilterId :: FilterTextAreaControlProperty -> Value Text
title :: FilterTextAreaControlProperty -> Value Text
haddock_workaround_ :: ()
delimiter :: Maybe (Value Text)
displayOptions :: Maybe TextAreaControlDisplayOptionsProperty
filterControlId :: Value Text
sourceFilterId :: Value Text
title :: Value Text
..}
    = FilterTextAreaControlProperty {filterControlId :: Value Text
filterControlId = PropertyType "FilterControlId" FilterTextAreaControlProperty
Value Text
newValue, Maybe (Value Text)
Maybe TextAreaControlDisplayOptionsProperty
()
Value Text
haddock_workaround_ :: ()
delimiter :: Maybe (Value Text)
displayOptions :: Maybe TextAreaControlDisplayOptionsProperty
sourceFilterId :: Value Text
title :: Value Text
haddock_workaround_ :: ()
delimiter :: Maybe (Value Text)
displayOptions :: Maybe TextAreaControlDisplayOptionsProperty
sourceFilterId :: Value Text
title :: Value Text
..}
instance Property "SourceFilterId" FilterTextAreaControlProperty where
  type PropertyType "SourceFilterId" FilterTextAreaControlProperty = Value Prelude.Text
  set :: PropertyType "SourceFilterId" FilterTextAreaControlProperty
-> FilterTextAreaControlProperty -> FilterTextAreaControlProperty
set PropertyType "SourceFilterId" FilterTextAreaControlProperty
newValue FilterTextAreaControlProperty {Maybe (Value Text)
Maybe TextAreaControlDisplayOptionsProperty
()
Value Text
haddock_workaround_ :: FilterTextAreaControlProperty -> ()
delimiter :: FilterTextAreaControlProperty -> Maybe (Value Text)
displayOptions :: FilterTextAreaControlProperty
-> Maybe TextAreaControlDisplayOptionsProperty
filterControlId :: FilterTextAreaControlProperty -> Value Text
sourceFilterId :: FilterTextAreaControlProperty -> Value Text
title :: FilterTextAreaControlProperty -> Value Text
haddock_workaround_ :: ()
delimiter :: Maybe (Value Text)
displayOptions :: Maybe TextAreaControlDisplayOptionsProperty
filterControlId :: Value Text
sourceFilterId :: Value Text
title :: Value Text
..}
    = FilterTextAreaControlProperty {sourceFilterId :: Value Text
sourceFilterId = PropertyType "SourceFilterId" FilterTextAreaControlProperty
Value Text
newValue, Maybe (Value Text)
Maybe TextAreaControlDisplayOptionsProperty
()
Value Text
haddock_workaround_ :: ()
delimiter :: Maybe (Value Text)
displayOptions :: Maybe TextAreaControlDisplayOptionsProperty
filterControlId :: Value Text
title :: Value Text
haddock_workaround_ :: ()
delimiter :: Maybe (Value Text)
displayOptions :: Maybe TextAreaControlDisplayOptionsProperty
filterControlId :: Value Text
title :: Value Text
..}
instance Property "Title" FilterTextAreaControlProperty where
  type PropertyType "Title" FilterTextAreaControlProperty = Value Prelude.Text
  set :: PropertyType "Title" FilterTextAreaControlProperty
-> FilterTextAreaControlProperty -> FilterTextAreaControlProperty
set PropertyType "Title" FilterTextAreaControlProperty
newValue FilterTextAreaControlProperty {Maybe (Value Text)
Maybe TextAreaControlDisplayOptionsProperty
()
Value Text
haddock_workaround_ :: FilterTextAreaControlProperty -> ()
delimiter :: FilterTextAreaControlProperty -> Maybe (Value Text)
displayOptions :: FilterTextAreaControlProperty
-> Maybe TextAreaControlDisplayOptionsProperty
filterControlId :: FilterTextAreaControlProperty -> Value Text
sourceFilterId :: FilterTextAreaControlProperty -> Value Text
title :: FilterTextAreaControlProperty -> Value Text
haddock_workaround_ :: ()
delimiter :: Maybe (Value Text)
displayOptions :: Maybe TextAreaControlDisplayOptionsProperty
filterControlId :: Value Text
sourceFilterId :: Value Text
title :: Value Text
..}
    = FilterTextAreaControlProperty {title :: Value Text
title = PropertyType "Title" FilterTextAreaControlProperty
Value Text
newValue, Maybe (Value Text)
Maybe TextAreaControlDisplayOptionsProperty
()
Value Text
haddock_workaround_ :: ()
delimiter :: Maybe (Value Text)
displayOptions :: Maybe TextAreaControlDisplayOptionsProperty
filterControlId :: Value Text
sourceFilterId :: Value Text
haddock_workaround_ :: ()
delimiter :: Maybe (Value Text)
displayOptions :: Maybe TextAreaControlDisplayOptionsProperty
filterControlId :: Value Text
sourceFilterId :: Value Text
..}