module Stratosphere.Bedrock.DataSource.SharePointSourceConfigurationProperty (
        SharePointSourceConfigurationProperty(..),
        mkSharePointSourceConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SharePointSourceConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointsourceconfiguration.html>
    SharePointSourceConfigurationProperty {SharePointSourceConfigurationProperty -> ()
haddock_workaround_ :: (),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointsourceconfiguration.html#cfn-bedrock-datasource-sharepointsourceconfiguration-authtype>
                                           SharePointSourceConfigurationProperty -> Value Text
authType :: (Value Prelude.Text),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointsourceconfiguration.html#cfn-bedrock-datasource-sharepointsourceconfiguration-credentialssecretarn>
                                           SharePointSourceConfigurationProperty -> Value Text
credentialsSecretArn :: (Value Prelude.Text),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointsourceconfiguration.html#cfn-bedrock-datasource-sharepointsourceconfiguration-domain>
                                           SharePointSourceConfigurationProperty -> Value Text
domain :: (Value Prelude.Text),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointsourceconfiguration.html#cfn-bedrock-datasource-sharepointsourceconfiguration-hosttype>
                                           SharePointSourceConfigurationProperty -> Value Text
hostType :: (Value Prelude.Text),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointsourceconfiguration.html#cfn-bedrock-datasource-sharepointsourceconfiguration-siteurls>
                                           SharePointSourceConfigurationProperty -> ValueList Text
siteUrls :: (ValueList Prelude.Text),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointsourceconfiguration.html#cfn-bedrock-datasource-sharepointsourceconfiguration-tenantid>
                                           SharePointSourceConfigurationProperty -> Maybe (Value Text)
tenantId :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (SharePointSourceConfigurationProperty
-> SharePointSourceConfigurationProperty -> Bool
(SharePointSourceConfigurationProperty
 -> SharePointSourceConfigurationProperty -> Bool)
-> (SharePointSourceConfigurationProperty
    -> SharePointSourceConfigurationProperty -> Bool)
-> Eq SharePointSourceConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SharePointSourceConfigurationProperty
-> SharePointSourceConfigurationProperty -> Bool
== :: SharePointSourceConfigurationProperty
-> SharePointSourceConfigurationProperty -> Bool
$c/= :: SharePointSourceConfigurationProperty
-> SharePointSourceConfigurationProperty -> Bool
/= :: SharePointSourceConfigurationProperty
-> SharePointSourceConfigurationProperty -> Bool
Prelude.Eq, Int -> SharePointSourceConfigurationProperty -> ShowS
[SharePointSourceConfigurationProperty] -> ShowS
SharePointSourceConfigurationProperty -> String
(Int -> SharePointSourceConfigurationProperty -> ShowS)
-> (SharePointSourceConfigurationProperty -> String)
-> ([SharePointSourceConfigurationProperty] -> ShowS)
-> Show SharePointSourceConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SharePointSourceConfigurationProperty -> ShowS
showsPrec :: Int -> SharePointSourceConfigurationProperty -> ShowS
$cshow :: SharePointSourceConfigurationProperty -> String
show :: SharePointSourceConfigurationProperty -> String
$cshowList :: [SharePointSourceConfigurationProperty] -> ShowS
showList :: [SharePointSourceConfigurationProperty] -> ShowS
Prelude.Show)
mkSharePointSourceConfigurationProperty ::
  Value Prelude.Text
  -> Value Prelude.Text
     -> Value Prelude.Text
        -> Value Prelude.Text
           -> ValueList Prelude.Text -> SharePointSourceConfigurationProperty
mkSharePointSourceConfigurationProperty :: Value Text
-> Value Text
-> Value Text
-> Value Text
-> ValueList Text
-> SharePointSourceConfigurationProperty
mkSharePointSourceConfigurationProperty
  Value Text
authType
  Value Text
credentialsSecretArn
  Value Text
domain
  Value Text
hostType
  ValueList Text
siteUrls
  = SharePointSourceConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), authType :: Value Text
authType = Value Text
authType,
       credentialsSecretArn :: Value Text
credentialsSecretArn = Value Text
credentialsSecretArn, domain :: Value Text
domain = Value Text
domain,
       hostType :: Value Text
hostType = Value Text
hostType, siteUrls :: ValueList Text
siteUrls = ValueList Text
siteUrls,
       tenantId :: Maybe (Value Text)
tenantId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SharePointSourceConfigurationProperty where
  toResourceProperties :: SharePointSourceConfigurationProperty -> ResourceProperties
toResourceProperties SharePointSourceConfigurationProperty {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: SharePointSourceConfigurationProperty -> ()
authType :: SharePointSourceConfigurationProperty -> Value Text
credentialsSecretArn :: SharePointSourceConfigurationProperty -> Value Text
domain :: SharePointSourceConfigurationProperty -> Value Text
hostType :: SharePointSourceConfigurationProperty -> Value Text
siteUrls :: SharePointSourceConfigurationProperty -> ValueList Text
tenantId :: SharePointSourceConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
domain :: Value Text
hostType :: Value Text
siteUrls :: ValueList Text
tenantId :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Bedrock::DataSource.SharePointSourceConfiguration",
         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
"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
"Domain" 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
domain, 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
"SiteUrls" 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..= ValueList Text
siteUrls]
                           ([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
"TenantId" (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)
tenantId]))}
instance JSON.ToJSON SharePointSourceConfigurationProperty where
  toJSON :: SharePointSourceConfigurationProperty -> Value
toJSON SharePointSourceConfigurationProperty {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: SharePointSourceConfigurationProperty -> ()
authType :: SharePointSourceConfigurationProperty -> Value Text
credentialsSecretArn :: SharePointSourceConfigurationProperty -> Value Text
domain :: SharePointSourceConfigurationProperty -> Value Text
hostType :: SharePointSourceConfigurationProperty -> Value Text
siteUrls :: SharePointSourceConfigurationProperty -> ValueList Text
tenantId :: SharePointSourceConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
domain :: Value Text
hostType :: Value Text
siteUrls :: ValueList Text
tenantId :: Maybe (Value 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
"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
"Domain" 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
domain, 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
"SiteUrls" 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..= ValueList Text
siteUrls]
              ([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
"TenantId" (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)
tenantId])))
instance Property "AuthType" SharePointSourceConfigurationProperty where
  type PropertyType "AuthType" SharePointSourceConfigurationProperty = Value Prelude.Text
  set :: PropertyType "AuthType" SharePointSourceConfigurationProperty
-> SharePointSourceConfigurationProperty
-> SharePointSourceConfigurationProperty
set PropertyType "AuthType" SharePointSourceConfigurationProperty
newValue SharePointSourceConfigurationProperty {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: SharePointSourceConfigurationProperty -> ()
authType :: SharePointSourceConfigurationProperty -> Value Text
credentialsSecretArn :: SharePointSourceConfigurationProperty -> Value Text
domain :: SharePointSourceConfigurationProperty -> Value Text
hostType :: SharePointSourceConfigurationProperty -> Value Text
siteUrls :: SharePointSourceConfigurationProperty -> ValueList Text
tenantId :: SharePointSourceConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
domain :: Value Text
hostType :: Value Text
siteUrls :: ValueList Text
tenantId :: Maybe (Value Text)
..}
    = SharePointSourceConfigurationProperty {authType :: Value Text
authType = PropertyType "AuthType" SharePointSourceConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
credentialsSecretArn :: Value Text
domain :: Value Text
hostType :: Value Text
siteUrls :: ValueList Text
tenantId :: Maybe (Value Text)
haddock_workaround_ :: ()
credentialsSecretArn :: Value Text
domain :: Value Text
hostType :: Value Text
siteUrls :: ValueList Text
tenantId :: Maybe (Value Text)
..}
instance Property "CredentialsSecretArn" SharePointSourceConfigurationProperty where
  type PropertyType "CredentialsSecretArn" SharePointSourceConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "CredentialsSecretArn" SharePointSourceConfigurationProperty
-> SharePointSourceConfigurationProperty
-> SharePointSourceConfigurationProperty
set PropertyType
  "CredentialsSecretArn" SharePointSourceConfigurationProperty
newValue SharePointSourceConfigurationProperty {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: SharePointSourceConfigurationProperty -> ()
authType :: SharePointSourceConfigurationProperty -> Value Text
credentialsSecretArn :: SharePointSourceConfigurationProperty -> Value Text
domain :: SharePointSourceConfigurationProperty -> Value Text
hostType :: SharePointSourceConfigurationProperty -> Value Text
siteUrls :: SharePointSourceConfigurationProperty -> ValueList Text
tenantId :: SharePointSourceConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
domain :: Value Text
hostType :: Value Text
siteUrls :: ValueList Text
tenantId :: Maybe (Value Text)
..}
    = SharePointSourceConfigurationProperty
        {credentialsSecretArn :: Value Text
credentialsSecretArn = PropertyType
  "CredentialsSecretArn" SharePointSourceConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
authType :: Value Text
domain :: Value Text
hostType :: Value Text
siteUrls :: ValueList Text
tenantId :: Maybe (Value Text)
haddock_workaround_ :: ()
authType :: Value Text
domain :: Value Text
hostType :: Value Text
siteUrls :: ValueList Text
tenantId :: Maybe (Value Text)
..}
instance Property "Domain" SharePointSourceConfigurationProperty where
  type PropertyType "Domain" SharePointSourceConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Domain" SharePointSourceConfigurationProperty
-> SharePointSourceConfigurationProperty
-> SharePointSourceConfigurationProperty
set PropertyType "Domain" SharePointSourceConfigurationProperty
newValue SharePointSourceConfigurationProperty {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: SharePointSourceConfigurationProperty -> ()
authType :: SharePointSourceConfigurationProperty -> Value Text
credentialsSecretArn :: SharePointSourceConfigurationProperty -> Value Text
domain :: SharePointSourceConfigurationProperty -> Value Text
hostType :: SharePointSourceConfigurationProperty -> Value Text
siteUrls :: SharePointSourceConfigurationProperty -> ValueList Text
tenantId :: SharePointSourceConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
domain :: Value Text
hostType :: Value Text
siteUrls :: ValueList Text
tenantId :: Maybe (Value Text)
..}
    = SharePointSourceConfigurationProperty {domain :: Value Text
domain = PropertyType "Domain" SharePointSourceConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
hostType :: Value Text
siteUrls :: ValueList Text
tenantId :: Maybe (Value Text)
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
hostType :: Value Text
siteUrls :: ValueList Text
tenantId :: Maybe (Value Text)
..}
instance Property "HostType" SharePointSourceConfigurationProperty where
  type PropertyType "HostType" SharePointSourceConfigurationProperty = Value Prelude.Text
  set :: PropertyType "HostType" SharePointSourceConfigurationProperty
-> SharePointSourceConfigurationProperty
-> SharePointSourceConfigurationProperty
set PropertyType "HostType" SharePointSourceConfigurationProperty
newValue SharePointSourceConfigurationProperty {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: SharePointSourceConfigurationProperty -> ()
authType :: SharePointSourceConfigurationProperty -> Value Text
credentialsSecretArn :: SharePointSourceConfigurationProperty -> Value Text
domain :: SharePointSourceConfigurationProperty -> Value Text
hostType :: SharePointSourceConfigurationProperty -> Value Text
siteUrls :: SharePointSourceConfigurationProperty -> ValueList Text
tenantId :: SharePointSourceConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
domain :: Value Text
hostType :: Value Text
siteUrls :: ValueList Text
tenantId :: Maybe (Value Text)
..}
    = SharePointSourceConfigurationProperty {hostType :: Value Text
hostType = PropertyType "HostType" SharePointSourceConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
domain :: Value Text
siteUrls :: ValueList Text
tenantId :: Maybe (Value Text)
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
domain :: Value Text
siteUrls :: ValueList Text
tenantId :: Maybe (Value Text)
..}
instance Property "SiteUrls" SharePointSourceConfigurationProperty where
  type PropertyType "SiteUrls" SharePointSourceConfigurationProperty = ValueList Prelude.Text
  set :: PropertyType "SiteUrls" SharePointSourceConfigurationProperty
-> SharePointSourceConfigurationProperty
-> SharePointSourceConfigurationProperty
set PropertyType "SiteUrls" SharePointSourceConfigurationProperty
newValue SharePointSourceConfigurationProperty {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: SharePointSourceConfigurationProperty -> ()
authType :: SharePointSourceConfigurationProperty -> Value Text
credentialsSecretArn :: SharePointSourceConfigurationProperty -> Value Text
domain :: SharePointSourceConfigurationProperty -> Value Text
hostType :: SharePointSourceConfigurationProperty -> Value Text
siteUrls :: SharePointSourceConfigurationProperty -> ValueList Text
tenantId :: SharePointSourceConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
domain :: Value Text
hostType :: Value Text
siteUrls :: ValueList Text
tenantId :: Maybe (Value Text)
..}
    = SharePointSourceConfigurationProperty {siteUrls :: ValueList Text
siteUrls = PropertyType "SiteUrls" SharePointSourceConfigurationProperty
ValueList Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
domain :: Value Text
hostType :: Value Text
tenantId :: Maybe (Value Text)
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
domain :: Value Text
hostType :: Value Text
tenantId :: Maybe (Value Text)
..}
instance Property "TenantId" SharePointSourceConfigurationProperty where
  type PropertyType "TenantId" SharePointSourceConfigurationProperty = Value Prelude.Text
  set :: PropertyType "TenantId" SharePointSourceConfigurationProperty
-> SharePointSourceConfigurationProperty
-> SharePointSourceConfigurationProperty
set PropertyType "TenantId" SharePointSourceConfigurationProperty
newValue SharePointSourceConfigurationProperty {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: SharePointSourceConfigurationProperty -> ()
authType :: SharePointSourceConfigurationProperty -> Value Text
credentialsSecretArn :: SharePointSourceConfigurationProperty -> Value Text
domain :: SharePointSourceConfigurationProperty -> Value Text
hostType :: SharePointSourceConfigurationProperty -> Value Text
siteUrls :: SharePointSourceConfigurationProperty -> ValueList Text
tenantId :: SharePointSourceConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
domain :: Value Text
hostType :: Value Text
siteUrls :: ValueList Text
tenantId :: Maybe (Value Text)
..}
    = SharePointSourceConfigurationProperty
        {tenantId :: Maybe (Value Text)
tenantId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TenantId" SharePointSourceConfigurationProperty
Value Text
newValue, ()
ValueList Text
Value Text
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
domain :: Value Text
hostType :: Value Text
siteUrls :: ValueList Text
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
domain :: Value Text
hostType :: Value Text
siteUrls :: ValueList Text
..}