Skip to content

create_support_case

create_support_case(
    request_id: RequestId,
    *,
    config_overrides: Optional[ServiceQuotasClientConfig] = None,
) -> CreateSupportCaseResponse

Creates a Support case for an existing quota increase request. This call only creates a Support case if the request has a Pending status.

Parameters:

  • request_id (RequestId) –

    The ID of the pending quota increase request for which you want to open a Support case.

Raises:

Source code in docs_src/capo_service_quotas/_services/service_quotas.py
def create_support_case(
    self,
    request_id: "capo_service_quotas.types.request_id.RequestId",
    *,
    config_overrides: Optional[ServiceQuotasClientConfig] = None,
) -> "capo_service_quotas.types.create_support_case_response.CreateSupportCaseResponse":
    """<p>Creates a Support case for an existing quota increase request. This call only creates a Support case if the request has a <code>Pending</code> status. </p>

    Args:
        request_id: <p>The ID of the pending quota increase request for which you want to open a Support case. </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.dependency_access_denied_exception.DependencyAccessDeniedException: <p>You can't perform this action because a dependency does not have access.</p>
        capo_service_quotas.errors.illegal_argument_exception.IllegalArgumentException: <p>Invalid input was provided.</p>
        capo_service_quotas.errors.invalid_resource_state_exception.InvalidResourceStateException: <p>The resource is in an invalid state.</p>
        capo_service_quotas.errors.no_such_resource_exception.NoSuchResourceException: <p>The specified resource does not exist.</p>
        capo_service_quotas.errors.resource_already_exists_exception.ResourceAlreadyExistsException: <p>The specified resource already exists.</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.
    """

    def _handler(
        req: "OperationRequest[capo_service_quotas.types.create_support_case_request.CreateSupportCaseRequest]",
    ) -> OperationResponse[
        "capo_service_quotas.types.create_support_case_response.CreateSupportCaseResponse"
    ]:
        import capo_service_quotas._operations.service_quotas_v20190624.create_support_case

        output, http_response = (
            capo_service_quotas._operations.service_quotas_v20190624.create_support_case.create_support_case(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("CreateSupportCase")
    )
    input_: capo_service_quotas.types.create_support_case_request.CreateSupportCaseRequest = {
        "request_id": request_id
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output