trusted_entity_sets
Creates, updates, deletes or gets a trusted_entity_set resource or lists trusted_entity_sets in a region
Overview
| Name | trusted_entity_sets |
| Type | Resource |
| Description | Resource Type definition for AWS::GuardDuty::TrustedEntitySet |
| Id | awscc.guardduty.trusted_entity_sets |
Fields
| Name | Datatype | Description |
|---|---|---|
id | string | |
format | string | |
activate | boolean | |
status | string | |
created_at | string | |
updated_at | string | |
error_details | string | |
detector_id | string | |
name | string | |
location | string | |
expected_bucket_owner | string | |
tags | array | |
region | string | AWS region. |
For more information, see AWS::GuardDuty::TrustedEntitySet.
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 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.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.guardduty.trusted_entity_sets (
Format,
Location,
region
)
SELECT
'{{ Format }}',
'{{ Location }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.guardduty.trusted_entity_sets (
Format,
Activate,
DetectorId,
Name,
Location,
ExpectedBucketOwner,
Tags,
region
)
SELECT
'{{ Format }}',
'{{ Activate }}',
'{{ DetectorId }}',
'{{ Name }}',
'{{ Location }}',
'{{ ExpectedBucketOwner }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: trusted_entity_set
props:
- name: Format
value: '{{ Format }}'
- name: Activate
value: '{{ Activate }}'
- name: DetectorId
value: '{{ DetectorId }}'
- name: Name
value: '{{ Name }}'
- name: Location
value: '{{ Location }}'
- name: ExpectedBucketOwner
value: '{{ ExpectedBucketOwner }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
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