update_code_review
¶
update_code_review(
code_review_id: str,
agent_space_id: str,
*,
config_overrides: Optional[SecurityAgentClientConfig] = 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/security_agent.py
4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 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 | |