create_control_group
¶
create_control_group(
environment_arn: EnvironmentArn,
framework: FrameworkName,
framework_version: FrameworkVersion,
control_id: ControlID,
title: ControlTitle,
*,
config_overrides: Optional[AssuranceClientConfig] = None,
description: Optional[ControlDescription] = None,
display_order: Optional[DisplayOrder] = None,
) -> CreateControlGroupOutput
Creates a control group within a custom framework.
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_id(ControlID) –The control group ID (for example, "A.1").
-
title(ControlTitle) –The display name for the control group.
-
description(Optional[ControlDescription], default:None) –A description of the control group.
-
display_order(Optional[DisplayOrder], default:None) –The ordering key that determines the display sequence within the 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.
-
ConflictException–A conflict occurred (for example, resource already exists).
-
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:
Create a control group Creates a control group in the payments team's custom framework while it is still a draft, to organize the controls it will track for payments-prod alongside PCI DSS.
>>> client.create_control_group(environment_arn='arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', framework='payments-pci-dss', framework_version='1.0', control_id='PAY-1', title='Payments data protection', description='Custom controls the payments team tracks for cardholder data handling.', display_order=1)
Source code in docs_src/capo_assurance/_services/assurance.py
1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 | |