| 1 | import type * as ecrpublic from "@distilled.cloud/aws/ecr-public"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `ecr-public:GetRegistryCatalogData`. |
| 7 | * |
| 8 | * Reads the registry-level catalog metadata (the gallery display name). |
| 9 | * Provide the implementation with |
| 10 | * `Effect.provide(AWS.ECRPublic.GetRegistryCatalogDataHttp)`. |
| 11 | * |
| 12 | * ### Registry Access |
| 13 | * **Example:** Read The Registry Display Name |
| 14 | * ```typescript |
| 15 | * // init — registry-level binding takes no resource |
| 16 | * const getRegistryCatalogData = yield* AWS.ECRPublic.GetRegistryCatalogData(); |
| 17 | * |
| 18 | * // runtime |
| 19 | * const result = yield* getRegistryCatalogData(); |
| 20 | * const displayName = result.registryCatalogData.displayName; |
| 21 | * ``` |
| 22 | * |
| 23 | * @binding |
| 24 | */ |
| 25 | export interface GetRegistryCatalogData extends Binding.Service< |
| 26 | GetRegistryCatalogData, |
| 27 | "AWS.ECRPublic.GetRegistryCatalogData", |
| 28 | () => Effect.Effect< |
| 29 | () => Effect.Effect< |
| 30 | ecrpublic.GetRegistryCatalogDataResponse, |
| 31 | ecrpublic.GetRegistryCatalogDataError |
| 32 | > |
| 33 | > |
| 34 | > {} |
| 35 | |
| 36 | export const GetRegistryCatalogData = Binding.Service<GetRegistryCatalogData>( |
| 37 | "AWS.ECRPublic.GetRegistryCatalogData", |
| 38 | ); |