module Stratosphere.Kendra.DataSource.WebCrawlerAuthenticationConfigurationProperty (
module Exports, WebCrawlerAuthenticationConfigurationProperty(..),
mkWebCrawlerAuthenticationConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Kendra.DataSource.WebCrawlerBasicAuthenticationProperty as Exports
import Stratosphere.ResourceProperties
data WebCrawlerAuthenticationConfigurationProperty
=
WebCrawlerAuthenticationConfigurationProperty {WebCrawlerAuthenticationConfigurationProperty -> ()
haddock_workaround_ :: (),
WebCrawlerAuthenticationConfigurationProperty
-> Maybe [WebCrawlerBasicAuthenticationProperty]
basicAuthentication :: (Prelude.Maybe [WebCrawlerBasicAuthenticationProperty])}
deriving stock (WebCrawlerAuthenticationConfigurationProperty
-> WebCrawlerAuthenticationConfigurationProperty -> Bool
(WebCrawlerAuthenticationConfigurationProperty
-> WebCrawlerAuthenticationConfigurationProperty -> Bool)
-> (WebCrawlerAuthenticationConfigurationProperty
-> WebCrawlerAuthenticationConfigurationProperty -> Bool)
-> Eq WebCrawlerAuthenticationConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WebCrawlerAuthenticationConfigurationProperty
-> WebCrawlerAuthenticationConfigurationProperty -> Bool
== :: WebCrawlerAuthenticationConfigurationProperty
-> WebCrawlerAuthenticationConfigurationProperty -> Bool
$c/= :: WebCrawlerAuthenticationConfigurationProperty
-> WebCrawlerAuthenticationConfigurationProperty -> Bool
/= :: WebCrawlerAuthenticationConfigurationProperty
-> WebCrawlerAuthenticationConfigurationProperty -> Bool
Prelude.Eq, Int -> WebCrawlerAuthenticationConfigurationProperty -> ShowS
[WebCrawlerAuthenticationConfigurationProperty] -> ShowS
WebCrawlerAuthenticationConfigurationProperty -> String
(Int -> WebCrawlerAuthenticationConfigurationProperty -> ShowS)
-> (WebCrawlerAuthenticationConfigurationProperty -> String)
-> ([WebCrawlerAuthenticationConfigurationProperty] -> ShowS)
-> Show WebCrawlerAuthenticationConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WebCrawlerAuthenticationConfigurationProperty -> ShowS
showsPrec :: Int -> WebCrawlerAuthenticationConfigurationProperty -> ShowS
$cshow :: WebCrawlerAuthenticationConfigurationProperty -> String
show :: WebCrawlerAuthenticationConfigurationProperty -> String
$cshowList :: [WebCrawlerAuthenticationConfigurationProperty] -> ShowS
showList :: [WebCrawlerAuthenticationConfigurationProperty] -> ShowS
Prelude.Show)
mkWebCrawlerAuthenticationConfigurationProperty ::
WebCrawlerAuthenticationConfigurationProperty
mkWebCrawlerAuthenticationConfigurationProperty :: WebCrawlerAuthenticationConfigurationProperty
mkWebCrawlerAuthenticationConfigurationProperty
= WebCrawlerAuthenticationConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), basicAuthentication :: Maybe [WebCrawlerBasicAuthenticationProperty]
basicAuthentication = Maybe [WebCrawlerBasicAuthenticationProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties WebCrawlerAuthenticationConfigurationProperty where
toResourceProperties :: WebCrawlerAuthenticationConfigurationProperty -> ResourceProperties
toResourceProperties
WebCrawlerAuthenticationConfigurationProperty {Maybe [WebCrawlerBasicAuthenticationProperty]
()
haddock_workaround_ :: WebCrawlerAuthenticationConfigurationProperty -> ()
basicAuthentication :: WebCrawlerAuthenticationConfigurationProperty
-> Maybe [WebCrawlerBasicAuthenticationProperty]
haddock_workaround_ :: ()
basicAuthentication :: Maybe [WebCrawlerBasicAuthenticationProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Kendra::DataSource.WebCrawlerAuthenticationConfiguration",
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 -> [WebCrawlerBasicAuthenticationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"BasicAuthentication" ([WebCrawlerBasicAuthenticationProperty] -> (Key, Value))
-> Maybe [WebCrawlerBasicAuthenticationProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [WebCrawlerBasicAuthenticationProperty]
basicAuthentication])}
instance JSON.ToJSON WebCrawlerAuthenticationConfigurationProperty where
toJSON :: WebCrawlerAuthenticationConfigurationProperty -> Value
toJSON WebCrawlerAuthenticationConfigurationProperty {Maybe [WebCrawlerBasicAuthenticationProperty]
()
haddock_workaround_ :: WebCrawlerAuthenticationConfigurationProperty -> ()
basicAuthentication :: WebCrawlerAuthenticationConfigurationProperty
-> Maybe [WebCrawlerBasicAuthenticationProperty]
haddock_workaround_ :: ()
basicAuthentication :: Maybe [WebCrawlerBasicAuthenticationProperty]
..}
= [(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 -> [WebCrawlerBasicAuthenticationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"BasicAuthentication" ([WebCrawlerBasicAuthenticationProperty] -> (Key, Value))
-> Maybe [WebCrawlerBasicAuthenticationProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [WebCrawlerBasicAuthenticationProperty]
basicAuthentication]))
instance Property "BasicAuthentication" WebCrawlerAuthenticationConfigurationProperty where
type PropertyType "BasicAuthentication" WebCrawlerAuthenticationConfigurationProperty = [WebCrawlerBasicAuthenticationProperty]
set :: PropertyType
"BasicAuthentication" WebCrawlerAuthenticationConfigurationProperty
-> WebCrawlerAuthenticationConfigurationProperty
-> WebCrawlerAuthenticationConfigurationProperty
set PropertyType
"BasicAuthentication" WebCrawlerAuthenticationConfigurationProperty
newValue WebCrawlerAuthenticationConfigurationProperty {Maybe [WebCrawlerBasicAuthenticationProperty]
()
haddock_workaround_ :: WebCrawlerAuthenticationConfigurationProperty -> ()
basicAuthentication :: WebCrawlerAuthenticationConfigurationProperty
-> Maybe [WebCrawlerBasicAuthenticationProperty]
haddock_workaround_ :: ()
basicAuthentication :: Maybe [WebCrawlerBasicAuthenticationProperty]
..}
= WebCrawlerAuthenticationConfigurationProperty
{basicAuthentication :: Maybe [WebCrawlerBasicAuthenticationProperty]
basicAuthentication = [WebCrawlerBasicAuthenticationProperty]
-> Maybe [WebCrawlerBasicAuthenticationProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [WebCrawlerBasicAuthenticationProperty]
PropertyType
"BasicAuthentication" WebCrawlerAuthenticationConfigurationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}