/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.servicequotas; import org.w3c.dom.*; import java.net.*; import java.util.*; import javax.annotation.Generated; import org.apache.commons.logging.*; import com.amazonaws.*; import com.amazonaws.annotation.SdkInternalApi; import com.amazonaws.auth.*; import com.amazonaws.handlers.*; import com.amazonaws.http.*; import com.amazonaws.internal.*; import com.amazonaws.internal.auth.*; import com.amazonaws.metrics.*; import com.amazonaws.regions.*; import com.amazonaws.transform.*; import com.amazonaws.util.*; import com.amazonaws.protocol.json.*; import com.amazonaws.util.AWSRequestMetrics.Field; import com.amazonaws.annotation.ThreadSafe; import com.amazonaws.client.AwsSyncClientParams; import com.amazonaws.client.builder.AdvancedConfig; import com.amazonaws.services.servicequotas.AWSServiceQuotasClientBuilder; import com.amazonaws.AmazonServiceException; import com.amazonaws.services.servicequotas.model.*; import com.amazonaws.services.servicequotas.model.transform.*; /** * Client for accessing Service Quotas. All service calls made using this client are blocking, and will not return until * the service call completes. *
*
* With Service Quotas, you can view and manage your quotas easily as your AWS workloads grow. Quotas, also referred to * as limits, are the maximum number of resources that you can create in your AWS account. For more information, see the * Service Quotas User Guide. *
*/ @ThreadSafe @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AWSServiceQuotasClient extends AmazonWebServiceClient implements AWSServiceQuotas { /** Provider for AWS credentials. */ private final AWSCredentialsProvider awsCredentialsProvider; private static final Log log = LogFactory.getLog(AWSServiceQuotas.class); /** Default signing name for the service. */ private static final String DEFAULT_SIGNING_NAME = "servicequotas"; /** Client configuration factory providing ClientConfigurations tailored to this client */ protected static final ClientConfigurationFactory configFactory = new ClientConfigurationFactory(); private final AdvancedConfig advancedConfig; private static final com.amazonaws.protocol.json.SdkJsonProtocolFactory protocolFactory = new com.amazonaws.protocol.json.SdkJsonProtocolFactory( new JsonClientMetadata() .withProtocolVersion("1.1") .withSupportsCbor(false) .withSupportsIon(false) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("AccessDeniedException").withExceptionUnmarshaller( com.amazonaws.services.servicequotas.model.transform.AccessDeniedExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("TooManyTagsException").withExceptionUnmarshaller( com.amazonaws.services.servicequotas.model.transform.TooManyTagsExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("InvalidResourceStateException").withExceptionUnmarshaller( com.amazonaws.services.servicequotas.model.transform.InvalidResourceStateExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("IllegalArgumentException").withExceptionUnmarshaller( com.amazonaws.services.servicequotas.model.transform.IllegalArgumentExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ServiceException").withExceptionUnmarshaller( com.amazonaws.services.servicequotas.model.transform.ServiceExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("OrganizationNotInAllFeaturesModeException").withExceptionUnmarshaller( com.amazonaws.services.servicequotas.model.transform.OrganizationNotInAllFeaturesModeExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("DependencyAccessDeniedException").withExceptionUnmarshaller( com.amazonaws.services.servicequotas.model.transform.DependencyAccessDeniedExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("NoSuchResourceException").withExceptionUnmarshaller( com.amazonaws.services.servicequotas.model.transform.NoSuchResourceExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("AWSServiceAccessNotEnabledException").withExceptionUnmarshaller( com.amazonaws.services.servicequotas.model.transform.AWSServiceAccessNotEnabledExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("QuotaExceededException").withExceptionUnmarshaller( com.amazonaws.services.servicequotas.model.transform.QuotaExceededExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ResourceAlreadyExistsException").withExceptionUnmarshaller( com.amazonaws.services.servicequotas.model.transform.ResourceAlreadyExistsExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("NoAvailableOrganizationException").withExceptionUnmarshaller( com.amazonaws.services.servicequotas.model.transform.NoAvailableOrganizationExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("TemplatesNotAvailableInRegionException").withExceptionUnmarshaller( com.amazonaws.services.servicequotas.model.transform.TemplatesNotAvailableInRegionExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("InvalidPaginationTokenException").withExceptionUnmarshaller( com.amazonaws.services.servicequotas.model.transform.InvalidPaginationTokenExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("TooManyRequestsException").withExceptionUnmarshaller( com.amazonaws.services.servicequotas.model.transform.TooManyRequestsExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("TagPolicyViolationException").withExceptionUnmarshaller( com.amazonaws.services.servicequotas.model.transform.TagPolicyViolationExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ServiceQuotaTemplateNotInUseException").withExceptionUnmarshaller( com.amazonaws.services.servicequotas.model.transform.ServiceQuotaTemplateNotInUseExceptionUnmarshaller.getInstance())) .withBaseServiceExceptionClass(com.amazonaws.services.servicequotas.model.AWSServiceQuotasException.class)); public static AWSServiceQuotasClientBuilder builder() { return AWSServiceQuotasClientBuilder.standard(); } /** * Constructs a new client to invoke service methods on Service Quotas using the specified parameters. * ** All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param clientParams * Object providing client parameters. */ AWSServiceQuotasClient(AwsSyncClientParams clientParams) { this(clientParams, false); } /** * Constructs a new client to invoke service methods on Service Quotas using the specified parameters. * *
* All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param clientParams * Object providing client parameters. */ AWSServiceQuotasClient(AwsSyncClientParams clientParams, boolean endpointDiscoveryEnabled) { super(clientParams); this.awsCredentialsProvider = clientParams.getCredentialsProvider(); this.advancedConfig = clientParams.getAdvancedConfig(); init(); } private void init() { setServiceNameIntern(DEFAULT_SIGNING_NAME); setEndpointPrefix(ENDPOINT_PREFIX); // calling this.setEndPoint(...) will also modify the signer accordingly setEndpoint("servicequotas.us-east-1.amazonaws.com"); HandlerChainFactory chainFactory = new HandlerChainFactory(); requestHandler2s.addAll(chainFactory.newRequestHandlerChain("/com/amazonaws/services/servicequotas/request.handlers")); requestHandler2s.addAll(chainFactory.newRequestHandler2Chain("/com/amazonaws/services/servicequotas/request.handler2s")); requestHandler2s.addAll(chainFactory.getGlobalHandlers()); } /** *
* Associates your quota request template with your organization. When a new account is created in your * organization, the quota increase requests in the template are automatically applied to the account. You can add a * quota increase request for any adjustable quota to your template. *
* * @param associateServiceQuotaTemplateRequest * @return Result of the AssociateServiceQuotaTemplate operation returned by the service. * @throws DependencyAccessDeniedException * You can't perform this action because a dependency does not have access. * @throws AccessDeniedException * You do not have sufficient permission to perform this action. * @throws ServiceException * Something went wrong. * @throws TooManyRequestsException * Due to throttling, the request was denied. Slow down the rate of request calls, or request an increase * for this quota. * @throws AWSServiceAccessNotEnabledException * The action you attempted is not allowed unless Service Access with Service Quotas is enabled in your * organization. * @throws OrganizationNotInAllFeaturesModeException * The organization that your account belongs to is not in All Features mode. * @throws TemplatesNotAvailableInRegionException * The Service Quotas template is not available in this AWS Region. * @throws NoAvailableOrganizationException * The account making this call is not a member of an organization. * @sample AWSServiceQuotas.AssociateServiceQuotaTemplate * @see AWS API Documentation */ @Override public AssociateServiceQuotaTemplateResult associateServiceQuotaTemplate(AssociateServiceQuotaTemplateRequest request) { request = beforeClientExecution(request); return executeAssociateServiceQuotaTemplate(request); } @SdkInternalApi final AssociateServiceQuotaTemplateResult executeAssociateServiceQuotaTemplate(AssociateServiceQuotaTemplateRequest associateServiceQuotaTemplateRequest) { ExecutionContext executionContext = createExecutionContext(associateServiceQuotaTemplateRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Deletes the quota increase request for the specified quota from your quota request template. *
* * @param deleteServiceQuotaIncreaseRequestFromTemplateRequest * @return Result of the DeleteServiceQuotaIncreaseRequestFromTemplate operation returned by the service. * @throws AccessDeniedException * You do not have sufficient permission to perform this action. * @throws ServiceException * Something went wrong. * @throws DependencyAccessDeniedException * You can't perform this action because a dependency does not have access. * @throws TooManyRequestsException * Due to throttling, the request was denied. Slow down the rate of request calls, or request an increase * for this quota. * @throws NoSuchResourceException * The specified resource does not exist. * @throws IllegalArgumentException * Invalid input was provided. * @throws AWSServiceAccessNotEnabledException * The action you attempted is not allowed unless Service Access with Service Quotas is enabled in your * organization. * @throws TemplatesNotAvailableInRegionException * The Service Quotas template is not available in this AWS Region. * @throws NoAvailableOrganizationException * The account making this call is not a member of an organization. * @sample AWSServiceQuotas.DeleteServiceQuotaIncreaseRequestFromTemplate * @see AWS API Documentation */ @Override public DeleteServiceQuotaIncreaseRequestFromTemplateResult deleteServiceQuotaIncreaseRequestFromTemplate( DeleteServiceQuotaIncreaseRequestFromTemplateRequest request) { request = beforeClientExecution(request); return executeDeleteServiceQuotaIncreaseRequestFromTemplate(request); } @SdkInternalApi final DeleteServiceQuotaIncreaseRequestFromTemplateResult executeDeleteServiceQuotaIncreaseRequestFromTemplate( DeleteServiceQuotaIncreaseRequestFromTemplateRequest deleteServiceQuotaIncreaseRequestFromTemplateRequest) { ExecutionContext executionContext = createExecutionContext(deleteServiceQuotaIncreaseRequestFromTemplateRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Disables your quota request template. After a template is disabled, the quota increase requests in the template * are not applied to new accounts in your organization. Disabling a quota request template does not apply its quota * increase requests. *
* * @param disassociateServiceQuotaTemplateRequest * @return Result of the DisassociateServiceQuotaTemplate operation returned by the service. * @throws DependencyAccessDeniedException * You can't perform this action because a dependency does not have access. * @throws ServiceQuotaTemplateNotInUseException * The quota request template is not associated with your organization. * @throws AccessDeniedException * You do not have sufficient permission to perform this action. * @throws ServiceException * Something went wrong. * @throws TooManyRequestsException * Due to throttling, the request was denied. Slow down the rate of request calls, or request an increase * for this quota. * @throws AWSServiceAccessNotEnabledException * The action you attempted is not allowed unless Service Access with Service Quotas is enabled in your * organization. * @throws TemplatesNotAvailableInRegionException * The Service Quotas template is not available in this AWS Region. * @throws NoAvailableOrganizationException * The account making this call is not a member of an organization. * @sample AWSServiceQuotas.DisassociateServiceQuotaTemplate * @see AWS API Documentation */ @Override public DisassociateServiceQuotaTemplateResult disassociateServiceQuotaTemplate(DisassociateServiceQuotaTemplateRequest request) { request = beforeClientExecution(request); return executeDisassociateServiceQuotaTemplate(request); } @SdkInternalApi final DisassociateServiceQuotaTemplateResult executeDisassociateServiceQuotaTemplate( DisassociateServiceQuotaTemplateRequest disassociateServiceQuotaTemplateRequest) { ExecutionContext executionContext = createExecutionContext(disassociateServiceQuotaTemplateRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Retrieves the default value for the specified quota. The default value does not reflect any quota increases. *
* * @param getAWSDefaultServiceQuotaRequest * @return Result of the GetAWSDefaultServiceQuota operation returned by the service. * @throws AccessDeniedException * You do not have sufficient permission to perform this action. * @throws NoSuchResourceException * The specified resource does not exist. * @throws IllegalArgumentException * Invalid input was provided. * @throws ServiceException * Something went wrong. * @throws TooManyRequestsException * Due to throttling, the request was denied. Slow down the rate of request calls, or request an increase * for this quota. * @sample AWSServiceQuotas.GetAWSDefaultServiceQuota * @see AWS API Documentation */ @Override public GetAWSDefaultServiceQuotaResult getAWSDefaultServiceQuota(GetAWSDefaultServiceQuotaRequest request) { request = beforeClientExecution(request); return executeGetAWSDefaultServiceQuota(request); } @SdkInternalApi final GetAWSDefaultServiceQuotaResult executeGetAWSDefaultServiceQuota(GetAWSDefaultServiceQuotaRequest getAWSDefaultServiceQuotaRequest) { ExecutionContext executionContext = createExecutionContext(getAWSDefaultServiceQuotaRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Retrieves the status of the association for the quota request template. *
* * @param getAssociationForServiceQuotaTemplateRequest * @return Result of the GetAssociationForServiceQuotaTemplate operation returned by the service. * @throws DependencyAccessDeniedException * You can't perform this action because a dependency does not have access. * @throws ServiceQuotaTemplateNotInUseException * The quota request template is not associated with your organization. * @throws AccessDeniedException * You do not have sufficient permission to perform this action. * @throws ServiceException * Something went wrong. * @throws TooManyRequestsException * Due to throttling, the request was denied. Slow down the rate of request calls, or request an increase * for this quota. * @throws AWSServiceAccessNotEnabledException * The action you attempted is not allowed unless Service Access with Service Quotas is enabled in your * organization. * @throws TemplatesNotAvailableInRegionException * The Service Quotas template is not available in this AWS Region. * @throws NoAvailableOrganizationException * The account making this call is not a member of an organization. * @sample AWSServiceQuotas.GetAssociationForServiceQuotaTemplate * @see AWS API Documentation */ @Override public GetAssociationForServiceQuotaTemplateResult getAssociationForServiceQuotaTemplate(GetAssociationForServiceQuotaTemplateRequest request) { request = beforeClientExecution(request); return executeGetAssociationForServiceQuotaTemplate(request); } @SdkInternalApi final GetAssociationForServiceQuotaTemplateResult executeGetAssociationForServiceQuotaTemplate( GetAssociationForServiceQuotaTemplateRequest getAssociationForServiceQuotaTemplateRequest) { ExecutionContext executionContext = createExecutionContext(getAssociationForServiceQuotaTemplateRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Retrieves information about the specified quota increase request. *
* * @param getRequestedServiceQuotaChangeRequest * @return Result of the GetRequestedServiceQuotaChange operation returned by the service. * @throws AccessDeniedException * You do not have sufficient permission to perform this action. * @throws NoSuchResourceException * The specified resource does not exist. * @throws IllegalArgumentException * Invalid input was provided. * @throws ServiceException * Something went wrong. * @throws TooManyRequestsException * Due to throttling, the request was denied. Slow down the rate of request calls, or request an increase * for this quota. * @sample AWSServiceQuotas.GetRequestedServiceQuotaChange * @see AWS API Documentation */ @Override public GetRequestedServiceQuotaChangeResult getRequestedServiceQuotaChange(GetRequestedServiceQuotaChangeRequest request) { request = beforeClientExecution(request); return executeGetRequestedServiceQuotaChange(request); } @SdkInternalApi final GetRequestedServiceQuotaChangeResult executeGetRequestedServiceQuotaChange(GetRequestedServiceQuotaChangeRequest getRequestedServiceQuotaChangeRequest) { ExecutionContext executionContext = createExecutionContext(getRequestedServiceQuotaChangeRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Retrieves the applied quota value for the specified quota. For some quotas, only the default values are * available. If the applied quota value is not available for a quota, the quota is not retrieved. *
* * @param getServiceQuotaRequest * @return Result of the GetServiceQuota operation returned by the service. * @throws AccessDeniedException * You do not have sufficient permission to perform this action. * @throws NoSuchResourceException * The specified resource does not exist. * @throws IllegalArgumentException * Invalid input was provided. * @throws ServiceException * Something went wrong. * @throws TooManyRequestsException * Due to throttling, the request was denied. Slow down the rate of request calls, or request an increase * for this quota. * @sample AWSServiceQuotas.GetServiceQuota * @see AWS * API Documentation */ @Override public GetServiceQuotaResult getServiceQuota(GetServiceQuotaRequest request) { request = beforeClientExecution(request); return executeGetServiceQuota(request); } @SdkInternalApi final GetServiceQuotaResult executeGetServiceQuota(GetServiceQuotaRequest getServiceQuotaRequest) { ExecutionContext executionContext = createExecutionContext(getServiceQuotaRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Retrieves information about the specified quota increase request in your quota request template. *
* * @param getServiceQuotaIncreaseRequestFromTemplateRequest * @return Result of the GetServiceQuotaIncreaseRequestFromTemplate operation returned by the service. * @throws AccessDeniedException * You do not have sufficient permission to perform this action. * @throws DependencyAccessDeniedException * You can't perform this action because a dependency does not have access. * @throws ServiceException * Something went wrong. * @throws TooManyRequestsException * Due to throttling, the request was denied. Slow down the rate of request calls, or request an increase * for this quota. * @throws NoSuchResourceException * The specified resource does not exist. * @throws IllegalArgumentException * Invalid input was provided. * @throws AWSServiceAccessNotEnabledException * The action you attempted is not allowed unless Service Access with Service Quotas is enabled in your * organization. * @throws TemplatesNotAvailableInRegionException * The Service Quotas template is not available in this AWS Region. * @throws NoAvailableOrganizationException * The account making this call is not a member of an organization. * @sample AWSServiceQuotas.GetServiceQuotaIncreaseRequestFromTemplate * @see AWS API Documentation */ @Override public GetServiceQuotaIncreaseRequestFromTemplateResult getServiceQuotaIncreaseRequestFromTemplate(GetServiceQuotaIncreaseRequestFromTemplateRequest request) { request = beforeClientExecution(request); return executeGetServiceQuotaIncreaseRequestFromTemplate(request); } @SdkInternalApi final GetServiceQuotaIncreaseRequestFromTemplateResult executeGetServiceQuotaIncreaseRequestFromTemplate( GetServiceQuotaIncreaseRequestFromTemplateRequest getServiceQuotaIncreaseRequestFromTemplateRequest) { ExecutionContext executionContext = createExecutionContext(getServiceQuotaIncreaseRequestFromTemplateRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Lists the default values for the quotas for the specified AWS service. A default value does not reflect any quota * increases. *
* * @param listAWSDefaultServiceQuotasRequest * @return Result of the ListAWSDefaultServiceQuotas operation returned by the service. * @throws AccessDeniedException * You do not have sufficient permission to perform this action. * @throws NoSuchResourceException * The specified resource does not exist. * @throws IllegalArgumentException * Invalid input was provided. * @throws InvalidPaginationTokenException * Invalid input was provided. * @throws ServiceException * Something went wrong. * @throws TooManyRequestsException * Due to throttling, the request was denied. Slow down the rate of request calls, or request an increase * for this quota. * @sample AWSServiceQuotas.ListAWSDefaultServiceQuotas * @see AWS API Documentation */ @Override public ListAWSDefaultServiceQuotasResult listAWSDefaultServiceQuotas(ListAWSDefaultServiceQuotasRequest request) { request = beforeClientExecution(request); return executeListAWSDefaultServiceQuotas(request); } @SdkInternalApi final ListAWSDefaultServiceQuotasResult executeListAWSDefaultServiceQuotas(ListAWSDefaultServiceQuotasRequest listAWSDefaultServiceQuotasRequest) { ExecutionContext executionContext = createExecutionContext(listAWSDefaultServiceQuotasRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Retrieves the quota increase requests for the specified service. *
* * @param listRequestedServiceQuotaChangeHistoryRequest * @return Result of the ListRequestedServiceQuotaChangeHistory operation returned by the service. * @throws AccessDeniedException * You do not have sufficient permission to perform this action. * @throws NoSuchResourceException * The specified resource does not exist. * @throws IllegalArgumentException * Invalid input was provided. * @throws InvalidPaginationTokenException * Invalid input was provided. * @throws ServiceException * Something went wrong. * @throws TooManyRequestsException * Due to throttling, the request was denied. Slow down the rate of request calls, or request an increase * for this quota. * @sample AWSServiceQuotas.ListRequestedServiceQuotaChangeHistory * @see AWS API Documentation */ @Override public ListRequestedServiceQuotaChangeHistoryResult listRequestedServiceQuotaChangeHistory(ListRequestedServiceQuotaChangeHistoryRequest request) { request = beforeClientExecution(request); return executeListRequestedServiceQuotaChangeHistory(request); } @SdkInternalApi final ListRequestedServiceQuotaChangeHistoryResult executeListRequestedServiceQuotaChangeHistory( ListRequestedServiceQuotaChangeHistoryRequest listRequestedServiceQuotaChangeHistoryRequest) { ExecutionContext executionContext = createExecutionContext(listRequestedServiceQuotaChangeHistoryRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Retrieves the quota increase requests for the specified quota. *
* * @param listRequestedServiceQuotaChangeHistoryByQuotaRequest * @return Result of the ListRequestedServiceQuotaChangeHistoryByQuota operation returned by the service. * @throws AccessDeniedException * You do not have sufficient permission to perform this action. * @throws NoSuchResourceException * The specified resource does not exist. * @throws IllegalArgumentException * Invalid input was provided. * @throws InvalidPaginationTokenException * Invalid input was provided. * @throws ServiceException * Something went wrong. * @throws TooManyRequestsException * Due to throttling, the request was denied. Slow down the rate of request calls, or request an increase * for this quota. * @sample AWSServiceQuotas.ListRequestedServiceQuotaChangeHistoryByQuota * @see AWS API Documentation */ @Override public ListRequestedServiceQuotaChangeHistoryByQuotaResult listRequestedServiceQuotaChangeHistoryByQuota( ListRequestedServiceQuotaChangeHistoryByQuotaRequest request) { request = beforeClientExecution(request); return executeListRequestedServiceQuotaChangeHistoryByQuota(request); } @SdkInternalApi final ListRequestedServiceQuotaChangeHistoryByQuotaResult executeListRequestedServiceQuotaChangeHistoryByQuota( ListRequestedServiceQuotaChangeHistoryByQuotaRequest listRequestedServiceQuotaChangeHistoryByQuotaRequest) { ExecutionContext executionContext = createExecutionContext(listRequestedServiceQuotaChangeHistoryByQuotaRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Lists the quota increase requests in the specified quota request template. *
* * @param listServiceQuotaIncreaseRequestsInTemplateRequest * @return Result of the ListServiceQuotaIncreaseRequestsInTemplate operation returned by the service. * @throws AccessDeniedException * You do not have sufficient permission to perform this action. * @throws DependencyAccessDeniedException * You can't perform this action because a dependency does not have access. * @throws ServiceException * Something went wrong. * @throws TooManyRequestsException * Due to throttling, the request was denied. Slow down the rate of request calls, or request an increase * for this quota. * @throws IllegalArgumentException * Invalid input was provided. * @throws AWSServiceAccessNotEnabledException * The action you attempted is not allowed unless Service Access with Service Quotas is enabled in your * organization. * @throws TemplatesNotAvailableInRegionException * The Service Quotas template is not available in this AWS Region. * @throws NoAvailableOrganizationException * The account making this call is not a member of an organization. * @sample AWSServiceQuotas.ListServiceQuotaIncreaseRequestsInTemplate * @see AWS API Documentation */ @Override public ListServiceQuotaIncreaseRequestsInTemplateResult listServiceQuotaIncreaseRequestsInTemplate(ListServiceQuotaIncreaseRequestsInTemplateRequest request) { request = beforeClientExecution(request); return executeListServiceQuotaIncreaseRequestsInTemplate(request); } @SdkInternalApi final ListServiceQuotaIncreaseRequestsInTemplateResult executeListServiceQuotaIncreaseRequestsInTemplate( ListServiceQuotaIncreaseRequestsInTemplateRequest listServiceQuotaIncreaseRequestsInTemplateRequest) { ExecutionContext executionContext = createExecutionContext(listServiceQuotaIncreaseRequestsInTemplateRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Lists the applied quota values for the specified AWS service. For some quotas, only the default values are * available. If the applied quota value is not available for a quota, the quota is not retrieved. *
* * @param listServiceQuotasRequest * @return Result of the ListServiceQuotas operation returned by the service. * @throws AccessDeniedException * You do not have sufficient permission to perform this action. * @throws NoSuchResourceException * The specified resource does not exist. * @throws IllegalArgumentException * Invalid input was provided. * @throws InvalidPaginationTokenException * Invalid input was provided. * @throws ServiceException * Something went wrong. * @throws TooManyRequestsException * Due to throttling, the request was denied. Slow down the rate of request calls, or request an increase * for this quota. * @sample AWSServiceQuotas.ListServiceQuotas * @see AWS API Documentation */ @Override public ListServiceQuotasResult listServiceQuotas(ListServiceQuotasRequest request) { request = beforeClientExecution(request); return executeListServiceQuotas(request); } @SdkInternalApi final ListServiceQuotasResult executeListServiceQuotas(ListServiceQuotasRequest listServiceQuotasRequest) { ExecutionContext executionContext = createExecutionContext(listServiceQuotasRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Lists the names and codes for the services integrated with Service Quotas. *
* * @param listServicesRequest * @return Result of the ListServices operation returned by the service. * @throws AccessDeniedException * You do not have sufficient permission to perform this action. * @throws IllegalArgumentException * Invalid input was provided. * @throws InvalidPaginationTokenException * Invalid input was provided. * @throws ServiceException * Something went wrong. * @throws TooManyRequestsException * Due to throttling, the request was denied. Slow down the rate of request calls, or request an increase * for this quota. * @sample AWSServiceQuotas.ListServices * @see AWS * API Documentation */ @Override public ListServicesResult listServices(ListServicesRequest request) { request = beforeClientExecution(request); return executeListServices(request); } @SdkInternalApi final ListServicesResult executeListServices(ListServicesRequest listServicesRequest) { ExecutionContext executionContext = createExecutionContext(listServicesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Returns a list of the tags assigned to the specified applied quota. *
* * @param listTagsForResourceRequest * @return Result of the ListTagsForResource operation returned by the service. * @throws TooManyRequestsException * Due to throttling, the request was denied. Slow down the rate of request calls, or request an increase * for this quota. * @throws NoSuchResourceException * The specified resource does not exist. * @throws IllegalArgumentException * Invalid input was provided. * @throws AccessDeniedException * You do not have sufficient permission to perform this action. * @throws ServiceException * Something went wrong. * @sample AWSServiceQuotas.ListTagsForResource * @see AWS API Documentation */ @Override public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request) { request = beforeClientExecution(request); return executeListTagsForResource(request); } @SdkInternalApi final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) { ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Adds a quota increase request to your quota request template. *
* * @param putServiceQuotaIncreaseRequestIntoTemplateRequest * @return Result of the PutServiceQuotaIncreaseRequestIntoTemplate operation returned by the service. * @throws AccessDeniedException * You do not have sufficient permission to perform this action. * @throws DependencyAccessDeniedException * You can't perform this action because a dependency does not have access. * @throws ServiceException * Something went wrong. * @throws TooManyRequestsException * Due to throttling, the request was denied. Slow down the rate of request calls, or request an increase * for this quota. * @throws IllegalArgumentException * Invalid input was provided. * @throws QuotaExceededException * 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. * @throws NoSuchResourceException * The specified resource does not exist. * @throws AWSServiceAccessNotEnabledException * The action you attempted is not allowed unless Service Access with Service Quotas is enabled in your * organization. * @throws TemplatesNotAvailableInRegionException * The Service Quotas template is not available in this AWS Region. * @throws NoAvailableOrganizationException * The account making this call is not a member of an organization. * @sample AWSServiceQuotas.PutServiceQuotaIncreaseRequestIntoTemplate * @see AWS API Documentation */ @Override public PutServiceQuotaIncreaseRequestIntoTemplateResult putServiceQuotaIncreaseRequestIntoTemplate(PutServiceQuotaIncreaseRequestIntoTemplateRequest request) { request = beforeClientExecution(request); return executePutServiceQuotaIncreaseRequestIntoTemplate(request); } @SdkInternalApi final PutServiceQuotaIncreaseRequestIntoTemplateResult executePutServiceQuotaIncreaseRequestIntoTemplate( PutServiceQuotaIncreaseRequestIntoTemplateRequest putServiceQuotaIncreaseRequestIntoTemplateRequest) { ExecutionContext executionContext = createExecutionContext(putServiceQuotaIncreaseRequestIntoTemplateRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Submits a quota increase request for the specified quota. *
* * @param requestServiceQuotaIncreaseRequest * @return Result of the RequestServiceQuotaIncrease operation returned by the service. * @throws DependencyAccessDeniedException * You can't perform this action because a dependency does not have access. * @throws QuotaExceededException * 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. * @throws ResourceAlreadyExistsException * The specified resource already exists. * @throws AccessDeniedException * You do not have sufficient permission to perform this action. * @throws NoSuchResourceException * The specified resource does not exist. * @throws IllegalArgumentException * Invalid input was provided. * @throws InvalidResourceStateException * The resource is in an invalid state. * @throws ServiceException * Something went wrong. * @throws TooManyRequestsException * Due to throttling, the request was denied. Slow down the rate of request calls, or request an increase * for this quota. * @sample AWSServiceQuotas.RequestServiceQuotaIncrease * @see AWS API Documentation */ @Override public RequestServiceQuotaIncreaseResult requestServiceQuotaIncrease(RequestServiceQuotaIncreaseRequest request) { request = beforeClientExecution(request); return executeRequestServiceQuotaIncrease(request); } @SdkInternalApi final RequestServiceQuotaIncreaseResult executeRequestServiceQuotaIncrease(RequestServiceQuotaIncreaseRequest requestServiceQuotaIncreaseRequest) { ExecutionContext executionContext = createExecutionContext(requestServiceQuotaIncreaseRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Adds tags to the specified applied quota. You can include one or more tags to add to the quota. *
* * @param tagResourceRequest * @return Result of the TagResource operation returned by the service. * @throws TooManyRequestsException * Due to throttling, the request was denied. Slow down the rate of request calls, or request an increase * for this quota. * @throws NoSuchResourceException * The specified resource does not exist. * @throws TooManyTagsException * You've exceeded the number of tags allowed for a resource. For more information, see Tag * restrictions in the Service Quotas User Guide. * @throws TagPolicyViolationException * The specified tag is a reserved word and cannot be used. * @throws IllegalArgumentException * Invalid input was provided. * @throws AccessDeniedException * You do not have sufficient permission to perform this action. * @throws ServiceException * Something went wrong. * @sample AWSServiceQuotas.TagResource * @see AWS API * Documentation */ @Override public TagResourceResult tagResource(TagResourceRequest request) { request = beforeClientExecution(request); return executeTagResource(request); } @SdkInternalApi final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) { ExecutionContext executionContext = createExecutionContext(tagResourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Removes tags from the specified applied quota. You can specify one or more tags to remove. *
* * @param untagResourceRequest * @return Result of the UntagResource operation returned by the service. * @throws TooManyRequestsException * Due to throttling, the request was denied. Slow down the rate of request calls, or request an increase * for this quota. * @throws NoSuchResourceException * The specified resource does not exist. * @throws IllegalArgumentException * Invalid input was provided. * @throws AccessDeniedException * You do not have sufficient permission to perform this action. * @throws ServiceException * Something went wrong. * @sample AWSServiceQuotas.UntagResource * @see AWS * API Documentation */ @Override public UntagResourceResult untagResource(UntagResourceRequest request) { request = beforeClientExecution(request); return executeUntagResource(request); } @SdkInternalApi final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) { ExecutionContext executionContext = createExecutionContext(untagResourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request
* Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic
* information for an executed request, you should use this method to retrieve it as soon as possible after
* executing the request.
*
* @param request
* The originally executed request
*
* @return The response metadata for the specified request, or null if none is available.
*/
public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {
return client.getResponseMetadataForRequest(request);
}
/**
* Normal invoke with authentication. Credentials are required and may be overriden at the request level.
**/
private