AWS.ServiceQuotas reference
GetAutoManagementConfiguration
Section titled “GetAutoManagementConfiguration”Source:
src/AWS/ServiceQuotas/GetAutoManagementConfiguration.ts
Runtime binding for servicequotas:GetAutoManagementConfiguration — read
the account’s Service Quotas Auto Management opt-in status (opt-in type,
notification target, excluded quotas) from inside a Function.
GetAutoManagementConfiguration: Auto Management
Section titled “GetAutoManagementConfiguration: Auto Management”// initconst getAutoManagementConfiguration = yield* AWS.ServiceQuotas.GetAutoManagementConfiguration();
// runtime — fails with the typed NoSuchResourceException when the// account has not opted in to Auto Managementconst config = yield* getAutoManagementConfiguration();const optIn = config.OptInType; // NotifyOnly | NotifyAndAdjustGetAWSDefaultServiceQuota
Section titled “GetAWSDefaultServiceQuota”Source:
src/AWS/ServiceQuotas/GetAWSDefaultServiceQuota.ts
Runtime binding for servicequotas:GetAWSDefaultServiceQuota — read the
AWS default value of a quota (the value that applies when no account
override exists) from inside a Function.
GetAWSDefaultServiceQuota: Reading Quotas
Section titled “GetAWSDefaultServiceQuota: Reading Quotas”// initconst getAWSDefaultServiceQuota = yield* AWS.ServiceQuotas.GetAWSDefaultServiceQuota();
// runtimeconst { Quota } = yield* getAWSDefaultServiceQuota({ ServiceCode: "vpc", QuotaCode: "L-F678F1CE",});const defaultValue = Quota?.Value;GetQuotaUtilizationReport
Section titled “GetQuotaUtilizationReport”Source:
src/AWS/ServiceQuotas/GetQuotaUtilizationReport.ts
Runtime binding for servicequotas:GetQuotaUtilizationReport — read the
result of a utilization report started with
StartQuotaUtilizationReport from
inside a Function.
GetQuotaUtilizationReport: Utilization Reports
Section titled “GetQuotaUtilizationReport: Utilization Reports”// initconst getQuotaUtilizationReport = yield* AWS.ServiceQuotas.GetQuotaUtilizationReport();
// runtimeconst { Status, QuotaUtilizationList } = yield* getQuotaUtilizationReport({ ReportId: reportId,});GetRequestedServiceQuotaChange
Section titled “GetRequestedServiceQuotaChange”Source:
src/AWS/ServiceQuotas/GetRequestedServiceQuotaChange.ts
Runtime binding for servicequotas:GetRequestedServiceQuotaChange — read
the status of a quota increase request from inside a Function (e.g. to
poll a request submitted with
RequestServiceQuotaIncrease).
GetRequestedServiceQuotaChange: Quota Increase Requests
Section titled “GetRequestedServiceQuotaChange: Quota Increase Requests”// initconst getRequestedServiceQuotaChange = yield* AWS.ServiceQuotas.GetRequestedServiceQuotaChange();
// runtimeconst { RequestedQuota } = yield* getRequestedServiceQuotaChange({ RequestId: requestId,});const status = RequestedQuota?.Status; // PENDING | APPROVED | ...GetServiceQuota
Section titled “GetServiceQuota”Source:
src/AWS/ServiceQuotas/GetServiceQuota.ts
Runtime binding for servicequotas:GetServiceQuota — read the applied
value of any Service Quotas quota (account-level or resource-level) from
inside a Function.
Service Quotas is a read-mostly control-plane service with no resource to
manage for reads: the binding takes no arguments and grants the function
servicequotas:GetServiceQuota (the action has no resource-level IAM).
Pass the raw distilled request — no marshalling.
GetServiceQuota: Reading Quotas
Section titled “GetServiceQuota: Reading Quotas”// initconst getServiceQuota = yield* AWS.ServiceQuotas.GetServiceQuota();
// runtimeconst { Quota } = yield* getServiceQuota({ ServiceCode: "lambda", QuotaCode: "L-B99A9384",});const applied = Quota?.Value;ListAWSDefaultServiceQuotas
Section titled “ListAWSDefaultServiceQuotas”Source:
src/AWS/ServiceQuotas/ListAWSDefaultServiceQuotas.ts
Runtime binding for servicequotas:ListAWSDefaultServiceQuotas — list the
AWS default values for every quota of a service from inside a Function.
ListAWSDefaultServiceQuotas: Listing Quotas
Section titled “ListAWSDefaultServiceQuotas: Listing Quotas”// initconst listAWSDefaultServiceQuotas = yield* AWS.ServiceQuotas.ListAWSDefaultServiceQuotas();
// runtimeconst { Quotas } = yield* listAWSDefaultServiceQuotas({ ServiceCode: "lambda",});ListRequestedServiceQuotaChangeHistory
Section titled “ListRequestedServiceQuotaChangeHistory”Source:
src/AWS/ServiceQuotas/ListRequestedServiceQuotaChangeHistory.ts
Runtime binding for
servicequotas:ListRequestedServiceQuotaChangeHistory — list quota
increase requests in the account’s 90-day request history from inside a
Function, optionally filtered by service or status.
ListRequestedServiceQuotaChangeHistory: Quota Increase Requests
Section titled “ListRequestedServiceQuotaChangeHistory: Quota Increase Requests”// initconst listRequestedServiceQuotaChangeHistory = yield* AWS.ServiceQuotas.ListRequestedServiceQuotaChangeHistory();
// runtimeconst { RequestedQuotas } = yield* listRequestedServiceQuotaChangeHistory({ Status: "PENDING",});ListRequestedServiceQuotaChangeHistoryByQuota
Section titled “ListRequestedServiceQuotaChangeHistoryByQuota”Source:
src/AWS/ServiceQuotas/ListRequestedServiceQuotaChangeHistoryByQuota.ts
Runtime binding for
servicequotas:ListRequestedServiceQuotaChangeHistoryByQuota — list quota
increase requests for one specific quota from inside a Function.
ListRequestedServiceQuotaChangeHistoryByQuota: Quota Increase Requests
Section titled “ListRequestedServiceQuotaChangeHistoryByQuota: Quota Increase Requests”// initconst listRequestedServiceQuotaChangeHistoryByQuota = yield* AWS.ServiceQuotas.ListRequestedServiceQuotaChangeHistoryByQuota();
// runtimeconst { RequestedQuotas } = yield* listRequestedServiceQuotaChangeHistoryByQuota({ ServiceCode: "lambda", QuotaCode: "L-B99A9384", });ListServiceQuotas
Section titled “ListServiceQuotas”Source:
src/AWS/ServiceQuotas/ListServiceQuotas.ts
Runtime binding for servicequotas:ListServiceQuotas — list the applied
quota values for a service from inside a Function.
ListServiceQuotas: Listing Quotas
Section titled “ListServiceQuotas: Listing Quotas”// initconst listServiceQuotas = yield* AWS.ServiceQuotas.ListServiceQuotas();
// runtimeconst { Quotas } = yield* listServiceQuotas({ ServiceCode: "vpc", MaxResults: 50,});ListServices
Section titled “ListServices”Source:
src/AWS/ServiceQuotas/ListServices.ts
Runtime binding for servicequotas:ListServices — list the services that
integrate with Service Quotas (and their service codes) from inside a
Function.
ListServices: Listing Quotas
Section titled “ListServices: Listing Quotas”// initconst listServices = yield* AWS.ServiceQuotas.ListServices();
// runtimeconst { Services } = yield* listServices({ MaxResults: 100 });const lambda = Services?.find((s) => s.ServiceCode === "lambda");RequestServiceQuotaIncrease
Section titled “RequestServiceQuotaIncrease”Source:
src/AWS/ServiceQuotas/RequestServiceQuotaIncrease.ts
Runtime binding for servicequotas:RequestServiceQuotaIncrease — submit a
quota increase request from inside a Function (e.g. automatically request
more capacity when utilization approaches the limit).
RequestServiceQuotaIncrease: Quota Increase Requests
Section titled “RequestServiceQuotaIncrease: Quota Increase Requests”// initconst requestServiceQuotaIncrease = yield* AWS.ServiceQuotas.RequestServiceQuotaIncrease();
// runtimeconst { RequestedQuota } = yield* requestServiceQuotaIncrease({ ServiceCode: "lambda", QuotaCode: "L-B99A9384", DesiredValue: 2000,});const requestId = RequestedQuota?.Id;StartQuotaUtilizationReport
Section titled “StartQuotaUtilizationReport”Source:
src/AWS/ServiceQuotas/StartQuotaUtilizationReport.ts
Runtime binding for servicequotas:StartQuotaUtilizationReport — kick off
an asynchronous account-wide quota utilization report from inside a
Function. Poll the result with
GetQuotaUtilizationReport.
StartQuotaUtilizationReport: Utilization Reports
Section titled “StartQuotaUtilizationReport: Utilization Reports”// initconst startQuotaUtilizationReport = yield* AWS.ServiceQuotas.StartQuotaUtilizationReport();
// runtimeconst { ReportId } = yield* startQuotaUtilizationReport();