| 1 | import type * as bda from "@distilled.cloud/aws/bedrock-data-automation"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { DataAutomationLibrary } from "./DataAutomationLibrary.ts"; |
| 5 | |
| 6 | /** |
| 7 | * `ListDataAutomationLibraryEntities` request with `libraryArn` injected |
| 8 | * from the bound {@link DataAutomationLibrary}. |
| 9 | */ |
| 10 | export interface ListDataAutomationLibraryEntitiesRequest extends Omit< |
| 11 | bda.ListDataAutomationLibraryEntitiesRequest, |
| 12 | "libraryArn" |
| 13 | > {} |
| 14 | |
| 15 | /** |
| 16 | * Runtime binding for the `ListDataAutomationLibraryEntities` operation (IAM |
| 17 | * action `bedrock:ListDataAutomationLibraryEntities` on the library ARN) — |
| 18 | * page through the bound library's entities of a given type from a deployed |
| 19 | * Function. |
| 20 | * |
| 21 | * Provide the implementation with |
| 22 | * `Effect.provide(AWS.BedrockDataAutomation.ListDataAutomationLibraryEntitiesHttp)`. |
| 23 | * ### Library Entities |
| 24 | * **Example:** List Vocabulary Entities |
| 25 | * ```typescript |
| 26 | * // deploy time — bind the library |
| 27 | * const listEntities = |
| 28 | * yield* AWS.BedrockDataAutomation.ListDataAutomationLibraryEntities(library); |
| 29 | * |
| 30 | * // runtime — first page of vocabulary entities |
| 31 | * const { entities } = yield* listEntities({ |
| 32 | * entityType: "VOCABULARY", |
| 33 | * maxResults: 25, |
| 34 | * }); |
| 35 | * ``` |
| 36 | * |
| 37 | * @binding |
| 38 | */ |
| 39 | export interface ListDataAutomationLibraryEntities extends Binding.Service< |
| 40 | ListDataAutomationLibraryEntities, |
| 41 | "AWS.BedrockDataAutomation.ListDataAutomationLibraryEntities", |
| 42 | ( |
| 43 | library: DataAutomationLibrary, |
| 44 | ) => Effect.Effect< |
| 45 | ( |
| 46 | request: ListDataAutomationLibraryEntitiesRequest, |
| 47 | ) => Effect.Effect< |
| 48 | bda.ListDataAutomationLibraryEntitiesResponse, |
| 49 | bda.ListDataAutomationLibraryEntitiesError |
| 50 | > |
| 51 | > |
| 52 | > {} |
| 53 | export const ListDataAutomationLibraryEntities = |
| 54 | Binding.Service<ListDataAutomationLibraryEntities>( |
| 55 | "AWS.BedrockDataAutomation.ListDataAutomationLibraryEntities", |
| 56 | ); |