TopicArgs constructor
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,
});