Skip to content

delete_account_setting

Operation

delete_account_setting

delete_account_setting(request: DeleteAccountSettingInput | DeleteAccountSettingInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[DeleteAccountSettingInputDict]) -> DeleteAccountSettingOutput

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

Parameters:

Name Type Description Default
request DeleteAccountSettingInput | DeleteAccountSettingInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[DeleteAccountSettingInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
DeleteAccountSettingOutput

An instance of DeleteAccountSettingOutput.

delete_account_setting async

delete_account_setting(request: DeleteAccountSettingInput | DeleteAccountSettingInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[DeleteAccountSettingInputDict]) -> DeleteAccountSettingOutput

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

Parameters:

Name Type Description Default
request DeleteAccountSettingInput | DeleteAccountSettingInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[DeleteAccountSettingInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
DeleteAccountSettingOutput

An instance of DeleteAccountSettingOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

DeleteAccountSettingInputDict

Bases: TypedDict

Dictionary form of DeleteAccountSettingInput.

Attributes

name instance-attribute
name: Required[str]

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 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.

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.