list_controls
async
¶
list_controls(
environment_arn: EnvironmentArn,
framework: FrameworkName,
framework_version: FrameworkVersion,
control_group_id: ControlID,
*,
config_overrides: Optional[AsyncAssuranceClientConfig] = 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.
>>> await 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/async_assurance.py
4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 | |