create_threat_intel_set
¶
create_threat_intel_set(
detector_id: DetectorId,
*,
config_overrides: Optional[GuardDutyClientConfig] = None,
name: Optional[Name] = None,
format: Optional[ThreatIntelSetFormat] = None,
location: Optional[Location] = None,
activate: Optional[Boolean] = None,
client_token: Optional[ClientToken] = None,
tags: Optional[TagMap] = None,
expected_bucket_owner: Optional[AccountId] = None,
) -> CreateThreatIntelSetResponse
Creates a new ThreatIntelSet. ThreatIntelSets consist of known malicious IP addresses. GuardDuty generates findings based on ThreatIntelSets. Only users of the administrator account can use this operation.
Parameters:
-
detector_id(DetectorId) –The unique ID of the detector of the GuardDuty account for which you want to create a
threatIntelSet.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 ThreatIntelSet name displayed in all findings that are generated by activity that involves IP addresses included in this ThreatIntelSet.
-
format(Optional[ThreatIntelSetFormat], default:None) –The format of the file that contains the ThreatIntelSet.
-
location(Optional[Location], default:None) –The URI of the file that contains the ThreatIntelSet.
-
activate(Optional[Boolean], default:None) –A Boolean value that indicates whether GuardDuty is to start using the uploaded ThreatIntelSet.
-
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 list resource.
-
expected_bucket_owner(Optional[AccountId], default:None) –The Amazon Web Services account ID that owns the Amazon S3 bucket specified in the location parameter.
Raises:
-
AccessDeniedException–An access denied exception object.
-
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
1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 | |