v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1456373564.1 KB

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

post/#X-Amz-Target=AmazonEC2ContainerServiceV20141113.DeleteAccountSetting

Headers

X-Amz-Target'AmazonEC2ContainerServiceV20141113.DeleteAccountSetting' required

Request body

name'serviceLongArnFormat' | 'taskLongArnFormat' | 'containerInstanceLongArnFormat' | 'awsvpcTrunking' | 'containerInsights' | 'fargateFIPSMode' | 'tagResourceAuthorization' required

The resource name to disable the account setting for. If <code>serviceLongArnFormat</code> is specified, the ARN for your Amazon ECS services is affected. If <code>taskLongArnFormat</code> is specified, the ARN and resource ID for your Amazon ECS tasks is affected. If <code>containerInstanceLongArnFormat</code> is specified, the ARN and resource ID for your Amazon ECS container instances is affected. If <code>awsvpcTrunking</code> is specified, the ENI limit for your Amazon ECS container instances is affected.

principalArnstring

The Amazon Resource Name (ARN) of the principal. It can be an user, role, or the root user. If you specify the root user, it disables the account setting for all users, roles, and the root user of the account unless a user or role explicitly overrides these settings. If this field is omitted, the setting is changed only for the authenticated user.

Response

Success

Example response

{
  "setting": {
    "name": "containerInstanceLongArnFormat",
    "value": "enabled",
    "principalArn": "arn:aws:iam::<aws_account_id>:user/principalName"
  }
}