deleteAccountSetting

Disables an account setting for a specified user, role, or the root user for an account.

Samples

import aws.sdk.kotlin.services.ecs.model.SettingName
fun main() { 
   //sampleStart 
   // This example deletes the account setting for a specific IAM user or IAM role for the specified
// resource type. Only the root user can view or modify the account settings for another user.
val resp = ecsClient.deleteAccountSetting {
    name = SettingName.fromValue("containerInstanceLongArnFormat")
    principalArn = "arn:aws:iam::<aws_account_id>:user/principalName"
} 
   //sampleEnd
}
import aws.sdk.kotlin.services.ecs.model.SettingName
fun main() { 
   //sampleStart 
   // This example deletes the account setting for your user for the specified resource type.
val resp = ecsClient.deleteAccountSetting {
    name = SettingName.fromValue("serviceLongArnFormat")
} 
   //sampleEnd
}