1import type * as securityhub from "@distilled.cloud/aws/securityhub";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
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 */
26export interface GetInsightResults extends Binding.Service<
27 GetInsightResults,
28 "AWS.SecurityHub.GetInsightResults",
29 () => Effect.Effect<
30 (
31 request: securityhub.GetInsightResultsRequest,
32 ) => Effect.Effect<
33 securityhub.GetInsightResultsResponse,
34 securityhub.GetInsightResultsError
35 >
36 >
37> {}
38export const GetInsightResults = Binding.Service<GetInsightResults>(
39 "AWS.SecurityHub.GetInsightResults",
40);