Class CfnConnector.Builder

java.lang.Object
software.amazon.awscdk.services.kafkaconnect.CfnConnector.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnector>
Enclosing class:
CfnConnector

@Stability(Stable) public static final class CfnConnector.Builder extends Object implements software.amazon.jsii.Builder<CfnConnector>
A fluent builder for CfnConnector.
  • Method Details

    • create

      @Stability(Stable) public static CfnConnector.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnConnector.Builder.
    • capacity

      @Stability(Stable) public CfnConnector.Builder capacity(CfnConnector.CapacityProperty capacity)
      The connector's compute capacity settings.

      Parameters:
      capacity - The connector's compute capacity settings. This parameter is required.
      Returns:
      this
    • capacity

      @Stability(Stable) public CfnConnector.Builder capacity(IResolvable capacity)
      The connector's compute capacity settings.

      Parameters:
      capacity - The connector's compute capacity settings. This parameter is required.
      Returns:
      this
    • connectorConfiguration

      @Stability(Stable) public CfnConnector.Builder connectorConfiguration(IResolvable connectorConfiguration)
      The configuration of the connector.

      Parameters:
      connectorConfiguration - The configuration of the connector. This parameter is required.
      Returns:
      this
    • connectorConfiguration

      @Stability(Stable) public CfnConnector.Builder connectorConfiguration(Map<String,String> connectorConfiguration)
      The configuration of the connector.

      Parameters:
      connectorConfiguration - The configuration of the connector. This parameter is required.
      Returns:
      this
    • connectorName

      @Stability(Stable) public CfnConnector.Builder connectorName(String connectorName)
      The name of the connector.

      Parameters:
      connectorName - The name of the connector. This parameter is required.
      Returns:
      this
    • kafkaCluster

      @Stability(Stable) public CfnConnector.Builder kafkaCluster(IResolvable kafkaCluster)
      The details of the Apache Kafka cluster to which the connector is connected.

      Parameters:
      kafkaCluster - The details of the Apache Kafka cluster to which the connector is connected. This parameter is required.
      Returns:
      this
    • kafkaCluster

      @Stability(Stable) public CfnConnector.Builder kafkaCluster(CfnConnector.KafkaClusterProperty kafkaCluster)
      The details of the Apache Kafka cluster to which the connector is connected.

      Parameters:
      kafkaCluster - The details of the Apache Kafka cluster to which the connector is connected. This parameter is required.
      Returns:
      this
    • kafkaClusterClientAuthentication

      @Stability(Stable) public CfnConnector.Builder kafkaClusterClientAuthentication(IResolvable kafkaClusterClientAuthentication)
      The type of client authentication used to connect to the Apache Kafka cluster.

      The value is NONE when no client authentication is used.

      Parameters:
      kafkaClusterClientAuthentication - The type of client authentication used to connect to the Apache Kafka cluster. This parameter is required.
      Returns:
      this
    • kafkaClusterClientAuthentication

      @Stability(Stable) public CfnConnector.Builder kafkaClusterClientAuthentication(CfnConnector.KafkaClusterClientAuthenticationProperty kafkaClusterClientAuthentication)
      The type of client authentication used to connect to the Apache Kafka cluster.

      The value is NONE when no client authentication is used.

      Parameters:
      kafkaClusterClientAuthentication - The type of client authentication used to connect to the Apache Kafka cluster. This parameter is required.
      Returns:
      this
    • kafkaClusterEncryptionInTransit

      @Stability(Stable) public CfnConnector.Builder kafkaClusterEncryptionInTransit(IResolvable kafkaClusterEncryptionInTransit)
      Details of encryption in transit to the Apache Kafka cluster.

      Parameters:
      kafkaClusterEncryptionInTransit - Details of encryption in transit to the Apache Kafka cluster. This parameter is required.
      Returns:
      this
    • kafkaClusterEncryptionInTransit

      @Stability(Stable) public CfnConnector.Builder kafkaClusterEncryptionInTransit(CfnConnector.KafkaClusterEncryptionInTransitProperty kafkaClusterEncryptionInTransit)
      Details of encryption in transit to the Apache Kafka cluster.

      Parameters:
      kafkaClusterEncryptionInTransit - Details of encryption in transit to the Apache Kafka cluster. This parameter is required.
      Returns:
      this
    • kafkaConnectVersion

      @Stability(Stable) public CfnConnector.Builder kafkaConnectVersion(String kafkaConnectVersion)
      The version of Kafka Connect.

      It has to be compatible with both the Apache Kafka cluster's version and the plugins.

      Parameters:
      kafkaConnectVersion - The version of Kafka Connect. This parameter is required.
      Returns:
      this
    • plugins

      @Stability(Stable) public CfnConnector.Builder plugins(IResolvable plugins)
      Specifies which plugin to use for the connector.

      You must specify a single-element list. Amazon MSK Connect does not currently support specifying multiple plugins.

      Parameters:
      plugins - Specifies which plugin to use for the connector. This parameter is required.
      Returns:
      this
    • plugins

      @Stability(Stable) public CfnConnector.Builder plugins(List<? extends Object> plugins)
      Specifies which plugin to use for the connector.

      You must specify a single-element list. Amazon MSK Connect does not currently support specifying multiple plugins.

      Parameters:
      plugins - Specifies which plugin to use for the connector. This parameter is required.
      Returns:
      this
    • serviceExecutionRoleArn

      @Stability(Stable) public CfnConnector.Builder serviceExecutionRoleArn(String serviceExecutionRoleArn)
      The Amazon Resource Name (ARN) of the IAM role used by the connector to access Amazon Web Services resources.

      Parameters:
      serviceExecutionRoleArn - The Amazon Resource Name (ARN) of the IAM role used by the connector to access Amazon Web Services resources. This parameter is required.
      Returns:
      this
    • connectorDescription

      @Stability(Stable) public CfnConnector.Builder connectorDescription(String connectorDescription)
      The description of the connector.

      Parameters:
      connectorDescription - The description of the connector. This parameter is required.
      Returns:
      this
    • logDelivery

      @Stability(Stable) public CfnConnector.Builder logDelivery(IResolvable logDelivery)
      The settings for delivering connector logs to Amazon CloudWatch Logs.

      Parameters:
      logDelivery - The settings for delivering connector logs to Amazon CloudWatch Logs. This parameter is required.
      Returns:
      this
    • logDelivery

      @Stability(Stable) public CfnConnector.Builder logDelivery(CfnConnector.LogDeliveryProperty logDelivery)
      The settings for delivering connector logs to Amazon CloudWatch Logs.

      Parameters:
      logDelivery - The settings for delivering connector logs to Amazon CloudWatch Logs. This parameter is required.
      Returns:
      this
    • workerConfiguration

      @Stability(Stable) public CfnConnector.Builder workerConfiguration(IResolvable workerConfiguration)
      The worker configurations that are in use with the connector.

      Parameters:
      workerConfiguration - The worker configurations that are in use with the connector. This parameter is required.
      Returns:
      this
    • workerConfiguration

      @Stability(Stable) public CfnConnector.Builder workerConfiguration(CfnConnector.WorkerConfigurationProperty workerConfiguration)
      The worker configurations that are in use with the connector.

      Parameters:
      workerConfiguration - The worker configurations that are in use with the connector. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnConnector build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnConnector>
      Returns:
      a newly built instance of CfnConnector.