Class CfnConnector
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::KafkaConnect::Connector.
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())
.workerConfiguration(WorkerConfigurationProperty.builder()
.revision(123)
.workerConfigurationArn("workerConfigurationArn")
.build())
.build();
-
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.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnConnector(Construct scope, String id, CfnConnectorProps props) Create a newAWS::KafkaConnect::Connector.protectedCfnConnector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnConnector(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the newly created connector.The connector's compute capacity settings.The configuration of the connector.The description of the connector.The name of the connector.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.The worker configurations that are in use with the connector.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.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.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.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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 Construct scope, @NotNull String id, @NotNull CfnConnectorProps props) Create a newAWS::KafkaConnect::Connector.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
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. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCapacity
The connector's compute capacity settings. -
setCapacity
The connector's compute capacity settings. -
setCapacity
The connector's compute capacity settings. -
getConnectorConfiguration
The configuration of the connector. -
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. -
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.The value is NONE when no client authentication is used.
-
setKafkaClusterClientAuthentication
The type of client authentication used to connect to the Apache Kafka cluster.The value is NONE when no client authentication is used.
-
setKafkaClusterClientAuthentication
@Stability(Stable) public void setKafkaClusterClientAuthentication(@NotNull CfnConnector.KafkaClusterClientAuthenticationProperty value) The type of client authentication used to connect to the Apache Kafka cluster.The value is NONE when no client authentication is used.
-
getKafkaClusterEncryptionInTransit
Details of encryption in transit to the Apache Kafka cluster. -
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.It has to be compatible with both the Apache Kafka cluster's version and the plugins.
-
setKafkaConnectVersion
The version of Kafka Connect.It has to be compatible with both the Apache Kafka cluster's version and the plugins.
-
getPlugins
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.
-
setPlugins
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.
-
setPlugins
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.
-
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. -
setLogDelivery
The settings for delivering connector logs to Amazon CloudWatch Logs. -
setLogDelivery
The settings for delivering connector logs to Amazon CloudWatch Logs. -
getWorkerConfiguration
The worker configurations that are in use with the connector. -
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.
-