Skip to content

aws.iot.describe_detect_mitigation_actions_task

Example SQL Queries

SELECT * FROM
aws.iot.describe_detect_mitigation_actions_task
WHERE
"task_id" = 'VALUE';

Description

Gets information about a Device Defender ML Detect mitigation action.

Requires permission to access the DescribeDetectMitigationActionsTask action.

Table Definition

Column NameColumn Data Type
task_id Required Input Column

The unique identifier of the task.

VARCHAR
_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
task_summary

The description of a task.

STRUCT(
"task_id" VARCHAR,
"task_status" VARCHAR,
"task_start_time" TIMESTAMP_S,
"task_end_time" TIMESTAMP_S,
"target" STRUCT(
"violation_ids" VARCHAR[],
"security_profile_name" VARCHAR,
"behavior_name" VARCHAR
),
"violation_event_occurrence_range" STRUCT(
"start_time" TIMESTAMP_S,
"end_time" TIMESTAMP_S
),
"only_active_violations_included" BOOLEAN,
"suppressed_alerts_included" BOOLEAN,
"actions_definition" STRUCT(
"name" VARCHAR,
"id" VARCHAR,
"role_arn" VARCHAR,
"action_params" STRUCT(
"update_device_certificate_params" STRUCT(
"action" VARCHAR
),
"update_ca_certificate_params" STRUCT(
"action" VARCHAR
),
"add_things_to_thing_group_params" STRUCT(
"thing_group_names" VARCHAR[],
"override_dynamic_groups" BOOLEAN
),
"replace_default_policy_version_params" STRUCT(
"template_name" VARCHAR
),
"enable_io_t_logging_params" STRUCT(
"role_arn_for_logging" VARCHAR,
"log_level" VARCHAR
),
"publish_finding_to_sns_params" STRUCT(
"topic_arn" VARCHAR
)
)
)[],
"task_statistics" STRUCT(
"actions_executed" BIGINT,
"actions_skipped" BIGINT,
"actions_failed" BIGINT
)
)
Show child fields
task_summary.actions_definition[]
Show child fields
task_summary.actions_definition[].action_params

The set of parameters for this mitigation action. The parameters vary, depending on the kind of action you apply.

Show child fields
task_summary.actions_definition[].action_params.add_things_to_thing_group_params

Parameters to define a mitigation action that moves devices associated with a certificate to one or more specified thing groups, typically for quarantine.

Show child fields
task_summary.actions_definition[].action_params.add_things_to_thing_group_params.override_dynamic_groups

Specifies if this mitigation action can move the things that triggered the mitigation action even if they are part of one or more dynamic thing groups.

task_summary.actions_definition[].action_params.add_things_to_thing_group_params.thing_group_names[]
task_summary.actions_definition[].action_params.enable_io_t_logging_params

Parameters to define a mitigation action that enables Amazon Web Services IoT Core logging at a specified level of detail.

Show child fields
task_summary.actions_definition[].action_params.enable_io_t_logging_params.log_level

Specifies the type of information to be logged.

task_summary.actions_definition[].action_params.enable_io_t_logging_params.role_arn_for_logging

The Amazon Resource Name (ARN) of the IAM role used for logging.

task_summary.actions_definition[].action_params.publish_finding_to_sns_params

Parameters to define a mitigation action that publishes findings to Amazon Simple Notification Service (Amazon SNS. You can implement your own custom actions in response to the Amazon SNS messages.

Show child fields
task_summary.actions_definition[].action_params.publish_finding_to_sns_params.topic_arn

The ARN of the topic to which you want to publish the findings.

task_summary.actions_definition[].action_params.replace_default_policy_version_params

Parameters to define a mitigation action that adds a blank policy to restrict permissions.

Show child fields
task_summary.actions_definition[].action_params.replace_default_policy_version_params.template_name

The name of the template to be applied. The only supported value is BLANK_POLICY.

task_summary.actions_definition[].action_params.update_ca_certificate_params

Parameters to define a mitigation action that changes the state of the CA certificate to inactive.

Show child fields
task_summary.actions_definition[].action_params.update_ca_certificate_params.action

The action that you want to apply to the CA certificate. The only supported value is DEACTIVATE.

task_summary.actions_definition[].action_params.update_device_certificate_params

Parameters to define a mitigation action that changes the state of the device certificate to inactive.

Show child fields
task_summary.actions_definition[].action_params.update_device_certificate_params.action

The action that you want to apply to the device certificate. The only supported value is DEACTIVATE.

task_summary.actions_definition[].id

A unique identifier for the mitigation action.

task_summary.actions_definition[].name

A user-friendly name for the mitigation action.

task_summary.actions_definition[].role_arn

The IAM role ARN used to apply this mitigation action.

task_summary.only_active_violations_included

Includes only active violations.

task_summary.suppressed_alerts_included

Includes suppressed alerts.

task_summary.target

Specifies the ML Detect findings to which the mitigation actions are applied.

Show child fields
task_summary.target.behavior_name

The name of the behavior.

task_summary.target.security_profile_name

The name of the security profile.

task_summary.target.violation_ids[]
task_summary.task_end_time

The date the task ended.

task_summary.task_id

The unique identifier of the task.

task_summary.task_start_time

The date the task started.

task_summary.task_statistics

The statistics of a mitigation action task.

Show child fields
task_summary.task_statistics.actions_executed

The actions that were performed.

task_summary.task_statistics.actions_failed

The actions that failed.

task_summary.task_statistics.actions_skipped

The actions that were skipped.

task_summary.task_status

The status of the task.

task_summary.violation_event_occurrence_range

Specifies the time period of which violation events occurred between.

Show child fields
task_summary.violation_event_occurrence_range.end_time

The end date and time of a time period in which violation events occurred.

task_summary.violation_event_occurrence_range.start_time

The start date and time of a time period in which violation events occurred.