Skip to content

ECS  >  Operations  >  delete_account_setting

delete_account_setting

Operation

delete_account_setting async

delete_account_setting(input: DeleteAccountSettingInput, plugins: list[Plugin] | None = None) -> DeleteAccountSettingOutput

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

Parameters:

Name Type Description Default
input DeleteAccountSettingInput

An instance of DeleteAccountSettingInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
DeleteAccountSettingOutput

An instance of DeleteAccountSettingOutput.

Input

DeleteAccountSettingInput dataclass

Bases: _SerdeShape

Dataclass for DeleteAccountSettingInput structure.

Attributes

name class-attribute instance-attribute
name: str | None = ...

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

principal_arn class-attribute instance-attribute
principal_arn: str | None = ...

The Amazon Resource Name (ARN) of the principal. It can be a 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.

In order to use this parameter, you must be the root user, or the principal.

Output

DeleteAccountSettingOutput dataclass

Bases: _SerdeShape

Dataclass for DeleteAccountSettingOutput structure.

Attributes

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.

setting class-attribute instance-attribute
setting: Setting | None = ...

The account setting for the specified principal ARN.