Skip to main content

trusted_entity_sets

Creates, updates, deletes, gets or lists a trusted_entity_sets resource.

Overview

Nametrusted_entity_sets
TypeResource
Idaws.guardduty.trusted_entity_sets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)The timestamp when the associated trusted entity set was created.
error_detailsstringThe error details when the status is shown as ERROR.
expected_bucket_ownerstringThe Amazon Web Services account ID that owns the Amazon S3 bucket specified in the location parameter. (pattern: <code>[0-9]+</code>)
formatstringThe format of the file that contains the trusted entity set. (TXT, STIX, OTX_CSV, ALIEN_VAULT, PROOF_POINT, FIRE_EYE)
locationstringThe URI of the file that contains the trusted entity set.
namestringThe name of the threat entity set associated with the specified trustedEntitySetId.
statusstringThe status of the associated trusted entity set. (INACTIVE, ACTIVATING, ACTIVE, DEACTIVATING, ERROR, DELETE_PENDING, DELETED)
tagsobjectThe tags associated with trusted entity set resource.
updated_atstring (date-time)The timestamp when the associated trusted entity set was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_trusted_entity_setselectdetector_id, trusted_entity_set_id, regionRetrieves the trusted entity set associated with the specified trustedEntitySetId.
list_trusted_entity_setsselectdetector_id, regionmaxResults, nextTokenLists the trusted entity sets associated with the specified GuardDuty detector ID. If you use this operation from a member account, the trusted entity sets that are returned as a response, belong to the administrator account.
create_trusted_entity_setinsertdetector_id, region, ActivateCreates 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.
update_trusted_entity_setupdatedetector_id, trusted_entity_set_id, regionUpdates the trusted entity set associated with the specified trustedEntitySetId.
delete_trusted_entity_setdeletedetector_id, trusted_entity_set_id, regionDeletes the trusted entity set that is associated with the specified trustedEntitySetId.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
detector_idstringThe unique ID of the detector associated with the trusted entity set resource. To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.
regionstringAWS region (default: us-east-1)
trusted_entity_set_idstringThe unique ID that helps GuardDuty identify which trusted entity set needs to be deleted.
maxResultsintegerYou can use this parameter to indicate the maximum number of items you want in the response. The default value is 50.
nextTokenstringYou can use this parameter when paginating results. Set the value of this parameter to null on your first call to the list action. For subsequent calls to the action, fill nextToken in the request with the value of NextToken from the previous response to continue listing data.

SELECT examples

Retrieves the trusted entity set associated with the specified trustedEntitySetId.

SELECT
created_at,
error_details,
expected_bucket_owner,
format,
location,
name,
status,
tags,
updated_at
FROM aws.guardduty.trusted_entity_sets
WHERE detector_id = '{{ detector_id }}' -- required
AND trusted_entity_set_id = '{{ trusted_entity_set_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

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.

INSERT INTO aws.guardduty.trusted_entity_sets (
Name,
Format,
Location,
ExpectedBucketOwner,
Activate,
ClientToken,
Tags,
detector_id,
region
)
SELECT
'{{ Name }}',
'{{ Format }}',
'{{ Location }}',
'{{ ExpectedBucketOwner }}',
{{ Activate }} /* required */,
'{{ ClientToken }}',
'{{ Tags }}',
'{{ detector_id }}',
'{{ region }}'
RETURNING
trusted_entity_set_id
;

UPDATE examples

Updates the trusted entity set associated with the specified trustedEntitySetId.

UPDATE aws.guardduty.trusted_entity_sets
SET
Name = '{{ Name }}',
Location = '{{ Location }}',
ExpectedBucketOwner = '{{ ExpectedBucketOwner }}',
Activate = {{ Activate }}
WHERE
detector_id = '{{ detector_id }}' --required
AND trusted_entity_set_id = '{{ trusted_entity_set_id }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Deletes the trusted entity set that is associated with the specified trustedEntitySetId.

DELETE FROM aws.guardduty.trusted_entity_sets
WHERE detector_id = '{{ detector_id }}' --required
AND trusted_entity_set_id = '{{ trusted_entity_set_id }}' --required
AND region = '{{ region }}' --required
;