Trait aws_endpoint::ResolveAwsEndpoint [−][src]
pub trait ResolveAwsEndpoint: Send + Sync {
fn resolve_endpoint(&self, region: &Region) -> Result<AwsEndpoint, BoxError>;
}
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"))
);
In the future, each AWS service will generate their own implementation of ResolveAwsEndpoint
. This implementation
may use endpoint discovery. The list of supported regions for a given service
will be codegenerated from endpoints.json
.
Required methods
fn resolve_endpoint(&self, region: &Region) -> Result<AwsEndpoint, BoxError>
Implementations on Foreign Types
An Endpoint
can be its own resolver to support static endpoints