Lib to represent kafka topic in Troposphere
Project description
Lib to represent kafka topic that can then be used with Troposphere
How to use
Install
pip install aws_custom_ews_kafka_topic
Deploy via Custom resource (self-managed Lambda)
from aws_custom_ews_kafka_topic.custom import KafkaTopic
topic = KafkaTopic(
ServiceToken=Ref(FunctionArn),
Name="new-kafka-topic",
PartitionsCount=6
)
Deploy via Private Registry resource type
from aws_custom_ews_kafka_topic.resource import KafkaTopic
topic = KafkaTopic(
Name="new-kafka-topic",
PartitionsCount=6
)
Example from CLI
>>> from troposphere import Template
>>> from aws_custom_ews_kafka_topic.resource import KafkaTopic
>>> t = KafkaTopic("newtopic", Name="toto", PartitionsCount=6, BootstrapServers="toto.net")
>>> c = Template()
>>> c.add_resource(t)
>>> print(c.to_yaml())
Resources:
newtopic:
Properties:
BootstrapServers: toto.net
Name: toto
PartitionsCount: 6
Type: EWS::Kafka::Topic
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for aws_custom_ews_kafka_topic-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c85cb7fb45679ad6b49368b8e35a8989f89176ee7fc3498aed2b0756f0ad86c |
|
MD5 | b20060abe7f707fad37c077b58ced669 |
|
BLAKE2b-256 | 1db9d527bf3f06e72c0d130d8ffafe9f96e6beca358e2ea49aa751d13950013d |
Close
Hashes for aws_custom_ews_kafka_topic-0.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1e80a9996ae43da4720237fce9d40614726b4dbbc674f38d6e57293dcab5200 |
|
MD5 | 28b30fb23871a6743401dafafdc66fe6 |
|
BLAKE2b-256 | 0c202758f821ecf69b0b6f89df43d92ad94f77b8ee99d80de7c83325233336c9 |