Skip to content

Commit 577a54d

Browse files
authored
Update security_protocol argument docstring (#884)
1 parent 57439a6 commit 577a54d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

aiokafka/consumer/consumer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ class AIOKafkaConsumer:
168168
If set to ``auto``, will attempt to infer the broker version by
169169
probing various APIs. Default: ``auto``
170170
security_protocol (str): Protocol used to communicate with brokers.
171-
Valid values are: ``PLAINTEXT``, ``SSL``. Default: ``PLAINTEXT``.
171+
Valid values are: ``PLAINTEXT``, ``SSL``, ``SASL_PLAINTEXT``,
172+
``SASL_SSL``. Default: ``PLAINTEXT``.
172173
ssl_context (ssl.SSLContext): pre-configured :class:`~ssl.SSLContext`
173174
for wrapping socket connections. Directly passed into asyncio's
174175
:meth:`~asyncio.loop.create_connection`. For more information see

aiokafka/producer/producer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ class AIOKafkaProducer:
138138
If set to ``auto``, will attempt to infer the broker version by
139139
probing various APIs. Default: ``auto``
140140
security_protocol (str): Protocol used to communicate with brokers.
141-
Valid values are: ``PLAINTEXT``, ``SSL``. Default: ``PLAINTEXT``.
142-
Default: ``PLAINTEXT``.
141+
Valid values are: ``PLAINTEXT``, ``SSL``, ``SASL_PLAINTEXT``,
142+
``SASL_SSL``. Default: ``PLAINTEXT``.
143143
ssl_context (ssl.SSLContext): pre-configured :class:`~ssl.SSLContext`
144144
for wrapping socket connections. Directly passed into asyncio's
145145
:meth:`~asyncio.loop.create_connection`. For more

0 commit comments

Comments
 (0)