ServiceQuotasClient#
Index > ServiceQuotas > ServiceQuotasClient
Auto-generated documentation for ServiceQuotas type annotations stubs module types-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 types_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 types_boto3_service_quotas.client import Exceptions
def handle_error(exc: Exceptions.AWSServiceAccessNotEnabledException) -> None:
...
Methods#
can_paginate#
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:
...
generate_presigned_url#
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:
...
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]:
...
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)
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]:
...
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)
...
# get_aws_default_service_quota method usage example with argument unpacking
kwargs: GetAWSDefaultServiceQuotaRequestRequestTypeDef = { # (1)
"ServiceCode": ...,
"QuotaCode": ...,
}
parent.get_aws_default_service_quota(**kwargs)
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)
...
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)
...
# get_requested_service_quota_change method usage example with argument unpacking
kwargs: GetRequestedServiceQuotaChangeRequestRequestTypeDef = { # (1)
"RequestId": ...,
}
parent.get_requested_service_quota_change(**kwargs)
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)
...
# get_service_quota method usage example with argument unpacking
kwargs: GetServiceQuotaRequestRequestTypeDef = { # (1)
"ServiceCode": ...,
"QuotaCode": ...,
}
parent.get_service_quota(**kwargs)
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)
...
# 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)
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)
...
# list_aws_default_service_quotas method usage example with argument unpacking
kwargs: ListAWSDefaultServiceQuotasRequestRequestTypeDef = { # (1)
"ServiceCode": ...,
}
parent.list_aws_default_service_quotas(**kwargs)
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)
...
- See RequestStatusType
- See AppliedLevelEnumType
- 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)
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.
boto3 documentation
# list_requested_service_quota_change_history_by_quota method definition
def list_requested_service_quota_change_history_by_quota(
self,
*,
ServiceCode: str,
QuotaCode: str,
Status: RequestStatusType = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
QuotaRequestedAtLevel: AppliedLevelEnumType = ..., # (2)
) -> ListRequestedServiceQuotaChangeHistoryByQuotaResponseTypeDef: # (3)
...
- See RequestStatusType
- See AppliedLevelEnumType
- See ListRequestedServiceQuotaChangeHistoryByQuotaResponseTypeDef
# list_requested_service_quota_change_history_by_quota method usage example with argument unpacking
kwargs: ListRequestedServiceQuotaChangeHistoryByQuotaRequestRequestTypeDef = { # (1)
"ServiceCode": ...,
"QuotaCode": ...,
}
parent.list_requested_service_quota_change_history_by_quota(**kwargs)
list_service_quota_increase_requests_in_template#
Lists the quota increase requests in the specified quota request template.
Type annotations and code completion for boto3.client("service-quotas").list_service_quota_increase_requests_in_template
method.
boto3 documentation
# list_service_quota_increase_requests_in_template method definition
def list_service_quota_increase_requests_in_template(
self,
*,
ServiceCode: str = ...,
AwsRegion: str = ...,
NextToken: str = ...,
MaxResults: int = ...,
) -> ListServiceQuotaIncreaseRequestsInTemplateResponseTypeDef: # (1)
...
# list_service_quota_increase_requests_in_template method usage example with argument unpacking
kwargs: ListServiceQuotaIncreaseRequestsInTemplateRequestRequestTypeDef = { # (1)
"ServiceCode": ...,
}
parent.list_service_quota_increase_requests_in_template(**kwargs)
list_service_quotas#
Lists the applied quota values for the specified Amazon Web Service.
Type annotations and code completion for boto3.client("service-quotas").list_service_quotas
method.
boto3 documentation
# list_service_quotas method definition
def list_service_quotas(
self,
*,
ServiceCode: str,
NextToken: str = ...,
MaxResults: int = ...,
QuotaCode: str = ...,
QuotaAppliedAtLevel: AppliedLevelEnumType = ..., # (1)
) -> ListServiceQuotasResponseTypeDef: # (2)
...
# list_service_quotas method usage example with argument unpacking
kwargs: ListServiceQuotasRequestRequestTypeDef = { # (1)
"ServiceCode": ...,
}
parent.list_service_quotas(**kwargs)
list_services#
Lists the names and codes for the Amazon Web Services integrated with Service Quotas.
Type annotations and code completion for boto3.client("service-quotas").list_services
method.
boto3 documentation
# list_services method definition
def list_services(
self,
*,
NextToken: str = ...,
MaxResults: int = ...,
) -> ListServicesResponseTypeDef: # (1)
...
# list_services method usage example with argument unpacking
kwargs: ListServicesRequestRequestTypeDef = { # (1)
"NextToken": ...,
}
parent.list_services(**kwargs)
list_tags_for_resource#
Returns a list of the tags assigned to the specified applied quota.
Type annotations and code completion for boto3.client("service-quotas").list_tags_for_resource
method.
boto3 documentation
# list_tags_for_resource method definition
def list_tags_for_resource(
self,
*,
ResourceARN: str,
) -> ListTagsForResourceResponseTypeDef: # (1)
...
# list_tags_for_resource method usage example with argument unpacking
kwargs: ListTagsForResourceRequestRequestTypeDef = { # (1)
"ResourceARN": ...,
}
parent.list_tags_for_resource(**kwargs)
put_service_quota_increase_request_into_template#
Adds a quota increase request to your quota request template.
Type annotations and code completion for boto3.client("service-quotas").put_service_quota_increase_request_into_template
method.
boto3 documentation
# put_service_quota_increase_request_into_template method definition
def put_service_quota_increase_request_into_template(
self,
*,
QuotaCode: str,
ServiceCode: str,
AwsRegion: str,
DesiredValue: float,
) -> PutServiceQuotaIncreaseRequestIntoTemplateResponseTypeDef: # (1)
...
# put_service_quota_increase_request_into_template method usage example with argument unpacking
kwargs: PutServiceQuotaIncreaseRequestIntoTemplateRequestRequestTypeDef = { # (1)
"QuotaCode": ...,
"ServiceCode": ...,
"AwsRegion": ...,
"DesiredValue": ...,
}
parent.put_service_quota_increase_request_into_template(**kwargs)
request_service_quota_increase#
Submits a quota increase request for the specified quota.
Type annotations and code completion for boto3.client("service-quotas").request_service_quota_increase
method.
boto3 documentation
# request_service_quota_increase method definition
def request_service_quota_increase(
self,
*,
ServiceCode: str,
QuotaCode: str,
DesiredValue: float,
ContextId: str = ...,
) -> RequestServiceQuotaIncreaseResponseTypeDef: # (1)
...
# request_service_quota_increase method usage example with argument unpacking
kwargs: RequestServiceQuotaIncreaseRequestRequestTypeDef = { # (1)
"ServiceCode": ...,
"QuotaCode": ...,
"DesiredValue": ...,
}
parent.request_service_quota_increase(**kwargs)
tag_resource#
Adds tags to the specified applied quota.
Type annotations and code completion for boto3.client("service-quotas").tag_resource
method.
boto3 documentation
# tag_resource method definition
def tag_resource(
self,
*,
ResourceARN: str,
Tags: Sequence[TagTypeDef], # (1)
) -> dict[str, Any]:
...
- See TagTypeDef
# tag_resource method usage example with argument unpacking
kwargs: TagResourceRequestRequestTypeDef = { # (1)
"ResourceARN": ...,
"Tags": ...,
}
parent.tag_resource(**kwargs)
untag_resource#
Removes tags from the specified applied quota.
Type annotations and code completion for boto3.client("service-quotas").untag_resource
method.
boto3 documentation
# untag_resource method definition
def untag_resource(
self,
*,
ResourceARN: str,
TagKeys: Sequence[str],
) -> dict[str, Any]:
...
# untag_resource method usage example with argument unpacking
kwargs: UntagResourceRequestRequestTypeDef = { # (1)
"ResourceARN": ...,
"TagKeys": ...,
}
parent.untag_resource(**kwargs)
get_paginator#
Type annotations and code completion for boto3.client("service-quotas").get_paginator
method with overloads.
client.get_paginator("list_aws_default_service_quotas")
-> ListAWSDefaultServiceQuotasPaginatorclient.get_paginator("list_requested_service_quota_change_history_by_quota")
-> ListRequestedServiceQuotaChangeHistoryByQuotaPaginatorclient.get_paginator("list_requested_service_quota_change_history")
-> ListRequestedServiceQuotaChangeHistoryPaginatorclient.get_paginator("list_service_quota_increase_requests_in_template")
-> ListServiceQuotaIncreaseRequestsInTemplatePaginatorclient.get_paginator("list_service_quotas")
-> ListServiceQuotasPaginatorclient.get_paginator("list_services")
-> ListServicesPaginator