module Stratosphere.Bedrock.DataSource.ConfluenceSourceConfigurationProperty (
        ConfluenceSourceConfigurationProperty(..),
        mkConfluenceSourceConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ConfluenceSourceConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-confluencesourceconfiguration.html>
    ConfluenceSourceConfigurationProperty {ConfluenceSourceConfigurationProperty -> ()
haddock_workaround_ :: (),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-confluencesourceconfiguration.html#cfn-bedrock-datasource-confluencesourceconfiguration-authtype>
                                           ConfluenceSourceConfigurationProperty -> Value Text
authType :: (Value Prelude.Text),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-confluencesourceconfiguration.html#cfn-bedrock-datasource-confluencesourceconfiguration-credentialssecretarn>
                                           ConfluenceSourceConfigurationProperty -> Value Text
credentialsSecretArn :: (Value Prelude.Text),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-confluencesourceconfiguration.html#cfn-bedrock-datasource-confluencesourceconfiguration-hosttype>
                                           ConfluenceSourceConfigurationProperty -> Value Text
hostType :: (Value Prelude.Text),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-confluencesourceconfiguration.html#cfn-bedrock-datasource-confluencesourceconfiguration-hosturl>
                                           ConfluenceSourceConfigurationProperty -> Value Text
hostUrl :: (Value Prelude.Text)}
  deriving stock (ConfluenceSourceConfigurationProperty
-> ConfluenceSourceConfigurationProperty -> Bool
(ConfluenceSourceConfigurationProperty
 -> ConfluenceSourceConfigurationProperty -> Bool)
-> (ConfluenceSourceConfigurationProperty
    -> ConfluenceSourceConfigurationProperty -> Bool)
-> Eq ConfluenceSourceConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ConfluenceSourceConfigurationProperty
-> ConfluenceSourceConfigurationProperty -> Bool
== :: ConfluenceSourceConfigurationProperty
-> ConfluenceSourceConfigurationProperty -> Bool
$c/= :: ConfluenceSourceConfigurationProperty
-> ConfluenceSourceConfigurationProperty -> Bool
/= :: ConfluenceSourceConfigurationProperty
-> ConfluenceSourceConfigurationProperty -> Bool
Prelude.Eq, Int -> ConfluenceSourceConfigurationProperty -> ShowS
[ConfluenceSourceConfigurationProperty] -> ShowS
ConfluenceSourceConfigurationProperty -> String
(Int -> ConfluenceSourceConfigurationProperty -> ShowS)
-> (ConfluenceSourceConfigurationProperty -> String)
-> ([ConfluenceSourceConfigurationProperty] -> ShowS)
-> Show ConfluenceSourceConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ConfluenceSourceConfigurationProperty -> ShowS
showsPrec :: Int -> ConfluenceSourceConfigurationProperty -> ShowS
$cshow :: ConfluenceSourceConfigurationProperty -> String
show :: ConfluenceSourceConfigurationProperty -> String
$cshowList :: [ConfluenceSourceConfigurationProperty] -> ShowS
showList :: [ConfluenceSourceConfigurationProperty] -> ShowS
Prelude.Show)
mkConfluenceSourceConfigurationProperty ::
  Value Prelude.Text
  -> Value Prelude.Text
     -> Value Prelude.Text
        -> Value Prelude.Text -> ConfluenceSourceConfigurationProperty
mkConfluenceSourceConfigurationProperty :: Value Text
-> Value Text
-> Value Text
-> Value Text
-> ConfluenceSourceConfigurationProperty
mkConfluenceSourceConfigurationProperty
  Value Text
authType
  Value Text
credentialsSecretArn
  Value Text
hostType
  Value Text
hostUrl
  = ConfluenceSourceConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), authType :: Value Text
authType = Value Text
authType,
       credentialsSecretArn :: Value Text
credentialsSecretArn = Value Text
credentialsSecretArn, hostType :: Value Text
hostType = Value Text
hostType,
       hostUrl :: Value Text
hostUrl = Value Text
hostUrl}
instance ToResourceProperties ConfluenceSourceConfigurationProperty where
  toResourceProperties :: ConfluenceSourceConfigurationProperty -> ResourceProperties
toResourceProperties ConfluenceSourceConfigurationProperty {()
Value Text
haddock_workaround_ :: ConfluenceSourceConfigurationProperty -> ()
authType :: ConfluenceSourceConfigurationProperty -> Value Text
credentialsSecretArn :: ConfluenceSourceConfigurationProperty -> Value Text
hostType :: ConfluenceSourceConfigurationProperty -> Value Text
hostUrl :: ConfluenceSourceConfigurationProperty -> Value Text
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
hostType :: Value Text
hostUrl :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Bedrock::DataSource.ConfluenceSourceConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"AuthType" 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
authType,
                       Key
"CredentialsSecretArn" 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
credentialsSecretArn,
                       Key
"HostType" 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
hostType, Key
"HostUrl" 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
hostUrl]}
instance JSON.ToJSON ConfluenceSourceConfigurationProperty where
  toJSON :: ConfluenceSourceConfigurationProperty -> Value
toJSON ConfluenceSourceConfigurationProperty {()
Value Text
haddock_workaround_ :: ConfluenceSourceConfigurationProperty -> ()
authType :: ConfluenceSourceConfigurationProperty -> Value Text
credentialsSecretArn :: ConfluenceSourceConfigurationProperty -> Value Text
hostType :: ConfluenceSourceConfigurationProperty -> Value Text
hostUrl :: ConfluenceSourceConfigurationProperty -> Value Text
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
hostType :: Value Text
hostUrl :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"AuthType" 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
authType,
         Key
"CredentialsSecretArn" 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
credentialsSecretArn,
         Key
"HostType" 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
hostType, Key
"HostUrl" 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
hostUrl]
instance Property "AuthType" ConfluenceSourceConfigurationProperty where
  type PropertyType "AuthType" ConfluenceSourceConfigurationProperty = Value Prelude.Text
  set :: PropertyType "AuthType" ConfluenceSourceConfigurationProperty
-> ConfluenceSourceConfigurationProperty
-> ConfluenceSourceConfigurationProperty
set PropertyType "AuthType" ConfluenceSourceConfigurationProperty
newValue ConfluenceSourceConfigurationProperty {()
Value Text
haddock_workaround_ :: ConfluenceSourceConfigurationProperty -> ()
authType :: ConfluenceSourceConfigurationProperty -> Value Text
credentialsSecretArn :: ConfluenceSourceConfigurationProperty -> Value Text
hostType :: ConfluenceSourceConfigurationProperty -> Value Text
hostUrl :: ConfluenceSourceConfigurationProperty -> Value Text
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
hostType :: Value Text
hostUrl :: Value Text
..}
    = ConfluenceSourceConfigurationProperty {authType :: Value Text
authType = PropertyType "AuthType" ConfluenceSourceConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
credentialsSecretArn :: Value Text
hostType :: Value Text
hostUrl :: Value Text
haddock_workaround_ :: ()
credentialsSecretArn :: Value Text
hostType :: Value Text
hostUrl :: Value Text
..}
instance Property "CredentialsSecretArn" ConfluenceSourceConfigurationProperty where
  type PropertyType "CredentialsSecretArn" ConfluenceSourceConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "CredentialsSecretArn" ConfluenceSourceConfigurationProperty
-> ConfluenceSourceConfigurationProperty
-> ConfluenceSourceConfigurationProperty
set PropertyType
  "CredentialsSecretArn" ConfluenceSourceConfigurationProperty
newValue ConfluenceSourceConfigurationProperty {()
Value Text
haddock_workaround_ :: ConfluenceSourceConfigurationProperty -> ()
authType :: ConfluenceSourceConfigurationProperty -> Value Text
credentialsSecretArn :: ConfluenceSourceConfigurationProperty -> Value Text
hostType :: ConfluenceSourceConfigurationProperty -> Value Text
hostUrl :: ConfluenceSourceConfigurationProperty -> Value Text
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
hostType :: Value Text
hostUrl :: Value Text
..}
    = ConfluenceSourceConfigurationProperty
        {credentialsSecretArn :: Value Text
credentialsSecretArn = PropertyType
  "CredentialsSecretArn" ConfluenceSourceConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
authType :: Value Text
hostType :: Value Text
hostUrl :: Value Text
haddock_workaround_ :: ()
authType :: Value Text
hostType :: Value Text
hostUrl :: Value Text
..}
instance Property "HostType" ConfluenceSourceConfigurationProperty where
  type PropertyType "HostType" ConfluenceSourceConfigurationProperty = Value Prelude.Text
  set :: PropertyType "HostType" ConfluenceSourceConfigurationProperty
-> ConfluenceSourceConfigurationProperty
-> ConfluenceSourceConfigurationProperty
set PropertyType "HostType" ConfluenceSourceConfigurationProperty
newValue ConfluenceSourceConfigurationProperty {()
Value Text
haddock_workaround_ :: ConfluenceSourceConfigurationProperty -> ()
authType :: ConfluenceSourceConfigurationProperty -> Value Text
credentialsSecretArn :: ConfluenceSourceConfigurationProperty -> Value Text
hostType :: ConfluenceSourceConfigurationProperty -> Value Text
hostUrl :: ConfluenceSourceConfigurationProperty -> Value Text
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
hostType :: Value Text
hostUrl :: Value Text
..}
    = ConfluenceSourceConfigurationProperty {hostType :: Value Text
hostType = PropertyType "HostType" ConfluenceSourceConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
hostUrl :: Value Text
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
hostUrl :: Value Text
..}
instance Property "HostUrl" ConfluenceSourceConfigurationProperty where
  type PropertyType "HostUrl" ConfluenceSourceConfigurationProperty = Value Prelude.Text
  set :: PropertyType "HostUrl" ConfluenceSourceConfigurationProperty
-> ConfluenceSourceConfigurationProperty
-> ConfluenceSourceConfigurationProperty
set PropertyType "HostUrl" ConfluenceSourceConfigurationProperty
newValue ConfluenceSourceConfigurationProperty {()
Value Text
haddock_workaround_ :: ConfluenceSourceConfigurationProperty -> ()
authType :: ConfluenceSourceConfigurationProperty -> Value Text
credentialsSecretArn :: ConfluenceSourceConfigurationProperty -> Value Text
hostType :: ConfluenceSourceConfigurationProperty -> Value Text
hostUrl :: ConfluenceSourceConfigurationProperty -> Value Text
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
hostType :: Value Text
hostUrl :: Value Text
..}
    = ConfluenceSourceConfigurationProperty {hostUrl :: Value Text
hostUrl = PropertyType "HostUrl" ConfluenceSourceConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
hostType :: Value Text
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
hostType :: Value Text
..}