update_evidence
async
¶
update_evidence(
environment_arn: EnvironmentArn,
project: ProjectName,
evidence_id: str,
*,
config_overrides: Optional[AsyncAssuranceClientConfig] = 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.
>>> await 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/async_assurance.py
7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 | |