Skip to main content

trusted_entity_sets

Creates, updates, deletes or gets a trusted_entity_set resource or lists trusted_entity_sets in a region

Overview

Nametrusted_entity_sets
TypeResource
DescriptionResource Type definition for AWS::GuardDuty::TrustedEntitySet
Idawscc.guardduty.trusted_entity_sets

Fields

NameDatatypeDescription
idstring
formatstring
activateboolean
statusstring
created_atstring
updated_atstring
error_detailsstring
detector_idstring
namestring
locationstring
expected_bucket_ownerstring
tagsarray
regionstringAWS region.

For more information, see AWS::GuardDuty::TrustedEntitySet.

Methods

NameAccessible byRequired Params
create_resourceINSERTFormat, Location, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual trusted_entity_set.

SELECT
region,
id,
format,
activate,
status,
created_at,
updated_at,
error_details,
detector_id,
name,
location,
expected_bucket_owner,
tags
FROM awscc.guardduty.trusted_entity_sets
WHERE region = 'us-east-1' AND data__Identifier = '<Id>|<DetectorId>';

INSERT example

Use the following StackQL query and manifest file to create a new trusted_entity_set resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.guardduty.trusted_entity_sets (
Format,
Location,
region
)
SELECT
'{{ Format }}',
'{{ Location }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.guardduty.trusted_entity_sets
WHERE data__Identifier = '<Id|DetectorId>'
AND region = 'us-east-1';

Permissions

To operate on the trusted_entity_sets resource, the following permissions are required:

Create

guardduty:CreateTrustedEntitySet,
guardduty:GetTrustedEntitySet,
guardduty:TagResource,
s3:GetObject

Read

guardduty:GetTrustedEntitySet

Delete

guardduty:ListDetectors,
guardduty:ListTrustedEntitySets,
guardduty:DeleteTrustedEntitySet,
guardduty:GetTrustedEntitySet

Update

guardduty:UpdateTrustedEntitySet,
guardduty:GetTrustedEntitySet,
guardduty:ListTrustedEntitySets,
guardduty:TagResource,
guardduty:UntagResource,
s3:GetObject

List

guardduty:ListTrustedEntitySets