Skip to main content

threat_entity_sets

Creates, updates, deletes or gets a threat_entity_set resource or lists threat_entity_sets in a region

Overview

Namethreat_entity_sets
TypeResource
DescriptionResource Type definition for AWS::GuardDuty::ThreatEntitySet
Idawscc.guardduty.threat_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::ThreatEntitySet.

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 threat_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.threat_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 threat_entity_set resource, using stack-deploy.

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

DELETE example

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

Permissions

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

Create

guardduty:CreateThreatEntitySet,
guardduty:GetThreatEntitySet,
guardduty:TagResource,
s3:GetObject

Read

guardduty:GetThreatEntitySet

Delete

guardduty:ListDetectors,
guardduty:ListThreatEntitySets,
guardduty:DeleteThreatEntitySet,
guardduty:GetThreatEntitySet

Update

guardduty:UpdateThreatEntitySet,
guardduty:GetThreatEntitySet,
guardduty:ListThreatEntitySets,
guardduty:TagResource,
guardduty:UntagResource,
s3:GetObject

List

guardduty:ListThreatEntitySets