Class CfnDataSource.ProxyConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kendra.CfnDataSource.ProxyConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSource.ProxyConfigurationProperty>
- Enclosing interface:
CfnDataSource.ProxyConfigurationProperty
@Stability(Stable)
public static final class CfnDataSource.ProxyConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSource.ProxyConfigurationProperty>
A builder for
CfnDataSource.ProxyConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.credentials
(String credentials) Sets the value ofCfnDataSource.ProxyConfigurationProperty.getCredentials()
Sets the value ofCfnDataSource.ProxyConfigurationProperty.getHost()
Sets the value ofCfnDataSource.ProxyConfigurationProperty.getPort()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
host
Sets the value ofCfnDataSource.ProxyConfigurationProperty.getHost()
- Parameters:
host
- The name of the website host you want to connect to via a web proxy server. This parameter is required. For example, the host name of https://a.example.com/page1.html is "a.example.com".- Returns:
this
-
port
Sets the value ofCfnDataSource.ProxyConfigurationProperty.getPort()
- Parameters:
port
- The port number of the website host you want to connect to via a web proxy server. This parameter is required. For example, the port for https://a.example.com/page1.html is 443, the standard port for HTTPS.- Returns:
this
-
credentials
@Stability(Stable) public CfnDataSource.ProxyConfigurationProperty.Builder credentials(String credentials) Sets the value ofCfnDataSource.ProxyConfigurationProperty.getCredentials()
- Parameters:
credentials
- Your secret ARN, which you can create in AWS Secrets Manager. The credentials are optional. You use a secret if web proxy credentials are required to connect to a website host. Amazon Kendra currently support basic authentication to connect to a web proxy server. The secret stores your credentials.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDataSource.ProxyConfigurationProperty>
- Returns:
- a new instance of
CfnDataSource.ProxyConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-