1import type * as fms from "@distilled.cloud/aws/fms";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Request for {@link GetProtectionStatus}.
7 */
8export interface GetProtectionStatusRequest
9 extends fms.GetProtectionStatusRequest {}
10
11/**
12 * Runtime binding for `fms:GetProtectionStatus`.
13 *
14 * Returns policy-level attack summary information for Shield Advanced policies — DDoS attacks detected during the specified time period. Provide the
15 * implementation with `Effect.provide(AWS.FMS.GetProtectionStatusHttp)`.
16 * ### Compliance and Protection Status
17 * **Example:** Read a Shield Policy's Protection Status
18 * ```typescript
19 * // init — account-level binding takes no resource
20 * const getProtectionStatus = yield* AWS.FMS.GetProtectionStatus();
21 *
22 * // runtime
23 * const result = yield* getProtectionStatus({ PolicyId: policyId });
24 * console.log(result.ServiceType, result.Data);
25 * ```
26 *
27 * @binding
28 */
29export interface GetProtectionStatus extends Binding.Service<
30 GetProtectionStatus,
31 "AWS.FMS.GetProtectionStatus",
32 () => Effect.Effect<
33 (
34 request: GetProtectionStatusRequest,
35 ) => Effect.Effect<
36 fms.GetProtectionStatusResponse,
37 fms.GetProtectionStatusError
38 >
39 >
40> {}
41
42export const GetProtectionStatus = Binding.Service<GetProtectionStatus>(
43 "AWS.FMS.GetProtectionStatus",
44);