Table Of Contents

Feedback

User Guide

First time using the AWS CLI? See the User Guide for help getting started.

[ aws . ecs ]

list-account-settings

Description

Lists the account settings for an Amazon ECS resource for a specified principal.

See also: AWS API Documentation

See 'aws help' for descriptions of global parameters.

Synopsis

  list-account-settings
[--name <value>]
[--value <value>]
[--principal-arn <value>]
[--effective-settings | --no-effective-settings]
[--next-token <value>]
[--max-results <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]

Options

--name (string)

The resource name you want to list the account settings for.

Possible values:

  • serviceLongArnFormat
  • taskLongArnFormat
  • containerInstanceLongArnFormat

--value (string)

The value of the account settings with which to filter results. You must also specify an account setting name to use this parameter.

--principal-arn (string)

The ARN of the principal, which can be an IAM user, IAM role, or the root user. If this field is omitted, the account settings are listed only for the authenticated user.

--effective-settings | --no-effective-settings (boolean)

Specifies whether to return the effective settings. If true , the account settings for the root user or the default setting for the principalArn . If false , the account settings for the principalArn are returned if they are set. Otherwise, no account settings are returned.

--next-token (string)

The nextToken value returned from a previous paginated ListAccountSettings request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value.

Note

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.

--max-results (integer)

The maximum number of account setting results returned by ListAccountSettings in paginated output. When this parameter is used, ListAccountSettings only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListAccountSettings request with the returned nextToken value. This value can be between 1 and 10. If this parameter is not used, then ListAccountSettings returns up to 10 results and a nextToken value if applicable.

--cli-input-json (string) Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally.

--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.

See 'aws help' for descriptions of global parameters.

Output

settings -> (list)

The account settings for the resource.

(structure)

The current account setting for a resource.

name -> (string)

The account resource name.

value -> (string)

The current account setting for the resource name. If enabled , then the resource will receive the new Amazon Resource Name (ARN) and resource identifier (ID) format. If disabled , then the resource will receive the old Amazon Resource Name (ARN) and resource identifier (ID) format.

principalArn -> (string)

The ARN of the principal, which can be an IAM user, IAM role, or the root user. If this field is omitted, the authenticated user is assumed.

nextToken -> (string)

The nextToken value to include in a future ListAccountSettings request. When the results of a ListAccountSettings request exceed maxResults , this value can be used to retrieve the next page of results. This value is null when there are no more results to return.