package endpoints
import "github.com/aws/aws-sdk-go-v2/service/cloudfront/internal/endpoints"
Index ¶
- type Options
- func (o Options) GetDisableHTTPS() bool
- func (o Options) GetResolvedRegion() string
- func (o Options) GetUseDualStackEndpoint() aws.DualStackEndpointState
- func (o Options) GetUseFIPSEndpoint() aws.FIPSEndpointState
- type Resolver
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 (Options) GetResolvedRegion ¶
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 CloudFront 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
Source Files ¶
- Version
- v1.45.3 (latest)
- Published
- Apr 3, 2025
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 20 minutes ago –
Tools for package owners.