create_threat_entity_set
¶
create_threat_entity_set(
detector_id: DetectorId,
*,
config_overrides: Optional[GuardDutyClientConfig] = None,
name: Optional[Name] = None,
format: Optional[ThreatEntitySetFormat] = None,
location: Optional[Location] = None,
expected_bucket_owner: Optional[ExpectedBucketOwner] = None,
activate: Optional[Boolean] = None,
client_token: Optional[ClientToken] = None,
tags: Optional[TagMap] = None,
) -> CreateThreatEntitySetResponse
Creates a new threat entity set. In a threat entity set, you can provide known malicious threat entities for your Amazon Web Services environment. GuardDuty generates findings based on the entries in the threat entity sets. Only users of the administrator account can manage entity sets, which automatically apply to member accounts.
Parameters:
-
detector_id(DetectorId) –The unique ID of the detector of the GuardDuty account for which you want to create a threat entity set.
To find the
detectorIdin the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API. -
name(Optional[Name], default:None) –A user-friendly name to identify the threat entity set.
The name of your list can include lowercase letters, uppercase letters, numbers, dash (-), and underscore (_).
-
format(Optional[ThreatEntitySetFormat], default:None) –The format of the file that contains the threat entity set.
-
location(Optional[Location], default:None) –The URI of the file that contains the threat entity set. The format of the
LocationURL must be a valid Amazon S3 URL format. Invalid URL formats will result in an error, regardless of whether you activate the entity set or not. For more information about format of the location URLs, see Format of location URL under Step 2: Adding trusted or threat intelligence data in the Amazon GuardDuty User Guide. -
expected_bucket_owner(Optional[ExpectedBucketOwner], default:None) –The Amazon Web Services account ID that owns the Amazon S3 bucket specified in the location parameter.
-
activate(Optional[Boolean], default:None) –A boolean value that indicates whether GuardDuty should start using the uploaded threat entity set to generate findings.
-
client_token(Optional[ClientToken], default:None) –The idempotency token for the create request.
-
tags(Optional[TagMap], default:None) –The tags to be added to a new threat entity set resource.
Raises:
-
BadRequestException–A bad request exception object.
-
InternalServerErrorException–An internal server error exception object.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_guardduty/_services/guard_duty.py
1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 | |