Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tuts/001-lightsail-gs/kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
plugins { kotlin("jvm") version "1.9.0"; application }
repositories { mavenCentral() }
dependencies { implementation("aws.sdk.kotlin:lightsail:1.0.0"); testImplementation(kotlin("test")) }
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

package com.example.lightsail

import aws.sdk.kotlin.services.lightsail.LightsailClient
import kotlinx.coroutines.runBlocking

fun main() = runBlocking {
LightsailClient { region = "us-east-1" }.use { client ->
val wrapper = LightsailWrapper(client)
println("Running Lightsail getting started scenario...")
// TODO: setup, interact, teardown
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

package com.example.lightsail

import aws.sdk.kotlin.services.lightsail.LightsailClient

class LightsailWrapper(private val client: LightsailClient) {
// TODO: Add suspend wrapper methods matching CLI tutorial actions
}
3 changes: 3 additions & 0 deletions tuts/002-vpc-gs/kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
plugins { kotlin("jvm") version "1.9.0"; application }
repositories { mavenCentral() }
dependencies { implementation("aws.sdk.kotlin:ec2:1.0.0"); testImplementation(kotlin("test")) }
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

package com.example.ec2

import aws.sdk.kotlin.services.ec2.Ec2Client

class Ec2Wrapper(private val client: Ec2Client) {
// TODO: Add suspend wrapper methods matching CLI tutorial actions
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

package com.example.ec2

import aws.sdk.kotlin.services.ec2.Ec2Client
import kotlinx.coroutines.runBlocking

fun main() = runBlocking {
Ec2Client { region = "us-east-1" }.use { client ->
val wrapper = Ec2Wrapper(client)
println("Running Ec2 getting started scenario...")
// TODO: setup, interact, teardown
}
}
3 changes: 3 additions & 0 deletions tuts/003-s3-gettingstarted/kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
plugins { kotlin("jvm") version "1.9.0"; application }
repositories { mavenCentral() }
dependencies { implementation("aws.sdk.kotlin:s3:1.0.0"); testImplementation(kotlin("test")) }
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

package com.example.s3

import aws.sdk.kotlin.services.s3.S3Client
import kotlinx.coroutines.runBlocking

fun main() = runBlocking {
S3Client { region = "us-east-1" }.use { client ->
val wrapper = S3Wrapper(client)
println("Running S3 getting started scenario...")
// TODO: setup, interact, teardown
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

package com.example.s3

import aws.sdk.kotlin.services.s3.S3Client

class S3Wrapper(private val client: S3Client) {
// TODO: Add suspend wrapper methods matching CLI tutorial actions
}
3 changes: 3 additions & 0 deletions tuts/004-cloudmap-custom-attributes/kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
plugins { kotlin("jvm") version "1.9.0"; application }
repositories { mavenCentral() }
dependencies { implementation("aws.sdk.kotlin:servicediscovery:1.0.0"); testImplementation(kotlin("test")) }
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

package com.example.servicediscovery

import aws.sdk.kotlin.services.servicediscovery.CloudMapClient

class CloudMapWrapper(private val client: CloudMapClient) {
// TODO: Add suspend wrapper methods matching CLI tutorial actions
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

package com.example.servicediscovery

import aws.sdk.kotlin.services.servicediscovery.CloudMapClient
import kotlinx.coroutines.runBlocking

fun main() = runBlocking {
CloudMapClient { region = "us-east-1" }.use { client ->
val wrapper = CloudMapWrapper(client)
println("Running CloudMap getting started scenario...")
// TODO: setup, interact, teardown
}
}
3 changes: 3 additions & 0 deletions tuts/005-cloudfront-gettingstarted/kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
plugins { kotlin("jvm") version "1.9.0"; application }
repositories { mavenCentral() }
dependencies { implementation("aws.sdk.kotlin:cloudfront:1.0.0"); testImplementation(kotlin("test")) }
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

package com.example.cloudfront

import aws.sdk.kotlin.services.cloudfront.CloudFrontClient

class CloudFrontWrapper(private val client: CloudFrontClient) {
// TODO: Add suspend wrapper methods matching CLI tutorial actions
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

package com.example.cloudfront

import aws.sdk.kotlin.services.cloudfront.CloudFrontClient
import kotlinx.coroutines.runBlocking

fun main() = runBlocking {
CloudFrontClient { region = "us-east-1" }.use { client ->
val wrapper = CloudFrontWrapper(client)
println("Running CloudFront getting started scenario...")
// TODO: setup, interact, teardown
}
}
3 changes: 3 additions & 0 deletions tuts/008-vpc-private-servers-gs/kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
plugins { kotlin("jvm") version "1.9.0"; application }
repositories { mavenCentral() }
dependencies { implementation("aws.sdk.kotlin:ec2:1.0.0"); testImplementation(kotlin("test")) }
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

package com.example.ec2

import aws.sdk.kotlin.services.ec2.Ec2Client

class Ec2Wrapper(private val client: Ec2Client) {
// TODO: Add suspend wrapper methods matching CLI tutorial actions
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

package com.example.ec2

import aws.sdk.kotlin.services.ec2.Ec2Client
import kotlinx.coroutines.runBlocking

fun main() = runBlocking {
Ec2Client { region = "us-east-1" }.use { client ->
val wrapper = Ec2Wrapper(client)
println("Running Ec2 getting started scenario...")
// TODO: setup, interact, teardown
}
}
3 changes: 3 additions & 0 deletions tuts/009-vpc-ipam-gs/kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
plugins { kotlin("jvm") version "1.9.0"; application }
repositories { mavenCentral() }
dependencies { implementation("aws.sdk.kotlin:ec2:1.0.0"); testImplementation(kotlin("test")) }
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

package com.example.ec2

import aws.sdk.kotlin.services.ec2.Ec2Client

class Ec2Wrapper(private val client: Ec2Client) {
// TODO: Add suspend wrapper methods matching CLI tutorial actions
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

package com.example.ec2

import aws.sdk.kotlin.services.ec2.Ec2Client
import kotlinx.coroutines.runBlocking

fun main() = runBlocking {
Ec2Client { region = "us-east-1" }.use { client ->
val wrapper = Ec2Wrapper(client)
println("Running Ec2 getting started scenario...")
// TODO: setup, interact, teardown
}
}
3 changes: 3 additions & 0 deletions tuts/010-cloudmap-service-discovery/kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
plugins { kotlin("jvm") version "1.9.0"; application }
repositories { mavenCentral() }
dependencies { implementation("aws.sdk.kotlin:servicediscovery:1.0.0"); testImplementation(kotlin("test")) }
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

package com.example.servicediscovery

import aws.sdk.kotlin.services.servicediscovery.CloudMapClient

class CloudMapWrapper(private val client: CloudMapClient) {
// TODO: Add suspend wrapper methods matching CLI tutorial actions
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

package com.example.servicediscovery

import aws.sdk.kotlin.services.servicediscovery.CloudMapClient
import kotlinx.coroutines.runBlocking

fun main() = runBlocking {
CloudMapClient { region = "us-east-1" }.use { client ->
val wrapper = CloudMapWrapper(client)
println("Running CloudMap getting started scenario...")
// TODO: setup, interact, teardown
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
plugins { kotlin("jvm") version "1.9.0"; application }
repositories { mavenCentral() }
dependencies { implementation("aws.sdk.kotlin:batch:1.0.0"); testImplementation(kotlin("test")) }
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

package com.example.batch

import aws.sdk.kotlin.services.batch.BatchClient

class BatchWrapper(private val client: BatchClient) {
// TODO: Add suspend wrapper methods matching CLI tutorial actions
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

package com.example.batch

import aws.sdk.kotlin.services.batch.BatchClient
import kotlinx.coroutines.runBlocking

fun main() = runBlocking {
BatchClient { region = "us-east-1" }.use { client ->
val wrapper = BatchWrapper(client)
println("Running Batch getting started scenario...")
// TODO: setup, interact, teardown
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
plugins { kotlin("jvm") version "1.9.0"; application }
repositories { mavenCentral() }
dependencies { implementation("aws.sdk.kotlin:ec2:1.0.0"); testImplementation(kotlin("test")) }
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

package com.example.ec2

import aws.sdk.kotlin.services.ec2.Ec2Client

class Ec2Wrapper(private val client: Ec2Client) {
// TODO: Add suspend wrapper methods matching CLI tutorial actions
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

package com.example.ec2

import aws.sdk.kotlin.services.ec2.Ec2Client
import kotlinx.coroutines.runBlocking

fun main() = runBlocking {
Ec2Client { region = "us-east-1" }.use { client ->
val wrapper = Ec2Wrapper(client)
println("Running Ec2 getting started scenario...")
// TODO: setup, interact, teardown
}
}
Loading