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