cloudshiftinc / kotlin-cdk-wrapper

Kotlin DSL for AWS CDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

latest release GitHub

Kotlin Wrapper for AWS CDK

Use the AWS CDK with all the power of Kotlin!

val app = App()
val stack = Stack(scope = app, id = "TestStack")
val bucket = Bucket(scope = stack, id = "TestBucket") { bucketName("test-bucket") }

bucket.addCorsRule {
    allowedHeaders("Test-Header")
    allowedMethods(HttpMethods.HEAD)
    allowedOrigins("abc")
}

app.synth()

The Kotlin DSL is fully Kotlin - no imports from the Java CDK. Any construct / object that has a builder has a corresponding DSL.

This provides the basis for powerful Kotlin extensions to the DSL to supercharge your CDK code.

Getting Started

Gradle: latest release

implementation("io.cloudshiftdev.kotlin-cdk-wrapper:kotlin-cdk-wrapper:<version>")

About

Kotlin DSL for AWS CDK

License:Apache License 2.0


Languages

Language:Kotlin 100.0%