Custom Resources for AWS CloudFormation representing Kafka assets management
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aws_custom_ews_kafka_resources-0.2.0.tar.gz.
File metadata
- Download URL: aws_custom_ews_kafka_resources-0.2.0.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.8 CPython/3.9.6 Linux/5.13.9-100.fc33.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51702316bfcdd51fdb1d072c4f3eab78a1f111c1528a4e1a6c8d31e97aa1e0c8
|
|
| MD5 |
0b843e983e2cb10dc796cba8a3b7e9a8
|
|
| BLAKE2b-256 |
bf6b4b022e3255b71bac42e6b91d1e1fdbf6f7066f7532a7221bc7be613b61a4
|
File details
Details for the file aws_custom_ews_kafka_resources-0.2.0-py3-none-any.whl.
File metadata
- Download URL: aws_custom_ews_kafka_resources-0.2.0-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.8 CPython/3.9.6 Linux/5.13.9-100.fc33.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8709ec03c3638613810e134c41adf913074b5ad4897991fd65b023d25869044
|
|
| MD5 |
9688e9415e3055a671946f0a2543827d
|
|
| BLAKE2b-256 |
cd102c1d4a6ceccfcf863f7394b87ffaf8b5e284fbe389c8ac7340a308b8d8d1
|