Documentation ¶
Overview ¶
Package servicequotas implements methods to retrieve AWS Service Quotas information
Index ¶
Constants ¶
View Source
const ( RDSServiceCode = "rds" // AWS RDS service code in AWS quotas API // AWS RDS service quotas codes can be listed with "aws service-quotas list-service-quotas --service-code rds" DBinstancesQuotacode = "L-7B6409FD" // DB instances TotalStorageQuotaCode = "L-7ADDB58A" // Total storage for all DB instances ManualDBInstanceSnapshotsQuotaCode = "L-272F1212" // Manual DB instance snapshots )
Variables ¶
This section is empty.
Functions ¶
func NewFetcher ¶
func NewFetcher(ctx context.Context, client ServiceQuotasClient, logger slog.Logger) *serviceQuotaFetcher
Types ¶
type ServiceQuotasClient ¶
type ServiceQuotasClient interface {
GetServiceQuota(ctx context.Context, input *aws_servicequotas.GetServiceQuotaInput, optFns ...func(*aws_servicequotas.Options)) (*aws_servicequotas.GetServiceQuotaOutput, error)
}
type Statistics ¶
type Statistics struct {
UsageAPICall float64
}
Click to show internal directories.
Click to hide internal directories.