Skip to content
v2.278.0

WebSourceConfigurationProperty Struct ​

The configuration of the URL/URLs for the web content that you want to crawl.

You should be authorized to crawl the URLs.

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 webSourceConfigurationProperty: bedrock.CfnDataSource.WebSourceConfigurationProperty = {
  urlConfiguration: {
    seedUrls: [{
      url: 'url',
    }],
  },
};
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_source_configuration_property = bedrock.CfnDataSource.WebSourceConfigurationProperty(
    url_configuration=bedrock.CfnDataSource.UrlConfigurationProperty(
        seed_urls=[bedrock.CfnDataSource.SeedUrlProperty(
            url="url"
        )]
    )
)
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.*;

WebSourceConfigurationProperty webSourceConfigurationProperty = WebSourceConfigurationProperty.builder()
        .urlConfiguration(UrlConfigurationProperty.builder()
                .seedUrls(List.of(SeedUrlProperty.builder()
                        .url("url")
                        .build()))
                .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 webSourceConfigurationProperty = new WebSourceConfigurationProperty {
    UrlConfiguration = new UrlConfigurationProperty {
        SeedUrls = new [] { new SeedUrlProperty {
            Url = "url"
        } }
    }
};
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"

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

Properties ​

urlConfigurationIResolvable | CfnDataSource.UrlConfigurationPropertyurl_configurationtyping.Union[IResolvable, UrlConfigurationProperty]urlConfigurationIResolvableUrlConfigurationIResolvableUrlConfigurationinterface{} required #
The configuration of the URL/URLs.