list_discovered_resources
async
¶
list_discovered_resources(
member_account_ids: AWSAccountIdList,
resource_type: ResourceType,
*,
config_overrides: Optional[AsyncFMSClientConfig] = None,
max_results: Optional[PaginationMaxResults] = None,
next_token: Optional[PaginationToken] = None,
) -> ListDiscoveredResourcesResponse
Returns an array of resources in the organization's accounts that are available to be associated with a resource set.
Parameters:
-
member_account_ids(AWSAccountIdList) –The Amazon Web Services account IDs to discover resources in. Only one account is supported per request. The account must be a member of your organization.
-
resource_type(ResourceType) –The type of resources to discover.
-
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. -
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.
Raises:
-
InternalErrorException–The operation failed because of a system problem, even though the request was valid. Retry your request.
-
InvalidInputException–The parameters of the request were invalid.
-
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. -
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_fms/_services/async_fms.py
1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 | |