Skip to content

ListAccessPoints

Source: src/AWS/S3Control/ListAccessPoints.ts

Runtime binding for s3:ListAccessPoints.

Lists the access points in the caller’s account, optionally filtered to a single bucket — e.g. an inventory Lambda that audits which endpoints expose a shared dataset. The account id is resolved once via sts:GetCallerIdentity. Provide the implementation with Effect.provide(AWS.S3Control.ListAccessPointsHttp).

// init — account-level binding, no resource argument
const listAccessPoints = yield* AWS.S3Control.ListAccessPoints();
// runtime
const page = yield* listAccessPoints({ Bucket: bucketName });
// page.AccessPointList?.map((ap) => ap.Name)