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
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_resources-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 311ce6853d48c1bc63a9978f3cdd53deb2f7130ccc8dbf6d7aaee2da204bdaa9 |
|
MD5 | f3b67c2e54a9f3b02eee316a4f0d8f39 |
|
BLAKE2b-256 | 66059550ae13461fc744c0308afc1ebfcd5f8e5d899b17c02ffd3d5e4ba82006 |
Close
Hashes for aws_custom_ews_kafka_resources-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73a5f3f9d4f284c3fbfd1ab9a6080b57f7e40b8b34c791a2701f35863caf18dc |
|
MD5 | 5815f5ff572c027fa3275271aab26613 |
|
BLAKE2b-256 | 9c5143728897375faeccc696e2eba96ca77bfb1cb6f9212dea4ec2e6ce6b7f2f |