Skip to content

ServiceQuotasClient

Index > ServiceQuotas > ServiceQuotasClient

Auto-generated documentation for ServiceQuotas type annotations stubs module types-aiobotocore-service-quotas.

ServiceQuotasClient

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

Usage example
from aioboto3.session import Session
from types_aiobotocore_service_quotas.client import ServiceQuotasClient

session = Session()
async with session.client("service-quotas") as client:
    client: ServiceQuotasClient

Exceptions

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

Usage example
async with session.client("service-quotas") as client:
    try:
        do_something(client)
    except (
            client.AWSServiceAccessNotEnabledException,
        client.AccessDeniedException,
        client.ClientError,
        client.DependencyAccessDeniedException,
        client.IllegalArgumentException,
        client.InvalidPaginationTokenException,
        client.InvalidResourceStateException,
        client.NoAvailableOrganizationException,
        client.NoSuchResourceException,
        client.OrganizationNotInAllFeaturesModeException,
        client.QuotaExceededException,
        client.ResourceAlreadyExistsException,
        client.ServiceException,
        client.ServiceQuotaTemplateNotInUseException,
        client.TagPolicyViolationException,
        client.TemplatesNotAvailableInRegionException,
        client.TooManyRequestsException,
        client.TooManyTagsException,
    ) as e:
        print(e)
Type checking example
from types_aiobotocore_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 session.client("service-quotas").associate_service_quota_template method. boto3 documentation

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

can_paginate

Check if an operation can be paginated.

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

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

close

Closes underlying endpoint connections.

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

Method definition
await 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 session.client("service-quotas").delete_service_quota_increase_request_from_template method. boto3 documentation

Method definition
await def delete_service_quota_increase_request_from_template(
    self,
    *,
    ServiceCode: str,
    QuotaCode: str,
    AwsRegion: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
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 session.client("service-quotas").disassociate_service_quota_template method. boto3 documentation

Method definition
await 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 session.client("service-quotas").generate_presigned_url method. boto3 documentation

Method definition
await 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 session.client("service-quotas").get_association_for_service_quota_template method. boto3 documentation

Method definition
await 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 session.client("service-quotas").get_aws_default_service_quota method. boto3 documentation

Method definition
await def get_aws_default_service_quota(
    self,
    *,
    ServiceCode: str,
    QuotaCode: str,
) -> GetAWSDefaultServiceQuotaResponseTypeDef:  # (1)
    ...
  1. See GetAWSDefaultServiceQuotaResponseTypeDef
Usage example with kwargs
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 session.client("service-quotas").get_requested_service_quota_change method. boto3 documentation

Method definition
await def get_requested_service_quota_change(
    self,
    *,
    RequestId: str,
) -> GetRequestedServiceQuotaChangeResponseTypeDef:  # (1)
    ...
  1. See GetRequestedServiceQuotaChangeResponseTypeDef
Usage example with kwargs
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 session.client("service-quotas").get_service_quota method. boto3 documentation

Method definition
await def get_service_quota(
    self,
    *,
    ServiceCode: str,
    QuotaCode: str,
) -> GetServiceQuotaResponseTypeDef:  # (1)
    ...
  1. See GetServiceQuotaResponseTypeDef
Usage example with kwargs
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 session.client("service-quotas").get_service_quota_increase_request_from_template method. boto3 documentation

Method definition
await def get_service_quota_increase_request_from_template(
    self,
    *,
    ServiceCode: str,
    QuotaCode: str,
    AwsRegion: str,
) -> GetServiceQuotaIncreaseRequestFromTemplateResponseTypeDef:  # (1)
    ...
  1. See GetServiceQuotaIncreaseRequestFromTemplateResponseTypeDef
Usage example with kwargs
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 AWS service.

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

Method definition
await def list_aws_default_service_quotas(
    self,
    *,
    ServiceCode: str,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListAWSDefaultServiceQuotasResponseTypeDef:  # (1)
    ...
  1. See ListAWSDefaultServiceQuotasResponseTypeDef
Usage example with kwargs
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 service.

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

Method definition
await def list_requested_service_quota_change_history(
    self,
    *,
    ServiceCode: str = ...,
    Status: RequestStatusType = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListRequestedServiceQuotaChangeHistoryResponseTypeDef:  # (2)
    ...
  1. See RequestStatusType
  2. See ListRequestedServiceQuotaChangeHistoryResponseTypeDef
Usage example with kwargs
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 session.client("service-quotas").list_requested_service_quota_change_history_by_quota method. boto3 documentation

Method definition
await def list_requested_service_quota_change_history_by_quota(
    self,
    *,
    ServiceCode: str,
    QuotaCode: str,
    Status: RequestStatusType = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListRequestedServiceQuotaChangeHistoryByQuotaResponseTypeDef:  # (2)
    ...
  1. See RequestStatusType
  2. See ListRequestedServiceQuotaChangeHistoryByQuotaResponseTypeDef
Usage example with kwargs
kwargs: ListRequestedServiceQuotaChangeHistoryByQuotaRequestRequestTypeDef = {  # (1)
    "ServiceCode": ...,
    "QuotaCode": ...,
}

parent.list_requested_service_quota_change_history_by_quota(**kwargs)
  1. See ListRequestedServiceQuotaChangeHistoryByQuotaRequestRequestTypeDef

list_service_quota_increase_requests_in_template

Lists the quota increase requests in the specified quota request template.

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

Method definition
await def list_service_quota_increase_requests_in_template(
    self,
    *,
    ServiceCode: str = ...,
    AwsRegion: str = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListServiceQuotaIncreaseRequestsInTemplateResponseTypeDef:  # (1)
    ...
  1. See ListServiceQuotaIncreaseRequestsInTemplateResponseTypeDef
Usage example with kwargs
kwargs: ListServiceQuotaIncreaseRequestsInTemplateRequestRequestTypeDef = {  # (1)
    "ServiceCode": ...,
}

parent.list_service_quota_increase_requests_in_template(**kwargs)
  1. See ListServiceQuotaIncreaseRequestsInTemplateRequestRequestTypeDef

list_service_quotas

Lists the applied quota values for the specified AWS service.

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

Method definition
await def list_service_quotas(
    self,
    *,
    ServiceCode: str,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListServiceQuotasResponseTypeDef:  # (1)
    ...
  1. See ListServiceQuotasResponseTypeDef
Usage example with kwargs
kwargs: ListServiceQuotasRequestRequestTypeDef = {  # (1)
    "ServiceCode": ...,
}

parent.list_service_quotas(**kwargs)
  1. See ListServiceQuotasRequestRequestTypeDef

list_services

Lists the names and codes for the services integrated with Service Quotas.

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

Method definition
await def list_services(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListServicesResponseTypeDef:  # (1)
    ...
  1. See ListServicesResponseTypeDef
Usage example with kwargs
kwargs: ListServicesRequestRequestTypeDef = {  # (1)
    "NextToken": ...,
}

parent.list_services(**kwargs)
  1. See ListServicesRequestRequestTypeDef

list_tags_for_resource

Returns a list of the tags assigned to the specified applied quota.

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

Method definition
await def list_tags_for_resource(
    self,
    *,
    ResourceARN: str,
) -> ListTagsForResourceResponseTypeDef:  # (1)
    ...
  1. See ListTagsForResourceResponseTypeDef
Usage example with kwargs
kwargs: ListTagsForResourceRequestRequestTypeDef = {  # (1)
    "ResourceARN": ...,
}

parent.list_tags_for_resource(**kwargs)
  1. See ListTagsForResourceRequestRequestTypeDef

put_service_quota_increase_request_into_template

Adds a quota increase request to your quota request template.

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

Method definition
await def put_service_quota_increase_request_into_template(
    self,
    *,
    QuotaCode: str,
    ServiceCode: str,
    AwsRegion: str,
    DesiredValue: float,
) -> PutServiceQuotaIncreaseRequestIntoTemplateResponseTypeDef:  # (1)
    ...
  1. See PutServiceQuotaIncreaseRequestIntoTemplateResponseTypeDef
Usage example with kwargs
kwargs: PutServiceQuotaIncreaseRequestIntoTemplateRequestRequestTypeDef = {  # (1)
    "QuotaCode": ...,
    "ServiceCode": ...,
    "AwsRegion": ...,
    "DesiredValue": ...,
}

parent.put_service_quota_increase_request_into_template(**kwargs)
  1. See PutServiceQuotaIncreaseRequestIntoTemplateRequestRequestTypeDef

request_service_quota_increase

Submits a quota increase request for the specified quota.

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

Method definition
await def request_service_quota_increase(
    self,
    *,
    ServiceCode: str,
    QuotaCode: str,
    DesiredValue: float,
) -> RequestServiceQuotaIncreaseResponseTypeDef:  # (1)
    ...
  1. See RequestServiceQuotaIncreaseResponseTypeDef
Usage example with kwargs
kwargs: RequestServiceQuotaIncreaseRequestRequestTypeDef = {  # (1)
    "ServiceCode": ...,
    "QuotaCode": ...,
    "DesiredValue": ...,
}

parent.request_service_quota_increase(**kwargs)
  1. See RequestServiceQuotaIncreaseRequestRequestTypeDef

tag_resource

Adds tags to the specified applied quota.

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

Method definition
await def tag_resource(
    self,
    *,
    ResourceARN: str,
    Tags: Sequence[TagTypeDef],  # (1)
) -> Dict[str, Any]:
    ...
  1. See TagTypeDef
Usage example with kwargs
kwargs: TagResourceRequestRequestTypeDef = {  # (1)
    "ResourceARN": ...,
    "Tags": ...,
}

parent.tag_resource(**kwargs)
  1. See TagResourceRequestRequestTypeDef

untag_resource

Removes tags from the specified applied quota.

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

Method definition
await def untag_resource(
    self,
    *,
    ResourceARN: str,
    TagKeys: Sequence[str],
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: UntagResourceRequestRequestTypeDef = {  # (1)
    "ResourceARN": ...,
    "TagKeys": ...,
}

parent.untag_resource(**kwargs)
  1. See UntagResourceRequestRequestTypeDef

__aenter__

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

Method definition
await def __aenter__(
    self,
) -> ServiceQuotasClient:
    ...

__aexit__

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

Method definition
await def __aexit__(
    self,
    exc_type: Any,
    exc_val: Any,
    exc_tb: Any,
) -> Any:
    ...

get_paginator

Type annotations and code completion for session.client("service-quotas").get_paginator method with overloads.