Skip to content
v2.278.0

WebDataSourceConfigurationProperty Struct ​

The configuration details for the web data source.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const webDataSourceConfigurationProperty: bedrock.CfnDataSource.WebDataSourceConfigurationProperty = {
  sourceConfiguration: {
    urlConfiguration: {
      seedUrls: [{
        url: 'url',
      }],
    },
  },

  // the properties below are optional
  crawlerConfiguration: {
    crawlerLimits: {
      maxPages: 123,
      rateLimit: 123,
    },
    exclusionFilters: ['exclusionFilters'],
    inclusionFilters: ['inclusionFilters'],
    scope: 'scope',
    userAgent: 'userAgent',
    userAgentHeader: 'userAgentHeader',
  },
};
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_bedrock as bedrock

web_data_source_configuration_property = bedrock.CfnDataSource.WebDataSourceConfigurationProperty(
    source_configuration=bedrock.CfnDataSource.WebSourceConfigurationProperty(
        url_configuration=bedrock.CfnDataSource.UrlConfigurationProperty(
            seed_urls=[bedrock.CfnDataSource.SeedUrlProperty(
                url="url"
            )]
        )
    ),

    # the properties below are optional
    crawler_configuration=bedrock.CfnDataSource.WebCrawlerConfigurationProperty(
        crawler_limits=bedrock.CfnDataSource.WebCrawlerLimitsProperty(
            max_pages=123,
            rate_limit=123
        ),
        exclusion_filters=["exclusionFilters"],
        inclusion_filters=["inclusionFilters"],
        scope="scope",
        user_agent="userAgent",
        user_agent_header="userAgentHeader"
    )
)
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.bedrock.*;

WebDataSourceConfigurationProperty webDataSourceConfigurationProperty = WebDataSourceConfigurationProperty.builder()
        .sourceConfiguration(WebSourceConfigurationProperty.builder()
                .urlConfiguration(UrlConfigurationProperty.builder()
                        .seedUrls(List.of(SeedUrlProperty.builder()
                                .url("url")
                                .build()))
                        .build())
                .build())

        // the properties below are optional
        .crawlerConfiguration(WebCrawlerConfigurationProperty.builder()
                .crawlerLimits(WebCrawlerLimitsProperty.builder()
                        .maxPages(123)
                        .rateLimit(123)
                        .build())
                .exclusionFilters(List.of("exclusionFilters"))
                .inclusionFilters(List.of("inclusionFilters"))
                .scope("scope")
                .userAgent("userAgent")
                .userAgentHeader("userAgentHeader")
                .build())
        .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.Bedrock;

var webDataSourceConfigurationProperty = new WebDataSourceConfigurationProperty {
    SourceConfiguration = new WebSourceConfigurationProperty {
        UrlConfiguration = new UrlConfigurationProperty {
            SeedUrls = new [] { new SeedUrlProperty {
                Url = "url"
            } }
        }
    },

    // the properties below are optional
    CrawlerConfiguration = new WebCrawlerConfigurationProperty {
        CrawlerLimits = new WebCrawlerLimitsProperty {
            MaxPages = 123,
            RateLimit = 123
        },
        ExclusionFilters = new [] { "exclusionFilters" },
        InclusionFilters = new [] { "inclusionFilters" },
        Scope = "scope",
        UserAgent = "userAgent",
        UserAgentHeader = "userAgentHeader"
    }
};
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"

webDataSourceConfigurationProperty := &WebDataSourceConfigurationProperty{
	SourceConfiguration: &WebSourceConfigurationProperty{
		UrlConfiguration: &UrlConfigurationProperty{
			SeedUrls: []interface{}{
				&SeedUrlProperty{
					Url: jsii.String("url"),
				},
			},
		},
	},

	// the properties below are optional
	CrawlerConfiguration: &WebCrawlerConfigurationProperty{
		CrawlerLimits: &WebCrawlerLimitsProperty{
			MaxPages: jsii.Number(123),
			RateLimit: jsii.Number(123),
		},
		ExclusionFilters: []*string{
			jsii.String("exclusionFilters"),
		},
		InclusionFilters: []*string{
			jsii.String("inclusionFilters"),
		},
		Scope: jsii.String("scope"),
		UserAgent: jsii.String("userAgent"),
		UserAgentHeader: jsii.String("userAgentHeader"),
	},
}

Properties ​

crawlerConfigurationoptionalIResolvable | CfnDataSource.WebCrawlerConfigurationPropertycrawler_configurationoptionaltyping.Union[IResolvable, WebCrawlerConfigurationProperty]crawlerConfigurationoptionalIResolvableCrawlerConfigurationoptionalIResolvableCrawlerConfigurationoptionalinterface{} #
The Web Crawler configuration details for the web data source.
sourceConfigurationIResolvable | CfnDataSource.WebSourceConfigurationPropertysource_configurationtyping.Union[IResolvable, WebSourceConfigurationProperty]sourceConfigurationIResolvableSourceConfigurationIResolvableSourceConfigurationinterface{} required #
The source configuration details for the web data source.