Skip to main content

threat_intel_sets

Creates, updates, deletes or gets a threat_intel_set resource or lists threat_intel_sets in a region

Overview

Namethreat_intel_sets
TypeResource
DescriptionResource Type definition for AWS::GuardDuty::ThreatIntelSet
Idaws.guardduty.threat_intel_sets

Fields

NameDatatypeDescription
idstring
formatstring
activateboolean
detector_idstring
namestring
locationstring
tagsarray
regionstringAWS region.

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 threat_intel_sets in a region.

SELECT
region,
id,
format,
activate,
detector_id,
name,
location,
tags
FROM aws.guardduty.threat_intel_sets
WHERE region = 'us-east-1';

Gets all properties from an individual threat_intel_set.

SELECT
region,
id,
format,
activate,
detector_id,
name,
location,
tags
FROM aws.guardduty.threat_intel_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_intel_set resource, using stack-deploy.

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

DELETE example

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

Permissions

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

Create

guardduty:CreateThreatIntelSet,
guardduty:GetThreatIntelSet,
guardduty:TagResource,
iam:PutRolePolicy

Read

guardduty:GetThreatIntelSet

Delete

guardduty:ListDetectors,
guardduty:ListThreatIntelSets,
guardduty:DeleteThreatIntelSet,
guardduty:GetThreatIntelSet,
iam:DeleteRolePolicy

Update

guardduty:UpdateThreatIntelSet,
guardduty:GetThreatIntelSet,
guardduty:ListThreatIntelSets,
iam:PutRolePolicy

List

guardduty:ListThreatIntelSets