get_control
async
¶
get_control(
environment_arn: EnvironmentArn,
framework: FrameworkName,
control_id: ControlID,
framework_version: FrameworkVersion,
*,
config_overrides: Optional[AsyncAssuranceClientConfig] = 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.
>>> await 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/async_assurance.py
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 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 | |