create_threat_model
async
¶
create_threat_model(
title: str,
agent_space_id: str,
service_role: ServiceRole,
*,
config_overrides: Optional[AsyncSecurityAgentClientConfig] = None,
description: Optional[str] = None,
assets: Optional[Assets] = None,
scope_docs: Optional[DocumentList] = None,
log_config: Optional[CloudWatchLog] = None,
report_destination: Optional[ReportDestination] = None,
) -> CreateThreatModelOutput
Creates a new threat model configuration in an agent space. A threat model defines the parameters for automated threat analysis.
Parameters:
-
title(str) –The title of the threat model.
-
agent_space_id(str) –The unique identifier of the agent space to create the threat model in.
-
description(Optional[str], default:None) –A description of the application or system being threat modeled.
-
assets(Optional[Assets], default:None) –The assets to include in the threat model.
-
scope_docs(Optional[DocumentList], default:None) –The scoped documents for the agent to focus on during threat modeling.
-
service_role(ServiceRole) –The IAM service role to use for the threat model.
-
log_config(Optional[CloudWatchLog], default:None) –The CloudWatch Logs configuration for the threat model.
-
report_destination(Optional[ReportDestination], default:None) –The destination for publishing scan reports to an integrated document provider.
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
2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 | |