AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the DeleteAccountSetting operation. Disables an account setting for a specified user, role, or the root user for an account.
Namespace: Amazon.ECS.Model
Assembly: AWSSDK.ECS.dll
Version: 3.x.y.z
public class DeleteAccountSettingRequest : AmazonECSRequest IAmazonWebServiceRequest
The DeleteAccountSettingRequest type exposes the following members
Name | Description | |
---|---|---|
![]() |
DeleteAccountSettingRequest() |
Name | Type | Description | |
---|---|---|---|
![]() |
Name | Amazon.ECS.SettingName |
Gets and sets the property Name.
The resource name to disable the account setting for. If |
![]() |
PrincipalArn | System.String |
Gets and sets the property PrincipalArn. 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. |
This example deletes the account setting for your user for the specified resource type.
var client = new AmazonECSClient(); var response = client.DeleteAccountSetting(new DeleteAccountSettingRequest { Name = "serviceLongArnFormat" }); Setting setting = response.Setting;
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.
var client = new AmazonECSClient(); var response = client.DeleteAccountSetting(new DeleteAccountSettingRequest { Name = "containerInstanceLongArnFormat", PrincipalArn = "arn:aws:iam::<aws_account_id>:user/principalName" }); Setting setting = response.Setting;
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5