1 个不稳定版本
使用旧的 Rust 2015
| 0.1.1 | 2018 年 11 月 27 日 | 
|---|---|
| 0.1.0 |  | 
#5 在 #cloudformation
68KB
861 行
cfn-resource-provider
这个库是一个相对薄的包装器,允许在 AWS Lambda 中使用 Rust 来提供 AWS CloudFormation 自定义资源。它旨在与 rust-aws-lambda 一起使用,这是一个库,允许使用 Go 1.x 运行时在 AWS Lambda 上无服务器地运行 Rust 应用程序。
快速入门示例
extern crate aws_lambda as lambda;
extern crate cfn_resource_provider as cfn;
use cfn::*;
fn main() {
    lambda::start(cfn::process(|event: CfnRequest<MyResourceProperties>| {
        // Perform the necessary steps to create the custom resource. Afterwards you can return
        // some data that should be serialized into the response. If you don't want to serialize
        // any data, you can return `None` (were you unfortunately have to specify the unknown
        // serializable type using the turbofish).
        Ok(None::<()>)
    }));
}
许可证
本库根据您的选择受以下任何一个许可证的许可
- Apache 许可证 2.0 版,(LICENSE-APACHE 或 https://apache.ac.cn/licenses/LICENSE-2.0)
- MIT 许可证 (LICENSE-MIT 或 https://open-source.org.cn/licenses/MIT)
。
贡献
除非您明确说明,否则您提交给 cfn-resource-provider 的任何贡献,根据 Apache-2.0 许可证的定义,应如上所述双重许可,不附加任何额外条款或条件。
依赖项
~19MB
~424K SLoC