threat_intel_sets
Creates, updates, deletes or gets a threat_intel_set
resource or lists threat_intel_sets
in a region
Overview
Name | threat_intel_sets |
Type | Resource |
Description | Resource Type definition for AWS::GuardDuty::ThreatIntelSet |
Id | aws.guardduty.threat_intel_sets |
Fields
Name | Datatype | Description |
---|---|---|
id | string | |
format | string | |
activate | boolean | |
detector_id | string | |
name | string | |
location | string | |
tags | array | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | Format, Location, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.guardduty.threat_intel_sets (
Format,
Location,
region
)
SELECT
'{{ Format }}',
'{{ Location }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.guardduty.threat_intel_sets (
Format,
Activate,
DetectorId,
Name,
Location,
Tags,
region
)
SELECT
'{{ Format }}',
'{{ Activate }}',
'{{ DetectorId }}',
'{{ Name }}',
'{{ Location }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: threat_intel_set
props:
- name: Format
value: '{{ Format }}'
- name: Activate
value: '{{ Activate }}'
- name: DetectorId
value: '{{ DetectorId }}'
- name: Name
value: '{{ Name }}'
- name: Location
value: '{{ Location }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
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