DeleteAccessPoint
Source:
src/AWS/EFS/DeleteAccessPoint.ts
Runtime binding for the DeleteAccessPoint operation (IAM action
elasticfilesystem:DeleteAccessPoint).
Deletes an access point by ID — the teardown half of the runtime
multi-tenant pattern built with CreateAccessPoint. The action
authorizes on the access point’s own ARN, which for runtime-created
access points is unknowable at deploy time, so the grant is on *.
Deleting an already-deleted access point surfaces the typed
AccessPointNotFound. Provide the implementation with
Effect.provide(AWS.EFS.DeleteAccessPointHttp).
Managing Access Points at Runtime
Section titled “Managing Access Points at Runtime”const deleteAccessPoint = yield* AWS.EFS.DeleteAccessPoint();
yield* deleteAccessPoint({ AccessPointId: accessPointId }).pipe( Effect.catchTag("AccessPointNotFound", () => Effect.void),);