endpoints

package
v0.0.0-...-68f2935 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type 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
}

Options is the endpoint resolver configuration options

func (Options) GetDisableHTTPS

func (o Options) GetDisableHTTPS() bool

func (Options) GetResolvedRegion

func (o Options) GetResolvedRegion() string

func (Options) GetUseDualStackEndpoint

func (o Options) GetUseDualStackEndpoint() aws.DualStackEndpointState

func (Options) GetUseFIPSEndpoint

func (o Options) GetUseFIPSEndpoint() aws.FIPSEndpointState

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

Resolver ACM endpoint resolver

func New

func New() *Resolver

New returns a new Resolver

func (*Resolver) ResolveEndpoint

func (r *Resolver) ResolveEndpoint(region string, options Options) (endpoint aws.Endpoint, err error)

ResolveEndpoint resolves the service endpoint for the given region and options

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL