WebCrawlerSeedUrlConfigurationProperty Struct
Provides the configuration information of the seed or starting point URLs to crawl.
When selecting websites to index, you must adhere to the Amazon Acceptable Use Policy and all other Amazon terms. Remember that you must only use the Amazon Kendra web crawler to index your own webpages, or webpages that you have authorization to index.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kendra as kendra } from 'aws-cdk-lib';
const webCrawlerSeedUrlConfigurationProperty: kendra.CfnDataSource.WebCrawlerSeedUrlConfigurationProperty = {
seedUrls: ['seedUrls'],
// the properties below are optional
webCrawlerMode: 'webCrawlerMode',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_kendra as kendra
web_crawler_seed_url_configuration_property = kendra.CfnDataSource.WebCrawlerSeedUrlConfigurationProperty(
seed_urls=["seedUrls"],
# the properties below are optional
web_crawler_mode="webCrawlerMode"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.kendra.*;
WebCrawlerSeedUrlConfigurationProperty webCrawlerSeedUrlConfigurationProperty = WebCrawlerSeedUrlConfigurationProperty.builder()
.seedUrls(List.of("seedUrls"))
// the properties below are optional
.webCrawlerMode("webCrawlerMode")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Kendra;
var webCrawlerSeedUrlConfigurationProperty = new WebCrawlerSeedUrlConfigurationProperty {
SeedUrls = new [] { "seedUrls" },
// the properties below are optional
WebCrawlerMode = "webCrawlerMode"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
webCrawlerSeedUrlConfigurationProperty := &WebCrawlerSeedUrlConfigurationProperty{
SeedUrls: []*string{
jsii.String("seedUrls"),
},
// the properties below are optional
WebCrawlerMode: jsii.String("webCrawlerMode"),
}
Properties
seedUrlsstring[]seed_urlstyping.List[str]seedUrlsList<String>SeedUrlsstring[]SeedUrls*[]*string required #The list of seed or starting point URLs of the websites you want to crawl.
The list can include a maximum of 100 seed URLs.
webCrawlerModeoptionalstringweb_crawler_modeoptionalstrwebCrawlerModeoptionalStringWebCrawlerModeoptionalstringWebCrawlerModeoptional*string #You can choose one of the following modes:.
notes
HOST_ONLY—crawl only the website host names. For example, if the seed URL is "abc.example.com", then only URLs with host name "abc.example.com" are crawled.SUBDOMAINS—crawl the website host names with subdomains. For example, if the seed URL is "abc.example.com", then "a.abc.example.com" and "b.abc.example.com" are also crawled.EVERYTHING—crawl the website host names with subdomains and other domains that the web pages link to.
The default mode is set to HOST_ONLY .