package configsources

import (
	
	
)

// EnableEndpointDiscoveryProvider is an interface for retrieving external configuration value
// for Enable Endpoint Discovery
type EnableEndpointDiscoveryProvider interface {
	GetEnableEndpointDiscovery(ctx context.Context) (value aws.EndpointDiscoveryEnableState, found bool, err error)
}

// ResolveEnableEndpointDiscovery extracts the first instance of a EnableEndpointDiscoveryProvider from the config slice.
// Additionally returns a aws.EndpointDiscoveryEnableState to indicate if the value was found in provided configs,
// and error if one is encountered.
func ( context.Context,  []interface{}) ( aws.EndpointDiscoveryEnableState,  bool,  error) {
	for ,  := range  {
		if ,  := .(EnableEndpointDiscoveryProvider);  {
			, ,  = .GetEnableEndpointDiscovery()
			if  != nil ||  {
				break
			}
		}
	}
	return
}

// UseDualStackEndpointProvider is an interface for retrieving external configuration values for UseDualStackEndpoint
type UseDualStackEndpointProvider interface {
	GetUseDualStackEndpoint(context.Context) (value aws.DualStackEndpointState, found bool, err error)
}

// ResolveUseDualStackEndpoint extracts the first instance of a UseDualStackEndpoint from the config slice.
// Additionally returns a boolean to indicate if the value was found in provided configs, and error if one is encountered.
func ( context.Context,  []interface{}) ( aws.DualStackEndpointState,  bool,  error) {
	for ,  := range  {
		if ,  := .(UseDualStackEndpointProvider);  {
			, ,  = .GetUseDualStackEndpoint()
			if  != nil ||  {
				break
			}
		}
	}
	return
}

// UseFIPSEndpointProvider is an interface for retrieving external configuration values for UseFIPSEndpoint
type UseFIPSEndpointProvider interface {
	GetUseFIPSEndpoint(context.Context) (value aws.FIPSEndpointState, found bool, err error)
}

// ResolveUseFIPSEndpoint extracts the first instance of a UseFIPSEndpointProvider from the config slice.
// Additionally, returns a boolean to indicate if the value was found in provided configs, and error if one is encountered.
func ( context.Context,  []interface{}) ( aws.FIPSEndpointState,  bool,  error) {
	for ,  := range  {
		if ,  := .(UseFIPSEndpointProvider);  {
			, ,  = .GetUseFIPSEndpoint()
			if  != nil ||  {
				break
			}
		}
	}
	return
}