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

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

export interface GetSMSAttributesRequest extends sns.GetSMSAttributesInput {}

/**
 * Runtime binding for `sns:GetSMSAttributes`.
 *
 * An account-scoped operation — reads the account-level SMS settings such
 * as `DefaultSMSType`, `MonthlySpendLimit`, and delivery-status sampling.
 * Provide the `GetSMSAttributesHttp` layer on the Function to implement the binding.
 * ### SMS Account Settings
 * **Example:** Read SMS Settings
 * ```typescript
 * const getSmsAttributes = yield* SNS.GetSMSAttributes();
 * const { attributes } = yield* getSmsAttributes();
 * ```
 *
 * @binding
 */
export interface GetSMSAttributes extends Binding.Service<
  GetSMSAttributes,
  "AWS.SNS.GetSMSAttributes",
  () => Effect.Effect<
    (
      request?: GetSMSAttributesRequest,
    ) => Effect.Effect<sns.GetSMSAttributesResponse, sns.GetSMSAttributesError>
  >
> {}

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