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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e752ddddd95699c8422036d82aa493e6f5db03c09a4f10c648915d116c084a96 |
|
MD5 | fbe7c3132946cf55993bb032827f8a5c |
|
BLAKE2b-256 | 9514d5de8b0a8affd9cb2d09fd71be1125520dc00aa58481ed0cd7c844a2f452 |
Close
Hashes for aws_custom_ews_kafka_topic-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8c2955e06a361d4f044f41eaee09013a48fbf84c5b0ca1e9160be1275cfb051 |
|
MD5 | 68fbd46ae9153e1b2081ea8caf7aa53c |
|
BLAKE2b-256 | 1ef0e8bd89d11477ec9e3326537170eda18f200169e0b10b4fb4087cf52adf76 |