module Stratosphere.QBusiness.Index.DocumentAttributeConfigurationProperty (
        DocumentAttributeConfigurationProperty(..),
        mkDocumentAttributeConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DocumentAttributeConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-index-documentattributeconfiguration.html>
    DocumentAttributeConfigurationProperty {DocumentAttributeConfigurationProperty -> ()
haddock_workaround_ :: (),
                                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-index-documentattributeconfiguration.html#cfn-qbusiness-index-documentattributeconfiguration-name>
                                            DocumentAttributeConfigurationProperty -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
                                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-index-documentattributeconfiguration.html#cfn-qbusiness-index-documentattributeconfiguration-search>
                                            DocumentAttributeConfigurationProperty -> Maybe (Value Text)
search :: (Prelude.Maybe (Value Prelude.Text)),
                                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-index-documentattributeconfiguration.html#cfn-qbusiness-index-documentattributeconfiguration-type>
                                            DocumentAttributeConfigurationProperty -> Maybe (Value Text)
type' :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (DocumentAttributeConfigurationProperty
-> DocumentAttributeConfigurationProperty -> Bool
(DocumentAttributeConfigurationProperty
 -> DocumentAttributeConfigurationProperty -> Bool)
-> (DocumentAttributeConfigurationProperty
    -> DocumentAttributeConfigurationProperty -> Bool)
-> Eq DocumentAttributeConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DocumentAttributeConfigurationProperty
-> DocumentAttributeConfigurationProperty -> Bool
== :: DocumentAttributeConfigurationProperty
-> DocumentAttributeConfigurationProperty -> Bool
$c/= :: DocumentAttributeConfigurationProperty
-> DocumentAttributeConfigurationProperty -> Bool
/= :: DocumentAttributeConfigurationProperty
-> DocumentAttributeConfigurationProperty -> Bool
Prelude.Eq, Int -> DocumentAttributeConfigurationProperty -> ShowS
[DocumentAttributeConfigurationProperty] -> ShowS
DocumentAttributeConfigurationProperty -> String
(Int -> DocumentAttributeConfigurationProperty -> ShowS)
-> (DocumentAttributeConfigurationProperty -> String)
-> ([DocumentAttributeConfigurationProperty] -> ShowS)
-> Show DocumentAttributeConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DocumentAttributeConfigurationProperty -> ShowS
showsPrec :: Int -> DocumentAttributeConfigurationProperty -> ShowS
$cshow :: DocumentAttributeConfigurationProperty -> String
show :: DocumentAttributeConfigurationProperty -> String
$cshowList :: [DocumentAttributeConfigurationProperty] -> ShowS
showList :: [DocumentAttributeConfigurationProperty] -> ShowS
Prelude.Show)
mkDocumentAttributeConfigurationProperty ::
  DocumentAttributeConfigurationProperty
mkDocumentAttributeConfigurationProperty :: DocumentAttributeConfigurationProperty
mkDocumentAttributeConfigurationProperty
  = DocumentAttributeConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       search :: Maybe (Value Text)
search = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, type' :: Maybe (Value Text)
type' = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DocumentAttributeConfigurationProperty where
  toResourceProperties :: DocumentAttributeConfigurationProperty -> ResourceProperties
toResourceProperties DocumentAttributeConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: DocumentAttributeConfigurationProperty -> ()
name :: DocumentAttributeConfigurationProperty -> Maybe (Value Text)
search :: DocumentAttributeConfigurationProperty -> Maybe (Value Text)
type' :: DocumentAttributeConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
search :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QBusiness::Index.DocumentAttributeConfiguration",
         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 -> 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
"Name" (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)
name,
                            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
"Search" (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)
search,
                            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
"Type" (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)
type'])}
instance JSON.ToJSON DocumentAttributeConfigurationProperty where
  toJSON :: DocumentAttributeConfigurationProperty -> Value
toJSON DocumentAttributeConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: DocumentAttributeConfigurationProperty -> ()
name :: DocumentAttributeConfigurationProperty -> Maybe (Value Text)
search :: DocumentAttributeConfigurationProperty -> Maybe (Value Text)
type' :: DocumentAttributeConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
search :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
    = [(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 -> 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
"Name" (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)
name,
               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
"Search" (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)
search,
               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
"Type" (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)
type']))
instance Property "Name" DocumentAttributeConfigurationProperty where
  type PropertyType "Name" DocumentAttributeConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Name" DocumentAttributeConfigurationProperty
-> DocumentAttributeConfigurationProperty
-> DocumentAttributeConfigurationProperty
set PropertyType "Name" DocumentAttributeConfigurationProperty
newValue DocumentAttributeConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: DocumentAttributeConfigurationProperty -> ()
name :: DocumentAttributeConfigurationProperty -> Maybe (Value Text)
search :: DocumentAttributeConfigurationProperty -> Maybe (Value Text)
type' :: DocumentAttributeConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
search :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
    = DocumentAttributeConfigurationProperty
        {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" DocumentAttributeConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
search :: Maybe (Value Text)
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
search :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
instance Property "Search" DocumentAttributeConfigurationProperty where
  type PropertyType "Search" DocumentAttributeConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Search" DocumentAttributeConfigurationProperty
-> DocumentAttributeConfigurationProperty
-> DocumentAttributeConfigurationProperty
set PropertyType "Search" DocumentAttributeConfigurationProperty
newValue DocumentAttributeConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: DocumentAttributeConfigurationProperty -> ()
name :: DocumentAttributeConfigurationProperty -> Maybe (Value Text)
search :: DocumentAttributeConfigurationProperty -> Maybe (Value Text)
type' :: DocumentAttributeConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
search :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
    = DocumentAttributeConfigurationProperty
        {search :: Maybe (Value Text)
search = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Search" DocumentAttributeConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
name :: Maybe (Value Text)
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
instance Property "Type" DocumentAttributeConfigurationProperty where
  type PropertyType "Type" DocumentAttributeConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Type" DocumentAttributeConfigurationProperty
-> DocumentAttributeConfigurationProperty
-> DocumentAttributeConfigurationProperty
set PropertyType "Type" DocumentAttributeConfigurationProperty
newValue DocumentAttributeConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: DocumentAttributeConfigurationProperty -> ()
name :: DocumentAttributeConfigurationProperty -> Maybe (Value Text)
search :: DocumentAttributeConfigurationProperty -> Maybe (Value Text)
type' :: DocumentAttributeConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
search :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
    = DocumentAttributeConfigurationProperty
        {type' :: Maybe (Value Text)
type' = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Type" DocumentAttributeConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
name :: Maybe (Value Text)
search :: Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
search :: Maybe (Value Text)
..}