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