put_control_status_override
¶
put_control_status_override(
environment_arn: EnvironmentArn,
project: ProjectName,
framework: FrameworkName,
framework_version: FrameworkVersion,
control_id: ControlID,
type: StatusOverrideType,
*,
config_overrides: Optional[AssuranceClientConfig] = None,
requirement_id: Optional[RequirementId] = None,
justification: Optional[Justification] = None,
) -> PutControlStatusOverrideOutput
Marks a control, or one of its requirements, as not applicable to a project, or makes it applicable again. The decision applies only to the specified project and framework version, which must be enabled in the project.
Marking a control or requirement not applicable cancels its open remediation tasks. Making it applicable again doesn't reopen them.
If another request changes the same control at the same time, you receive a ConflictException. Call GetControlStatus before you retry.
Parameters:
-
environment_arn(EnvironmentArn) –The Amazon Resource Name (ARN) of this governance environment.
-
project(ProjectName) –The name of the project.
-
framework(FrameworkName) –The name of the compliance framework.
-
framework_version(FrameworkVersion) –The version of the compliance framework.
-
control_id(ControlID) –The identifier of the control. The control must exist in the framework version.
-
requirement_id(Optional[RequirementId], default:None) –The identifier of a requirement of the control. Specify it to declare or remove a decision on that requirement only. Omit it to apply the decision to the whole control. If the requirement doesn't belong to the control, AWS Assurance returns a
ValidationException. -
type(StatusOverrideType) –The decision to declare. Specify one of the following values:
-
NOT_APPLICABLE– Excludes the control or requirement from the project's outcome. Requires ajustification. If a decision already exists, the new justification replaces it, and AWS Assurance updatesdeclaredByanddeclaredAt. -
NONE– Removes the current decision on the specified control or requirement. If you remove the decision on a control, the decisions on its individual requirements stay in place. A requirement stays not applicable while its control is not applicable.
-
-
justification(Optional[Justification], default:None) –The reason that the control or requirement doesn't apply to the project. AWS Assurance keeps it as evidence for the decision. Required when
typeisNOT_APPLICABLE, and must contain 1–1,024 characters that aren't all whitespace. Omit it whentypeisNONE.
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.
Source code in docs_src/capo_assurance/_services/assurance.py
6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 | |