pub trait ResolveAwsEndpoint: Send + Sync + Debug {
    // Required method
    fn resolve_endpoint(
        &self,
        region: &Region
    ) -> Result<AwsEndpoint, Box<dyn Error + Send + Sync + 'static, Global>>;
}
Expand description

Resolve the AWS Endpoint for a given region

To provide a static endpoint, Endpoint implements this trait. Example usage:

use aws_smithy_http::endpoint::Endpoint;
let config = dynamodb::Config::builder()
    .endpoint(Endpoint::immutable("http://localhost:8080")?);

Each AWS service generates their own implementation of ResolveAwsEndpoint.

Required Methods§

source

fn resolve_endpoint( &self, region: &Region ) -> Result<AwsEndpoint, Box<dyn Error + Send + Sync + 'static, Global>>

Resolves the AWS endpoint for a given region.

Implementations on Foreign Types§

source§

impl ResolveAwsEndpoint for Endpoint

An Endpoint can be its own resolver to support static endpoints

source§

fn resolve_endpoint( &self, _region: &Region ) -> Result<AwsEndpoint, Box<dyn Error + Send + Sync + 'static, Global>>

Implementors§