diff --git a/tuts/001-lightsail-gs/kotlin/build.gradle.kts b/tuts/001-lightsail-gs/kotlin/build.gradle.kts new file mode 100644 index 0000000..713ff77 --- /dev/null +++ b/tuts/001-lightsail-gs/kotlin/build.gradle.kts @@ -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")) } diff --git a/tuts/001-lightsail-gs/kotlin/src/main/kotlin/com/example/lightsail/GettingStartedScenario.kt b/tuts/001-lightsail-gs/kotlin/src/main/kotlin/com/example/lightsail/GettingStartedScenario.kt new file mode 100644 index 0000000..26c01c9 --- /dev/null +++ b/tuts/001-lightsail-gs/kotlin/src/main/kotlin/com/example/lightsail/GettingStartedScenario.kt @@ -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 + } +} diff --git a/tuts/001-lightsail-gs/kotlin/src/main/kotlin/com/example/lightsail/LightsailWrapper.kt b/tuts/001-lightsail-gs/kotlin/src/main/kotlin/com/example/lightsail/LightsailWrapper.kt new file mode 100644 index 0000000..187c8b8 --- /dev/null +++ b/tuts/001-lightsail-gs/kotlin/src/main/kotlin/com/example/lightsail/LightsailWrapper.kt @@ -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 +} diff --git a/tuts/002-vpc-gs/kotlin/build.gradle.kts b/tuts/002-vpc-gs/kotlin/build.gradle.kts new file mode 100644 index 0000000..2021aeb --- /dev/null +++ b/tuts/002-vpc-gs/kotlin/build.gradle.kts @@ -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")) } diff --git a/tuts/002-vpc-gs/kotlin/src/main/kotlin/com/example/ec2/Ec2Wrapper.kt b/tuts/002-vpc-gs/kotlin/src/main/kotlin/com/example/ec2/Ec2Wrapper.kt new file mode 100644 index 0000000..68ac108 --- /dev/null +++ b/tuts/002-vpc-gs/kotlin/src/main/kotlin/com/example/ec2/Ec2Wrapper.kt @@ -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 +} diff --git a/tuts/002-vpc-gs/kotlin/src/main/kotlin/com/example/ec2/GettingStartedScenario.kt b/tuts/002-vpc-gs/kotlin/src/main/kotlin/com/example/ec2/GettingStartedScenario.kt new file mode 100644 index 0000000..0ee9510 --- /dev/null +++ b/tuts/002-vpc-gs/kotlin/src/main/kotlin/com/example/ec2/GettingStartedScenario.kt @@ -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 + } +} diff --git a/tuts/003-s3-gettingstarted/kotlin/build.gradle.kts b/tuts/003-s3-gettingstarted/kotlin/build.gradle.kts new file mode 100644 index 0000000..e066c92 --- /dev/null +++ b/tuts/003-s3-gettingstarted/kotlin/build.gradle.kts @@ -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")) } diff --git a/tuts/003-s3-gettingstarted/kotlin/src/main/kotlin/com/example/s3/GettingStartedScenario.kt b/tuts/003-s3-gettingstarted/kotlin/src/main/kotlin/com/example/s3/GettingStartedScenario.kt new file mode 100644 index 0000000..a21d6ec --- /dev/null +++ b/tuts/003-s3-gettingstarted/kotlin/src/main/kotlin/com/example/s3/GettingStartedScenario.kt @@ -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 + } +} diff --git a/tuts/003-s3-gettingstarted/kotlin/src/main/kotlin/com/example/s3/S3Wrapper.kt b/tuts/003-s3-gettingstarted/kotlin/src/main/kotlin/com/example/s3/S3Wrapper.kt new file mode 100644 index 0000000..754c610 --- /dev/null +++ b/tuts/003-s3-gettingstarted/kotlin/src/main/kotlin/com/example/s3/S3Wrapper.kt @@ -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 +} diff --git a/tuts/004-cloudmap-custom-attributes/kotlin/build.gradle.kts b/tuts/004-cloudmap-custom-attributes/kotlin/build.gradle.kts new file mode 100644 index 0000000..3e0c568 --- /dev/null +++ b/tuts/004-cloudmap-custom-attributes/kotlin/build.gradle.kts @@ -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")) } diff --git a/tuts/004-cloudmap-custom-attributes/kotlin/src/main/kotlin/com/example/servicediscovery/CloudMapWrapper.kt b/tuts/004-cloudmap-custom-attributes/kotlin/src/main/kotlin/com/example/servicediscovery/CloudMapWrapper.kt new file mode 100644 index 0000000..7ccdee9 --- /dev/null +++ b/tuts/004-cloudmap-custom-attributes/kotlin/src/main/kotlin/com/example/servicediscovery/CloudMapWrapper.kt @@ -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 +} diff --git a/tuts/004-cloudmap-custom-attributes/kotlin/src/main/kotlin/com/example/servicediscovery/GettingStartedScenario.kt b/tuts/004-cloudmap-custom-attributes/kotlin/src/main/kotlin/com/example/servicediscovery/GettingStartedScenario.kt new file mode 100644 index 0000000..ea94736 --- /dev/null +++ b/tuts/004-cloudmap-custom-attributes/kotlin/src/main/kotlin/com/example/servicediscovery/GettingStartedScenario.kt @@ -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 + } +} diff --git a/tuts/005-cloudfront-gettingstarted/kotlin/build.gradle.kts b/tuts/005-cloudfront-gettingstarted/kotlin/build.gradle.kts new file mode 100644 index 0000000..aef19eb --- /dev/null +++ b/tuts/005-cloudfront-gettingstarted/kotlin/build.gradle.kts @@ -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")) } diff --git a/tuts/005-cloudfront-gettingstarted/kotlin/src/main/kotlin/com/example/cloudfront/CloudFrontWrapper.kt b/tuts/005-cloudfront-gettingstarted/kotlin/src/main/kotlin/com/example/cloudfront/CloudFrontWrapper.kt new file mode 100644 index 0000000..4604f72 --- /dev/null +++ b/tuts/005-cloudfront-gettingstarted/kotlin/src/main/kotlin/com/example/cloudfront/CloudFrontWrapper.kt @@ -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 +} diff --git a/tuts/005-cloudfront-gettingstarted/kotlin/src/main/kotlin/com/example/cloudfront/GettingStartedScenario.kt b/tuts/005-cloudfront-gettingstarted/kotlin/src/main/kotlin/com/example/cloudfront/GettingStartedScenario.kt new file mode 100644 index 0000000..a025bc0 --- /dev/null +++ b/tuts/005-cloudfront-gettingstarted/kotlin/src/main/kotlin/com/example/cloudfront/GettingStartedScenario.kt @@ -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 + } +} diff --git a/tuts/008-vpc-private-servers-gs/kotlin/build.gradle.kts b/tuts/008-vpc-private-servers-gs/kotlin/build.gradle.kts new file mode 100644 index 0000000..2021aeb --- /dev/null +++ b/tuts/008-vpc-private-servers-gs/kotlin/build.gradle.kts @@ -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")) } diff --git a/tuts/008-vpc-private-servers-gs/kotlin/src/main/kotlin/com/example/ec2/Ec2Wrapper.kt b/tuts/008-vpc-private-servers-gs/kotlin/src/main/kotlin/com/example/ec2/Ec2Wrapper.kt new file mode 100644 index 0000000..68ac108 --- /dev/null +++ b/tuts/008-vpc-private-servers-gs/kotlin/src/main/kotlin/com/example/ec2/Ec2Wrapper.kt @@ -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 +} diff --git a/tuts/008-vpc-private-servers-gs/kotlin/src/main/kotlin/com/example/ec2/GettingStartedScenario.kt b/tuts/008-vpc-private-servers-gs/kotlin/src/main/kotlin/com/example/ec2/GettingStartedScenario.kt new file mode 100644 index 0000000..0ee9510 --- /dev/null +++ b/tuts/008-vpc-private-servers-gs/kotlin/src/main/kotlin/com/example/ec2/GettingStartedScenario.kt @@ -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 + } +} diff --git a/tuts/009-vpc-ipam-gs/kotlin/build.gradle.kts b/tuts/009-vpc-ipam-gs/kotlin/build.gradle.kts new file mode 100644 index 0000000..2021aeb --- /dev/null +++ b/tuts/009-vpc-ipam-gs/kotlin/build.gradle.kts @@ -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")) } diff --git a/tuts/009-vpc-ipam-gs/kotlin/src/main/kotlin/com/example/ec2/Ec2Wrapper.kt b/tuts/009-vpc-ipam-gs/kotlin/src/main/kotlin/com/example/ec2/Ec2Wrapper.kt new file mode 100644 index 0000000..68ac108 --- /dev/null +++ b/tuts/009-vpc-ipam-gs/kotlin/src/main/kotlin/com/example/ec2/Ec2Wrapper.kt @@ -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 +} diff --git a/tuts/009-vpc-ipam-gs/kotlin/src/main/kotlin/com/example/ec2/GettingStartedScenario.kt b/tuts/009-vpc-ipam-gs/kotlin/src/main/kotlin/com/example/ec2/GettingStartedScenario.kt new file mode 100644 index 0000000..0ee9510 --- /dev/null +++ b/tuts/009-vpc-ipam-gs/kotlin/src/main/kotlin/com/example/ec2/GettingStartedScenario.kt @@ -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 + } +} diff --git a/tuts/010-cloudmap-service-discovery/kotlin/build.gradle.kts b/tuts/010-cloudmap-service-discovery/kotlin/build.gradle.kts new file mode 100644 index 0000000..3e0c568 --- /dev/null +++ b/tuts/010-cloudmap-service-discovery/kotlin/build.gradle.kts @@ -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")) } diff --git a/tuts/010-cloudmap-service-discovery/kotlin/src/main/kotlin/com/example/servicediscovery/CloudMapWrapper.kt b/tuts/010-cloudmap-service-discovery/kotlin/src/main/kotlin/com/example/servicediscovery/CloudMapWrapper.kt new file mode 100644 index 0000000..7ccdee9 --- /dev/null +++ b/tuts/010-cloudmap-service-discovery/kotlin/src/main/kotlin/com/example/servicediscovery/CloudMapWrapper.kt @@ -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 +} diff --git a/tuts/010-cloudmap-service-discovery/kotlin/src/main/kotlin/com/example/servicediscovery/GettingStartedScenario.kt b/tuts/010-cloudmap-service-discovery/kotlin/src/main/kotlin/com/example/servicediscovery/GettingStartedScenario.kt new file mode 100644 index 0000000..ea94736 --- /dev/null +++ b/tuts/010-cloudmap-service-discovery/kotlin/src/main/kotlin/com/example/servicediscovery/GettingStartedScenario.kt @@ -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 + } +} diff --git a/tuts/011-getting-started-batch-fargate/kotlin/build.gradle.kts b/tuts/011-getting-started-batch-fargate/kotlin/build.gradle.kts new file mode 100644 index 0000000..b709c28 --- /dev/null +++ b/tuts/011-getting-started-batch-fargate/kotlin/build.gradle.kts @@ -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")) } diff --git a/tuts/011-getting-started-batch-fargate/kotlin/src/main/kotlin/com/example/batch/BatchWrapper.kt b/tuts/011-getting-started-batch-fargate/kotlin/src/main/kotlin/com/example/batch/BatchWrapper.kt new file mode 100644 index 0000000..b3ce910 --- /dev/null +++ b/tuts/011-getting-started-batch-fargate/kotlin/src/main/kotlin/com/example/batch/BatchWrapper.kt @@ -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 +} diff --git a/tuts/011-getting-started-batch-fargate/kotlin/src/main/kotlin/com/example/batch/GettingStartedScenario.kt b/tuts/011-getting-started-batch-fargate/kotlin/src/main/kotlin/com/example/batch/GettingStartedScenario.kt new file mode 100644 index 0000000..5a4cf11 --- /dev/null +++ b/tuts/011-getting-started-batch-fargate/kotlin/src/main/kotlin/com/example/batch/GettingStartedScenario.kt @@ -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 + } +} diff --git a/tuts/012-transitgateway-gettingstarted/kotlin/build.gradle.kts b/tuts/012-transitgateway-gettingstarted/kotlin/build.gradle.kts new file mode 100644 index 0000000..2021aeb --- /dev/null +++ b/tuts/012-transitgateway-gettingstarted/kotlin/build.gradle.kts @@ -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")) } diff --git a/tuts/012-transitgateway-gettingstarted/kotlin/src/main/kotlin/com/example/ec2/Ec2Wrapper.kt b/tuts/012-transitgateway-gettingstarted/kotlin/src/main/kotlin/com/example/ec2/Ec2Wrapper.kt new file mode 100644 index 0000000..68ac108 --- /dev/null +++ b/tuts/012-transitgateway-gettingstarted/kotlin/src/main/kotlin/com/example/ec2/Ec2Wrapper.kt @@ -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 +} diff --git a/tuts/012-transitgateway-gettingstarted/kotlin/src/main/kotlin/com/example/ec2/GettingStartedScenario.kt b/tuts/012-transitgateway-gettingstarted/kotlin/src/main/kotlin/com/example/ec2/GettingStartedScenario.kt new file mode 100644 index 0000000..0ee9510 --- /dev/null +++ b/tuts/012-transitgateway-gettingstarted/kotlin/src/main/kotlin/com/example/ec2/GettingStartedScenario.kt @@ -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 + } +}