Options is the endpoint resolver configuration options
type Options struct { // Logger is a logging implementation that log events should be sent to. Logger logging.Logger // LogDeprecated indicates that deprecated endpoints should be logged to the // provided logger. LogDeprecated bool // ResolvedRegion is used to override the region to be resolved, rather then the // using the value passed to the ResolveEndpoint method. This value is used by the // SDK to translate regions like fips-us-east-1 or us-east-1-fips to an alternative // name. You must not set this value directly in your application. ResolvedRegion string // DisableHTTPS informs the resolver to return an endpoint that does not use the // HTTPS scheme. DisableHTTPS bool // UseDualStackEndpoint specifies the resolver must resolve a dual-stack endpoint. UseDualStackEndpoint aws.DualStackEndpointState // UseFIPSEndpoint specifies the resolver must resolve a FIPS endpoint. UseFIPSEndpoint aws.FIPSEndpointState }
func (o Options) GetDisableHTTPS() bool
func (o Options) GetResolvedRegion() string
func (o Options) GetUseDualStackEndpoint() aws.DualStackEndpointState
func (o Options) GetUseFIPSEndpoint() aws.FIPSEndpointState
Resolver ECR PUBLIC endpoint resolver
type Resolver struct {
// contains filtered or unexported fields
}
func New() *Resolver
New returns a new Resolver
func (r *Resolver) ResolveEndpoint(region string, options Options) (endpoint aws.Endpoint, err error)
ResolveEndpoint resolves the service endpoint for the given region and options