Account / Paginator / ListRegions
ListRegions#
- class Account.Paginator.ListRegions#
paginator = client.get_paginator('list_regions')
- paginate(**kwargs)#
Creates an iterator that will paginate through responses from
Account.Client.list_regions()
.See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( AccountId='string', RegionOptStatusContains=[ 'ENABLED'|'ENABLING'|'DISABLING'|'DISABLED'|'ENABLED_BY_DEFAULT', ], PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
AccountId (string) –
Specifies the 12-digit account ID number of the Amazon Web Services account that you want to access or modify with this operation. If you don’t specify this parameter, it defaults to the Amazon Web Services account of the identity used to call the operation. To use this parameter, the caller must be an identity in the organization’s management account or a delegated administrator account. The specified account ID must be a member account in the same organization. The organization must have all features enabled, and the organization must have trusted access enabled for the Account Management service, and optionally a delegated admin account assigned.
Note
The management account can’t specify its own
AccountId
. It must call the operation in standalone context by not including theAccountId
parameter.To call this operation on an account that is not a member of an organization, don’t specify this parameter. Instead, call the operation using an identity belonging to the account whose contacts you wish to retrieve or modify.
RegionOptStatusContains (list) –
A list of Region statuses (Enabling, Enabled, Disabling, Disabled, Enabled_by_default) to use to filter the list of Regions for a given account. For example, passing in a value of ENABLING will only return a list of Regions with a Region status of ENABLING.
(string) –
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:
dict
- Returns:
Response Syntax
{ 'Regions': [ { 'RegionName': 'string', 'RegionOptStatus': 'ENABLED'|'ENABLING'|'DISABLING'|'DISABLED'|'ENABLED_BY_DEFAULT' }, ] }
Response Structure
(dict) –
Regions (list) –
This is a list of Regions for a given account, or if the filtered parameter was used, a list of Regions that match the filter criteria set in the
filter
parameter.(dict) –
This is a structure that expresses the Region for a given account, consisting of a name and opt-in status.
RegionName (string) –
The Region code of a given Region (for example,
us-east-1
).RegionOptStatus (string) –
One of potential statuses a Region can undergo (Enabled, Enabling, Disabled, Disabling, Enabled_By_Default).