list_service_quotas
¶
list_service_quotas(
service_code: ServiceCode,
*,
config_overrides: Optional[ServiceQuotasClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
quota_code: Optional[QuotaCode] = None,
quota_applied_at_level: Optional[AppliedLevelEnum] = None,
) -> ListServiceQuotasResponse
Lists the applied quota values for the specified Amazon Web Services service. For some quotas, only the default values are available. If the applied quota value is not available for a quota, the quota is not retrieved. Filter responses to return applied quota values at either the account level, resource level, or all levels.
Parameters:
-
service_code(ServiceCode) –Specifies the service identifier. To find the service code value for an Amazon Web Services service, use the ListServices operation.
-
next_token(Optional[NextToken], default:None) –Specifies a value for receiving additional results after you receive a
NextTokenresponse in a previous request. ANextTokenresponse indicates that more output is available. Set this parameter to the value of the previous call'sNextTokenresponse to indicate where the output should continue from. -
max_results(Optional[MaxResults], default:None) –Specifies the maximum number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value appropriate to the operation. If additional items exist beyond those included in the current response, the
NextTokenresponse element is present and has a value (is not null). Include that value as theNextTokenrequest parameter in the next call to the operation to get the next part of the results.An API operation can return fewer results than the maximum even when there are more results available. You should check
NextTokenafter every operation to ensure that you receive all of the results. -
quota_code(Optional[QuotaCode], default:None) –Specifies the quota identifier. To find the quota code for a specific quota, use the ListServiceQuotas operation, and look for the
QuotaCoderesponse in the output for the quota you want. -
quota_applied_at_level(Optional[AppliedLevelEnum], default:None) –Filters the response to return applied quota values for the
ACCOUNT,RESOURCE, orALLlevels.ACCOUNTis the default.
Raises:
-
AccessDeniedException–You do not have sufficient permission to perform this action.
-
IllegalArgumentException–Invalid input was provided.
-
InvalidPaginationTokenException–Invalid input was provided.
-
NoSuchResourceException–The specified resource does not exist.
-
ServiceException–Something went wrong.
-
TooManyRequestsException–Due to throttling, the request was denied. Slow down the rate of request calls, or request an increase for this quota.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_service_quotas/_services/service_quotas.py
1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 | |