kotlin/services/iam/README.md
Shows how to use the AWS SDK for Kotlin to work with AWS Identity and Access Management (IAM).
<!--custom.overview.start--> <!--custom.overview.end-->IAM is a web service for securely controlling access to AWS services. With IAM, you can centrally manage permissions in your AWS account.
For prerequisites, see the README in the kotlin folder.
Code examples that show you how to perform the essential operations within a service.
Code excerpts that show you how to call individual service functions.
To successfully run the IAMScenario, you need a JSON file that contains the information to create a role. Included in this file is the ARN of the IAM user for the trust relationship. The following JSON shows an example.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": "<Enter the IAM User ARN value>"
},
"Action": "sts:AssumeRole",
"Condition": {}
}
]
}
To run these examples, you can setup your development environment to use Gradle to configure and build AWS SDK for Kotlin projects. For more information, see Get started with the AWS SDK for Kotlin.
<!--custom.instructions.end-->This example shows you how to create a user and assume a role.
⚠ Running tests might result in charges to your AWS account.
To find instructions for running these tests, see the README
in the kotlin folder.
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0