Skip to content

SubmitMultiRegionAccessPointRoutes

Source: src/AWS/S3Control/SubmitMultiRegionAccessPointRoutes.ts

Runtime binding for s3:SubmitMultiRegionAccessPointRoutes.

Shifts traffic between the bound MultiRegionAccessPoint’s regions by dialing each region’s TrafficDialPercentage (0 = passive, 100 = active) — the act half of an automated failover controller, e.g. a health-check Lambda that dials a degraded region to 0. Requests are routed to the us-west-2 MRAP control plane. Provide the implementation with Effect.provide(AWS.S3Control.SubmitMultiRegionAccessPointRoutesHttp).

// init — bind the operation to the Multi-Region Access Point
const submitRoutes =
yield* AWS.S3Control.SubmitMultiRegionAccessPointRoutes(mrap);
// runtime
yield* submitRoutes({
RouteUpdates: [
{ Region: "us-west-2", TrafficDialPercentage: 0 },
{ Region: "eu-west-1", TrafficDialPercentage: 100 },
],
});