Skip to main content

checks

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

Overview

Namechecks
TypeResource
Idaws.trustedadvisor.checks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier of the AWS Trusted Advisor Check
namestringThe name of the AWS Trusted Advisor Check
arnstringThe ARN of the AWS Trusted Advisor Check (pattern: <code>arn:[\w-]+:trustedadvisor:::check/[\w-]+</code>)
aws_resource_typesarrayThe AWS resource types that this check evaluates (for example, AWS::EC2::Instance).
aws_servicesarrayThe AWS Services that the Check applies to
check_granularitystringThe granularity level at which the check operates: resource, account, or account_region.
descriptionstringA description of what the AWS Trusted Advisor Check is monitoring
metadataobjectThe column headings for the metadata returned in the resource
pillarsarrayThe Recommendation pillars that the AWS Trusted Advisor Check falls under
recommendation_idstringThe recommendation identifier associated with the check.
resource_arn_queryablebooleanIndicates whether this check is supported by the ListRecommendationsForResource API.
sourcestringThe source of the Recommendation (aws_config, compute_optimizer, cost_explorer, lse, manual, pse, rds, resilience, resilience_hub, security_hub, stir, ta_check, well_architected, cost_optimization_hub)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_checksselectregionnextToken, maxResults, pillar, awsService, source, languageList a filterable set of Checks. This API provides global recommendations, eliminating the need to call the API in each AWS Region.

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
regionstringAWS region (default: us-east-1)
awsServicestringThe aws service associated with the check
languagestringThe ISO 639-1 code for the language that you want your checks to appear in.
maxResultsintegerThe maximum number of results to return per page.
nextTokenstringThe token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
pillarstringThe pillar of the check
sourcestringThe source of the check

SELECT examples

List a filterable set of Checks. This API provides global recommendations, eliminating the need to call the API in each AWS Region.

SELECT
id,
name,
arn,
aws_resource_types,
aws_services,
check_granularity,
description,
metadata,
pillars,
recommendation_id,
resource_arn_queryable,
source
FROM aws.trustedadvisor.checks
WHERE region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
AND pillar = '{{ pillar }}'
AND awsService = '{{ awsService }}'
AND source = '{{ source }}'
AND language = '{{ language }}'
;