list_controls
¶
list_controls(
environment_arn: EnvironmentArn,
framework: FrameworkName,
framework_version: FrameworkVersion,
control_group_id: ControlID,
*,
config_overrides: Optional[AssuranceClientConfig] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[PaginationToken] = None,
) -> ListControlsOutput
Lists the leaf controls within a single control group in a framework version. Supports pagination through maxResults and nextToken.
Parameters:
-
environment_arn(EnvironmentArn) –The ARN of this governance environment.
-
framework(FrameworkName) –The name of the compliance framework.
-
framework_version(FrameworkVersion) –The version of the compliance framework.
-
control_group_id(ControlID) –The control group whose controls the operation returns.
-
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 controls in a group Lists the leaf controls in the authentication group of the PCI DSS framework so the payments team can select which controls apply to payments-prod.
>>> client.list_controls(environment_arn='arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', framework='AWS:PCI-DSS', framework_version='4', control_group_id='8.')
Source code in docs_src/capo_assurance/_services/assurance.py
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 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 | |