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,
clean_up_strategy: Optional[CleanUpStrategy] = 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.
-
clean_up_strategy(Optional[CleanUpStrategy], default:None) –The updated strategy for cleaning up resources after pentest job completion.
-
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
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 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 | |