put_control_status_override
async
¶
put_control_status_override(
environment_arn: EnvironmentArn,
project: ProjectName,
framework: FrameworkName,
framework_version: FrameworkVersion,
control_id: ControlID,
type: StatusOverrideType,
*,
config_overrides: Optional[AsyncAssuranceClientConfig] = 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/async_assurance.py
6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 | |