| 1 | import type * as kendra from "@distilled.cloud/aws/kendra"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { Index } from "./SearchIndex.ts"; |
| 5 | |
| 6 | /** |
| 7 | * `DeleteAccessControlConfiguration` request with `IndexId` injected from the bound index. |
| 8 | */ |
| 9 | export interface DeleteAccessControlConfigurationRequest extends Omit< |
| 10 | kendra.DeleteAccessControlConfigurationRequest, |
| 11 | "IndexId" |
| 12 | > {} |
| 13 | |
| 14 | /** |
| 15 | * Runtime binding for the `DeleteAccessControlConfiguration` operation (IAM action |
| 16 | * `kendra:DeleteAccessControlConfiguration`), scoped to one {@link Index}. |
| 17 | * |
| 18 | * Deletes an access-control configuration from the index. |
| 19 | * Provide the implementation with |
| 20 | * `Effect.provide(AWS.Kendra.DeleteAccessControlConfigurationHttp)`. |
| 21 | * |
| 22 | * ### Access Control Configurations |
| 23 | * **Example:** Delete a Runtime ACL |
| 24 | * ```typescript |
| 25 | * const deleteAcl = |
| 26 | * yield* AWS.Kendra.DeleteAccessControlConfiguration(index); |
| 27 | * |
| 28 | * yield* deleteAcl({ Id: configurationId }); |
| 29 | * ``` |
| 30 | * |
| 31 | * @binding |
| 32 | */ |
| 33 | export interface DeleteAccessControlConfiguration extends Binding.Service< |
| 34 | DeleteAccessControlConfiguration, |
| 35 | "AWS.Kendra.DeleteAccessControlConfiguration", |
| 36 | ( |
| 37 | index: Index, |
| 38 | ) => Effect.Effect< |
| 39 | ( |
| 40 | request: DeleteAccessControlConfigurationRequest, |
| 41 | ) => Effect.Effect< |
| 42 | kendra.DeleteAccessControlConfigurationResponse, |
| 43 | kendra.DeleteAccessControlConfigurationError |
| 44 | > |
| 45 | > |
| 46 | > {} |
| 47 | export const DeleteAccessControlConfiguration = |
| 48 | Binding.Service<DeleteAccessControlConfiguration>( |
| 49 | "AWS.Kendra.DeleteAccessControlConfiguration", |
| 50 | ); |