CDK Constructs for AWS Kinesis
Project description
Amazon Kinesis Construct Library
---This is a developer preview (public beta) module. Releases might lack important features and might have future breaking changes.
This API is still under active development and subject to non-backward compatible changes or removal in any future version. Use of the API is not recommended in production environments. Experimental APIs are not subject to the Semantic Versioning model.
Define an unencrypted Kinesis stream.
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
Stream(self, "MyFirstStream")
Encryption
Define a KMS-encrypted stream:
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
stream = Stream(self, "MyEncryptedStream",
encryption=StreamEncryption.Kms
)
# you can access the encryption key:
assert(stream.encryption_key instanceof kms.Key)
You can also supply your own key:
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
my_kms_key = kms.Key(self, "MyKey")
stream = Stream(self, "MyEncryptedStream",
encryption=StreamEncryption.Kms,
encryption_key=my_kms_key
)
assert(stream.encryption_key === my_kms_key)
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
aws-cdk.aws-kinesis-1.22.0.tar.gz
(50.0 kB
view hashes)
Built Distribution
Close
Hashes for aws-cdk.aws-kinesis-1.22.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab31b287658623a31cba3843faa5c0d6cfd66f2fafff2a3c796849ecbceacea9 |
|
MD5 | 70a0c5938d10f81a34ec6cf4dcb0452a |
|
BLAKE2b-256 | 9f1c42765b2bc8eb39d56432db3628aa84cb7a1b5812bc404f0a8333ebe589af |
Close
Hashes for aws_cdk.aws_kinesis-1.22.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5599d7ec53b8524e32a633b154e4127c060f9d80ad4dfeaec5b29ea14f00754e |
|
MD5 | 2694aed33987a188c3e2da3bba36cc38 |
|
BLAKE2b-256 | 04be52c195b627981d9a35b167c6c8ebbfb4062a0e0f5b4b0defa485642f3eda |