listAccountSettings

abstract suspend fun listAccountSettings(input: ListAccountSettingsRequest = ListAccountSettingsRequest { }): ListAccountSettingsResponse

Lists the account settings for a specified principal.

Samples

// This example displays the effective account settings for your account.
val resp = ecsClient.listAccountSettings {
    effectiveSettings = true
}
// This example displays the effective account settings for the specified user or role.
val resp = ecsClient.listAccountSettings {
    effectiveSettings = true
    principalArn = "arn:aws:iam::<aws_account_id>:user/principalName"
}