list_admin_accounts_for_organization
¶
list_admin_accounts_for_organization(
*,
config_overrides: Optional[FMSClientConfig] = None,
next_token: Optional[PaginationToken] = None,
max_results: Optional[PaginationMaxResults] = None,
) -> ListAdminAccountsForOrganizationResponse
Returns a AdminAccounts object that lists the Firewall Manager administrators within the organization that are onboarded to Firewall Manager by AssociateAdminAccount.
This operation can be called only from the organization's management account.
Parameters:
-
next_token(Optional[PaginationToken], default:None) –When you request a list of objects with a
MaxResultssetting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Firewall Manager returns aNextTokenvalue in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request. -
max_results(Optional[PaginationMaxResults], default:None) –The maximum number of objects that you want Firewall Manager to return for this request. If more objects are available, in the response, Firewall Manager provides a
NextTokenvalue that you can use in a subsequent call to get the next batch of objects.
Raises:
-
InternalErrorException–The operation failed because of a system problem, even though the request was valid. Retry your request.
-
InvalidOperationException–The operation failed because there was nothing to do or the operation wasn't possible. For example, you might have submitted an
AssociateAdminAccountrequest for an account ID that was already set as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by default, and that you need to enable for the Firewall Manager administrator account and for Organizations before you can access it. -
LimitExceededException–The operation exceeds a resource limit, for example, the maximum number of
policyobjects that you can create for an Amazon Web Services account. For more information, see Firewall Manager Limits in the WAF Developer Guide. -
ResourceNotFoundException–The specified resource was not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_fms/_services/fms.py
1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 | |