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

NameResourceAccessible byRequired Params
create_resourcetrusted_entity_setsINSERTFormat, Location, region
delete_resourcetrusted_entity_setsDELETEIdentifier, region
update_resourcetrusted_entity_setsUPDATEIdentifier, PatchDocument, region
list_resourcestrusted_entity_sets_list_onlySELECTregion
get_resourcetrusted_entity_setsSELECTIdentifier, 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
Identifier = '{{ id }}|{{ detector_id }}';

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 }}';

UPDATE example

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

/*+ update */
UPDATE awscc.guardduty.trusted_entity_sets
SET PatchDocument = string('{{ {
"Activate": activate,
"Name": name,
"Location": location,
"ExpectedBucketOwner": expected_bucket_owner,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ id }}|{{ detector_id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.guardduty.trusted_entity_sets
WHERE
Identifier = '{{ id }}|{{ detector_id }}' AND
region = 'us-east-1';

Permissions

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

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