list_control_resources
async
¶
list_control_resources(
environment_arn: EnvironmentArn,
framework: FrameworkName,
framework_version: FrameworkVersion,
control_id: ControlID,
*,
config_overrides: Optional[AsyncAssuranceClientConfig] = None,
project: Optional[ProjectName] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[PaginationToken] = None,
) -> ListControlResourcesOutput
Lists the resources that are in scope for the automated evaluation of a control. If no resource types apply to the control, the list is empty.
Parameters:
-
environment_arn(EnvironmentArn) –The Amazon Resource Name (ARN) of this governance environment.
-
framework(FrameworkName) –The name of the compliance framework.
-
framework_version(FrameworkVersion) –The version of the compliance framework.
-
control_id(ControlID) –The identifier of the control.
-
project(Optional[ProjectName], default:None) –Optional project scope. When provided, only resources that match the project's resource filters are considered. When omitted, all of the environment's resources are considered.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return on one page. The default is 50. If more results 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.
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 resources in scope for a control Lists the resources discovered for the payments-prod project that a PCI DSS control is evaluated against during an automated scan.
>>> await client.list_control_resources(environment_arn='arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', framework='AWS:PCI-DSS', framework_version='4', control_id='8.2.1', project='payments-prod')
Source code in docs_src/capo_assurance/_services/async_assurance.py
4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 | |