| 1 | import type * as macie2 from "@distilled.cloud/aws/macie2"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `macie2:SearchResources`. |
| 7 | * |
| 8 | * Retrieves (queries) statistical data and other information about Amazon Web Services resources that Amazon Macie monitors and analyzes for an account. |
| 9 | * Account-level operation — invoked with the caller's request as-is. |
| 10 | * Provide the implementation with |
| 11 | * `Effect.provide(AWS.Macie2.SearchResourcesHttp)`. |
| 12 | * ### S3 Bucket Inventory |
| 13 | * **Example:** Search Buckets by Sensitivity |
| 14 | * ```typescript |
| 15 | * // init — account-level binding, no resource argument |
| 16 | * const searchResources = yield* AWS.Macie2.SearchResources(); |
| 17 | * |
| 18 | * // runtime |
| 19 | * const { matchingResources } = yield* searchResources({}); |
| 20 | * ``` |
| 21 | * |
| 22 | * @binding |
| 23 | */ |
| 24 | export interface SearchResources extends Binding.Service< |
| 25 | SearchResources, |
| 26 | "AWS.Macie2.SearchResources", |
| 27 | () => Effect.Effect< |
| 28 | ( |
| 29 | request?: macie2.SearchResourcesRequest, |
| 30 | ) => Effect.Effect< |
| 31 | macie2.SearchResourcesResponse, |
| 32 | macie2.SearchResourcesError |
| 33 | > |
| 34 | > |
| 35 | > {} |
| 36 | export const SearchResources = Binding.Service<SearchResources>( |
| 37 | "AWS.Macie2.SearchResources", |
| 38 | ); |