Code your Kotlin project using the SDK for Kotlin - Amazon SDK for Kotlin
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Code your Kotlin project using the SDK for Kotlin

Now the fun begins. As you develop your application, you can refer to the Amazon SDK for Kotlin API Reference for complete information on the API operations. Use the following links for general Kotlin API information:

Log in using the Amazon CLI

Whenever you run a program that accesses Amazon Web Services services, you need an active Amazon access portal session. You do this by running the following command.

aws sso login

Since you have a default profile setup, you do not need to call the command with a --profile option. If your IAM Identity Center single sign-on configuration uses a named profile, the command is aws sso login --profile named-profile.

To test if you already have an active session, run the following Amazon CLI command.

aws sts get-caller-identity

The response to this command should report the IAM Identity Center account and permission set configured in the shared config file.