update_topic
async
¶
update_topic(
cluster_arn: __string,
topic_name: __string,
*,
config_overrides: Optional[AsyncKafkaClientConfig] = None,
configs: Optional[__string] = None,
partition_count: Optional[__integer] = None,
) -> UpdateTopicResponse
Updates the configuration of the specified topic.
Parameters:
-
cluster_arn(__string) –The Amazon Resource Name (ARN) that uniquely identifies the cluster.
-
topic_name(__string) –The name of the topic to update configuration for.
-
configs(Optional[__string], default:None) –The new topic configurations encoded as a Base64 string.
-
partition_count(Optional[__integer], default:None) –The new total number of partitions for the topic.
Raises:
-
BadRequestException–Returns information about an error.
-
ClusterConnectivityException–Returns information about an error.
-
ControllerMovedException–Returns information about an error.
-
ForbiddenException–Returns information about an error.
-
GroupSubscribedToTopicException–Returns information about an error.
-
InternalServerErrorException–Returns information about an error.
-
KafkaRequestException–Returns information about an error.
-
KafkaTimeoutException–Returns information about an error.
-
NotControllerException–Returns information about an error.
-
NotFoundException–Returns information about an error.
-
ReassignmentInProgressException–Returns information about an error.
-
ServiceUnavailableException–Returns information about an error.
-
UnauthorizedException–Returns information about an error.
-
UnknownTopicOrPartitionException–Returns information about an error.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_kafka/_services/async_kafka.py
5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 | |