Skip to content
v2.278.0

WebCrawlerAuthenticationConfigurationProperty Struct ​

Provides the configuration information to connect to websites that require user authentication.

Example ​

ts
// 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 webCrawlerAuthenticationConfigurationProperty: kendra.CfnDataSource.WebCrawlerAuthenticationConfigurationProperty = {
  basicAuthentication: [{
    credentials: 'credentials',
    host: 'host',
    port: 123,
  }],
};
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_kendra as kendra

web_crawler_authentication_configuration_property = kendra.CfnDataSource.WebCrawlerAuthenticationConfigurationProperty(
    basic_authentication=[kendra.CfnDataSource.WebCrawlerBasicAuthenticationProperty(
        credentials="credentials",
        host="host",
        port=123
    )]
)
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.kendra.*;

WebCrawlerAuthenticationConfigurationProperty webCrawlerAuthenticationConfigurationProperty = WebCrawlerAuthenticationConfigurationProperty.builder()
        .basicAuthentication(List.of(WebCrawlerBasicAuthenticationProperty.builder()
                .credentials("credentials")
                .host("host")
                .port(123)
                .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.Kendra;

var webCrawlerAuthenticationConfigurationProperty = new WebCrawlerAuthenticationConfigurationProperty {
    BasicAuthentication = new [] { new WebCrawlerBasicAuthenticationProperty {
        Credentials = "credentials",
        Host = "host",
        Port = 123
    } }
};
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"

webCrawlerAuthenticationConfigurationProperty := &WebCrawlerAuthenticationConfigurationProperty{
	BasicAuthentication: []interface{}{
		&WebCrawlerBasicAuthenticationProperty{
			Credentials: jsii.String("credentials"),
			Host: jsii.String("host"),
			Port: jsii.Number(123),
		},
	},
}

Properties ​

basicAuthenticationoptionalIResolvable | IResolvable | CfnDataSource.WebCrawlerBasicAuthenticationProperty[]basic_authenticationoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, WebCrawlerBasicAuthenticationProperty]]]basicAuthenticationoptionalIResolvableBasicAuthenticationoptionalIResolvableBasicAuthenticationoptionalinterface{} #
The list of configuration information that's required to connect to and crawl a website host using basic authentication credentials.

The list includes the name and port number of the website host.