func (v WithCustomCABundle) GetCustomCABundle() ([]byte, error) {
	return []byte(v), nil
}
GetCustomCABundle returns the CA bundle PEM bytes.
package external
import (
	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/ec2metadata"
)
type SharedConfigProfileProvider interface {
	GetSharedConfigProfile() (string, error)
}
type WithSharedConfigProfile string
func (c WithSharedConfigProfile) GetSharedConfigProfile() (string, error) {
	return string(c), nil
}
func GetSharedConfigProfile(configs Configs) (string, bool, error) {
	for _, cfg := range configs {
		if p, ok := cfg.(SharedConfigProfileProvider); ok {
			v, err := p.GetSharedConfigProfile()
			if err != nil {
				return "", false, err
			}
			if len(v) > 0 {
				return v, true, nil
			}
		}
	}
	return "", false, nil
}
type SharedConfigFilesProvider interface {
	GetSharedConfigFiles() ([]string, error)
}
type WithSharedConfigFiles []string
func (c WithSharedConfigFiles) GetSharedConfigFiles() ([]string, error) {
	return []string(c), nil
}
func GetSharedConfigFiles(configs Configs) ([]string, bool, error) {
	for _, cfg := range configs {
		if p, ok := cfg.(SharedConfigFilesProvider); ok {
			v, err := p.GetSharedConfigFiles()
			if err != nil {
				return nil, false, err
			}
			if len(v) > 0 {
				return v, true, nil
			}
		}
	}
	return nil, false, nil
}
type CustomCABundleProvider interface {
	GetCustomCABundle() ([]byte, error)
}
type WithCustomCABundle []byte