aws运动的cdk结构
aws-cdk.aws-kinesis的Python项目详细描述
amazon kinisis构造库
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.
定义一个未加密的动觉流。
newStream(this,'MyFirstStream');
加密
定义KMS加密流:
conststream=newStream(this,'MyEncryptedStream',{encryption: StreamEncryption.Kms});// you can access the encryption key:assert(stream.encryptionKeyinstanceofkms.Key);
您也可以提供自己的钥匙:
constmyKmsKey=newkms.Key(this,'MyKey');conststream=newStream(this,'MyEncryptedStream',{encryption: StreamEncryption.Kms,encryptionKey: myKmsKey});assert(stream.encryptionKey===myKmsKey);