@Generated(value="software.amazon.awssdk:codegen") public final class WebCrawlerConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<WebCrawlerConfiguration.Builder,WebCrawlerConfiguration>
Provides the configuration information required for Amazon Kendra Web Crawler.
| Modifier and Type | Class and Description |
|---|---|
static interface |
WebCrawlerConfiguration.Builder |
| Modifier and Type | Method and Description |
|---|---|
AuthenticationConfiguration |
authenticationConfiguration()
Configuration information required to connect to websites using authentication.
|
static WebCrawlerConfiguration.Builder |
builder() |
Integer |
crawlDepth()
Specifies the number of levels in a website that you want to crawl.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasUrlExclusionPatterns()
For responses, this returns true if the service returned a value for the UrlExclusionPatterns property.
|
boolean |
hasUrlInclusionPatterns()
For responses, this returns true if the service returned a value for the UrlInclusionPatterns property.
|
Float |
maxContentSizePerPageInMegaBytes()
The maximum size (in MB) of a web page or attachment to crawl.
|
Integer |
maxLinksPerPage()
The maximum number of URLs on a web page to include when crawling a website.
|
Integer |
maxUrlsPerMinuteCrawlRate()
The maximum number of URLs crawled per website host per minute.
|
ProxyConfiguration |
proxyConfiguration()
Configuration information required to connect to your internal websites via a web proxy.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends WebCrawlerConfiguration.Builder> |
serializableBuilderClass() |
WebCrawlerConfiguration.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
List<String> |
urlExclusionPatterns()
A list of regular expression patterns to exclude certain URLs to crawl.
|
List<String> |
urlInclusionPatterns()
A list of regular expression patterns to include certain URLs to crawl.
|
Urls |
urls()
Specifies the seed or starting point URLs of the websites or the sitemap URLs of the websites you want to crawl.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Urls urls()
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 Amazon Kendra Web Crawler to index your own web pages, or web pages that you have authorization to index.
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 Amazon Kendra Web Crawler to index your own web pages, or web pages that you have authorization to index.
public final Integer crawlDepth()
Specifies the number of levels in a website that you want to crawl.
The first level begins from the website seed or starting point URL. For example, if a website has three levels—index level (the seed in this example), sections level, and subsections level—and you are only interested in crawling information up to the sections level (levels 0-1), you can set your depth to 1.
The default crawl depth is set to 2.
The first level begins from the website seed or starting point URL. For example, if a website has three levels—index level (the seed in this example), sections level, and subsections level—and you are only interested in crawling information up to the sections level (levels 0-1), you can set your depth to 1.
The default crawl depth is set to 2.
public final Integer maxLinksPerPage()
The maximum number of URLs on a web page to include when crawling a website. This number is per web page.
As a website’s web pages are crawled, any URLs the web pages link to are also crawled. URLs on a web page are crawled in order of appearance.
The default maximum links per page is 100.
As a website’s web pages are crawled, any URLs the web pages link to are also crawled. URLs on a web page are crawled in order of appearance.
The default maximum links per page is 100.
public final Float maxContentSizePerPageInMegaBytes()
The maximum size (in MB) of a web page or attachment to crawl.
Files larger than this size (in MB) are skipped/not crawled.
The default maximum size of a web page or attachment is set to 50 MB.
Files larger than this size (in MB) are skipped/not crawled.
The default maximum size of a web page or attachment is set to 50 MB.
public final Integer maxUrlsPerMinuteCrawlRate()
The maximum number of URLs crawled per website host per minute.
A minimum of one URL is required.
The default maximum number of URLs crawled per website host per minute is 300.
A minimum of one URL is required.
The default maximum number of URLs crawled per website host per minute is 300.
public final boolean hasUrlInclusionPatterns()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> urlInclusionPatterns()
A list of regular expression patterns to include certain URLs to crawl. URLs that match the patterns are included in the index. URLs that don't match the patterns are excluded from the index. If a URL matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the URL file isn't included in the index.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasUrlInclusionPatterns() method.
public final boolean hasUrlExclusionPatterns()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> urlExclusionPatterns()
A list of regular expression patterns to exclude certain URLs to crawl. URLs that match the patterns are excluded from the index. URLs that don't match the patterns are included in the index. If a URL matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the URL file isn't included in the index.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasUrlExclusionPatterns() method.
public final ProxyConfiguration proxyConfiguration()
Configuration information required to connect to your internal websites via a web proxy.
You must provide the website host name and port number. For example, the host name of https://a.example.com/page1.html is "a.example.com" and the port is 443, the standard port for HTTPS.
Web proxy credentials are optional and you can use them to connect to a web proxy server that requires basic authentication. To store web proxy credentials, you use a secret in Secrets Manager.
You must provide the website host name and port number. For example, the host name of https://a.example.com/page1.html is "a.example.com" and the port is 443, the standard port for HTTPS.
Web proxy credentials are optional and you can use them to connect to a web proxy server that requires basic authentication. To store web proxy credentials, you use a secret in Secrets Manager.
public final AuthenticationConfiguration authenticationConfiguration()
Configuration information required to connect to websites using authentication.
You can connect to websites using basic authentication of user name and password. You use a secret in Secrets Manager to store your authentication credentials.
You must provide the website host name and port number. For example, the host name of https://a.example.com/page1.html is "a.example.com" and the port is 443, the standard port for HTTPS.
You can connect to websites using basic authentication of user name and password. You use a secret in Secrets Manager to store your authentication credentials.
You must provide the website host name and port number. For example, the host name of https://a.example.com/page1.html is "a.example.com" and the port is 443, the standard port for HTTPS.
public WebCrawlerConfiguration.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<WebCrawlerConfiguration.Builder,WebCrawlerConfiguration>public static WebCrawlerConfiguration.Builder builder()
public static Class<? extends WebCrawlerConfiguration.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.