Skip to main content

resource_groups

Creates, updates, deletes or gets a resource_group resource or lists resource_groups in a region

Overview

Nameresource_groups
TypeResource
DescriptionResource Type definition for AWS::Inspector::ResourceGroup
Idaws.inspector.resource_groups

Fields

NameDatatypeDescription
arnstring
resource_group_tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTResourceGroupTags, region
delete_resourceDELETEdata__Identifier, region
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual resource_group.

SELECT
region,
arn,
resource_group_tags
FROM aws.inspector.resource_groups
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

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

/*+ create */
INSERT INTO aws.inspector.resource_groups (
ResourceGroupTags,
region
)
SELECT
'{{ ResourceGroupTags }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.inspector.resource_groups
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

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

Create

inspector:CreateResourceGroup

Read

inspector:CreateResourceGroup

Delete

inspector:CreateResourceGroup