update_threat
async
¶
update_threat(
threat_id: str,
agent_space_id: str,
*,
config_overrides: Optional[AsyncSecurityAgentClientConfig] = None,
title: Optional[str] = None,
status: Optional[ThreatStatus] = None,
comments: Optional[str] = None,
statement: Optional[str] = None,
severity: Optional[ThreatSeverity] = None,
threat_source: Optional[str] = None,
prerequisites: Optional[str] = None,
threat_action: Optional[str] = None,
threat_impact: Optional[str] = None,
impacted_goal: Optional[StringList] = None,
impacted_assets: Optional[StringList] = None,
anchor: Optional[ThreatAnchorShape] = None,
evidence: Optional[ThreatEvidenceList] = None,
recommendation: Optional[str] = None,
) -> UpdateThreatOutput
Updates a threat.
Parameters:
-
threat_id(str) –The unique identifier of the threat to update.
-
agent_space_id(str) –The unique identifier of the agent space.
-
title(Optional[str], default:None) –A short title summarizing the threat.
-
status(Optional[ThreatStatus], default:None) –The updated status of the threat.
-
comments(Optional[str], default:None) –Optional customer comment.
-
statement(Optional[str], default:None) –The updated natural-language threat statement.
-
severity(Optional[ThreatSeverity], default:None) –The updated severity level of the threat.
-
threat_source(Optional[str], default:None) –The updated actor or origin of the threat.
-
prerequisites(Optional[str], default:None) –The updated conditions required for the threat to be exploitable.
-
threat_action(Optional[str], default:None) –The updated description of what the threat source can do.
-
threat_impact(Optional[str], default:None) –The updated direct consequence of the threat action.
-
impacted_goal(Optional[StringList], default:None) –The updated security goals affected by the threat.
-
impacted_assets(Optional[StringList], default:None) –The updated list of specific assets affected by the threat.
-
anchor(Optional[ThreatAnchorShape], default:None) –The updated DFD element this threat is anchored to.
-
evidence(Optional[ThreatEvidenceList], default:None) –The updated source code files supporting the threat.
-
recommendation(Optional[str], default:None) –The updated recommended mitigation guidance for this threat.
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
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 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 | |