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 guardduty from "@distilled.cloud/aws/guardduty"; |
| 2 | import * as Binding from "alchemy/Binding"; |
| 3 | import type * as Effect from "effect/Effect"; |
| 4 | import type { Detector } from "./Detector.ts"; |
| 5 | |
| 6 | /** |
| 7 | * Runtime binding for `guardduty:DescribeOrganizationConfiguration`. |
| 8 | * |
| 9 | * Reads the organization's GuardDuty auto-enable configuration (delegated administrator only). |
| 10 | * The detector id is injected from the bound {@link Detector}. |
| 11 | * Provide the implementation with |
| 12 | * `Effect.provide(AWS.GuardDuty.DescribeOrganizationConfigurationHttp)`. |
| 13 | * ### Organization Administration |
| 14 | * **Example:** Read Org Configuration |
| 15 | * ```typescript |
| 16 | * // init |
| 17 | * const describeOrganizationConfiguration = yield* AWS.GuardDuty.DescribeOrganizationConfiguration(detector); |
| 18 | * |
| 19 | * // runtime |
| 20 | * const { AutoEnableOrganizationMembers } = |
| 21 | * yield* describeOrganizationConfiguration(); |
| 22 | * ``` |
| 23 | * |
| 24 | * @binding |
| 25 | */ |
| 26 | export interface DescribeOrganizationConfiguration extends Binding.Service< |
| 27 | DescribeOrganizationConfiguration, |
| 28 | "AWS.GuardDuty.DescribeOrganizationConfiguration", |
| 29 | ( |
| 30 | detector: Detector, |
| 31 | ) => Effect.Effect< |
| 32 | ( |
| 33 | request?: Omit<guardduty.DescribeOrganizationConfigurationRequest, "DetectorId">, |
| 34 | ) => Effect.Effect< |
| 35 | guardduty.DescribeOrganizationConfigurationResponse, |
| 36 | guardduty.DescribeOrganizationConfigurationError |
| 37 | > |
| 38 | > |
| 39 | > {} |
| 40 | export const DescribeOrganizationConfiguration = Binding.Service<DescribeOrganizationConfiguration>( |
| 41 | "AWS.GuardDuty.DescribeOrganizationConfiguration", |
| 42 | ); |