Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1 KB

README.md

File metadata and controls

31 lines (20 loc) · 1 KB

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>")