Skip to main content

cis_scan_configurations

Creates, updates, deletes or gets a cis_scan_configuration resource or lists cis_scan_configurations in a region

Overview

Namecis_scan_configurations
TypeResource
DescriptionCIS Scan Configuration resource schema
Idaws.inspectorv2.cis_scan_configurations

Fields

NameDatatypeDescription
scan_namestringName of the scan
security_levelstring
scheduleundefinedChoose a Schedule cadence
targetsundefined
arnstringCIS Scan configuration unique identifier
tagsobject
regionstringAWS region.

Methods

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

SELECT examples

Gets all cis_scan_configurations in a region.

SELECT
region,
scan_name,
security_level,
schedule,
targets,
arn,
tags
FROM aws.inspectorv2.cis_scan_configurations
WHERE region = 'us-east-1';

Gets all properties from an individual cis_scan_configuration.

SELECT
region,
scan_name,
security_level,
schedule,
targets,
arn,
tags
FROM aws.inspectorv2.cis_scan_configurations
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

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

/*+ create */
INSERT INTO aws.inspectorv2.cis_scan_configurations (
ScanName,
SecurityLevel,
Schedule,
Targets,
Tags,
region
)
SELECT
'{{ ScanName }}',
'{{ SecurityLevel }}',
'{{ Schedule }}',
'{{ Targets }}',
'{{ Tags }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

inspector2:CreateCisScanConfiguration,
inspector2:ListCisScanConfigurations,
inspector2:TagResource

Read

inspector2:ListCisScanConfigurations,
inspector2:ListTagsForResource

Update

inspector2:ListCisScanConfigurations,
inspector2:UpdateCisScanConfiguration,
inspector2:TagResource,
inspector2:UntagResource,
inspector2:ListTagsForResource

Delete

inspector2:ListCisScanConfigurations,
inspector2:DeleteCisScanConfiguration,
inspector2:UntagResource

List

inspector2:ListCisScanConfigurations,
inspector2:ListTagsForResource