listAccountSettings

Lists the account settings for a specified principal.

Samples


fun main() { 
   //sampleStart 
   // 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"
} 
   //sampleEnd
}

fun main() { 
   //sampleStart 
   // This example displays the effective account settings for your account.
val resp = ecsClient.listAccountSettings {
    effectiveSettings = true
} 
   //sampleEnd
}