aws

package
v1.14.16-dcf8320c8c4e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedRegions = sets.NewString(
	"us-east-2",
	"us-east-1",
	"us-west-1",
	"us-west-2",
	"ap-south-1",
	"ap-northeast-3",
	"ap-northeast-2",
	"ap-southeast-1",
	"ap-southeast-2",
	"ap-northeast-1",
	"ca-central-1",
	"ca-west-1",
	"eu-central-1",
	"eu-west-1",
	"eu-west-2",
	"eu-west-3",
	"sa-east-1",
)

SupportedRegions is a list of AWS regions that support the servicequota APIs. see https://docs.aws.amazon.com/general/latest/gr/servicequotas.html

Functions

func IsUnauthorized

func IsUnauthorized(err error) bool

IsUnauthorized checks if the error is un authorized.

func Load

func Load(ctx context.Context, sess *session.Session, region string, services ...string) ([]quota.Quota, error)

Load load the quota information for a region. It provides information about the usage and limit for each resource quota.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL