Skip to main content
Module

x/aws_api/client/mod.ts>S3CompatibleEndpointResolver

From-scratch Typescript client for accessing AWS APIs
Extremely Popular
Latest
class S3CompatibleEndpointResolver
implements EndpointResolver
import { S3CompatibleEndpointResolver } from "https://deno.land/x/aws_api@v0.8.1/client/mod.ts";

Resolves S3 requests using a simplified regional scheme. This is tested with Vultr Objects and should be compatible with other similar offerings, such as Linode Objects. The service is expected to have regional subdomains, and support virtualhost-style bucket URLs. Requests for any other APIs such as EC2 will be rejected.

Example: [example-bucket.]ewr1.vultrobjects.com Code: new S3CompatibleEndpointResolver('vultrobjects.com')

For services without those URL features please consider setting a fixed endpoint instead.

Constructors

new
S3CompatibleEndpointResolver(baseDomain: string)

Methods

resolveUrl(parameters: EndpointParameters): ResolvedEndpoint