putAccountSetting

Modifies an account setting. Account settings are set on a per-Region basis.

If you change the root user account setting, the default settings are reset for users and roles that do not have specified individual account settings. For more information, see Account Settings in the Amazon Elastic Container Service Developer Guide.

Samples

import aws.sdk.kotlin.services.ecs.model.SettingName

fun main() { 
   //sampleStart 
   // This example modifies the account setting for a specific IAM user or IAM role to opt in to the new
// ARN and resource ID format for Amazon ECS container instances. If you re using this command as the root
// user, then changes apply to the entire AWS account, unless an IAM user or role explicitly overrides these
// settings for themselves.
val resp = ecsClient.putAccountSetting {
    name = SettingName.fromValue("containerInstanceLongArnFormat")
    value = "enabled"
    principalArn = "arn:aws:iam::<aws_account_id>:user/principalName"
} 
   //sampleEnd
}
import aws.sdk.kotlin.services.ecs.model.SettingName

fun main() { 
   //sampleStart 
   // This example modifies your account settings to opt in to the new ARN and resource ID format for
// Amazon ECS services. If you re using this command as the root user, then changes apply to the entire AWS
// account, unless an IAM user or role explicitly overrides these settings for themselves.
val resp = ecsClient.putAccountSetting {
    name = SettingName.fromValue("serviceLongArnFormat")
    value = "enabled"
} 
   //sampleEnd
}