module Stratosphere.Wisdom.KnowledgeBase.AppIntegrationsConfigurationProperty (
AppIntegrationsConfigurationProperty(..),
mkAppIntegrationsConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AppIntegrationsConfigurationProperty
=
AppIntegrationsConfigurationProperty {AppIntegrationsConfigurationProperty -> ()
haddock_workaround_ :: (),
AppIntegrationsConfigurationProperty -> Value Text
appIntegrationArn :: (Value Prelude.Text),
AppIntegrationsConfigurationProperty -> Maybe (ValueList Text)
objectFields :: (Prelude.Maybe (ValueList Prelude.Text))}
deriving stock (AppIntegrationsConfigurationProperty
-> AppIntegrationsConfigurationProperty -> Bool
(AppIntegrationsConfigurationProperty
-> AppIntegrationsConfigurationProperty -> Bool)
-> (AppIntegrationsConfigurationProperty
-> AppIntegrationsConfigurationProperty -> Bool)
-> Eq AppIntegrationsConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AppIntegrationsConfigurationProperty
-> AppIntegrationsConfigurationProperty -> Bool
== :: AppIntegrationsConfigurationProperty
-> AppIntegrationsConfigurationProperty -> Bool
$c/= :: AppIntegrationsConfigurationProperty
-> AppIntegrationsConfigurationProperty -> Bool
/= :: AppIntegrationsConfigurationProperty
-> AppIntegrationsConfigurationProperty -> Bool
Prelude.Eq, Int -> AppIntegrationsConfigurationProperty -> ShowS
[AppIntegrationsConfigurationProperty] -> ShowS
AppIntegrationsConfigurationProperty -> String
(Int -> AppIntegrationsConfigurationProperty -> ShowS)
-> (AppIntegrationsConfigurationProperty -> String)
-> ([AppIntegrationsConfigurationProperty] -> ShowS)
-> Show AppIntegrationsConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AppIntegrationsConfigurationProperty -> ShowS
showsPrec :: Int -> AppIntegrationsConfigurationProperty -> ShowS
$cshow :: AppIntegrationsConfigurationProperty -> String
show :: AppIntegrationsConfigurationProperty -> String
$cshowList :: [AppIntegrationsConfigurationProperty] -> ShowS
showList :: [AppIntegrationsConfigurationProperty] -> ShowS
Prelude.Show)
mkAppIntegrationsConfigurationProperty ::
Value Prelude.Text -> AppIntegrationsConfigurationProperty
mkAppIntegrationsConfigurationProperty :: Value Text -> AppIntegrationsConfigurationProperty
mkAppIntegrationsConfigurationProperty Value Text
appIntegrationArn
= AppIntegrationsConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), appIntegrationArn :: Value Text
appIntegrationArn = Value Text
appIntegrationArn,
objectFields :: Maybe (ValueList Text)
objectFields = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AppIntegrationsConfigurationProperty where
toResourceProperties :: AppIntegrationsConfigurationProperty -> ResourceProperties
toResourceProperties AppIntegrationsConfigurationProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: AppIntegrationsConfigurationProperty -> ()
appIntegrationArn :: AppIntegrationsConfigurationProperty -> Value Text
objectFields :: AppIntegrationsConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
appIntegrationArn :: Value Text
objectFields :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Wisdom::KnowledgeBase.AppIntegrationsConfiguration",
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
"AppIntegrationArn" 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
appIntegrationArn]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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
"ObjectFields" (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)
objectFields]))}
instance JSON.ToJSON AppIntegrationsConfigurationProperty where
toJSON :: AppIntegrationsConfigurationProperty -> Value
toJSON AppIntegrationsConfigurationProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: AppIntegrationsConfigurationProperty -> ()
appIntegrationArn :: AppIntegrationsConfigurationProperty -> Value Text
objectFields :: AppIntegrationsConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
appIntegrationArn :: Value Text
objectFields :: Maybe (ValueList 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
"AppIntegrationArn" 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
appIntegrationArn]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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
"ObjectFields" (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)
objectFields])))
instance Property "AppIntegrationArn" AppIntegrationsConfigurationProperty where
type PropertyType "AppIntegrationArn" AppIntegrationsConfigurationProperty = Value Prelude.Text
set :: PropertyType
"AppIntegrationArn" AppIntegrationsConfigurationProperty
-> AppIntegrationsConfigurationProperty
-> AppIntegrationsConfigurationProperty
set PropertyType
"AppIntegrationArn" AppIntegrationsConfigurationProperty
newValue AppIntegrationsConfigurationProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: AppIntegrationsConfigurationProperty -> ()
appIntegrationArn :: AppIntegrationsConfigurationProperty -> Value Text
objectFields :: AppIntegrationsConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
appIntegrationArn :: Value Text
objectFields :: Maybe (ValueList Text)
..}
= AppIntegrationsConfigurationProperty
{appIntegrationArn :: Value Text
appIntegrationArn = PropertyType
"AppIntegrationArn" AppIntegrationsConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
objectFields :: Maybe (ValueList Text)
haddock_workaround_ :: ()
objectFields :: Maybe (ValueList Text)
..}
instance Property "ObjectFields" AppIntegrationsConfigurationProperty where
type PropertyType "ObjectFields" AppIntegrationsConfigurationProperty = ValueList Prelude.Text
set :: PropertyType "ObjectFields" AppIntegrationsConfigurationProperty
-> AppIntegrationsConfigurationProperty
-> AppIntegrationsConfigurationProperty
set PropertyType "ObjectFields" AppIntegrationsConfigurationProperty
newValue AppIntegrationsConfigurationProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: AppIntegrationsConfigurationProperty -> ()
appIntegrationArn :: AppIntegrationsConfigurationProperty -> Value Text
objectFields :: AppIntegrationsConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
appIntegrationArn :: Value Text
objectFields :: Maybe (ValueList Text)
..}
= AppIntegrationsConfigurationProperty
{objectFields :: Maybe (ValueList Text)
objectFields = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ObjectFields" AppIntegrationsConfigurationProperty
ValueList Text
newValue, ()
Value Text
haddock_workaround_ :: ()
appIntegrationArn :: Value Text
haddock_workaround_ :: ()
appIntegrationArn :: Value Text
..}