TopicArgs constructor

const TopicArgs({
  1. required Input<String> cluster,
  2. Input<Map<String, String>?>? configs,
  3. Input<String?>? deletionPolicy,
  4. required Input<String> location,
  5. Input<int?>? partitionCount,
  6. Input<String?>? project,
  7. required Input<int> replicationFactor,
  8. required Input<String> topicId,
})

Creates a new TopicArgs. cluster The cluster name. configs Configuration for the topic that are overridden from the cluster defaults. The key of the map is a Kafka topic property name, for example: cleanup.policy=compact, compression.type=producer. deletionPolicy Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. location ID of the location of the Kafka resource. See https://cloud.google.com/managed-kafka/docs/locations for a list of supported locations. partitionCount The number of partitions in a topic. You can increase the partition count for a topic, but you cannot decrease it. Increasing partitions for a topic that uses a key might change how messages are distributed. project The ID of the project in which the resource belongs. replicationFactor The number of replicas of each partition. A replication factor of 3 is recommended for high availability. topicId The ID to use for the topic, which will become the final component of the topic's name. This value is structured like: my-topic-name.

Implementation

const TopicArgs({
  required this.cluster,
  this.configs,
  this.deletionPolicy,
  required this.location,
  this.partitionCount,
  this.project,
  required this.replicationFactor,
  required this.topicId,
});