Skip to content

GetMultiRegionAccessPointRoutes

Source: src/AWS/S3Control/GetMultiRegionAccessPointRoutes.ts

Runtime binding for s3:GetMultiRegionAccessPointRoutes.

Reads the bound MultiRegionAccessPoint’s per-region routing configuration (each region’s TrafficDialPercentage) — the observe half of an active/passive failover controller. Requests are routed to the us-west-2 MRAP control plane. Provide the implementation with Effect.provide(AWS.S3Control.GetMultiRegionAccessPointRoutesHttp).

// init — bind the operation to the Multi-Region Access Point
const getRoutes =
yield* AWS.S3Control.GetMultiRegionAccessPointRoutes(mrap);
// runtime
const { Routes } = yield* getRoutes();
// Routes?.map((r) => `${r.Region}: ${r.TrafficDialPercentage}%`)