WebCrawlerUrlsProperty Struct
Specifies the seed or starting point URLs of the websites or the sitemap URLs of the websites you want to crawl.
You can include website subdomains. You can list up to 100 seed URLs and up to three sitemap URLs.
You can only crawl websites that use the secure communication protocol, Hypertext Transfer Protocol Secure (HTTPS). If you receive an error when crawling a website, it could be that the website is blocked from crawling.
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
// 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 webCrawlerUrlsProperty: kendra.CfnDataSource.WebCrawlerUrlsProperty = {
seedUrlConfiguration: {
seedUrls: ['seedUrls'],
// the properties below are optional
webCrawlerMode: 'webCrawlerMode',
},
siteMapsConfiguration: {
siteMaps: ['siteMaps'],
},
};
# 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_urls_property = kendra.CfnDataSource.WebCrawlerUrlsProperty(
seed_url_configuration=kendra.CfnDataSource.WebCrawlerSeedUrlConfigurationProperty(
seed_urls=["seedUrls"],
# the properties below are optional
web_crawler_mode="webCrawlerMode"
),
site_maps_configuration=kendra.CfnDataSource.WebCrawlerSiteMapsConfigurationProperty(
site_maps=["siteMaps"]
)
)
// 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.*;
WebCrawlerUrlsProperty webCrawlerUrlsProperty = WebCrawlerUrlsProperty.builder()
.seedUrlConfiguration(WebCrawlerSeedUrlConfigurationProperty.builder()
.seedUrls(List.of("seedUrls"))
// the properties below are optional
.webCrawlerMode("webCrawlerMode")
.build())
.siteMapsConfiguration(WebCrawlerSiteMapsConfigurationProperty.builder()
.siteMaps(List.of("siteMaps"))
.build())
.build();
// 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 webCrawlerUrlsProperty = new WebCrawlerUrlsProperty {
SeedUrlConfiguration = new WebCrawlerSeedUrlConfigurationProperty {
SeedUrls = new [] { "seedUrls" },
// the properties below are optional
WebCrawlerMode = "webCrawlerMode"
},
SiteMapsConfiguration = new WebCrawlerSiteMapsConfigurationProperty {
SiteMaps = new [] { "siteMaps" }
}
};
// 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"
webCrawlerUrlsProperty := &WebCrawlerUrlsProperty{
SeedUrlConfiguration: &WebCrawlerSeedUrlConfigurationProperty{
SeedUrls: []*string{
jsii.String("seedUrls"),
},
// the properties below are optional
WebCrawlerMode: jsii.String("webCrawlerMode"),
},
SiteMapsConfiguration: &WebCrawlerSiteMapsConfigurationProperty{
SiteMaps: []*string{
jsii.String("siteMaps"),
},
},
}
Properties
seedUrlConfigurationoptionalIResolvable | CfnDataSource.seed_url_configurationoptionaltyping.Union[IResolvable, WebCrawlerSeedUrlConfigurationProperty]seedUrlConfigurationoptionalIResolvableSeedUrlConfigurationoptionalIResolvableSeedUrlConfigurationoptionalinterface{} #You can choose to crawl only the website host names, or the website host names with subdomains, or the website host names with subdomains and other domains that the web pages link to.
You can list up to 100 seed URLs.
siteMapsConfigurationoptionalIResolvable | CfnDataSource.site_maps_configurationoptionaltyping.Union[IResolvable, WebCrawlerSiteMapsConfigurationProperty]siteMapsConfigurationoptionalIResolvableSiteMapsConfigurationoptionalIResolvableSiteMapsConfigurationoptionalinterface{} #Only URLs belonging to the same website host names are crawled. You can list up to three sitemap URLs.