module Stratosphere.Kendra.DataSource.DocumentAttributeValueProperty (
DocumentAttributeValueProperty(..),
mkDocumentAttributeValueProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DocumentAttributeValueProperty
=
DocumentAttributeValueProperty {DocumentAttributeValueProperty -> ()
haddock_workaround_ :: (),
DocumentAttributeValueProperty -> Maybe (Value Text)
dateValue :: (Prelude.Maybe (Value Prelude.Text)),
DocumentAttributeValueProperty -> Maybe (Value Integer)
longValue :: (Prelude.Maybe (Value Prelude.Integer)),
DocumentAttributeValueProperty -> Maybe (ValueList Text)
stringListValue :: (Prelude.Maybe (ValueList Prelude.Text)),
DocumentAttributeValueProperty -> Maybe (Value Text)
stringValue :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (DocumentAttributeValueProperty
-> DocumentAttributeValueProperty -> Bool
(DocumentAttributeValueProperty
-> DocumentAttributeValueProperty -> Bool)
-> (DocumentAttributeValueProperty
-> DocumentAttributeValueProperty -> Bool)
-> Eq DocumentAttributeValueProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DocumentAttributeValueProperty
-> DocumentAttributeValueProperty -> Bool
== :: DocumentAttributeValueProperty
-> DocumentAttributeValueProperty -> Bool
$c/= :: DocumentAttributeValueProperty
-> DocumentAttributeValueProperty -> Bool
/= :: DocumentAttributeValueProperty
-> DocumentAttributeValueProperty -> Bool
Prelude.Eq, Int -> DocumentAttributeValueProperty -> ShowS
[DocumentAttributeValueProperty] -> ShowS
DocumentAttributeValueProperty -> String
(Int -> DocumentAttributeValueProperty -> ShowS)
-> (DocumentAttributeValueProperty -> String)
-> ([DocumentAttributeValueProperty] -> ShowS)
-> Show DocumentAttributeValueProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DocumentAttributeValueProperty -> ShowS
showsPrec :: Int -> DocumentAttributeValueProperty -> ShowS
$cshow :: DocumentAttributeValueProperty -> String
show :: DocumentAttributeValueProperty -> String
$cshowList :: [DocumentAttributeValueProperty] -> ShowS
showList :: [DocumentAttributeValueProperty] -> ShowS
Prelude.Show)
mkDocumentAttributeValueProperty :: DocumentAttributeValueProperty
mkDocumentAttributeValueProperty :: DocumentAttributeValueProperty
mkDocumentAttributeValueProperty
= DocumentAttributeValueProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), dateValue :: Maybe (Value Text)
dateValue = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
longValue :: Maybe (Value Integer)
longValue = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing, stringListValue :: Maybe (ValueList Text)
stringListValue = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
stringValue :: Maybe (Value Text)
stringValue = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DocumentAttributeValueProperty where
toResourceProperties :: DocumentAttributeValueProperty -> ResourceProperties
toResourceProperties DocumentAttributeValueProperty {Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: DocumentAttributeValueProperty -> ()
dateValue :: DocumentAttributeValueProperty -> Maybe (Value Text)
longValue :: DocumentAttributeValueProperty -> Maybe (Value Integer)
stringListValue :: DocumentAttributeValueProperty -> Maybe (ValueList Text)
stringValue :: DocumentAttributeValueProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dateValue :: Maybe (Value Text)
longValue :: Maybe (Value Integer)
stringListValue :: Maybe (ValueList Text)
stringValue :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Kendra::DataSource.DocumentAttributeValue",
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
"DateValue" (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)
dateValue,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LongValue" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
longValue,
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
"StringListValue" (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)
stringListValue,
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
"StringValue" (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)
stringValue])}
instance JSON.ToJSON DocumentAttributeValueProperty where
toJSON :: DocumentAttributeValueProperty -> Value
toJSON DocumentAttributeValueProperty {Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: DocumentAttributeValueProperty -> ()
dateValue :: DocumentAttributeValueProperty -> Maybe (Value Text)
longValue :: DocumentAttributeValueProperty -> Maybe (Value Integer)
stringListValue :: DocumentAttributeValueProperty -> Maybe (ValueList Text)
stringValue :: DocumentAttributeValueProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dateValue :: Maybe (Value Text)
longValue :: Maybe (Value Integer)
stringListValue :: Maybe (ValueList Text)
stringValue :: 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
"DateValue" (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)
dateValue,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LongValue" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
longValue,
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
"StringListValue" (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)
stringListValue,
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
"StringValue" (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)
stringValue]))
instance Property "DateValue" DocumentAttributeValueProperty where
type PropertyType "DateValue" DocumentAttributeValueProperty = Value Prelude.Text
set :: PropertyType "DateValue" DocumentAttributeValueProperty
-> DocumentAttributeValueProperty -> DocumentAttributeValueProperty
set PropertyType "DateValue" DocumentAttributeValueProperty
newValue DocumentAttributeValueProperty {Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: DocumentAttributeValueProperty -> ()
dateValue :: DocumentAttributeValueProperty -> Maybe (Value Text)
longValue :: DocumentAttributeValueProperty -> Maybe (Value Integer)
stringListValue :: DocumentAttributeValueProperty -> Maybe (ValueList Text)
stringValue :: DocumentAttributeValueProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dateValue :: Maybe (Value Text)
longValue :: Maybe (Value Integer)
stringListValue :: Maybe (ValueList Text)
stringValue :: Maybe (Value Text)
..}
= DocumentAttributeValueProperty
{dateValue :: Maybe (Value Text)
dateValue = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DateValue" DocumentAttributeValueProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
longValue :: Maybe (Value Integer)
stringListValue :: Maybe (ValueList Text)
stringValue :: Maybe (Value Text)
haddock_workaround_ :: ()
longValue :: Maybe (Value Integer)
stringListValue :: Maybe (ValueList Text)
stringValue :: Maybe (Value Text)
..}
instance Property "LongValue" DocumentAttributeValueProperty where
type PropertyType "LongValue" DocumentAttributeValueProperty = Value Prelude.Integer
set :: PropertyType "LongValue" DocumentAttributeValueProperty
-> DocumentAttributeValueProperty -> DocumentAttributeValueProperty
set PropertyType "LongValue" DocumentAttributeValueProperty
newValue DocumentAttributeValueProperty {Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: DocumentAttributeValueProperty -> ()
dateValue :: DocumentAttributeValueProperty -> Maybe (Value Text)
longValue :: DocumentAttributeValueProperty -> Maybe (Value Integer)
stringListValue :: DocumentAttributeValueProperty -> Maybe (ValueList Text)
stringValue :: DocumentAttributeValueProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dateValue :: Maybe (Value Text)
longValue :: Maybe (Value Integer)
stringListValue :: Maybe (ValueList Text)
stringValue :: Maybe (Value Text)
..}
= DocumentAttributeValueProperty
{longValue :: Maybe (Value Integer)
longValue = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LongValue" DocumentAttributeValueProperty
Value Integer
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
dateValue :: Maybe (Value Text)
stringListValue :: Maybe (ValueList Text)
stringValue :: Maybe (Value Text)
haddock_workaround_ :: ()
dateValue :: Maybe (Value Text)
stringListValue :: Maybe (ValueList Text)
stringValue :: Maybe (Value Text)
..}
instance Property "StringListValue" DocumentAttributeValueProperty where
type PropertyType "StringListValue" DocumentAttributeValueProperty = ValueList Prelude.Text
set :: PropertyType "StringListValue" DocumentAttributeValueProperty
-> DocumentAttributeValueProperty -> DocumentAttributeValueProperty
set PropertyType "StringListValue" DocumentAttributeValueProperty
newValue DocumentAttributeValueProperty {Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: DocumentAttributeValueProperty -> ()
dateValue :: DocumentAttributeValueProperty -> Maybe (Value Text)
longValue :: DocumentAttributeValueProperty -> Maybe (Value Integer)
stringListValue :: DocumentAttributeValueProperty -> Maybe (ValueList Text)
stringValue :: DocumentAttributeValueProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dateValue :: Maybe (Value Text)
longValue :: Maybe (Value Integer)
stringListValue :: Maybe (ValueList Text)
stringValue :: Maybe (Value Text)
..}
= DocumentAttributeValueProperty
{stringListValue :: Maybe (ValueList Text)
stringListValue = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StringListValue" DocumentAttributeValueProperty
ValueList Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
dateValue :: Maybe (Value Text)
longValue :: Maybe (Value Integer)
stringValue :: Maybe (Value Text)
haddock_workaround_ :: ()
dateValue :: Maybe (Value Text)
longValue :: Maybe (Value Integer)
stringValue :: Maybe (Value Text)
..}
instance Property "StringValue" DocumentAttributeValueProperty where
type PropertyType "StringValue" DocumentAttributeValueProperty = Value Prelude.Text
set :: PropertyType "StringValue" DocumentAttributeValueProperty
-> DocumentAttributeValueProperty -> DocumentAttributeValueProperty
set PropertyType "StringValue" DocumentAttributeValueProperty
newValue DocumentAttributeValueProperty {Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: DocumentAttributeValueProperty -> ()
dateValue :: DocumentAttributeValueProperty -> Maybe (Value Text)
longValue :: DocumentAttributeValueProperty -> Maybe (Value Integer)
stringListValue :: DocumentAttributeValueProperty -> Maybe (ValueList Text)
stringValue :: DocumentAttributeValueProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dateValue :: Maybe (Value Text)
longValue :: Maybe (Value Integer)
stringListValue :: Maybe (ValueList Text)
stringValue :: Maybe (Value Text)
..}
= DocumentAttributeValueProperty
{stringValue :: Maybe (Value Text)
stringValue = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StringValue" DocumentAttributeValueProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
dateValue :: Maybe (Value Text)
longValue :: Maybe (Value Integer)
stringListValue :: Maybe (ValueList Text)
haddock_workaround_ :: ()
dateValue :: Maybe (Value Text)
longValue :: Maybe (Value Integer)
stringListValue :: Maybe (ValueList Text)
..}