Skip to content

request_service_quota_increase

request_service_quota_increase(
    service_code: ServiceCode,
    quota_code: QuotaCode,
    desired_value: QuotaValue,
    *,
    config_overrides: Optional[ServiceQuotasClientConfig] = None,
    context_id: Optional[QuotaContextId] = None,
    support_case_allowed: Optional[SupportCaseAllowed] = None,
) -> RequestServiceQuotaIncreaseResponse

Submits a quota increase request for the specified quota at the account or resource level.

Parameters:

  • service_code (ServiceCode) –

    Specifies the service identifier. To find the service code value for an Amazon Web Services service, use the ListServices operation.

  • quota_code (QuotaCode) –

    Specifies the quota identifier. To find the quota code for a specific quota, use the ListServiceQuotas operation, and look for the QuotaCode response in the output for the quota you want.

  • desired_value (QuotaValue) –

    Specifies the new, increased value for the quota.

  • context_id (Optional[QuotaContextId], default: None ) –

    Specifies the resource with an Amazon Resource Name (ARN).

  • support_case_allowed (Optional[SupportCaseAllowed], default: None ) –

    Specifies if an Amazon Web Services Support case can be opened for the quota increase request. This parameter is optional.

    By default, this flag is set to True and Amazon Web Services may create a support case for some quota increase requests. You can set this flag to False if you do not want a support case created when you request a quota increase. If you set the flag to False, Amazon Web Services does not open a support case and updates the request status to Not approved.

Raises:

Source code in docs_src/capo_service_quotas/_services/service_quotas.py
def request_service_quota_increase(
    self,
    service_code: "capo_service_quotas.types.service_code.ServiceCode",
    quota_code: "capo_service_quotas.types.quota_code.QuotaCode",
    desired_value: "capo_service_quotas.types.quota_value.QuotaValue",
    *,
    config_overrides: Optional[ServiceQuotasClientConfig] = None,
    context_id: Optional[
        "capo_service_quotas.types.quota_context_id.QuotaContextId"
    ] = None,
    support_case_allowed: Optional[
        "capo_service_quotas.types.support_case_allowed.SupportCaseAllowed"
    ] = None,
) -> "capo_service_quotas.types.request_service_quota_increase_response.RequestServiceQuotaIncreaseResponse":
    """<p>Submits a quota increase request for the specified quota at the account or resource level.</p>

    Args:
        service_code: <p>Specifies the service identifier. To find the service code value for an Amazon Web Services service, use the <a>ListServices</a> operation.</p>
        quota_code: <p>Specifies the quota identifier. To find the quota code for a specific quota, use the <a>ListServiceQuotas</a> operation, and look for the <code>QuotaCode</code> response in the output for the quota you want.</p>
        desired_value: <p>Specifies the new, increased value for the quota.</p>
        context_id: <p>Specifies the resource with an Amazon Resource Name (ARN).</p>
        support_case_allowed: <p>Specifies if an Amazon Web Services Support case can be opened for the quota increase request. This parameter is optional. </p> <p>By default, this flag is set to <code>True</code> and Amazon Web Services may create a support case for some quota increase requests. You can set this flag to <code>False</code> if you do not want a support case created when you request a quota increase. If you set the flag to <code>False</code>, Amazon Web Services does not open a support case and updates the request status to <code>Not approved</code>. </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.quota_exceeded_exception.QuotaExceededException: <p>You have exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use Service Quotas to request a service quota increase.</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.request_service_quota_increase_request.RequestServiceQuotaIncreaseRequest]",
    ) -> OperationResponse[
        "capo_service_quotas.types.request_service_quota_increase_response.RequestServiceQuotaIncreaseResponse"
    ]:
        import capo_service_quotas._operations.service_quotas_v20190624.request_service_quota_increase

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("RequestServiceQuotaIncrease")
    )
    input_: capo_service_quotas.types.request_service_quota_increase_request.RequestServiceQuotaIncreaseRequest = {
        "service_code": service_code,
        "quota_code": quota_code,
        "desired_value": desired_value,
    }
    if context_id is not None:
        input_["context_id"] = context_id
    if support_case_allowed is not None:
        input_["support_case_allowed"] = support_case_allowed

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