sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ SNS/ GetSMSSandboxAccountStatus.ts

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

export interface GetSMSSandboxAccountStatusRequest extends sns.GetSMSSandboxAccountStatusInput {}

/**
 * Runtime binding for `sns:GetSMSSandboxAccountStatus`.
 *
 * An account-scoped operation — reports whether the account is still in
 * the SMS sandbox (only verified destination numbers deliverable).
 * Provide the `GetSMSSandboxAccountStatusHttp` layer on the Function to implement the binding.
 * ### SMS Sandbox
 * **Example:** Check Sandbox Status
 * ```typescript
 * const getSandboxStatus = yield* SNS.GetSMSSandboxAccountStatus();
 * const { IsInSandbox } = yield* getSandboxStatus();
 * ```
 *
 * @binding
 */
export interface GetSMSSandboxAccountStatus extends Binding.Service<
  GetSMSSandboxAccountStatus,
  "AWS.SNS.GetSMSSandboxAccountStatus",
  () => Effect.Effect<
    (
      request?: GetSMSSandboxAccountStatusRequest,
    ) => Effect.Effect<sns.GetSMSSandboxAccountStatusResult, sns.GetSMSSandboxAccountStatusError>
  >
> {}

export const GetSMSSandboxAccountStatus = Binding.Service<GetSMSSandboxAccountStatus>(
  "AWS.SNS.GetSMSSandboxAccountStatus",
);