@devries-cameron20 / t3code Mirror · read-only
Fork 0

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, 06:00 UTC

main
ts 37 lines 1.25 KB
Raw
1 import type * as securityhub from "@distilled.cloud/aws/securityhub";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `securityhub:GetInsightResults`.
7 *
8 * Returns the aggregated results of a Security Hub insight, grouped by the insight's group-by attribute.
9 * Account-level operation — invoked with the caller's request as-is.
10 * Provide the implementation with
11 * `Effect.provide(AWS.SecurityHub.GetInsightResultsHttp)`.
12 * ### Working with Insights
13 * **Example:** Read Insight Results
14 * ```typescript
15 * // init — account-level binding, no resource argument
16 * const getInsightResults = yield* AWS.SecurityHub.GetInsightResults();
17 *
18 * // runtime
19 * const { InsightResults } = yield* getInsightResults({
20 * InsightArn: insight.insightArn,
21 * });
22 * ```
23 *
24 * @binding
25 */
26 export interface GetInsightResults extends Binding.Service<
27 GetInsightResults,
28 "AWS.SecurityHub.GetInsightResults",
29 () => Effect.Effect<
30 (
31 request: securityhub.GetInsightResultsRequest,
32 ) => Effect.Effect<securityhub.GetInsightResultsResponse, securityhub.GetInsightResultsError>
33 >
34 > {}
35 export const GetInsightResults = Binding.Service<GetInsightResults>(
36 "AWS.SecurityHub.GetInsightResults",
37 );