Documentation ¶
Index ¶
- Constants
- func EnsureServiceQuota(ctx context.Context, cfg *awscfg.Config, quotaCode, serviceCode string, ...) error
- func EnsureServiceQuotaInAllRegions(ctx context.Context, cfg *awscfg.Config, quotaCode, serviceCode string, ...) error
- type DeadlinePassed
- type RequestedServiceQuotaChange
- func ListRequestedServiceQuotaChangeHistoryByQuota(ctx context.Context, cfg *awscfg.Config, quotaCode, serviceCode string) (changes []RequestedServiceQuotaChange, err error)
- func RequestServiceQuotaIncrease(ctx context.Context, cfg *awscfg.Config, quotaCode, serviceCode string, ...) (*RequestedServiceQuotaChange, error)
- type ServiceInfo
- type ServiceQuota
- func GetAWSDefaultServiceQuota(ctx context.Context, cfg *awscfg.Config, quotaCode, serviceCode string) (*ServiceQuota, error)
- func GetServiceQuota(ctx context.Context, cfg *awscfg.Config, quotaCode, serviceCode string) (*ServiceQuota, error)
- func ListServiceQuotas(ctx context.Context, cfg *awscfg.Config, serviceCode string) (quotas []ServiceQuota, err error)
Constants ¶
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.
Types ¶
type DeadlinePassed ¶
type DeadlinePassed struct{ QuotaCode, ServiceCode string }
func (DeadlinePassed) Error ¶
func (err DeadlinePassed) Error() string
type RequestedServiceQuotaChange ¶
type RequestedServiceQuotaChange = types.RequestedServiceQuotaChange
type ServiceQuota ¶
type ServiceQuota = types.ServiceQuota