list_control_resources
¶
list_control_resources(
environment_arn: EnvironmentArn,
framework: FrameworkName,
framework_version: FrameworkVersion,
control_id: ControlID,
*,
config_overrides: Optional[AssuranceClientConfig] = 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.
>>> 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/assurance.py
4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 | |