update_code_review
async
¶
update_code_review(
code_review_id: str,
agent_space_id: str,
*,
config_overrides: Optional[AsyncSecurityAgentClientConfig] = None,
title: Optional[str] = None,
assets: Optional[Assets] = None,
service_role: Optional[ServiceRole] = None,
log_config: Optional[CloudWatchLog] = None,
code_remediation_strategy: Optional[CodeRemediationStrategy] = None,
validation_mode: Optional[ValidationMode] = None,
max_task_hours: Optional[float] = None,
report_destination: Optional[ReportDestination] = None,
report_filters: Optional[ReportFilters] = None,
) -> UpdateCodeReviewOutput
Updates an existing code review configuration.
Parameters:
-
code_review_id(str) –The unique identifier of the code review to update.
-
agent_space_id(str) –The unique identifier of the agent space that contains the code review.
-
title(Optional[str], default:None) –The updated title of the code review.
-
assets(Optional[Assets], default:None) –The updated assets for the code review.
-
service_role(Optional[ServiceRole], default:None) –The updated IAM service role for the code review.
-
log_config(Optional[CloudWatchLog], default:None) –The updated CloudWatch Logs configuration for the code review.
-
code_remediation_strategy(Optional[CodeRemediationStrategy], default:None) –The updated code remediation strategy for the code review.
-
validation_mode(Optional[ValidationMode], default:None) –The updated validation mode for the code review. Valid values are SIMULATED and DISABLED.
-
max_task_hours(Optional[float], default:None) –The updated maximum number of billable task hours allowed for jobs started from this code review.
-
report_destination(Optional[ReportDestination], default:None) –The destination for publishing scan reports to an integrated document provider.
-
report_filters(Optional[ReportFilters], default:None) –The report-generation filters applied when the report is exported.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_securityagent/_services/async_security_agent.py
4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 | |