update_evidence
¶
update_evidence(
environment_arn: EnvironmentArn,
project: ProjectName,
evidence_id: str,
*,
config_overrides: Optional[AssuranceClientConfig] = None,
title: Optional[EvidenceTitle] = None,
description: Optional[EvidenceDescription] = None,
add_control_reference_links: Optional[ControlReferenceList] = None,
remove_control_reference_links: Optional[ControlReferenceList] = None,
link_mode: Optional[LinkMode] = None,
) -> UpdateEvidenceOutput
Updates evidence metadata and manages control links (add or remove) and re-analysis without creating a new evidence version.
Parameters:
-
environment_arn(EnvironmentArn) –The ARN of this governance environment.
-
project(ProjectName) –The name of the project.
-
evidence_id(str) –The unique identifier of the evidence item.
-
title(Optional[EvidenceTitle], default:None) –The optional new title.
-
description(Optional[EvidenceDescription], default:None) –The optional new description.
-
add_control_reference_links(Optional[ControlReferenceList], default:None) –The control links to add.
-
remove_control_reference_links(Optional[ControlReferenceList], default:None) –The control links to remove. AWS Assurance doesn't suggest removed links again.
-
link_mode(Optional[LinkMode], default:None) –Controls whether AWS Assurance analyzes the latest version of the evidence again and suggests new control links. Specify one of the following values:
-
AUTO– Starts an analysis. The analysis only adds links. It keeps existing links, and it doesn't suggest links that you removed. -
MANUAL– Doesn't run an analysis. This is the default if you omit this parameter.
You can't specify
DISABLED. If an analysis that started less than 10 minutes ago is still running, AWS Assurance returns aConflictException. Other changes in the same request might already be applied, so it's safe to retry. -
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:
Link evidence to a control Links the user access review evidence to a PCI-DSS control in the payments-prod project.
>>> client.update_evidence(environment_arn='arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', project='payments-prod', evidence_id='assurance://PCI-DSS-user-access-review.pdf', add_control_reference_links=[{'framework': 'AWS:PCI-DSS', 'frameworkVersion': '4', 'controlId': '8.2.1'}])
Source code in docs_src/capo_assurance/_services/assurance.py
7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 | |