| 1 | import type * as amp from "@distilled.cloud/aws/amp"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `aps:GetDefaultScraperConfiguration`. |
| 7 | * |
| 8 | * An account-level binding — call it with no arguments to get a callable |
| 9 | * that returns the AWS-managed default scraper configuration as Prometheus |
| 10 | * scrape-configuration YAML text (decoded from the wire blob). Provide the |
| 11 | * `GetDefaultScraperConfigurationHttp` layer on the Function to satisfy the |
| 12 | * binding. |
| 13 | * |
| 14 | * ### Scraper Configuration |
| 15 | * **Example:** Read the Default Scraper Configuration |
| 16 | * ```typescript |
| 17 | * const getDefaultScraperConfiguration = |
| 18 | * yield* AMP.GetDefaultScraperConfiguration(); |
| 19 | * |
| 20 | * const yaml = yield* getDefaultScraperConfiguration(); |
| 21 | * ``` |
| 22 | * |
| 23 | * @binding |
| 24 | */ |
| 25 | export interface GetDefaultScraperConfiguration extends Binding.Service< |
| 26 | GetDefaultScraperConfiguration, |
| 27 | "AWS.AMP.GetDefaultScraperConfiguration", |
| 28 | () => Effect.Effect< |
| 29 | () => Effect.Effect<string, amp.GetDefaultScraperConfigurationError> |
| 30 | > |
| 31 | > {} |
| 32 | export const GetDefaultScraperConfiguration = |
| 33 | Binding.Service<GetDefaultScraperConfiguration>( |
| 34 | "AWS.AMP.GetDefaultScraperConfiguration", |
| 35 | ); |