module Stratosphere.Lex.Bot.OpensearchConfigurationProperty (
module Exports, OpensearchConfigurationProperty(..),
mkOpensearchConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Lex.Bot.ExactResponseFieldsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OpensearchConfigurationProperty
=
OpensearchConfigurationProperty {OpensearchConfigurationProperty -> ()
haddock_workaround_ :: (),
OpensearchConfigurationProperty -> Maybe (Value Text)
domainEndpoint :: (Prelude.Maybe (Value Prelude.Text)),
OpensearchConfigurationProperty -> Maybe (Value Bool)
exactResponse :: (Prelude.Maybe (Value Prelude.Bool)),
OpensearchConfigurationProperty
-> Maybe ExactResponseFieldsProperty
exactResponseFields :: (Prelude.Maybe ExactResponseFieldsProperty),
OpensearchConfigurationProperty -> Maybe (ValueList Text)
includeFields :: (Prelude.Maybe (ValueList Prelude.Text)),
OpensearchConfigurationProperty -> Maybe (Value Text)
indexName :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (OpensearchConfigurationProperty
-> OpensearchConfigurationProperty -> Bool
(OpensearchConfigurationProperty
-> OpensearchConfigurationProperty -> Bool)
-> (OpensearchConfigurationProperty
-> OpensearchConfigurationProperty -> Bool)
-> Eq OpensearchConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OpensearchConfigurationProperty
-> OpensearchConfigurationProperty -> Bool
== :: OpensearchConfigurationProperty
-> OpensearchConfigurationProperty -> Bool
$c/= :: OpensearchConfigurationProperty
-> OpensearchConfigurationProperty -> Bool
/= :: OpensearchConfigurationProperty
-> OpensearchConfigurationProperty -> Bool
Prelude.Eq, Int -> OpensearchConfigurationProperty -> ShowS
[OpensearchConfigurationProperty] -> ShowS
OpensearchConfigurationProperty -> String
(Int -> OpensearchConfigurationProperty -> ShowS)
-> (OpensearchConfigurationProperty -> String)
-> ([OpensearchConfigurationProperty] -> ShowS)
-> Show OpensearchConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OpensearchConfigurationProperty -> ShowS
showsPrec :: Int -> OpensearchConfigurationProperty -> ShowS
$cshow :: OpensearchConfigurationProperty -> String
show :: OpensearchConfigurationProperty -> String
$cshowList :: [OpensearchConfigurationProperty] -> ShowS
showList :: [OpensearchConfigurationProperty] -> ShowS
Prelude.Show)
mkOpensearchConfigurationProperty ::
OpensearchConfigurationProperty
mkOpensearchConfigurationProperty :: OpensearchConfigurationProperty
mkOpensearchConfigurationProperty
= OpensearchConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), domainEndpoint :: Maybe (Value Text)
domainEndpoint = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
exactResponse :: Maybe (Value Bool)
exactResponse = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
exactResponseFields :: Maybe ExactResponseFieldsProperty
exactResponseFields = Maybe ExactResponseFieldsProperty
forall a. Maybe a
Prelude.Nothing,
includeFields :: Maybe (ValueList Text)
includeFields = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing, indexName :: Maybe (Value Text)
indexName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties OpensearchConfigurationProperty where
toResourceProperties :: OpensearchConfigurationProperty -> ResourceProperties
toResourceProperties OpensearchConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
Maybe ExactResponseFieldsProperty
()
haddock_workaround_ :: OpensearchConfigurationProperty -> ()
domainEndpoint :: OpensearchConfigurationProperty -> Maybe (Value Text)
exactResponse :: OpensearchConfigurationProperty -> Maybe (Value Bool)
exactResponseFields :: OpensearchConfigurationProperty
-> Maybe ExactResponseFieldsProperty
includeFields :: OpensearchConfigurationProperty -> Maybe (ValueList Text)
indexName :: OpensearchConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
domainEndpoint :: Maybe (Value Text)
exactResponse :: Maybe (Value Bool)
exactResponseFields :: Maybe ExactResponseFieldsProperty
includeFields :: Maybe (ValueList Text)
indexName :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Lex::Bot.OpensearchConfiguration",
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
"DomainEndpoint" (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)
domainEndpoint,
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
"ExactResponse" (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)
exactResponse,
Key -> ExactResponseFieldsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ExactResponseFields" (ExactResponseFieldsProperty -> (Key, Value))
-> Maybe ExactResponseFieldsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ExactResponseFieldsProperty
exactResponseFields,
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
"IncludeFields" (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)
includeFields,
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
"IndexName" (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)
indexName])}
instance JSON.ToJSON OpensearchConfigurationProperty where
toJSON :: OpensearchConfigurationProperty -> Value
toJSON OpensearchConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
Maybe ExactResponseFieldsProperty
()
haddock_workaround_ :: OpensearchConfigurationProperty -> ()
domainEndpoint :: OpensearchConfigurationProperty -> Maybe (Value Text)
exactResponse :: OpensearchConfigurationProperty -> Maybe (Value Bool)
exactResponseFields :: OpensearchConfigurationProperty
-> Maybe ExactResponseFieldsProperty
includeFields :: OpensearchConfigurationProperty -> Maybe (ValueList Text)
indexName :: OpensearchConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
domainEndpoint :: Maybe (Value Text)
exactResponse :: Maybe (Value Bool)
exactResponseFields :: Maybe ExactResponseFieldsProperty
includeFields :: Maybe (ValueList Text)
indexName :: 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
"DomainEndpoint" (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)
domainEndpoint,
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
"ExactResponse" (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)
exactResponse,
Key -> ExactResponseFieldsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ExactResponseFields" (ExactResponseFieldsProperty -> (Key, Value))
-> Maybe ExactResponseFieldsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ExactResponseFieldsProperty
exactResponseFields,
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
"IncludeFields" (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)
includeFields,
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
"IndexName" (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)
indexName]))
instance Property "DomainEndpoint" OpensearchConfigurationProperty where
type PropertyType "DomainEndpoint" OpensearchConfigurationProperty = Value Prelude.Text
set :: PropertyType "DomainEndpoint" OpensearchConfigurationProperty
-> OpensearchConfigurationProperty
-> OpensearchConfigurationProperty
set PropertyType "DomainEndpoint" OpensearchConfigurationProperty
newValue OpensearchConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
Maybe ExactResponseFieldsProperty
()
haddock_workaround_ :: OpensearchConfigurationProperty -> ()
domainEndpoint :: OpensearchConfigurationProperty -> Maybe (Value Text)
exactResponse :: OpensearchConfigurationProperty -> Maybe (Value Bool)
exactResponseFields :: OpensearchConfigurationProperty
-> Maybe ExactResponseFieldsProperty
includeFields :: OpensearchConfigurationProperty -> Maybe (ValueList Text)
indexName :: OpensearchConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
domainEndpoint :: Maybe (Value Text)
exactResponse :: Maybe (Value Bool)
exactResponseFields :: Maybe ExactResponseFieldsProperty
includeFields :: Maybe (ValueList Text)
indexName :: Maybe (Value Text)
..}
= OpensearchConfigurationProperty
{domainEndpoint :: Maybe (Value Text)
domainEndpoint = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DomainEndpoint" OpensearchConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
Maybe ExactResponseFieldsProperty
()
haddock_workaround_ :: ()
exactResponse :: Maybe (Value Bool)
exactResponseFields :: Maybe ExactResponseFieldsProperty
includeFields :: Maybe (ValueList Text)
indexName :: Maybe (Value Text)
haddock_workaround_ :: ()
exactResponse :: Maybe (Value Bool)
exactResponseFields :: Maybe ExactResponseFieldsProperty
includeFields :: Maybe (ValueList Text)
indexName :: Maybe (Value Text)
..}
instance Property "ExactResponse" OpensearchConfigurationProperty where
type PropertyType "ExactResponse" OpensearchConfigurationProperty = Value Prelude.Bool
set :: PropertyType "ExactResponse" OpensearchConfigurationProperty
-> OpensearchConfigurationProperty
-> OpensearchConfigurationProperty
set PropertyType "ExactResponse" OpensearchConfigurationProperty
newValue OpensearchConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
Maybe ExactResponseFieldsProperty
()
haddock_workaround_ :: OpensearchConfigurationProperty -> ()
domainEndpoint :: OpensearchConfigurationProperty -> Maybe (Value Text)
exactResponse :: OpensearchConfigurationProperty -> Maybe (Value Bool)
exactResponseFields :: OpensearchConfigurationProperty
-> Maybe ExactResponseFieldsProperty
includeFields :: OpensearchConfigurationProperty -> Maybe (ValueList Text)
indexName :: OpensearchConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
domainEndpoint :: Maybe (Value Text)
exactResponse :: Maybe (Value Bool)
exactResponseFields :: Maybe ExactResponseFieldsProperty
includeFields :: Maybe (ValueList Text)
indexName :: Maybe (Value Text)
..}
= OpensearchConfigurationProperty
{exactResponse :: Maybe (Value Bool)
exactResponse = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ExactResponse" OpensearchConfigurationProperty
Value Bool
newValue, Maybe (ValueList Text)
Maybe (Value Text)
Maybe ExactResponseFieldsProperty
()
haddock_workaround_ :: ()
domainEndpoint :: Maybe (Value Text)
exactResponseFields :: Maybe ExactResponseFieldsProperty
includeFields :: Maybe (ValueList Text)
indexName :: Maybe (Value Text)
haddock_workaround_ :: ()
domainEndpoint :: Maybe (Value Text)
exactResponseFields :: Maybe ExactResponseFieldsProperty
includeFields :: Maybe (ValueList Text)
indexName :: Maybe (Value Text)
..}
instance Property "ExactResponseFields" OpensearchConfigurationProperty where
type PropertyType "ExactResponseFields" OpensearchConfigurationProperty = ExactResponseFieldsProperty
set :: PropertyType "ExactResponseFields" OpensearchConfigurationProperty
-> OpensearchConfigurationProperty
-> OpensearchConfigurationProperty
set PropertyType "ExactResponseFields" OpensearchConfigurationProperty
newValue OpensearchConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
Maybe ExactResponseFieldsProperty
()
haddock_workaround_ :: OpensearchConfigurationProperty -> ()
domainEndpoint :: OpensearchConfigurationProperty -> Maybe (Value Text)
exactResponse :: OpensearchConfigurationProperty -> Maybe (Value Bool)
exactResponseFields :: OpensearchConfigurationProperty
-> Maybe ExactResponseFieldsProperty
includeFields :: OpensearchConfigurationProperty -> Maybe (ValueList Text)
indexName :: OpensearchConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
domainEndpoint :: Maybe (Value Text)
exactResponse :: Maybe (Value Bool)
exactResponseFields :: Maybe ExactResponseFieldsProperty
includeFields :: Maybe (ValueList Text)
indexName :: Maybe (Value Text)
..}
= OpensearchConfigurationProperty
{exactResponseFields :: Maybe ExactResponseFieldsProperty
exactResponseFields = ExactResponseFieldsProperty -> Maybe ExactResponseFieldsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ExactResponseFields" OpensearchConfigurationProperty
ExactResponseFieldsProperty
newValue, Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
domainEndpoint :: Maybe (Value Text)
exactResponse :: Maybe (Value Bool)
includeFields :: Maybe (ValueList Text)
indexName :: Maybe (Value Text)
haddock_workaround_ :: ()
domainEndpoint :: Maybe (Value Text)
exactResponse :: Maybe (Value Bool)
includeFields :: Maybe (ValueList Text)
indexName :: Maybe (Value Text)
..}
instance Property "IncludeFields" OpensearchConfigurationProperty where
type PropertyType "IncludeFields" OpensearchConfigurationProperty = ValueList Prelude.Text
set :: PropertyType "IncludeFields" OpensearchConfigurationProperty
-> OpensearchConfigurationProperty
-> OpensearchConfigurationProperty
set PropertyType "IncludeFields" OpensearchConfigurationProperty
newValue OpensearchConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
Maybe ExactResponseFieldsProperty
()
haddock_workaround_ :: OpensearchConfigurationProperty -> ()
domainEndpoint :: OpensearchConfigurationProperty -> Maybe (Value Text)
exactResponse :: OpensearchConfigurationProperty -> Maybe (Value Bool)
exactResponseFields :: OpensearchConfigurationProperty
-> Maybe ExactResponseFieldsProperty
includeFields :: OpensearchConfigurationProperty -> Maybe (ValueList Text)
indexName :: OpensearchConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
domainEndpoint :: Maybe (Value Text)
exactResponse :: Maybe (Value Bool)
exactResponseFields :: Maybe ExactResponseFieldsProperty
includeFields :: Maybe (ValueList Text)
indexName :: Maybe (Value Text)
..}
= OpensearchConfigurationProperty
{includeFields :: Maybe (ValueList Text)
includeFields = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IncludeFields" OpensearchConfigurationProperty
ValueList Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
Maybe ExactResponseFieldsProperty
()
haddock_workaround_ :: ()
domainEndpoint :: Maybe (Value Text)
exactResponse :: Maybe (Value Bool)
exactResponseFields :: Maybe ExactResponseFieldsProperty
indexName :: Maybe (Value Text)
haddock_workaround_ :: ()
domainEndpoint :: Maybe (Value Text)
exactResponse :: Maybe (Value Bool)
exactResponseFields :: Maybe ExactResponseFieldsProperty
indexName :: Maybe (Value Text)
..}
instance Property "IndexName" OpensearchConfigurationProperty where
type PropertyType "IndexName" OpensearchConfigurationProperty = Value Prelude.Text
set :: PropertyType "IndexName" OpensearchConfigurationProperty
-> OpensearchConfigurationProperty
-> OpensearchConfigurationProperty
set PropertyType "IndexName" OpensearchConfigurationProperty
newValue OpensearchConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
Maybe ExactResponseFieldsProperty
()
haddock_workaround_ :: OpensearchConfigurationProperty -> ()
domainEndpoint :: OpensearchConfigurationProperty -> Maybe (Value Text)
exactResponse :: OpensearchConfigurationProperty -> Maybe (Value Bool)
exactResponseFields :: OpensearchConfigurationProperty
-> Maybe ExactResponseFieldsProperty
includeFields :: OpensearchConfigurationProperty -> Maybe (ValueList Text)
indexName :: OpensearchConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
domainEndpoint :: Maybe (Value Text)
exactResponse :: Maybe (Value Bool)
exactResponseFields :: Maybe ExactResponseFieldsProperty
includeFields :: Maybe (ValueList Text)
indexName :: Maybe (Value Text)
..}
= OpensearchConfigurationProperty
{indexName :: Maybe (Value Text)
indexName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IndexName" OpensearchConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
Maybe ExactResponseFieldsProperty
()
haddock_workaround_ :: ()
domainEndpoint :: Maybe (Value Text)
exactResponse :: Maybe (Value Bool)
exactResponseFields :: Maybe ExactResponseFieldsProperty
includeFields :: Maybe (ValueList Text)
haddock_workaround_ :: ()
domainEndpoint :: Maybe (Value Text)
exactResponse :: Maybe (Value Bool)
exactResponseFields :: Maybe ExactResponseFieldsProperty
includeFields :: Maybe (ValueList Text)
..}