# AWS SDK for Kotlin

DevFeed: [AWS SDK for Kotlin](<https://devfeed.tech/articles/aws-sdk-for-kotlin-23688.md>)

Original publisher: [Read original article](<https://medium.com/betclic-tech/aws-sdk-for-kotlin-222e7e7f0ac0?source=rss----7e406d68d94b---4>)

Author: thiiozz

Published: 2022-08-23T07:05:18Z

Content type: tutorial

Language: en

Sources: [betclic-tech - Medium](<https://devfeed.tech/sources/betclic-tech-medium.md>)

Topics: [SDKs](<https://devfeed.tech/topics/sdks.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Amazon Web Services](<https://devfeed.tech/topics/aws.md>), [DynamoDB](<https://devfeed.tech/topics/dynamodb.md>), [Gradle](<https://devfeed.tech/topics/gradle.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [Amazon S3](<https://devfeed.tech/topics/amazon-s3.md>), [Amazon Simple Queue Service (SQS)](<https://devfeed.tech/topics/amazon-simple-queue-service-sqs.md>), [Java](<https://devfeed.tech/topics/java.md>)

Tags: [amazon](<https://devfeed.tech/tags/amazon.md>), [api](<https://devfeed.tech/tags/api.md>), [async](<https://devfeed.tech/tags/async.md>), [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [aws](<https://devfeed.tech/tags/aws.md>), [backend](<https://devfeed.tech/tags/backend.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [dynamodb](<https://devfeed.tech/tags/dynamodb.md>), [gradle](<https://devfeed.tech/tags/gradle.md>), [java](<https://devfeed.tech/tags/java.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [sdk](<https://devfeed.tech/tags/sdk.md>)

## AI overview

This tutorial introduces the beta AWS SDK for Kotlin, an open-source Apache 2.0 project built from scratch in Kotlin. It demonstrates configuring the SDK with Gradle, creating a DynamoDB client, performing table operations, and using fluent syntax and asynchronous calls compared with the Java SDK.

## Source excerpt

During AWS re:Invent 2021, Amazon announced an AWS SDK for Kotlin. At Betclic, we were very enthusiastic about this news as we use the Kotlin language for both Frontend and Backend apps, and we love it. One year later, the first beta releases are available for developers to preview. Let's discover them! Forewords This SDK can be used to develop applications that interact with services such as DynamoDB, S3, SQS, and many more (API reference). Like other SDKs, this new one is an AWS open-source project available under the Apache 2.0 licence. The project is still in beta "developer preview" phase, and it should not be used in production yet. You can follow developments on the public road map. After the first official release, daily releases are planned to make services updates available within the SDK under 24 hours. Interesting point, this new SDK has been re-built from scratch using Kotlin rather than re-using the existing Java SDK. Let's dig into concrete examples around DynamoDB. Hello SDK ! First, you need to add the SDK dependency in your project, for example, with Gradle. https://medium.com/media/9045f8ec2d12ecbc65bba8edb7d8e611/href Each AWS services have its own standalone, independent and light dependency. Then we can initiate our DynamoDB client with https://medium.com/media/e48bff2f4b6a43e17060d0ca67f5d82f/href The default behaviour of the client can be configured in many ways: Credentials provider (Profile, environment, sts, SSO (soon) ...) Logging backed by Slf4j Http engine fully overridable Retry strategy, AWS region, services endpoints and so on With our project and client correctly setup, we can make our first call https://medium.com/media/7c35f36e7c35b52988464e9a59c1d11a/hrefFluent Kotlin Syntax Moving forward, let's assume we have an existing DynamoDB table "sports" with a single attribute "name" We can put a new item with https://medium.com/media/2df0a1bd5cf14c6ad8586bae1afc85d7/href And get it back with https://medium.com/media/8be66a2add009fd6021c8