Skip to content

ListAttacks

Source: src/AWS/Shield/ListAttacks.ts

Runtime binding for shield:ListAttacks.

Lists all ongoing DDoS attacks, or all attacks in a given time window, optionally filtered to specific protected-resource ARNs — the entry point for a security dashboard or attack-alerting handler. Requires an active Shield Advanced subscription. Provide the implementation with Effect.provide(AWS.Shield.ListAttacksHttp).

// init — account-level binding, no resource argument
const listAttacks = yield* AWS.Shield.ListAttacks();
// runtime — omitting the time range returns ongoing attacks
const { AttackSummaries } = yield* listAttacks();