Class CfnConnector
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.kafkaconnect.CfnConnector
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IConnectorRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-12T17:54:15.634Z")
@Stability(Stable)
public class CfnConnector
extends CfnResource
implements IInspectable, IConnectorRef, ITaggableV2
Creates a connector using the specified properties.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.kafkaconnect.*;
CfnConnector cfnConnector = CfnConnector.Builder.create(this, "MyCfnConnector")
.capacity(CapacityProperty.builder()
.autoScaling(AutoScalingProperty.builder()
.maxWorkerCount(123)
.mcuCount(123)
.minWorkerCount(123)
.scaleInPolicy(ScaleInPolicyProperty.builder()
.cpuUtilizationPercentage(123)
.build())
.scaleOutPolicy(ScaleOutPolicyProperty.builder()
.cpuUtilizationPercentage(123)
.build())
.build())
.provisionedCapacity(ProvisionedCapacityProperty.builder()
.workerCount(123)
// the properties below are optional
.mcuCount(123)
.build())
.build())
.connectorConfiguration(Map.of(
"connectorConfigurationKey", "connectorConfiguration"))
.connectorName("connectorName")
.kafkaCluster(KafkaClusterProperty.builder()
.apacheKafkaCluster(ApacheKafkaClusterProperty.builder()
.bootstrapServers("bootstrapServers")
.vpc(VpcProperty.builder()
.securityGroups(List.of("securityGroups"))
.subnets(List.of("subnets"))
.build())
.build())
.build())
.kafkaClusterClientAuthentication(KafkaClusterClientAuthenticationProperty.builder()
.authenticationType("authenticationType")
.build())
.kafkaClusterEncryptionInTransit(KafkaClusterEncryptionInTransitProperty.builder()
.encryptionType("encryptionType")
.build())
.kafkaConnectVersion("kafkaConnectVersion")
.plugins(List.of(PluginProperty.builder()
.customPlugin(CustomPluginProperty.builder()
.customPluginArn("customPluginArn")
.revision(123)
.build())
.build()))
.serviceExecutionRoleArn("serviceExecutionRoleArn")
// the properties below are optional
.connectorDescription("connectorDescription")
.logDelivery(LogDeliveryProperty.builder()
.workerLogDelivery(WorkerLogDeliveryProperty.builder()
.cloudWatchLogs(CloudWatchLogsLogDeliveryProperty.builder()
.enabled(false)
// the properties below are optional
.logGroup("logGroup")
.build())
.firehose(FirehoseLogDeliveryProperty.builder()
.enabled(false)
// the properties below are optional
.deliveryStream("deliveryStream")
.build())
.s3(S3LogDeliveryProperty.builder()
.enabled(false)
// the properties below are optional
.bucket("bucket")
.prefix("prefix")
.build())
.build())
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.workerConfiguration(WorkerConfigurationProperty.builder()
.revision(123)
.workerConfigurationArn("workerConfigurationArn")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe details of the Apache Kafka cluster to which the connector is connected.static interfaceSpecifies how the connector scales.static final classA fluent builder forCfnConnector.static interfaceInformation about the capacity of the connector, whether it is auto scaled or provisioned.static interfaceThe settings for delivering connector logs to Amazon CloudWatch Logs.static interfaceA plugin is an AWS resource that contains the code that defines a connector's logic.static interfaceThe settings for delivering logs to Amazon Kinesis Data Firehose.static interfaceThe client authentication information used in order to authenticate with the Apache Kafka cluster.static interfaceDetails of encryption in transit to the Apache Kafka cluster.static interfaceThe details of the Apache Kafka cluster to which the connector is connected.static interfaceDetails about log delivery.static interfaceA plugin is an AWS resource that contains the code that defines your connector logic.static interfaceDetails about a connector's provisioned capacity.static interfaceDetails about delivering logs to Amazon S3.static interfaceThe scale-in policy for the connector.static interfaceThe scale-out policy for the connector.static interfaceInformation about the VPC in which the connector resides.static interfaceThe configuration of the workers, which are the processes that run the connector logic.static interfaceWorkers can send worker logs to different destination types.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.kafkaconnect.IConnectorRef
IConnectorRef.Jsii$Default, IConnectorRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnConnector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnConnector(software.amazon.jsii.JsiiObjectRef objRef) CfnConnector(software.constructs.Construct scope, String id, CfnConnectorProps props) Create a newAWS::KafkaConnect::Connector. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForConnector(IConnectorRef resource) The Amazon Resource Name (ARN) of the newly created connector.The connector's compute capacity settings.Tag Manager which manages the tags for this resource.The configuration of the connector.The description of the connector.The name of the connector.A reference to a Connector resource.The details of the Apache Kafka cluster to which the connector is connected.The type of client authentication used to connect to the Apache Kafka cluster.Details of encryption in transit to the Apache Kafka cluster.The version of Kafka Connect.The settings for delivering connector logs to Amazon CloudWatch Logs.Specifies which plugin to use for the connector.The Amazon Resource Name (ARN) of the IAM role used by the connector to access Amazon Web Services resources.getTags()A collection of tags associated with a resource.The worker configurations that are in use with the connector.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnConnector.renderProperties(Map<String, Object> props) voidsetCapacity(IResolvable value) The connector's compute capacity settings.voidThe connector's compute capacity settings.voidsetConnectorConfiguration(Map<String, String> value) The configuration of the connector.voidThe configuration of the connector.voidsetConnectorDescription(String value) The description of the connector.voidsetConnectorName(String value) The name of the connector.voidsetKafkaCluster(IResolvable value) The details of the Apache Kafka cluster to which the connector is connected.voidThe details of the Apache Kafka cluster to which the connector is connected.voidThe type of client authentication used to connect to the Apache Kafka cluster.voidThe type of client authentication used to connect to the Apache Kafka cluster.voidDetails of encryption in transit to the Apache Kafka cluster.voidDetails of encryption in transit to the Apache Kafka cluster.voidsetKafkaConnectVersion(String value) The version of Kafka Connect.voidsetLogDelivery(IResolvable value) The settings for delivering connector logs to Amazon CloudWatch Logs.voidThe settings for delivering connector logs to Amazon CloudWatch Logs.voidsetPlugins(List<Object> value) Specifies which plugin to use for the connector.voidsetPlugins(IResolvable value) Specifies which plugin to use for the connector.voidsetServiceExecutionRoleArn(String value) The Amazon Resource Name (ARN) of the IAM role used by the connector to access Amazon Web Services resources.voidA collection of tags associated with a resource.voidThe worker configurations that are in use with the connector.voidThe worker configurations that are in use with the connector.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnConnector
protected CfnConnector(software.amazon.jsii.JsiiObjectRef objRef) -
CfnConnector
protected CfnConnector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnConnector
@Stability(Stable) public CfnConnector(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnConnectorProps props) Create a newAWS::KafkaConnect::Connector.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForConnector
- Parameters:
resource- This parameter is required.
-
isCfnConnector
Checks whether the given object is a CfnConnector.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrConnectorArn
The Amazon Resource Name (ARN) of the newly created connector. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getConnectorRef
A reference to a Connector resource.- Specified by:
getConnectorRefin interfaceIConnectorRef
-
getCapacity
The connector's compute capacity settings.Returns union: either
IResolvableorCfnConnector.CapacityProperty -
setCapacity
The connector's compute capacity settings. -
setCapacity
The connector's compute capacity settings. -
getConnectorConfiguration
The configuration of the connector.Returns union: either Mapinvalid input: '<'String,
String> orIResolvable -
setConnectorConfiguration
The configuration of the connector. -
setConnectorConfiguration
The configuration of the connector. -
getConnectorName
The name of the connector. -
setConnectorName
The name of the connector. -
getKafkaCluster
The details of the Apache Kafka cluster to which the connector is connected.Returns union: either
IResolvableorCfnConnector.KafkaClusterProperty -
setKafkaCluster
The details of the Apache Kafka cluster to which the connector is connected. -
setKafkaCluster
The details of the Apache Kafka cluster to which the connector is connected. -
getKafkaClusterClientAuthentication
The type of client authentication used to connect to the Apache Kafka cluster.Returns union: either
IResolvableorCfnConnector.KafkaClusterClientAuthenticationProperty -
setKafkaClusterClientAuthentication
The type of client authentication used to connect to the Apache Kafka cluster. -
setKafkaClusterClientAuthentication
@Stability(Stable) public void setKafkaClusterClientAuthentication(@NotNull CfnConnector.KafkaClusterClientAuthenticationProperty value) The type of client authentication used to connect to the Apache Kafka cluster. -
getKafkaClusterEncryptionInTransit
Details of encryption in transit to the Apache Kafka cluster.Returns union: either
IResolvableorCfnConnector.KafkaClusterEncryptionInTransitProperty -
setKafkaClusterEncryptionInTransit
Details of encryption in transit to the Apache Kafka cluster. -
setKafkaClusterEncryptionInTransit
@Stability(Stable) public void setKafkaClusterEncryptionInTransit(@NotNull CfnConnector.KafkaClusterEncryptionInTransitProperty value) Details of encryption in transit to the Apache Kafka cluster. -
getKafkaConnectVersion
The version of Kafka Connect. -
setKafkaConnectVersion
The version of Kafka Connect. -
getPlugins
Specifies which plugin to use for the connector.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnConnector.PluginProperty> -
setPlugins
Specifies which plugin to use for the connector. -
setPlugins
Specifies which plugin to use for the connector. -
getServiceExecutionRoleArn
The Amazon Resource Name (ARN) of the IAM role used by the connector to access Amazon Web Services resources. -
setServiceExecutionRoleArn
The Amazon Resource Name (ARN) of the IAM role used by the connector to access Amazon Web Services resources. -
getConnectorDescription
The description of the connector. -
setConnectorDescription
The description of the connector. -
getLogDelivery
The settings for delivering connector logs to Amazon CloudWatch Logs.Returns union: either
IResolvableorCfnConnector.LogDeliveryProperty -
setLogDelivery
The settings for delivering connector logs to Amazon CloudWatch Logs. -
setLogDelivery
The settings for delivering connector logs to Amazon CloudWatch Logs. -
getTags
A collection of tags associated with a resource. -
setTags
A collection of tags associated with a resource. -
getWorkerConfiguration
The worker configurations that are in use with the connector.Returns union: either
IResolvableorCfnConnector.WorkerConfigurationProperty -
setWorkerConfiguration
The worker configurations that are in use with the connector. -
setWorkerConfiguration
@Stability(Stable) public void setWorkerConfiguration(@Nullable CfnConnector.WorkerConfigurationProperty value) The worker configurations that are in use with the connector.
-