awsservicequotas

package
v0.0.0-...-82ab749 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const NoSuchResourceException = "NoSuchResourceException"

Variables

This section is empty.

Functions

func EnsureServiceQuota

func EnsureServiceQuota(
	ctx context.Context,
	cfg *awscfg.Config,
	quotaCode, serviceCode string,
	requiredValue, desiredValue float64,
	deadline time.Time,
) error

EnsureServiceQuota tries to find the current value of the given quota (or its default, if the true current value isn't available) and raise it to desiredValue if it is (believed to be) lower than requiredValue. The separation of desiredValue from requiredValue enables callers to raise limits only when necessary and to raise them far enough that foreseeable future calls don't need to raise the limit again.

Limits for which only the default value is available are awkward to use once the limit has been raised from the default value. In these cases it's best to attempt to create the resource, receive a LimitExceeded (or similar) exception, and then call EnsureServiceQuota.

func EnsureServiceQuotaInAllRegions

func EnsureServiceQuotaInAllRegions(
	ctx context.Context,
	cfg *awscfg.Config,
	quotaCode, serviceCode string,
	requiredValue, desiredValue float64,
	deadline time.Time,
) error

Types

type DeadlinePassed

type DeadlinePassed struct{ QuotaCode, ServiceCode string }

func (DeadlinePassed) Error

func (err DeadlinePassed) Error() string

type RequestedServiceQuotaChange

type RequestedServiceQuotaChange = types.RequestedServiceQuotaChange

func ListRequestedServiceQuotaChangeHistoryByQuota

func ListRequestedServiceQuotaChangeHistoryByQuota(
	ctx context.Context,
	cfg *awscfg.Config,
	quotaCode, serviceCode string,
) (changes []RequestedServiceQuotaChange, err error)

func RequestServiceQuotaIncrease

func RequestServiceQuotaIncrease(
	ctx context.Context,
	cfg *awscfg.Config,
	quotaCode, serviceCode string,
	desiredValue float64,
) (*RequestedServiceQuotaChange, error)

type ServiceInfo

type ServiceInfo = types.ServiceInfo

func ListServices

func ListServices(
	ctx context.Context,
	cfg *awscfg.Config,
) (services []ServiceInfo, err error)

type ServiceQuota

type ServiceQuota = types.ServiceQuota

func GetAWSDefaultServiceQuota

func GetAWSDefaultServiceQuota(
	ctx context.Context,
	cfg *awscfg.Config,
	quotaCode, serviceCode string,
) (*ServiceQuota, error)

func GetServiceQuota

func GetServiceQuota(
	ctx context.Context,
	cfg *awscfg.Config,
	quotaCode, serviceCode string,
) (*ServiceQuota, error)

func ListServiceQuotas

func ListServiceQuotas(
	ctx context.Context,
	cfg *awscfg.Config,
	serviceCode string,
) (quotas []ServiceQuota, err error)

Jump to

Keyboard shortcuts

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