create_trusted_entity_set
¶
create_trusted_entity_set(
detector_id: DetectorId,
*,
config_overrides: Optional[GuardDutyClientConfig] = None,
name: Optional[Name] = None,
format: Optional[TrustedEntitySetFormat] = None,
location: Optional[Location] = None,
expected_bucket_owner: Optional[ExpectedBucketOwner] = None,
activate: Optional[Boolean] = None,
client_token: Optional[ClientToken] = None,
tags: Optional[TagMap] = None,
) -> CreateTrustedEntitySetResponse
Creates a new trusted entity set. In the trusted entity set, you can provide IP addresses and domains that you believe are secure for communication in your Amazon Web Services environment. GuardDuty will not generate findings for the entries that are specified in a trusted entity set. At any given time, you can have only one trusted entity set.
Only users of the administrator account can manage the 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 trusted 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 trusted entity set.
The name of your list can include lowercase letters, uppercase letters, numbers, dash (-), and underscore (_).
-
format(Optional[TrustedEntitySetFormat], default:None) –The format of the file that contains the trusted 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 is to start using the uploaded trusted entity set.
-
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 trusted 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
1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 | |