Skip to content

ServiceQuotasClient#

Index > ServiceQuotas > ServiceQuotasClient

Auto-generated documentation for ServiceQuotas type annotations stubs module mypy-boto3-service-quotas.

ServiceQuotasClient#

Type annotations and code completion for boto3.client("service-quotas"). boto3 documentation

# ServiceQuotasClient usage example

from boto3.session import Session
from mypy_boto3_service_quotas.client import ServiceQuotasClient

def get_service-quotas_client() -> ServiceQuotasClient:
    return Session().client("service-quotas")

Exceptions#

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("service-quotas").exceptions structure.

# Exceptions.exceptions usage example

client = boto3.client("service-quotas")

try:
    do_something(client)
except (
    client.exceptions.AWSServiceAccessNotEnabledException,
    client.exceptions.AccessDeniedException,
    client.exceptions.ClientError,
    client.exceptions.DependencyAccessDeniedException,
    client.exceptions.IllegalArgumentException,
    client.exceptions.InvalidPaginationTokenException,
    client.exceptions.InvalidResourceStateException,
    client.exceptions.NoAvailableOrganizationException,
    client.exceptions.NoSuchResourceException,
    client.exceptions.OrganizationNotInAllFeaturesModeException,
    client.exceptions.QuotaExceededException,
    client.exceptions.ResourceAlreadyExistsException,
    client.exceptions.ServiceException,
    client.exceptions.ServiceQuotaTemplateNotInUseException,
    client.exceptions.TagPolicyViolationException,
    client.exceptions.TemplatesNotAvailableInRegionException,
    client.exceptions.TooManyRequestsException,
    client.exceptions.TooManyTagsException,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_service_quotas.client import Exceptions

def handle_error(exc: Exceptions.AWSServiceAccessNotEnabledException) -> None:
    ...

Methods#

associate_service_quota_template#

Associates your quota request template with your organization.

Type annotations and code completion for boto3.client("service-quotas").associate_service_quota_template method. boto3 documentation

# associate_service_quota_template method definition

def associate_service_quota_template(
    self,
) -> Dict[str, Any]:
    ...

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for boto3.client("service-quotas").can_paginate method. boto3 documentation

# can_paginate method definition

def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

close#

Closes underlying endpoint connections.

Type annotations and code completion for boto3.client("service-quotas").close method. boto3 documentation

# close method definition

def close(
    self,
) -> None:
    ...

delete_service_quota_increase_request_from_template#

Deletes the quota increase request for the specified quota from your quota request template.

Type annotations and code completion for boto3.client("service-quotas").delete_service_quota_increase_request_from_template method. boto3 documentation

# delete_service_quota_increase_request_from_template method definition

def delete_service_quota_increase_request_from_template(
    self,
    *,
    ServiceCode: str,
    QuotaCode: str,
    AwsRegion: str,
) -> Dict[str, Any]:
    ...
# delete_service_quota_increase_request_from_template method usage example with argument unpacking

kwargs: DeleteServiceQuotaIncreaseRequestFromTemplateRequestRequestTypeDef = {  # (1)
    "ServiceCode": ...,
    "QuotaCode": ...,
    "AwsRegion": ...,
}

parent.delete_service_quota_increase_request_from_template(**kwargs)
  1. See DeleteServiceQuotaIncreaseRequestFromTemplateRequestRequestTypeDef

disassociate_service_quota_template#

Disables your quota request template.

Type annotations and code completion for boto3.client("service-quotas").disassociate_service_quota_template method. boto3 documentation

# disassociate_service_quota_template method definition

def disassociate_service_quota_template(
    self,
) -> Dict[str, Any]:
    ...

generate_presigned_url#

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for boto3.client("service-quotas").generate_presigned_url method. boto3 documentation

# generate_presigned_url method definition

def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

get_association_for_service_quota_template#

Retrieves the status of the association for the quota request template.

Type annotations and code completion for boto3.client("service-quotas").get_association_for_service_quota_template method. boto3 documentation

# get_association_for_service_quota_template method definition

def get_association_for_service_quota_template(
    self,
) -> GetAssociationForServiceQuotaTemplateResponseTypeDef:  # (1)
    ...
  1. See GetAssociationForServiceQuotaTemplateResponseTypeDef

get_aws_default_service_quota#

Retrieves the default value for the specified quota.

Type annotations and code completion for boto3.client("service-quotas").get_aws_default_service_quota method. boto3 documentation

# get_aws_default_service_quota method definition

def get_aws_default_service_quota(
    self,
    *,
    ServiceCode: str,
    QuotaCode: str,
) -> GetAWSDefaultServiceQuotaResponseTypeDef:  # (1)
    ...
  1. See GetAWSDefaultServiceQuotaResponseTypeDef
# get_aws_default_service_quota method usage example with argument unpacking

kwargs: GetAWSDefaultServiceQuotaRequestRequestTypeDef = {  # (1)
    "ServiceCode": ...,
    "QuotaCode": ...,
}

parent.get_aws_default_service_quota(**kwargs)
  1. See GetAWSDefaultServiceQuotaRequestRequestTypeDef

get_requested_service_quota_change#

Retrieves information about the specified quota increase request.

Type annotations and code completion for boto3.client("service-quotas").get_requested_service_quota_change method. boto3 documentation

# get_requested_service_quota_change method definition

def get_requested_service_quota_change(
    self,
    *,
    RequestId: str,
) -> GetRequestedServiceQuotaChangeResponseTypeDef:  # (1)
    ...
  1. See GetRequestedServiceQuotaChangeResponseTypeDef
# get_requested_service_quota_change method usage example with argument unpacking

kwargs: GetRequestedServiceQuotaChangeRequestRequestTypeDef = {  # (1)
    "RequestId": ...,
}

parent.get_requested_service_quota_change(**kwargs)
  1. See GetRequestedServiceQuotaChangeRequestRequestTypeDef

get_service_quota#

Retrieves the applied quota value for the specified quota.

Type annotations and code completion for boto3.client("service-quotas").get_service_quota method. boto3 documentation

# get_service_quota method definition

def get_service_quota(
    self,
    *,
    ServiceCode: str,
    QuotaCode: str,
    ContextId: str = ...,
) -> GetServiceQuotaResponseTypeDef:  # (1)
    ...
  1. See GetServiceQuotaResponseTypeDef
# get_service_quota method usage example with argument unpacking

kwargs: GetServiceQuotaRequestRequestTypeDef = {  # (1)
    "ServiceCode": ...,
    "QuotaCode": ...,
}

parent.get_service_quota(**kwargs)
  1. See GetServiceQuotaRequestRequestTypeDef

get_service_quota_increase_request_from_template#

Retrieves information about the specified quota increase request in your quota request template.

Type annotations and code completion for boto3.client("service-quotas").get_service_quota_increase_request_from_template method. boto3 documentation

# get_service_quota_increase_request_from_template method definition

def get_service_quota_increase_request_from_template(
    self,
    *,
    ServiceCode: str,
    QuotaCode: str,
    AwsRegion: str,
) -> GetServiceQuotaIncreaseRequestFromTemplateResponseTypeDef:  # (1)
    ...
  1. See GetServiceQuotaIncreaseRequestFromTemplateResponseTypeDef
# get_service_quota_increase_request_from_template method usage example with argument unpacking

kwargs: GetServiceQuotaIncreaseRequestFromTemplateRequestRequestTypeDef = {  # (1)
    "ServiceCode": ...,
    "QuotaCode": ...,
    "AwsRegion": ...,
}

parent.get_service_quota_increase_request_from_template(**kwargs)
  1. See GetServiceQuotaIncreaseRequestFromTemplateRequestRequestTypeDef

list_aws_default_service_quotas#

Lists the default values for the quotas for the specified Amazon Web Service.

Type annotations and code completion for boto3.client("service-quotas").list_aws_default_service_quotas method. boto3 documentation

# list_aws_default_service_quotas method definition

def list_aws_default_service_quotas(
    self,
    *,
    ServiceCode: str,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListAWSDefaultServiceQuotasResponseTypeDef:  # (1)
    ...
  1. See ListAWSDefaultServiceQuotasResponseTypeDef
# list_aws_default_service_quotas method usage example with argument unpacking

kwargs: ListAWSDefaultServiceQuotasRequestRequestTypeDef = {  # (1)
    "ServiceCode": ...,
}

parent.list_aws_default_service_quotas(**kwargs)
  1. See ListAWSDefaultServiceQuotasRequestRequestTypeDef

list_requested_service_quota_change_history#

Retrieves the quota increase requests for the specified Amazon Web Service.

Type annotations and code completion for boto3.client("service-quotas").list_requested_service_quota_change_history method. boto3 documentation

# list_requested_service_quota_change_history method definition

def list_requested_service_quota_change_history(
    self,
    *,
    ServiceCode: str = ...,
    Status: RequestStatusType = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
    QuotaRequestedAtLevel: AppliedLevelEnumType = ...,  # (2)
) -> ListRequestedServiceQuotaChangeHistoryResponseTypeDef:  # (3)
    ...
  1. See RequestStatusType
  2. See AppliedLevelEnumType
  3. See ListRequestedServiceQuotaChangeHistoryResponseTypeDef
# list_requested_service_quota_change_history method usage example with argument unpacking

kwargs: ListRequestedServiceQuotaChangeHistoryRequestRequestTypeDef = {  # (1)
    "ServiceCode": ...,
}

parent.list_requested_service_quota_change_history(**kwargs)
  1. See ListRequestedServiceQuotaChangeHistoryRequestRequestTypeDef

list_requested_service_quota_change_history_by_quota#

Retrieves the quota increase requests for the specified quota.

Type annotations and code completion for boto3.client("service-quotas").list_requested_service_quota_change_history_by_quota method.