Shield.Client.
describe_attack
(**kwargs)¶Describes the details of a DDoS attack.
See also: AWS API Documentation
Request Syntax
response = client.describe_attack(
AttackId='string'
)
[REQUIRED]
The unique identifier (ID) for the attack.
{
'Attack': {
'AttackId': 'string',
'ResourceArn': 'string',
'SubResources': [
{
'Type': 'IP'|'URL',
'Id': 'string',
'AttackVectors': [
{
'VectorType': 'string',
'VectorCounters': [
{
'Name': 'string',
'Max': 123.0,
'Average': 123.0,
'Sum': 123.0,
'N': 123,
'Unit': 'string'
},
]
},
],
'Counters': [
{
'Name': 'string',
'Max': 123.0,
'Average': 123.0,
'Sum': 123.0,
'N': 123,
'Unit': 'string'
},
]
},
],
'StartTime': datetime(2015, 1, 1),
'EndTime': datetime(2015, 1, 1),
'AttackCounters': [
{
'Name': 'string',
'Max': 123.0,
'Average': 123.0,
'Sum': 123.0,
'N': 123,
'Unit': 'string'
},
],
'AttackProperties': [
{
'AttackLayer': 'NETWORK'|'APPLICATION',
'AttackPropertyIdentifier': 'DESTINATION_URL'|'REFERRER'|'SOURCE_ASN'|'SOURCE_COUNTRY'|'SOURCE_IP_ADDRESS'|'SOURCE_USER_AGENT'|'WORDPRESS_PINGBACK_REFLECTOR'|'WORDPRESS_PINGBACK_SOURCE',
'TopContributors': [
{
'Name': 'string',
'Value': 123
},
],
'Unit': 'BITS'|'BYTES'|'PACKETS'|'REQUESTS',
'Total': 123
},
],
'Mitigations': [
{
'MitigationName': 'string'
},
]
}
}
Response Structure
The attack that you requested.
The unique identifier (ID) of the attack.
The ARN (Amazon Resource Name) of the resource that was attacked.
If applicable, additional detail about the resource being attacked, for example, IP address or URL.
The attack information for the specified SubResource.
The SubResource
type.
The unique identifier (ID) of the SubResource
.
The list of attack types and associated counters.
A summary of information about the attack.
The attack type, for example, SNMP reflection or SYN flood.
The list of counters that describe the details of the attack.
The counter that describes a DDoS attack.
The counter name.
The maximum value of the counter for a specified time period.
The average value of the counter for a specified time period.
The total of counter values for a specified time period.
The number of counters for a specified time period.
The unit of the counters.
The counters that describe the details of the attack.
The counter that describes a DDoS attack.
The counter name.
The maximum value of the counter for a specified time period.
The average value of the counter for a specified time period.
The total of counter values for a specified time period.
The number of counters for a specified time period.
The unit of the counters.
The time the attack started, in Unix time in seconds.
The time the attack ended, in Unix time in seconds.
List of counters that describe the attack for the specified time period.
The counter that describes a DDoS attack.
The counter name.
The maximum value of the counter for a specified time period.
The average value of the counter for a specified time period.
The total of counter values for a specified time period.
The number of counters for a specified time period.
The unit of the counters.
The 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 .
Details of a Shield event. This is provided as part of an AttackDetail.
The type of Shield event that was observed. NETWORK
indicates layer 3 and layer 4 events and APPLICATION
indicates layer 7 events.
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 .
Defines the Shield event property information that is provided. The WORDPRESS_PINGBACK_REFLECTOR
and WORDPRESS_PINGBACK_SOURCE
values are valid only for WordPress reflective pingback events.
Contributor objects for the top five contributors to a Shield event. A contributor is a source of traffic that Shield Advanced identifies as responsible for some or all of an event.
A contributor to the attack and their contribution.
The name of the contributor. The type of name that you'll find here depends on the AttackPropertyIdentifier
setting in the AttackProperty
where this contributor is defined. For example, if the AttackPropertyIdentifier
is SOURCE_COUNTRY
, the Name
could be United States
.
The contribution of this contributor expressed in Protection units. For example 10,000
.
The unit used for the Contributor
Value
property.
The total contributions made to this Shield event by all contributors.
List of mitigation actions taken for the attack.
The mitigation applied to a DDoS attack.
The name of the mitigation taken for this attack.
Exceptions
Shield.Client.exceptions.InternalErrorException
Shield.Client.exceptions.AccessDeniedException