endpoints

package
v1.19.3 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDNSSuffix added in v1.16.0

func GetDNSSuffix(id string, options Options) (string, error)

GetDNSSuffix returns the dnsSuffix URL component for the given partition id

func GetDNSSuffixFromRegion added in v1.16.0

func GetDNSSuffixFromRegion(region string, options Options) (string, error)

GetDNSSuffixFromRegion returns the DNS suffix for the provided region and options.

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 added in v1.9.0

func (o Options) GetDisableHTTPS() bool

func (Options) GetResolvedRegion added in v1.9.0

func (o Options) GetResolvedRegion() string

func (Options) GetUseDualStackEndpoint added in v1.9.0

func (o Options) GetUseDualStackEndpoint() aws.DualStackEndpointState

func (Options) GetUseFIPSEndpoint added in v1.9.0

func (o Options) GetUseFIPSEndpoint() aws.FIPSEndpointState

type Resolver

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

Resolver EventBridge 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