# WebDataSourceConfigurationProperty

The configuration details for the web data source.

- Source: Generated at build time
- Type last changed: v2.154.1 · 23 Aug 2024

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    }
};
```

Golang:

```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

- `crawlerConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.WebCrawlerConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrock.CfnDataSource.WebCrawlerConfigurationProperty.html) — The Web Crawler configuration details for the web data source.

- `sourceConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.WebSourceConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrock.CfnDataSource.WebSourceConfigurationProperty.html) (required) — The source configuration details for the web data source.
