Skip to content

GetProtectionStatus

Source: src/AWS/FMS/GetProtectionStatus.ts

Runtime binding for fms:GetProtectionStatus.

Returns policy-level attack summary information for Shield Advanced policies — DDoS attacks detected during the specified time period. Provide the implementation with Effect.provide(AWS.FMS.GetProtectionStatusHttp).

// init — account-level binding takes no resource
const getProtectionStatus = yield* AWS.FMS.GetProtectionStatus();
// runtime
const result = yield* getProtectionStatus({ PolicyId: policyId });
console.log(result.ServiceType, result.Data);