list_discovered_resources
async
¶
list_discovered_resources(
environment_arn: EnvironmentArn,
*,
config_overrides: Optional[AsyncAssuranceClientConfig] = None,
project: Optional[ProjectName] = None,
account_id: Optional[AwsAccountId] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[PaginationToken] = None,
) -> ListDiscoveredResourcesOutput
Lists the resources that are in scope for an environment or project. Results are paginated. If more results are available, use the nextToken value returned in the response to retrieve the next page.
Parameters:
-
environment_arn(EnvironmentArn) –The ARN of this governance environment.
-
project(Optional[ProjectName], default:None) –The name of the project.
-
account_id(Optional[AwsAccountId], default:None) –The AWS account whose resources the operation returns. When set, the operation returns only resources owned by this account.
-
max_results(Optional[MaxResults], default:None) –The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the
nextTokenvalue from the response to get the next page. -
next_token(Optional[PaginationToken], default:None) –The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action. This error occurs when the request is unauthenticated, or is authenticated but lacks permission to invoke the operation.
-
InternalServerException–An internal server error occurred.
-
ResourceNotFoundException–The requested resource was not found.
-
ThrottlingException–The request was throttled.
-
ValidationException–The request failed validation.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
List discovered resources Lists the resources found in the payments-prod project so the team can confirm PCI-DSS assessment scope.
>>> await client.list_discovered_resources(environment_arn='arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', project='payments-prod')
Source code in docs_src/capo_assurance/_services/async_assurance.py
4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 | |