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
5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 | |