Skip to content

aws.inspector.list_assessment_runs

Example SQL Queries

SELECT * FROM
aws.inspector.list_assessment_runs;

Description

Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.

Table Definition

Column NameColumn Data Type
assessment_template_arns Input Column

The ARNs that specify the assessment templates whose assessment runs you want to list.

VARCHAR[]
Show child fields
assessment_template_arns[]
filter Input Column

You can use this parameter to specify a subset of data to be included in the action's response.

For a record to match a filter, all specified filter attributes must match. When multiple values are specified for a filter attribute, any of the values can match.

STRUCT(
"name_pattern" VARCHAR,
"states" VARCHAR[],
"duration_range" STRUCT(
"min_seconds" BIGINT,
"max_seconds" BIGINT
),
"rules_package_arns" VARCHAR[],
"start_time_range" STRUCT(
"begin_date" TIMESTAMP_S,
"end_date" TIMESTAMP_S
),
"completion_time_range" STRUCT(
"begin_date" TIMESTAMP_S,
"end_date" TIMESTAMP_S
),
"state_change_time_range" STRUCT(
"begin_date" TIMESTAMP_S,
"end_date" TIMESTAMP_S
)
)
Show child fields
filter.completion_time_range

For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the completedAt property of the AssessmentRun data type.

Show child fields
filter.completion_time_range.begin_date

The minimum value of the timestamp range.

filter.completion_time_range.end_date

The maximum value of the timestamp range.

filter.duration_range

For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the durationInSeconds property of the AssessmentRun data type.

Show child fields
filter.duration_range.max_seconds

The maximum value of the duration range. Must be less than or equal to 604800 seconds (1 week).

filter.duration_range.min_seconds

The minimum value of the duration range. Must be greater than zero.

filter.name_pattern

For a record to match a filter, an explicit value or a string containing a wildcard that is specified for this data type property must match the value of the assessmentRunName property of the AssessmentRun data type.

filter.rules_package_arns[]
filter.start_time_range

For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the startTime property of the AssessmentRun data type.

Show child fields
filter.start_time_range.begin_date

The minimum value of the timestamp range.

filter.start_time_range.end_date

The maximum value of the timestamp range.

filter.state_change_time_range

For a record to match a filter, the value that is specified for this data type property must match the stateChangedAt property of the AssessmentRun data type.

Show child fields
filter.state_change_time_range.begin_date

The minimum value of the timestamp range.

filter.state_change_time_range.end_date

The maximum value of the timestamp range.

filter.states[]
_aws_profile Input Column

The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role.

STRUCT(
"type" VARCHAR,
"name" VARCHAR,
"account_id" VARCHAR,
"via_profile_name" VARCHAR,
"assumed_role_arn" VARCHAR,
"organization" STRUCT(
"account_name" VARCHAR,
"id" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"master_account" STRUCT(
"id" VARCHAR,
"email" VARCHAR
),
"parents" STRUCT(
"type" VARCHAR,
"id" VARCHAR,
"name" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
)[]
)
)
Show child fields
_aws_profile.account_id

The AWS account id

_aws_profile.assumed_role_arn

The ARN of the assumed role

_aws_profile.name

The unique name of the profile.

_aws_profile.organization

Information about this profile's membership in the AWS organization.

Show child fields
_aws_profile.organization.account_name

The name of account speciifed by the organization

_aws_profile.organization.id

The organization id

_aws_profile.organization.master_account
Show child fields
_aws_profile.organization.master_account.email

The organization master account email address

_aws_profile.organization.master_account.id

The organization master account id

_aws_profile.organization.parents[]
Show child fields
_aws_profile.organization.parents[].id

The id of the parent

_aws_profile.organization.parents[].name

The name of the parent

_aws_profile.organization.parents[].tags[]
Show child fields
_aws_profile.organization.parents[].tags[].key
_aws_profile.organization.parents[].tags[].value
_aws_profile.organization.parents[].type

The type of parent can be an organization unit or a root

_aws_profile.organization.tags[]
Show child fields
_aws_profile.organization.tags[].key
_aws_profile.organization.tags[].value
_aws_profile.type

The type of profile, either 'credentials' or 'assumed_role'

_aws_profile.via_profile_name

This IAM role for this profile is assumed by first utilizing another profile with this name to obtain credentials.

_aws_region Input Column

The AWS region to use.

VARCHAR
assessment_run_arns
VARCHAR