| 1 | import * as sns from "@distilled.cloud/aws/sns"; |
| 2 | import * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { PlatformApplication } from "./PlatformApplication.ts"; |
| 5 | |
| 6 | export interface DeleteEndpointRequest extends sns.DeleteEndpointInput {} |
| 7 | |
| 8 | /** |
| 9 | * Runtime binding for `sns:DeleteEndpoint`. |
| 10 | * |
| 11 | * Bind this operation to a {@link PlatformApplication} to deregister one |
| 12 | * of its device endpoints (idempotent). |
| 13 | * Provide the `DeleteEndpointHttp` layer on the Function to implement the binding. |
| 14 | * ### Mobile Push |
| 15 | * **Example:** Delete an Endpoint |
| 16 | * ```typescript |
| 17 | * const deleteEndpoint = yield* SNS.DeleteEndpoint(app); |
| 18 | * yield* deleteEndpoint({ EndpointArn: endpointArn }); |
| 19 | * ``` |
| 20 | * |
| 21 | * @binding |
| 22 | */ |
| 23 | export interface DeleteEndpoint extends Binding.Service< |
| 24 | DeleteEndpoint, |
| 25 | "AWS.SNS.DeleteEndpoint", |
| 26 | ( |
| 27 | application: PlatformApplication, |
| 28 | ) => Effect.Effect< |
| 29 | ( |
| 30 | request: DeleteEndpointRequest, |
| 31 | ) => Effect.Effect<sns.DeleteEndpointResponse, sns.DeleteEndpointError> |
| 32 | > |
| 33 | > {} |
| 34 | |
| 35 | export const DeleteEndpoint = Binding.Service<DeleteEndpoint>( |
| 36 | "AWS.SNS.DeleteEndpoint", |
| 37 | ); |