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 ListAccountSettings operation. Lists the account settings for a specified principal.
Namespace: Amazon.ECS.Model
Assembly: AWSSDK.ECS.dll
Version: 3.x.y.z
public class ListAccountSettingsRequest : AmazonECSRequest IAmazonWebServiceRequest
The ListAccountSettingsRequest type exposes the following members
Name | Description | |
---|---|---|
![]() |
ListAccountSettingsRequest() |
Name | Type | Description | |
---|---|---|---|
![]() |
EffectiveSettings | System.Boolean |
Gets and sets the property EffectiveSettings.
Determines whether to return the effective settings. If |
![]() |
MaxResults | System.Int32 |
Gets and sets the property MaxResults.
The maximum number of account setting results returned by |
![]() |
Name | Amazon.ECS.SettingName |
Gets and sets the property Name. The name of the account setting you want to list the settings for. |
![]() |
NextToken | System.String |
Gets and sets the property NextToken.
The This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes. |
![]() |
PrincipalArn | System.String |
Gets and sets the property PrincipalArn. The ARN of the principal, which can be a user, role, or the root user. If this field is omitted, the account settings are listed only for the authenticated user. In order to use this parameter, you must be the root user, or the principal. Federated users assume the account setting of the root user and can't have explicit account settings set for them. |
![]() |
Value | System.String |
Gets and sets the property Value. The value of the account settings to filter results with. You must also specify an account setting name to use this parameter. |
This example displays the effective account settings for your account.
var client = new AmazonECSClient(); var response = client.ListAccountSettings(new ListAccountSettingsRequest { EffectiveSettings = true }); List<Setting> settings = response.Settings;
This example displays the effective account settings for the specified user or role.
var client = new AmazonECSClient(); var response = client.ListAccountSettings(new ListAccountSettingsRequest { EffectiveSettings = true, PrincipalArn = "arn:aws:iam::<aws_account_id>:user/principalName" }); List<Setting> settings = response.Settings;
.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