Skip to main content

resource_collections

Creates, updates, deletes or gets a resource_collection resource or lists resource_collections in a region

Overview

Nameresource_collections
TypeResource
DescriptionThis resource schema represents the ResourceCollection resource in the Amazon DevOps Guru.
Idaws.devopsguru.resource_collections

Fields

NameDatatypeDescription
resource_collection_filterobjectInformation about a filter used to specify which AWS resources are analyzed for anomalous behavior by DevOps Guru.
resource_collection_typestringThe type of ResourceCollection
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTResourceCollectionFilter, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all resource_collections in a region.

SELECT
region,
resource_collection_filter,
resource_collection_type
FROM aws.devopsguru.resource_collections
WHERE region = 'us-east-1';

Gets all properties from an individual resource_collection.

SELECT
region,
resource_collection_filter,
resource_collection_type
FROM aws.devopsguru.resource_collections
WHERE region = 'us-east-1' AND data__Identifier = '<ResourceCollectionType>';

INSERT example

Use the following StackQL query and manifest file to create a new resource_collection resource, using stack-deploy.

/*+ create */
INSERT INTO aws.devopsguru.resource_collections (
ResourceCollectionFilter,
region
)
SELECT
'{{ ResourceCollectionFilter }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.devopsguru.resource_collections
WHERE data__Identifier = '<ResourceCollectionType>'
AND region = 'us-east-1';

Permissions

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

Create

devops-guru:UpdateResourceCollection,
devops-guru:GetResourceCollection

Read

devops-guru:GetResourceCollection

Delete

devops-guru:UpdateResourceCollection,
devops-guru:GetResourceCollection

List

devops-guru:GetResourceCollection

Update

devops-guru:UpdateResourceCollection,
devops-guru:GetResourceCollection