Skip to content

stop_auto_management async

stop_auto_management(
    *, config_overrides: Optional[AsyncServiceQuotasClientConfig] = None
) -> StopAutoManagementResponse

Stops Service Quotas Automatic Management for an Amazon Web Services account and removes all associated configurations. Automatic Management monitors your Service Quotas utilization and notifies you before you run out of your allocated quotas.

Raises:

Source code in docs_src/capo_service_quotas/_services/async_service_quotas.py
async def stop_auto_management(
    self, *, config_overrides: Optional[AsyncServiceQuotasClientConfig] = None
) -> "capo_service_quotas.types.stop_auto_management_response.StopAutoManagementResponse":
    """<p>Stops <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/automatic-management.html">Service Quotas Automatic Management</a> for an Amazon Web Services account and removes all associated configurations. Automatic Management monitors your Service Quotas utilization and notifies you before you run out of your allocated quotas.</p>

    Raises:
        capo_service_quotas.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient permission to perform this action.</p>
        capo_service_quotas.errors.illegal_argument_exception.IllegalArgumentException: <p>Invalid input was provided.</p>
        capo_service_quotas.errors.no_such_resource_exception.NoSuchResourceException: <p>The specified resource does not exist.</p>
        capo_service_quotas.errors.service_exception.ServiceException: <p>Something went wrong.</p>
        capo_service_quotas.errors.too_many_requests_exception.TooManyRequestsException: <p>Due to throttling, the request was denied. Slow down the rate of request calls, or request an increase for this quota.</p>
        capo_service_quotas.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_service_quotas.types.stop_auto_management_request.StopAutoManagementRequest]",
    ) -> AsyncOperationResponse[
        "capo_service_quotas.types.stop_auto_management_response.StopAutoManagementResponse"
    ]:
        import capo_service_quotas._operations.service_quotas_v20190624.stop_auto_management

        (
            output,
            http_response,
        ) = await capo_service_quotas._operations.service_quotas_v20190624.stop_auto_management.async_stop_auto_management(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("StopAutoManagement")
    )
    input_: capo_service_quotas.types.stop_auto_management_request.StopAutoManagementRequest = {}

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output