Documentation
¶
Index ¶
Constants ¶
const Global = "global"
Variables ¶
This section is empty.
Functions ¶
func SetConfigRegion ¶
SetConfigRegion updates the aws.Config value with one of the regions in the passed list, to ensure there is always configured region.
Types ¶
type Region ¶
type Region struct {
// contains filtered or unexported fields
}
Region holds details on a region as used by the aws.Provider.
func SelectRegions ¶
func SelectRegions(ctx context.Context, configuredRegions []string, awsConfig aws.Config) ([]Region, error)
SelectRegions returns the regions the user has selected, from either the cloudgrep config, AWS config, or prompting.
func (Region) IsGlobal ¶
IsGlobal returns true if this Region refers to the global region, false otherwise.
func (Region) IsServiceSupported ¶
IsServiceSupported returns true if the service, identified by its endpoint, is supported in this region. Assumes all services are supported in the global region