update_pentest
¶
update_pentest(
pentest_id: str,
agent_space_id: str,
*,
config_overrides: Optional[SecurityAgentClientConfig] = None,
title: Optional[str] = None,
assets: Optional[Assets] = None,
exclude_risk_types: Optional[RiskTypeList] = None,
service_role: Optional[ServiceRole] = None,
log_config: Optional[CloudWatchLog] = None,
vpc_config: Optional[VpcConfig] = None,
network_traffic_config: Optional[NetworkTrafficConfig] = None,
code_remediation_strategy: Optional[CodeRemediationStrategy] = None,
disable_managed_skills: Optional[SkillTypeList] = None,
max_task_hours: Optional[float] = None,
report_destination: Optional[ReportDestination] = None,
report_filters: Optional[ReportFilters] = None,
cicd_configuration: Optional[CiCdConfiguration] = None,
test_scope: Optional[TestScope] = None,
) -> UpdatePentestOutput
Updates an existing pentest configuration.
Parameters:
-
pentest_id(str) –The unique identifier of the pentest to update.
-
agent_space_id(str) –The unique identifier of the agent space that contains the pentest.
-
title(Optional[str], default:None) –The updated title of the pentest.
-
assets(Optional[Assets], default:None) –The updated assets for the pentest.
-
exclude_risk_types(Optional[RiskTypeList], default:None) –The updated list of risk types to exclude from the pentest.
-
service_role(Optional[ServiceRole], default:None) –The updated IAM service role for the pentest.
-
log_config(Optional[CloudWatchLog], default:None) –The updated CloudWatch Logs configuration for the pentest.
-
vpc_config(Optional[VpcConfig], default:None) –The updated VPC configuration for the pentest.
-
network_traffic_config(Optional[NetworkTrafficConfig], default:None) –The updated network traffic configuration for the pentest.
-
code_remediation_strategy(Optional[CodeRemediationStrategy], default:None) –The updated code remediation strategy for the pentest.
-
disable_managed_skills(Optional[SkillTypeList], default:None) –The updated list of managed skills to disable for this pentest. Valid values include FINDING_PERSONALIZATION and LOGIN_OPTIMIZATION.
-
max_task_hours(Optional[float], default:None) –The updated maximum number of billable task hours allowed for jobs started from this pentest.
-
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.
-
cicd_configuration(Optional[CiCdConfiguration], default:None) –The updated CI/CD pentesting configuration to apply to the pentest.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_securityagent/_services/security_agent.py
4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 | |