Skip to content

Commit ed57e09

Browse files
fix: added pagination functions to IAM credentials dropdown (#4892)
1 parent bd2a37d commit ed57e09

File tree

1 file changed

+6
-3
lines changed
  • plugins/core/jetbrains-community/src/software/aws/toolkits/jetbrains/core/gettingstarted

1 file changed

+6
-3
lines changed

plugins/core/jetbrains-community/src/software/aws/toolkits/jetbrains/core/gettingstarted/IdcRolePopup.kt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,17 @@ class IdcRolePopup(
8282
combo.proposeModelUpdate { model ->
8383
val token = tokenProvider.resolveToken().token()
8484

85-
client.listAccounts { it.accessToken(token) }
85+
val rolesList = client.listAccountsPaginator { it.accessToken(token) }
8686
.accountList()
8787
.flatMap { account ->
88-
client.listAccountRoles {
88+
client.listAccountRolesPaginator {
8989
it.accessToken(token)
9090
it.accountId(account.accountId())
9191
}.roleList()
92-
}.forEach {
92+
}
93+
94+
rolesList.sortedBy { it.roleName() }
95+
.forEach {
9396
model.addElement(it)
9497
}
9598

0 commit comments

Comments
 (0)