get_control
¶
get_control(
environment_arn: EnvironmentArn,
framework: FrameworkName,
control_id: ControlID,
framework_version: FrameworkVersion,
*,
config_overrides: Optional[AssuranceClientConfig] = None,
) -> GetControlOutput
Retrieves a single leaf control within a framework version, including its title, description, and requirements.
Parameters:
-
environment_arn(EnvironmentArn) –The ARN of this governance environment.
-
framework(FrameworkName) –The name of the compliance framework.
-
control_id(ControlID) –The control identifier. Optional. If omitted, the operation applies to the full framework.
-
framework_version(FrameworkVersion) –The version of the compliance framework.
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:
Get a PCI DSS control Retrieves one control from the PCI DSS framework so the payments team can review its requirements before assessing payments-prod.
>>> client.get_control(environment_arn='arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', framework='AWS:PCI-DSS', control_id='8.2.1', framework_version='4')
Source code in docs_src/capo_assurance/_services/assurance.py
2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 | |