Skip to content

DescribeAttackStatistics

Source: src/AWS/Shield/DescribeAttackStatistics.ts

Runtime binding for shield:DescribeAttackStatistics.

Returns the number and type of DDoS attacks Shield has detected in the last year across all of the account’s resources — available to Standard and Advanced customers alike, so it works without a subscription. Provide the implementation with Effect.provide(AWS.Shield.DescribeAttackStatisticsHttp).

// init — account-level binding, no resource argument
const describeAttackStatistics = yield* AWS.Shield.DescribeAttackStatistics();
// runtime
const { TimeRange, DataItems } = yield* describeAttackStatistics();