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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d52a4ea5a29838c074fea55ea5ee82d22149c3451c3d3570428825014435d65c |
|
MD5 | 7408ef52cba686bfe88808099a8a4ad0 |
|
BLAKE2b-256 | 32a4b65e90f9d2c9bc8b55999057b4f86c7590ab1d5320e34f282529a1d8ede6 |
Close
Hashes for aws_custom_ews_kafka_topic-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de54e8fbc70bb92ada5998aca3cde9d34faf9f76933ecbab1a36b74b39293d40 |
|
MD5 | a7f44b8313c52beba0eb5ab26389ea22 |
|
BLAKE2b-256 | f4f90ad0a4b2207a82d05ed1073c39262507b371205f4f016d798708f885c800 |