class ECS.Paginator.ListAccountSettings
paginator = client.get_paginator('list_account_settings')

Creates an iterator that will paginate through responses from ECS.Client.list_account_settings().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
  • name (string) -- The name of the account setting you want to list the settings for.
  • value (string) -- The value of the account settings to filter results with. You must also specify an account setting name to use this parameter.
  • principalArn (string) --

    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.


    Federated users assume the account setting of the root user and can't have explicit account settings set for them.

  • effectiveSettings (boolean) -- Determines whether to return the effective settings. If true , the account settings for the root user or the default setting for the principalArn are returned. If false , the account settings for the principalArn are returned if they're set. Otherwise, no account settings are returned.
  • PaginationConfig (dict) --

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) --

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) --

      The size of each page.

    • StartingToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type



Response Syntax

    'settings': [
            'name': 'serviceLongArnFormat'|'taskLongArnFormat'|'containerInstanceLongArnFormat'|'awsvpcTrunking'|'containerInsights',
            'value': 'string',
            'principalArn': 'string'
    'NextToken': 'string'

Response Structure

  • (dict) --

    • settings (list) --

      The account settings for the resource.

      • (dict) --

        The current account setting for a resource.

        • name (string) --

          The Amazon ECS resource name.

        • value (string) --

          Determines whether the account setting is on or off for the specified resource.

        • principalArn (string) --

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

    • NextToken (string) --

      A token to resume pagination.