...

Package endpoints

import "github.com/aws/aws-sdk-go-v2/service/ssooidc/internal/endpoints"
Overview
Index

Overview ▾

type Options

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 (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

Resolver SSO OIDC endpoint resolver

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

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