sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ Signer/ GetSigningPlatform.ts

import type * as signer from "@distilled.cloud/aws/signer";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";

/**
 * Runtime binding for `signer:GetSigningPlatform`.
 *
 * Reads one AWS-managed signing platform by id — its signing configuration
 * (encryption/hash algorithms), image format, size limit, and whether it
 * supports revocation. Account-level operation over the AWS-managed platform
 * catalog, so the binding takes no resource argument. Provide the
 * implementation with `Effect.provide(AWS.Signer.GetSigningPlatformHttp)`.
 * ### Discovering Platforms
 * **Example:** Check Revocation Support
 * ```typescript
 * // init — account-level binding, no resource argument
 * const getSigningPlatform = yield* AWS.Signer.GetSigningPlatform();
 *
 * // runtime
 * const platform = yield* getSigningPlatform({
 *   platformId: "AWSLambda-SHA384-ECDSA",
 * });
 * const canRevoke = platform.revocationSupported === true;
 * ```
 *
 * @binding
 */
export interface GetSigningPlatform extends Binding.Service<
  GetSigningPlatform,
  "AWS.Signer.GetSigningPlatform",
  () => Effect.Effect<
    (
      request: signer.GetSigningPlatformRequest,
    ) => Effect.Effect<signer.GetSigningPlatformResponse, signer.GetSigningPlatformError>
  >
> {}
export const GetSigningPlatform = Binding.Service<GetSigningPlatform>(
  "AWS.Signer.GetSigningPlatform",
);