@@ -34,6 +34,13 @@ For prerequisites, see the [README](../../README.md#Prerequisites) in the `javav
3434- [ Hello IAM] ( src/main/java/com/example/iam/HelloIAM.java#L6 ) (` ListPolicies ` )
3535
3636
37+ ### Basics
38+
39+ Code examples that show you how to perform the essential operations within a service.
40+
41+ - [ Learn the basics] ( src/main/java/com/example/iam/IAMScenario.java )
42+
43+
3744### Single actions
3845
3946Code excerpts that show you how to call individual service functions.
@@ -61,7 +68,6 @@ Code examples that show you how to accomplish a specific task by calling multipl
6168functions within the same service.
6269
6370- [ Build and manage a resilient service] ( ../../usecases/resilient_service/src/main/java/com/example/resilient/Main.java )
64- - [ Create a user and assume a role] ( src/main/java/com/example/iam/IAMScenario.java )
6571- [ Work with the IAM Policy Builder API] ( src/main/java/com/example/iam/IamPolicyBuilderExamples.java )
6672
6773
@@ -81,6 +87,22 @@ functions within the same service.
8187This example shows you how to get started using IAM.
8288
8389
90+ #### Learn the basics
91+
92+ This example shows you how to create a user and assume a role.
93+
94+ - Create a user with no permissions.
95+ - Create a role that grants permission to list Amazon S3 buckets for the account.
96+ - Add a policy to let the user assume the role.
97+ - Assume the role and list S3 buckets using temporary credentials, then clean up resources.
98+
99+ <!-- custom.basic_prereqs.iam_Scenario_CreateUserAssumeRole.start-->
100+ <!-- custom.basic_prereqs.iam_Scenario_CreateUserAssumeRole.end-->
101+
102+
103+ <!-- custom.basics.iam_Scenario_CreateUserAssumeRole.start-->
104+ <!-- custom.basics.iam_Scenario_CreateUserAssumeRole.end-->
105+
84106
85107#### Build and manage a resilient service
86108
@@ -100,22 +122,6 @@ This example shows you how to create a load-balanced web service that returns bo
100122<!-- custom.scenarios.cross_ResilientService.start-->
101123<!-- custom.scenarios.cross_ResilientService.end-->
102124
103- #### Create a user and assume a role
104-
105- This example shows you how to create a user and assume a role.
106-
107- - Create a user with no permissions.
108- - Create a role that grants permission to list Amazon S3 buckets for the account.
109- - Add a policy to let the user assume the role.
110- - Assume the role and list S3 buckets using temporary credentials, then clean up resources.
111-
112- <!-- custom.scenario_prereqs.iam_Scenario_CreateUserAssumeRole.start-->
113- <!-- custom.scenario_prereqs.iam_Scenario_CreateUserAssumeRole.end-->
114-
115-
116- <!-- custom.scenarios.iam_Scenario_CreateUserAssumeRole.start-->
117- <!-- custom.scenarios.iam_Scenario_CreateUserAssumeRole.end-->
118-
119125#### Work with the IAM Policy Builder API
120126
121127This example shows you how to do the following:
0 commit comments