Retrieves details about your AWS Lambda Web Functions account settings for the current AWS Region, including the quotas that apply to web functions and your current usage.
Raises:
-
AccessDeniedException
–
You don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.
-
InternalServerException
–
The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.
-
ThrottlingException
–
The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_lambda_web/_services/async_lambda_web.py
| async def get_web_account_settings(
self, *, config_overrides: Optional[AsyncLambdaWebClientConfig] = None
) -> "capo_lambda_web.types.get_web_account_settings_response.GetWebAccountSettingsResponse":
"""<p>Retrieves details about your AWS Lambda Web Functions account settings for the current AWS Region, including the quotas that apply to web functions and your current usage.</p>
Raises:
capo_lambda_web.errors.access_denied_exception.AccessDeniedException: <p>You don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.</p>
capo_lambda_web.errors.internal_server_exception.InternalServerException: <p>The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.</p>
capo_lambda_web.errors.throttling_exception.ThrottlingException: <p>The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.</p>
capo_lambda_web.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_lambda_web.types.get_web_account_settings_request.GetWebAccountSettingsRequest]",
) -> AsyncOperationResponse[
"capo_lambda_web.types.get_web_account_settings_response.GetWebAccountSettingsResponse"
]:
import capo_lambda_web._operations.lambda_web.get_web_account_settings
(
output,
http_response,
) = await capo_lambda_web._operations.lambda_web.get_web_account_settings.async_get_web_account_settings(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetWebAccountSettings")
)
input_: capo_lambda_web.types.get_web_account_settings_request.GetWebAccountSettingsRequest = {}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|