update_pentest
async
¶
update_pentest(
pentest_id: str,
agent_space_id: str,
*,
config_overrides: Optional[AsyncSecurityAgentClientConfig] = 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/async_security_agent.py
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 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 | |