Skip to main content

resource_scans

Creates, updates, deletes, gets or lists a resource_scans resource.

Overview

Nameresource_scans
TypeResource
Idaws.cloudformation.resource_scans

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
typesstringAn array of strings where each string represents an Amazon Web Services resource type you want to scan. Each string defines the resource type using the format AWS::ServiceName::ResourceType, for example, AWS::DynamoDB::Table. For the full list of supported resource types, see the Resource type support table in the CloudFormation User Guide. To scan all resource types within a service, you can use a wildcard, represented by an asterisk (). You can place an asterisk at only the end of the string, for example, AWS::S3::.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_resource_scanselectResourceScanId, regionDescribes details of a resource scan.
list_resource_scansselectregionNextToken, MaxResults, ScanTypeFilterList the resource scans from newest to oldest. By default it will return up to 10 resource scans.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
ResourceScanIdstringThe Amazon Resource Name (ARN) of the resource scan.
regionstringAWS region (default: us-east-1)
MaxResultsintegerIf the number of available results exceeds this maximum, the response includes a NextToken value that you can use for the NextToken parameter to get the next set of results. The default value is 10. The maximum value is 100.
NextTokenstringThe token for the next set of items to return. (You received this token from a previous call.)
ScanTypeFilterstringThe scan type that you want to get summary information about. The default is FULL.

SELECT examples

Describes details of a resource scan.

SELECT
types
FROM aws.cloudformation.resource_scans
WHERE ResourceScanId = '{{ ResourceScanId }}' -- required
AND region = '{{ region }}' -- required
;