Skip to main content

attacks

Creates, updates, deletes, gets or lists an attacks resource.

Overview

Nameattacks
TypeResource
Idaws.shield.attacks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
attack_countersarrayList of counters that describe the attack for the specified time period.
attack_idstringThe unique identifier (ID) of the attack. (pattern: <code>[a-zA-Z0-9\-]*</code>)
attack_propertiesarrayThe array of objects that provide details of the Shield event. For infrastructure layer events (L3 and L4 events), you can view metrics for top contributors in Amazon CloudWatch metrics. For more information, see Shield metrics and alarms in the WAF Developer Guide.
end_timestring (date-time)The time the attack ended, in Unix time in seconds.
mitigationsarrayList of mitigation actions taken for the attack.
resource_arnstringThe ARN (Amazon Resource Name) of the resource that was attacked. (pattern: <code>^arn:aws.*</code>)
start_timestring (date-time)The time the attack started, in Unix time in seconds.
sub_resourcesarrayIf applicable, additional detail about the resource being attacked, for example, IP address or URL.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_attackselectregionDescribes the details of a DDoS attack.
list_attacksselectregionReturns all ongoing DDoS attacks or all DDoS attacks during a specified time period.

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)

SELECT examples

Describes the details of a DDoS attack.

SELECT
attack_counters,
attack_id,
attack_properties,
end_time,
mitigations,
resource_arn,
start_time,
sub_resources
FROM aws.shield.attacks
WHERE region = '{{ region }}' -- required
;