| 1 | import * as qbusiness from "@distilled.cloud/aws/qbusiness"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { toWireMinutes } from "../../Util/Duration.ts"; |
| 4 | import { makeQBusinessWebExperienceHttpBinding } from "./BindingHttp.ts"; |
| 5 | import { |
| 6 | CreateAnonymousWebExperienceUrl, |
| 7 | type CreateAnonymousWebExperienceUrlRequest, |
| 8 | } from "./CreateAnonymousWebExperienceUrl.ts"; |
| 9 | |
| 10 | export const CreateAnonymousWebExperienceUrlHttp = Layer.effect( |
| 11 | CreateAnonymousWebExperienceUrl, |
| 12 | makeQBusinessWebExperienceHttpBinding({ |
| 13 | tag: "AWS.QBusiness.CreateAnonymousWebExperienceUrl", |
| 14 | operation: qbusiness.createAnonymousWebExperienceUrl, |
| 15 | actions: ["qbusiness:CreateAnonymousWebExperienceUrl"], |
| 16 | prepare: (request: CreateAnonymousWebExperienceUrlRequest | undefined) => ({ |
| 17 | sessionDurationInMinutes: toWireMinutes(request?.sessionDuration), |
| 18 | }), |
| 19 | }), |
| 20 | ); |