Trait aws_endpoint::ResolveAwsEndpoint
source · [−]pub trait ResolveAwsEndpoint: Send + Sync + Debug {
fn resolve_endpoint(
&self,
region: &Region
) -> Result<AwsEndpoint, Box<dyn Error + Sync + Send + '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;
use http::Uri;
let config = dynamodb::Config::builder()
.endpoint(
Endpoint::immutable(Uri::from_static("http://localhost:8080"))
);
Each AWS service generates their own implementation of ResolveAwsEndpoint
.
Required Methods
fn resolve_endpoint(
&self,
region: &Region
) -> Result<AwsEndpoint, Box<dyn Error + Sync + Send + 'static, Global>>
fn resolve_endpoint(
&self,
region: &Region
) -> Result<AwsEndpoint, Box<dyn Error + Sync + Send + 'static, Global>>
Resolves the AWS endpoint for a given region.
Implementations on Foreign Types
sourceimpl ResolveAwsEndpoint for Endpoint
impl ResolveAwsEndpoint for Endpoint
An Endpoint
can be its own resolver to support static endpoints