Skip to content

GetAccessPointPolicyStatus

Source: src/AWS/S3Control/GetAccessPointPolicyStatus.ts

Runtime binding for s3:GetAccessPointPolicyStatus.

Indicates whether the bound AccessPoint’s policy currently allows public access — e.g. a compliance auditor Lambda that alerts on publicly exposed access points. An access point without a policy fails with the typed NoSuchAccessPointPolicy tag. Provide the implementation with Effect.provide(AWS.S3Control.GetAccessPointPolicyStatusHttp).

// init — bind the operation to the access point
const getPolicyStatus =
yield* AWS.S3Control.GetAccessPointPolicyStatus(accessPoint);
// runtime
const status = yield* getPolicyStatus();
// status.PolicyStatus?.IsPublic === false