| 1 | import type * as devopsguru from "@distilled.cloud/aws/devops-guru"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `devops-guru:PutFeedback`. |
| 7 | * |
| 8 | * Records feedback on an insight's usefulness (`VALID` / `NOT_VALID` and variants) — feeding triage decisions back into DevOps Guru. |
| 9 | * Provide the implementation with |
| 10 | * `Effect.provide(AWS.DevOpsGuru.PutFeedbackHttp)`. |
| 11 | * ### Feedback |
| 12 | * **Example:** Rate an Insight |
| 13 | * ```typescript |
| 14 | * // init — account-level binding, no resource argument |
| 15 | * const putFeedback = yield* AWS.DevOpsGuru.PutFeedback(); |
| 16 | * |
| 17 | * // runtime |
| 18 | * yield* putFeedback({ |
| 19 | * InsightFeedback: { Id: insightId, Feedback: "VALID_COLLECTION" }, |
| 20 | * }); |
| 21 | * ``` |
| 22 | * |
| 23 | * @binding |
| 24 | */ |
| 25 | export interface PutFeedback extends Binding.Service< |
| 26 | PutFeedback, |
| 27 | "AWS.DevOpsGuru.PutFeedback", |
| 28 | () => Effect.Effect< |
| 29 | ( |
| 30 | request?: devopsguru.PutFeedbackRequest, |
| 31 | ) => Effect.Effect< |
| 32 | devopsguru.PutFeedbackResponse, |
| 33 | devopsguru.PutFeedbackError |
| 34 | > |
| 35 | > |
| 36 | > {} |
| 37 | export const PutFeedback = Binding.Service<PutFeedback>( |
| 38 | "AWS.DevOpsGuru.PutFeedback", |
| 39 | ); |