software.amazon.awssdk.services.apigateway.DefaultAPIGatewayClient Maven / Gradle / Ivy
Show all versions of api-gateway Show documentation
/*
* Copyright 2013-2018 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 software.amazon.awssdk.services.apigateway;
import javax.annotation.Generated;
import software.amazon.awssdk.annotations.SdkInternalApi;
import software.amazon.awssdk.core.client.ClientExecutionParams;
import software.amazon.awssdk.core.client.ClientHandler;
import software.amazon.awssdk.core.client.SdkClientHandler;
import software.amazon.awssdk.core.config.ClientConfiguration;
import software.amazon.awssdk.core.config.SyncClientConfiguration;
import software.amazon.awssdk.core.exception.SdkClientException;
import software.amazon.awssdk.core.exception.SdkServiceException;
import software.amazon.awssdk.core.http.HttpResponseHandler;
import software.amazon.awssdk.core.protocol.json.JsonClientMetadata;
import software.amazon.awssdk.core.protocol.json.JsonErrorResponseMetadata;
import software.amazon.awssdk.core.protocol.json.JsonErrorShapeMetadata;
import software.amazon.awssdk.core.protocol.json.JsonOperationMetadata;
import software.amazon.awssdk.core.protocol.json.SdkJsonProtocolFactory;
import software.amazon.awssdk.services.apigateway.model.APIGatewayException;
import software.amazon.awssdk.services.apigateway.model.BadRequestException;
import software.amazon.awssdk.services.apigateway.model.ConflictException;
import software.amazon.awssdk.services.apigateway.model.CreateApiKeyRequest;
import software.amazon.awssdk.services.apigateway.model.CreateApiKeyResponse;
import software.amazon.awssdk.services.apigateway.model.CreateAuthorizerRequest;
import software.amazon.awssdk.services.apigateway.model.CreateAuthorizerResponse;
import software.amazon.awssdk.services.apigateway.model.CreateBasePathMappingRequest;
import software.amazon.awssdk.services.apigateway.model.CreateBasePathMappingResponse;
import software.amazon.awssdk.services.apigateway.model.CreateDeploymentRequest;
import software.amazon.awssdk.services.apigateway.model.CreateDeploymentResponse;
import software.amazon.awssdk.services.apigateway.model.CreateDocumentationPartRequest;
import software.amazon.awssdk.services.apigateway.model.CreateDocumentationPartResponse;
import software.amazon.awssdk.services.apigateway.model.CreateDocumentationVersionRequest;
import software.amazon.awssdk.services.apigateway.model.CreateDocumentationVersionResponse;
import software.amazon.awssdk.services.apigateway.model.CreateDomainNameRequest;
import software.amazon.awssdk.services.apigateway.model.CreateDomainNameResponse;
import software.amazon.awssdk.services.apigateway.model.CreateModelRequest;
import software.amazon.awssdk.services.apigateway.model.CreateModelResponse;
import software.amazon.awssdk.services.apigateway.model.CreateRequestValidatorRequest;
import software.amazon.awssdk.services.apigateway.model.CreateRequestValidatorResponse;
import software.amazon.awssdk.services.apigateway.model.CreateResourceRequest;
import software.amazon.awssdk.services.apigateway.model.CreateResourceResponse;
import software.amazon.awssdk.services.apigateway.model.CreateRestApiRequest;
import software.amazon.awssdk.services.apigateway.model.CreateRestApiResponse;
import software.amazon.awssdk.services.apigateway.model.CreateStageRequest;
import software.amazon.awssdk.services.apigateway.model.CreateStageResponse;
import software.amazon.awssdk.services.apigateway.model.CreateUsagePlanKeyRequest;
import software.amazon.awssdk.services.apigateway.model.CreateUsagePlanKeyResponse;
import software.amazon.awssdk.services.apigateway.model.CreateUsagePlanRequest;
import software.amazon.awssdk.services.apigateway.model.CreateUsagePlanResponse;
import software.amazon.awssdk.services.apigateway.model.DeleteApiKeyRequest;
import software.amazon.awssdk.services.apigateway.model.DeleteApiKeyResponse;
import software.amazon.awssdk.services.apigateway.model.DeleteAuthorizerRequest;
import software.amazon.awssdk.services.apigateway.model.DeleteAuthorizerResponse;
import software.amazon.awssdk.services.apigateway.model.DeleteBasePathMappingRequest;
import software.amazon.awssdk.services.apigateway.model.DeleteBasePathMappingResponse;
import software.amazon.awssdk.services.apigateway.model.DeleteClientCertificateRequest;
import software.amazon.awssdk.services.apigateway.model.DeleteClientCertificateResponse;
import software.amazon.awssdk.services.apigateway.model.DeleteDeploymentRequest;
import software.amazon.awssdk.services.apigateway.model.DeleteDeploymentResponse;
import software.amazon.awssdk.services.apigateway.model.DeleteDocumentationPartRequest;
import software.amazon.awssdk.services.apigateway.model.DeleteDocumentationPartResponse;
import software.amazon.awssdk.services.apigateway.model.DeleteDocumentationVersionRequest;
import software.amazon.awssdk.services.apigateway.model.DeleteDocumentationVersionResponse;
import software.amazon.awssdk.services.apigateway.model.DeleteDomainNameRequest;
import software.amazon.awssdk.services.apigateway.model.DeleteDomainNameResponse;
import software.amazon.awssdk.services.apigateway.model.DeleteGatewayResponseRequest;
import software.amazon.awssdk.services.apigateway.model.DeleteGatewayResponseResponse;
import software.amazon.awssdk.services.apigateway.model.DeleteIntegrationRequest;
import software.amazon.awssdk.services.apigateway.model.DeleteIntegrationResponse;
import software.amazon.awssdk.services.apigateway.model.DeleteIntegrationResponseRequest;
import software.amazon.awssdk.services.apigateway.model.DeleteIntegrationResponseResponse;
import software.amazon.awssdk.services.apigateway.model.DeleteMethodRequest;
import software.amazon.awssdk.services.apigateway.model.DeleteMethodResponse;
import software.amazon.awssdk.services.apigateway.model.DeleteMethodResponseRequest;
import software.amazon.awssdk.services.apigateway.model.DeleteMethodResponseResponse;
import software.amazon.awssdk.services.apigateway.model.DeleteModelRequest;
import software.amazon.awssdk.services.apigateway.model.DeleteModelResponse;
import software.amazon.awssdk.services.apigateway.model.DeleteRequestValidatorRequest;
import software.amazon.awssdk.services.apigateway.model.DeleteRequestValidatorResponse;
import software.amazon.awssdk.services.apigateway.model.DeleteResourceRequest;
import software.amazon.awssdk.services.apigateway.model.DeleteResourceResponse;
import software.amazon.awssdk.services.apigateway.model.DeleteRestApiRequest;
import software.amazon.awssdk.services.apigateway.model.DeleteRestApiResponse;
import software.amazon.awssdk.services.apigateway.model.DeleteStageRequest;
import software.amazon.awssdk.services.apigateway.model.DeleteStageResponse;
import software.amazon.awssdk.services.apigateway.model.DeleteUsagePlanKeyRequest;
import software.amazon.awssdk.services.apigateway.model.DeleteUsagePlanKeyResponse;
import software.amazon.awssdk.services.apigateway.model.DeleteUsagePlanRequest;
import software.amazon.awssdk.services.apigateway.model.DeleteUsagePlanResponse;
import software.amazon.awssdk.services.apigateway.model.FlushStageAuthorizersCacheRequest;
import software.amazon.awssdk.services.apigateway.model.FlushStageAuthorizersCacheResponse;
import software.amazon.awssdk.services.apigateway.model.FlushStageCacheRequest;
import software.amazon.awssdk.services.apigateway.model.FlushStageCacheResponse;
import software.amazon.awssdk.services.apigateway.model.GenerateClientCertificateRequest;
import software.amazon.awssdk.services.apigateway.model.GenerateClientCertificateResponse;
import software.amazon.awssdk.services.apigateway.model.GetAccountRequest;
import software.amazon.awssdk.services.apigateway.model.GetAccountResponse;
import software.amazon.awssdk.services.apigateway.model.GetApiKeyRequest;
import software.amazon.awssdk.services.apigateway.model.GetApiKeyResponse;
import software.amazon.awssdk.services.apigateway.model.GetApiKeysRequest;
import software.amazon.awssdk.services.apigateway.model.GetApiKeysResponse;
import software.amazon.awssdk.services.apigateway.model.GetAuthorizerRequest;
import software.amazon.awssdk.services.apigateway.model.GetAuthorizerResponse;
import software.amazon.awssdk.services.apigateway.model.GetAuthorizersRequest;
import software.amazon.awssdk.services.apigateway.model.GetAuthorizersResponse;
import software.amazon.awssdk.services.apigateway.model.GetBasePathMappingRequest;
import software.amazon.awssdk.services.apigateway.model.GetBasePathMappingResponse;
import software.amazon.awssdk.services.apigateway.model.GetBasePathMappingsRequest;
import software.amazon.awssdk.services.apigateway.model.GetBasePathMappingsResponse;
import software.amazon.awssdk.services.apigateway.model.GetClientCertificateRequest;
import software.amazon.awssdk.services.apigateway.model.GetClientCertificateResponse;
import software.amazon.awssdk.services.apigateway.model.GetClientCertificatesRequest;
import software.amazon.awssdk.services.apigateway.model.GetClientCertificatesResponse;
import software.amazon.awssdk.services.apigateway.model.GetDeploymentRequest;
import software.amazon.awssdk.services.apigateway.model.GetDeploymentResponse;
import software.amazon.awssdk.services.apigateway.model.GetDeploymentsRequest;
import software.amazon.awssdk.services.apigateway.model.GetDeploymentsResponse;
import software.amazon.awssdk.services.apigateway.model.GetDocumentationPartRequest;
import software.amazon.awssdk.services.apigateway.model.GetDocumentationPartResponse;
import software.amazon.awssdk.services.apigateway.model.GetDocumentationPartsRequest;
import software.amazon.awssdk.services.apigateway.model.GetDocumentationPartsResponse;
import software.amazon.awssdk.services.apigateway.model.GetDocumentationVersionRequest;
import software.amazon.awssdk.services.apigateway.model.GetDocumentationVersionResponse;
import software.amazon.awssdk.services.apigateway.model.GetDocumentationVersionsRequest;
import software.amazon.awssdk.services.apigateway.model.GetDocumentationVersionsResponse;
import software.amazon.awssdk.services.apigateway.model.GetDomainNameRequest;
import software.amazon.awssdk.services.apigateway.model.GetDomainNameResponse;
import software.amazon.awssdk.services.apigateway.model.GetDomainNamesRequest;
import software.amazon.awssdk.services.apigateway.model.GetDomainNamesResponse;
import software.amazon.awssdk.services.apigateway.model.GetExportRequest;
import software.amazon.awssdk.services.apigateway.model.GetExportResponse;
import software.amazon.awssdk.services.apigateway.model.GetGatewayResponseRequest;
import software.amazon.awssdk.services.apigateway.model.GetGatewayResponseResponse;
import software.amazon.awssdk.services.apigateway.model.GetGatewayResponsesRequest;
import software.amazon.awssdk.services.apigateway.model.GetGatewayResponsesResponse;
import software.amazon.awssdk.services.apigateway.model.GetIntegrationRequest;
import software.amazon.awssdk.services.apigateway.model.GetIntegrationResponse;
import software.amazon.awssdk.services.apigateway.model.GetIntegrationResponseRequest;
import software.amazon.awssdk.services.apigateway.model.GetIntegrationResponseResponse;
import software.amazon.awssdk.services.apigateway.model.GetMethodRequest;
import software.amazon.awssdk.services.apigateway.model.GetMethodResponse;
import software.amazon.awssdk.services.apigateway.model.GetMethodResponseRequest;
import software.amazon.awssdk.services.apigateway.model.GetMethodResponseResponse;
import software.amazon.awssdk.services.apigateway.model.GetModelRequest;
import software.amazon.awssdk.services.apigateway.model.GetModelResponse;
import software.amazon.awssdk.services.apigateway.model.GetModelTemplateRequest;
import software.amazon.awssdk.services.apigateway.model.GetModelTemplateResponse;
import software.amazon.awssdk.services.apigateway.model.GetModelsRequest;
import software.amazon.awssdk.services.apigateway.model.GetModelsResponse;
import software.amazon.awssdk.services.apigateway.model.GetRequestValidatorRequest;
import software.amazon.awssdk.services.apigateway.model.GetRequestValidatorResponse;
import software.amazon.awssdk.services.apigateway.model.GetRequestValidatorsRequest;
import software.amazon.awssdk.services.apigateway.model.GetRequestValidatorsResponse;
import software.amazon.awssdk.services.apigateway.model.GetResourceRequest;
import software.amazon.awssdk.services.apigateway.model.GetResourceResponse;
import software.amazon.awssdk.services.apigateway.model.GetResourcesRequest;
import software.amazon.awssdk.services.apigateway.model.GetResourcesResponse;
import software.amazon.awssdk.services.apigateway.model.GetRestApiRequest;
import software.amazon.awssdk.services.apigateway.model.GetRestApiResponse;
import software.amazon.awssdk.services.apigateway.model.GetRestApisRequest;
import software.amazon.awssdk.services.apigateway.model.GetRestApisResponse;
import software.amazon.awssdk.services.apigateway.model.GetSdkRequest;
import software.amazon.awssdk.services.apigateway.model.GetSdkResponse;
import software.amazon.awssdk.services.apigateway.model.GetSdkTypeRequest;
import software.amazon.awssdk.services.apigateway.model.GetSdkTypeResponse;
import software.amazon.awssdk.services.apigateway.model.GetSdkTypesRequest;
import software.amazon.awssdk.services.apigateway.model.GetSdkTypesResponse;
import software.amazon.awssdk.services.apigateway.model.GetStageRequest;
import software.amazon.awssdk.services.apigateway.model.GetStageResponse;
import software.amazon.awssdk.services.apigateway.model.GetStagesRequest;
import software.amazon.awssdk.services.apigateway.model.GetStagesResponse;
import software.amazon.awssdk.services.apigateway.model.GetUsagePlanKeyRequest;
import software.amazon.awssdk.services.apigateway.model.GetUsagePlanKeyResponse;
import software.amazon.awssdk.services.apigateway.model.GetUsagePlanKeysRequest;
import software.amazon.awssdk.services.apigateway.model.GetUsagePlanKeysResponse;
import software.amazon.awssdk.services.apigateway.model.GetUsagePlanRequest;
import software.amazon.awssdk.services.apigateway.model.GetUsagePlanResponse;
import software.amazon.awssdk.services.apigateway.model.GetUsagePlansRequest;
import software.amazon.awssdk.services.apigateway.model.GetUsagePlansResponse;
import software.amazon.awssdk.services.apigateway.model.GetUsageRequest;
import software.amazon.awssdk.services.apigateway.model.GetUsageResponse;
import software.amazon.awssdk.services.apigateway.model.ImportApiKeysRequest;
import software.amazon.awssdk.services.apigateway.model.ImportApiKeysResponse;
import software.amazon.awssdk.services.apigateway.model.ImportDocumentationPartsRequest;
import software.amazon.awssdk.services.apigateway.model.ImportDocumentationPartsResponse;
import software.amazon.awssdk.services.apigateway.model.ImportRestApiRequest;
import software.amazon.awssdk.services.apigateway.model.ImportRestApiResponse;
import software.amazon.awssdk.services.apigateway.model.LimitExceededException;
import software.amazon.awssdk.services.apigateway.model.NotFoundException;
import software.amazon.awssdk.services.apigateway.model.PutGatewayResponseRequest;
import software.amazon.awssdk.services.apigateway.model.PutGatewayResponseResponse;
import software.amazon.awssdk.services.apigateway.model.PutIntegrationRequest;
import software.amazon.awssdk.services.apigateway.model.PutIntegrationResponse;
import software.amazon.awssdk.services.apigateway.model.PutIntegrationResponseRequest;
import software.amazon.awssdk.services.apigateway.model.PutIntegrationResponseResponse;
import software.amazon.awssdk.services.apigateway.model.PutMethodRequest;
import software.amazon.awssdk.services.apigateway.model.PutMethodResponse;
import software.amazon.awssdk.services.apigateway.model.PutMethodResponseRequest;
import software.amazon.awssdk.services.apigateway.model.PutMethodResponseResponse;
import software.amazon.awssdk.services.apigateway.model.PutRestApiRequest;
import software.amazon.awssdk.services.apigateway.model.PutRestApiResponse;
import software.amazon.awssdk.services.apigateway.model.ServiceUnavailableException;
import software.amazon.awssdk.services.apigateway.model.TestInvokeAuthorizerRequest;
import software.amazon.awssdk.services.apigateway.model.TestInvokeAuthorizerResponse;
import software.amazon.awssdk.services.apigateway.model.TestInvokeMethodRequest;
import software.amazon.awssdk.services.apigateway.model.TestInvokeMethodResponse;
import software.amazon.awssdk.services.apigateway.model.TooManyRequestsException;
import software.amazon.awssdk.services.apigateway.model.UnauthorizedException;
import software.amazon.awssdk.services.apigateway.model.UpdateAccountRequest;
import software.amazon.awssdk.services.apigateway.model.UpdateAccountResponse;
import software.amazon.awssdk.services.apigateway.model.UpdateApiKeyRequest;
import software.amazon.awssdk.services.apigateway.model.UpdateApiKeyResponse;
import software.amazon.awssdk.services.apigateway.model.UpdateAuthorizerRequest;
import software.amazon.awssdk.services.apigateway.model.UpdateAuthorizerResponse;
import software.amazon.awssdk.services.apigateway.model.UpdateBasePathMappingRequest;
import software.amazon.awssdk.services.apigateway.model.UpdateBasePathMappingResponse;
import software.amazon.awssdk.services.apigateway.model.UpdateClientCertificateRequest;
import software.amazon.awssdk.services.apigateway.model.UpdateClientCertificateResponse;
import software.amazon.awssdk.services.apigateway.model.UpdateDeploymentRequest;
import software.amazon.awssdk.services.apigateway.model.UpdateDeploymentResponse;
import software.amazon.awssdk.services.apigateway.model.UpdateDocumentationPartRequest;
import software.amazon.awssdk.services.apigateway.model.UpdateDocumentationPartResponse;
import software.amazon.awssdk.services.apigateway.model.UpdateDocumentationVersionRequest;
import software.amazon.awssdk.services.apigateway.model.UpdateDocumentationVersionResponse;
import software.amazon.awssdk.services.apigateway.model.UpdateDomainNameRequest;
import software.amazon.awssdk.services.apigateway.model.UpdateDomainNameResponse;
import software.amazon.awssdk.services.apigateway.model.UpdateGatewayResponseRequest;
import software.amazon.awssdk.services.apigateway.model.UpdateGatewayResponseResponse;
import software.amazon.awssdk.services.apigateway.model.UpdateIntegrationRequest;
import software.amazon.awssdk.services.apigateway.model.UpdateIntegrationResponse;
import software.amazon.awssdk.services.apigateway.model.UpdateIntegrationResponseRequest;
import software.amazon.awssdk.services.apigateway.model.UpdateIntegrationResponseResponse;
import software.amazon.awssdk.services.apigateway.model.UpdateMethodRequest;
import software.amazon.awssdk.services.apigateway.model.UpdateMethodResponse;
import software.amazon.awssdk.services.apigateway.model.UpdateMethodResponseRequest;
import software.amazon.awssdk.services.apigateway.model.UpdateMethodResponseResponse;
import software.amazon.awssdk.services.apigateway.model.UpdateModelRequest;
import software.amazon.awssdk.services.apigateway.model.UpdateModelResponse;
import software.amazon.awssdk.services.apigateway.model.UpdateRequestValidatorRequest;
import software.amazon.awssdk.services.apigateway.model.UpdateRequestValidatorResponse;
import software.amazon.awssdk.services.apigateway.model.UpdateResourceRequest;
import software.amazon.awssdk.services.apigateway.model.UpdateResourceResponse;
import software.amazon.awssdk.services.apigateway.model.UpdateRestApiRequest;
import software.amazon.awssdk.services.apigateway.model.UpdateRestApiResponse;
import software.amazon.awssdk.services.apigateway.model.UpdateStageRequest;
import software.amazon.awssdk.services.apigateway.model.UpdateStageResponse;
import software.amazon.awssdk.services.apigateway.model.UpdateUsagePlanRequest;
import software.amazon.awssdk.services.apigateway.model.UpdateUsagePlanResponse;
import software.amazon.awssdk.services.apigateway.model.UpdateUsageRequest;
import software.amazon.awssdk.services.apigateway.model.UpdateUsageResponse;
import software.amazon.awssdk.services.apigateway.transform.CreateApiKeyRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.CreateApiKeyResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.CreateAuthorizerRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.CreateAuthorizerResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.CreateBasePathMappingRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.CreateBasePathMappingResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.CreateDeploymentRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.CreateDeploymentResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.CreateDocumentationPartRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.CreateDocumentationPartResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.CreateDocumentationVersionRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.CreateDocumentationVersionResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.CreateDomainNameRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.CreateDomainNameResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.CreateModelRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.CreateModelResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.CreateRequestValidatorRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.CreateRequestValidatorResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.CreateResourceRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.CreateResourceResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.CreateRestApiRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.CreateRestApiResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.CreateStageRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.CreateStageResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.CreateUsagePlanKeyRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.CreateUsagePlanKeyResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.CreateUsagePlanRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.CreateUsagePlanResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteApiKeyRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteApiKeyResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteAuthorizerRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteAuthorizerResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteBasePathMappingRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteBasePathMappingResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteClientCertificateRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteClientCertificateResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteDeploymentRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteDeploymentResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteDocumentationPartRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteDocumentationPartResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteDocumentationVersionRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteDocumentationVersionResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteDomainNameRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteDomainNameResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteGatewayResponseRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteGatewayResponseResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteIntegrationRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteIntegrationResponseRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteIntegrationResponseResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteIntegrationResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteMethodRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteMethodResponseRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteMethodResponseResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteMethodResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteModelRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteModelResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteRequestValidatorRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteRequestValidatorResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteResourceRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteResourceResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteRestApiRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteRestApiResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteStageRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteStageResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteUsagePlanKeyRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteUsagePlanKeyResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteUsagePlanRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.DeleteUsagePlanResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.FlushStageAuthorizersCacheRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.FlushStageAuthorizersCacheResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.FlushStageCacheRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.FlushStageCacheResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GenerateClientCertificateRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GenerateClientCertificateResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetAccountRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetAccountResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetApiKeyRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetApiKeyResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetApiKeysRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetApiKeysResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetAuthorizerRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetAuthorizerResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetAuthorizersRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetAuthorizersResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetBasePathMappingRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetBasePathMappingResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetBasePathMappingsRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetBasePathMappingsResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetClientCertificateRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetClientCertificateResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetClientCertificatesRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetClientCertificatesResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetDeploymentRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetDeploymentResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetDeploymentsRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetDeploymentsResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetDocumentationPartRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetDocumentationPartResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetDocumentationPartsRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetDocumentationPartsResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetDocumentationVersionRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetDocumentationVersionResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetDocumentationVersionsRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetDocumentationVersionsResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetDomainNameRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetDomainNameResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetDomainNamesRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetDomainNamesResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetExportRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetExportResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetGatewayResponseRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetGatewayResponseResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetGatewayResponsesRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetGatewayResponsesResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetIntegrationRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetIntegrationResponseRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetIntegrationResponseResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetIntegrationResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetMethodRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetMethodResponseRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetMethodResponseResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetMethodResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetModelRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetModelResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetModelTemplateRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetModelTemplateResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetModelsRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetModelsResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetRequestValidatorRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetRequestValidatorResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetRequestValidatorsRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetRequestValidatorsResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetResourceRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetResourceResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetResourcesRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetResourcesResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetRestApiRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetRestApiResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetRestApisRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetRestApisResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetSdkRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetSdkResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetSdkTypeRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetSdkTypeResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetSdkTypesRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetSdkTypesResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetStageRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetStageResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetStagesRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetStagesResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetUsagePlanKeyRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetUsagePlanKeyResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetUsagePlanKeysRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetUsagePlanKeysResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetUsagePlanRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetUsagePlanResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetUsagePlansRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetUsagePlansResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetUsageRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.GetUsageResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.ImportApiKeysRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.ImportApiKeysResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.ImportDocumentationPartsRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.ImportDocumentationPartsResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.ImportRestApiRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.ImportRestApiResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.PutGatewayResponseRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.PutGatewayResponseResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.PutIntegrationRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.PutIntegrationResponseRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.PutIntegrationResponseResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.PutIntegrationResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.PutMethodRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.PutMethodResponseRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.PutMethodResponseResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.PutMethodResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.PutRestApiRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.PutRestApiResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.TestInvokeAuthorizerRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.TestInvokeAuthorizerResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.TestInvokeMethodRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.TestInvokeMethodResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateAccountRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateAccountResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateApiKeyRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateApiKeyResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateAuthorizerRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateAuthorizerResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateBasePathMappingRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateBasePathMappingResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateClientCertificateRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateClientCertificateResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateDeploymentRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateDeploymentResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateDocumentationPartRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateDocumentationPartResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateDocumentationVersionRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateDocumentationVersionResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateDomainNameRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateDomainNameResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateGatewayResponseRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateGatewayResponseResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateIntegrationRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateIntegrationResponseRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateIntegrationResponseResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateIntegrationResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateMethodRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateMethodResponseRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateMethodResponseResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateMethodResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateModelRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateModelResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateRequestValidatorRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateRequestValidatorResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateResourceRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateResourceResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateRestApiRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateRestApiResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateStageRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateStageResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateUsagePlanRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateUsagePlanResponseUnmarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateUsageRequestMarshaller;
import software.amazon.awssdk.services.apigateway.transform.UpdateUsageResponseUnmarshaller;
/**
* Internal implementation of {@link APIGatewayClient}.
*
* @see APIGatewayClient#builder()
*/
@Generated("software.amazon.awssdk:codegen")
@SdkInternalApi
final class DefaultAPIGatewayClient implements APIGatewayClient {
private final ClientHandler clientHandler;
private final SdkJsonProtocolFactory protocolFactory;
private final ClientConfiguration clientConfiguration;
protected DefaultAPIGatewayClient(SyncClientConfiguration clientConfiguration) {
this.clientHandler = new SdkClientHandler(clientConfiguration, null);
this.protocolFactory = init();
this.clientConfiguration = clientConfiguration;
}
@Override
public final String serviceName() {
return SERVICE_NAME;
}
/**
*
* Create an ApiKey resource.
*
*
*
* @param createApiKeyRequest
* Request to create an ApiKey resource.
* @return Result of the CreateApiKey operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws LimitExceededException
* The request exceeded the rate limit. Retry after the specified time period.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.CreateApiKey
*/
@Override
public CreateApiKeyResponse createApiKey(CreateApiKeyRequest createApiKeyRequest) throws UnauthorizedException,
NotFoundException, TooManyRequestsException, LimitExceededException, BadRequestException, ConflictException,
SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new CreateApiKeyResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(createApiKeyRequest).withMarshaller(new CreateApiKeyRequestMarshaller(protocolFactory)));
}
/**
*
* Adds a new Authorizer resource to an existing RestApi resource.
*
*
*
* @param createAuthorizerRequest
* Request to add a new Authorizer to an existing RestApi resource.
* @return Result of the CreateAuthorizer operation returned by the service.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws LimitExceededException
* The request exceeded the rate limit. Retry after the specified time period.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.CreateAuthorizer
*/
@Override
public CreateAuthorizerResponse createAuthorizer(CreateAuthorizerRequest createAuthorizerRequest) throws BadRequestException,
UnauthorizedException, NotFoundException, LimitExceededException, TooManyRequestsException, SdkServiceException,
SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new CreateAuthorizerResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(createAuthorizerRequest).withMarshaller(new CreateAuthorizerRequestMarshaller(protocolFactory)));
}
/**
*
* Creates a new BasePathMapping resource.
*
*
* @param createBasePathMappingRequest
* Requests Amazon API Gateway to create a new BasePathMapping resource.
* @return Result of the CreateBasePathMapping operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.CreateBasePathMapping
*/
@Override
public CreateBasePathMappingResponse createBasePathMapping(CreateBasePathMappingRequest createBasePathMappingRequest)
throws UnauthorizedException, ConflictException, BadRequestException, NotFoundException, TooManyRequestsException,
SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new CreateBasePathMappingResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(createBasePathMappingRequest)
.withMarshaller(new CreateBasePathMappingRequestMarshaller(protocolFactory)));
}
/**
*
* Creates a Deployment resource, which makes a specified RestApi callable over the internet.
*
*
* @param createDeploymentRequest
* Requests Amazon API Gateway to create a Deployment resource.
* @return Result of the CreateDeployment operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws LimitExceededException
* The request exceeded the rate limit. Retry after the specified time period.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws ServiceUnavailableException
* The requested service is not available. For details see the accompanying error message. Retry after the
* specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.CreateDeployment
*/
@Override
public CreateDeploymentResponse createDeployment(CreateDeploymentRequest createDeploymentRequest)
throws UnauthorizedException, BadRequestException, NotFoundException, ConflictException, LimitExceededException,
TooManyRequestsException, ServiceUnavailableException, SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new CreateDeploymentResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(createDeploymentRequest).withMarshaller(new CreateDeploymentRequestMarshaller(protocolFactory)));
}
/**
* Invokes the CreateDocumentationPart operation.
*
* @param createDocumentationPartRequest
* Creates a new documentation part of a given API.
* @return Result of the CreateDocumentationPart operation returned by the service.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws LimitExceededException
* The request exceeded the rate limit. Retry after the specified time period.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.CreateDocumentationPart
*/
@Override
public CreateDocumentationPartResponse createDocumentationPart(CreateDocumentationPartRequest createDocumentationPartRequest)
throws BadRequestException, ConflictException, UnauthorizedException, NotFoundException, LimitExceededException,
TooManyRequestsException, SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new CreateDocumentationPartResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(createDocumentationPartRequest)
.withMarshaller(new CreateDocumentationPartRequestMarshaller(protocolFactory)));
}
/**
* Invokes the CreateDocumentationVersion operation.
*
* @param createDocumentationVersionRequest
* Creates a new documentation version of a given API.
* @return Result of the CreateDocumentationVersion operation returned by the service.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws LimitExceededException
* The request exceeded the rate limit. Retry after the specified time period.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.CreateDocumentationVersion
*/
@Override
public CreateDocumentationVersionResponse createDocumentationVersion(
CreateDocumentationVersionRequest createDocumentationVersionRequest) throws BadRequestException, ConflictException,
UnauthorizedException, NotFoundException, LimitExceededException, TooManyRequestsException, SdkServiceException,
SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new CreateDocumentationVersionResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler
.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(createDocumentationVersionRequest)
.withMarshaller(new CreateDocumentationVersionRequestMarshaller(protocolFactory)));
}
/**
*
* Creates a new domain name.
*
*
* @param createDomainNameRequest
* A request to create a new domain name.
* @return Result of the CreateDomainName operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.CreateDomainName
*/
@Override
public CreateDomainNameResponse createDomainName(CreateDomainNameRequest createDomainNameRequest)
throws UnauthorizedException, BadRequestException, ConflictException, TooManyRequestsException, SdkServiceException,
SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new CreateDomainNameResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(createDomainNameRequest).withMarshaller(new CreateDomainNameRequestMarshaller(protocolFactory)));
}
/**
*
* Adds a new Model resource to an existing RestApi resource.
*
*
* @param createModelRequest
* Request to add a new Model to an existing RestApi resource.
* @return Result of the CreateModel operation returned by the service.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws LimitExceededException
* The request exceeded the rate limit. Retry after the specified time period.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.CreateModel
*/
@Override
public CreateModelResponse createModel(CreateModelRequest createModelRequest) throws BadRequestException,
UnauthorizedException, NotFoundException, ConflictException, LimitExceededException, TooManyRequestsException,
SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new CreateModelResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(createModelRequest).withMarshaller(new CreateModelRequestMarshaller(protocolFactory)));
}
/**
*
* Creates a ReqeustValidator of a given RestApi.
*
*
* @param createRequestValidatorRequest
* Creates a RequestValidator of a given RestApi.
* @return Result of the CreateRequestValidator operation returned by the service.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws LimitExceededException
* The request exceeded the rate limit. Retry after the specified time period.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.CreateRequestValidator
*/
@Override
public CreateRequestValidatorResponse createRequestValidator(CreateRequestValidatorRequest createRequestValidatorRequest)
throws BadRequestException, UnauthorizedException, NotFoundException, LimitExceededException,
TooManyRequestsException, SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new CreateRequestValidatorResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(createRequestValidatorRequest)
.withMarshaller(new CreateRequestValidatorRequestMarshaller(protocolFactory)));
}
/**
*
* Creates a Resource resource.
*
*
* @param createResourceRequest
* Requests Amazon API Gateway to create a Resource resource.
* @return Result of the CreateResource operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws LimitExceededException
* The request exceeded the rate limit. Retry after the specified time period.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.CreateResource
*/
@Override
public CreateResourceResponse createResource(CreateResourceRequest createResourceRequest) throws UnauthorizedException,
NotFoundException, ConflictException, LimitExceededException, BadRequestException, TooManyRequestsException,
SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new CreateResourceResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(createResourceRequest).withMarshaller(new CreateResourceRequestMarshaller(protocolFactory)));
}
/**
*
* Creates a new RestApi resource.
*
*
* @param createRestApiRequest
* The POST Request to add a new RestApi resource to your collection.
* @return Result of the CreateRestApi operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws LimitExceededException
* The request exceeded the rate limit. Retry after the specified time period.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.CreateRestApi
*/
@Override
public CreateRestApiResponse createRestApi(CreateRestApiRequest createRestApiRequest) throws UnauthorizedException,
LimitExceededException, BadRequestException, TooManyRequestsException, SdkServiceException, SdkClientException,
APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new CreateRestApiResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(createRestApiRequest).withMarshaller(new CreateRestApiRequestMarshaller(protocolFactory)));
}
/**
*
* Creates a new Stage resource that references a pre-existing Deployment for the API.
*
*
* @param createStageRequest
* Requests Amazon API Gateway to create a Stage resource.
* @return Result of the CreateStage operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws LimitExceededException
* The request exceeded the rate limit. Retry after the specified time period.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.CreateStage
*/
@Override
public CreateStageResponse createStage(CreateStageRequest createStageRequest) throws UnauthorizedException,
BadRequestException, NotFoundException, ConflictException, LimitExceededException, TooManyRequestsException,
SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new CreateStageResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(createStageRequest).withMarshaller(new CreateStageRequestMarshaller(protocolFactory)));
}
/**
*
* Creates a usage plan with the throttle and quota limits, as well as the associated API stages, specified in the
* payload.
*
*
* @param createUsagePlanRequest
* The POST request to create a usage plan with the name, description, throttle limits and quota limits, as
* well as the associated API stages, specified in the payload.
* @return Result of the CreateUsagePlan operation returned by the service.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws LimitExceededException
* The request exceeded the rate limit. Retry after the specified time period.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.CreateUsagePlan
*/
@Override
public CreateUsagePlanResponse createUsagePlan(CreateUsagePlanRequest createUsagePlanRequest) throws BadRequestException,
UnauthorizedException, TooManyRequestsException, LimitExceededException, ConflictException, NotFoundException,
SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new CreateUsagePlanResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(createUsagePlanRequest).withMarshaller(new CreateUsagePlanRequestMarshaller(protocolFactory)));
}
/**
*
* Creates a usage plan key for adding an existing API key to a usage plan.
*
*
* @param createUsagePlanKeyRequest
* The POST request to create a usage plan key for adding an existing API key to a usage plan.
* @return Result of the CreateUsagePlanKey operation returned by the service.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.CreateUsagePlanKey
*/
@Override
public CreateUsagePlanKeyResponse createUsagePlanKey(CreateUsagePlanKeyRequest createUsagePlanKeyRequest)
throws BadRequestException, ConflictException, UnauthorizedException, NotFoundException, TooManyRequestsException,
SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new CreateUsagePlanKeyResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(createUsagePlanKeyRequest).withMarshaller(new CreateUsagePlanKeyRequestMarshaller(protocolFactory)));
}
/**
*
* Deletes the ApiKey resource.
*
*
* @param deleteApiKeyRequest
* A request to delete the ApiKey resource.
* @return Result of the DeleteApiKey operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.DeleteApiKey
*/
@Override
public DeleteApiKeyResponse deleteApiKey(DeleteApiKeyRequest deleteApiKeyRequest) throws UnauthorizedException,
NotFoundException, TooManyRequestsException, SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeleteApiKeyResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(deleteApiKeyRequest).withMarshaller(new DeleteApiKeyRequestMarshaller(protocolFactory)));
}
/**
*
* Deletes an existing Authorizer resource.
*
*
*
* @param deleteAuthorizerRequest
* Request to delete an existing Authorizer resource.
* @return Result of the DeleteAuthorizer operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.DeleteAuthorizer
*/
@Override
public DeleteAuthorizerResponse deleteAuthorizer(DeleteAuthorizerRequest deleteAuthorizerRequest)
throws UnauthorizedException, NotFoundException, TooManyRequestsException, BadRequestException, ConflictException,
SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeleteAuthorizerResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(deleteAuthorizerRequest).withMarshaller(new DeleteAuthorizerRequestMarshaller(protocolFactory)));
}
/**
*
* Deletes the BasePathMapping resource.
*
*
* @param deleteBasePathMappingRequest
* A request to delete the BasePathMapping resource.
* @return Result of the DeleteBasePathMapping operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.DeleteBasePathMapping
*/
@Override
public DeleteBasePathMappingResponse deleteBasePathMapping(DeleteBasePathMappingRequest deleteBasePathMappingRequest)
throws UnauthorizedException, NotFoundException, ConflictException, BadRequestException, TooManyRequestsException,
SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeleteBasePathMappingResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(deleteBasePathMappingRequest)
.withMarshaller(new DeleteBasePathMappingRequestMarshaller(protocolFactory)));
}
/**
*
* Deletes the ClientCertificate resource.
*
*
* @param deleteClientCertificateRequest
* A request to delete the ClientCertificate resource.
* @return Result of the DeleteClientCertificate operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.DeleteClientCertificate
*/
@Override
public DeleteClientCertificateResponse deleteClientCertificate(DeleteClientCertificateRequest deleteClientCertificateRequest)
throws UnauthorizedException, TooManyRequestsException, BadRequestException, NotFoundException, SdkServiceException,
SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeleteClientCertificateResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(deleteClientCertificateRequest)
.withMarshaller(new DeleteClientCertificateRequestMarshaller(protocolFactory)));
}
/**
*
* Deletes a Deployment resource. Deleting a deployment will only succeed if there are no Stage
* resources associated with it.
*
*
* @param deleteDeploymentRequest
* Requests Amazon API Gateway to delete a Deployment resource.
* @return Result of the DeleteDeployment operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.DeleteDeployment
*/
@Override
public DeleteDeploymentResponse deleteDeployment(DeleteDeploymentRequest deleteDeploymentRequest)
throws UnauthorizedException, NotFoundException, BadRequestException, TooManyRequestsException, SdkServiceException,
SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeleteDeploymentResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(deleteDeploymentRequest).withMarshaller(new DeleteDeploymentRequestMarshaller(protocolFactory)));
}
/**
* Invokes the DeleteDocumentationPart operation.
*
* @param deleteDocumentationPartRequest
* Deletes an existing documentation part of an API.
* @return Result of the DeleteDocumentationPart operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.DeleteDocumentationPart
*/
@Override
public DeleteDocumentationPartResponse deleteDocumentationPart(DeleteDocumentationPartRequest deleteDocumentationPartRequest)
throws UnauthorizedException, NotFoundException, TooManyRequestsException, ConflictException, BadRequestException,
SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeleteDocumentationPartResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(deleteDocumentationPartRequest)
.withMarshaller(new DeleteDocumentationPartRequestMarshaller(protocolFactory)));
}
/**
* Invokes the DeleteDocumentationVersion operation.
*
* @param deleteDocumentationVersionRequest
* Deletes an existing documentation version of an API.
* @return Result of the DeleteDocumentationVersion operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.DeleteDocumentationVersion
*/
@Override
public DeleteDocumentationVersionResponse deleteDocumentationVersion(
DeleteDocumentationVersionRequest deleteDocumentationVersionRequest) throws UnauthorizedException, NotFoundException,
BadRequestException, ConflictException, TooManyRequestsException, SdkServiceException, SdkClientException,
APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeleteDocumentationVersionResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler
.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(deleteDocumentationVersionRequest)
.withMarshaller(new DeleteDocumentationVersionRequestMarshaller(protocolFactory)));
}
/**
*
* Deletes the DomainName resource.
*
*
* @param deleteDomainNameRequest
* A request to delete the DomainName resource.
* @return Result of the DeleteDomainName operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.DeleteDomainName
*/
@Override
public DeleteDomainNameResponse deleteDomainName(DeleteDomainNameRequest deleteDomainNameRequest)
throws UnauthorizedException, NotFoundException, TooManyRequestsException, SdkServiceException, SdkClientException,
APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeleteDomainNameResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(deleteDomainNameRequest).withMarshaller(new DeleteDomainNameRequestMarshaller(protocolFactory)));
}
/**
*
* Clears any customization of a GatewayResponse of a specified response type on the given RestApi and
* resets it with the default settings.
*
*
* @param deleteGatewayResponseRequest
* Clears any customization of a GatewayResponse of a specified response type on the given
* RestApi and resets it with the default settings.
* @return Result of the DeleteGatewayResponse operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.DeleteGatewayResponse
*/
@Override
public DeleteGatewayResponseResponse deleteGatewayResponse(DeleteGatewayResponseRequest deleteGatewayResponseRequest)
throws UnauthorizedException, NotFoundException, TooManyRequestsException, BadRequestException, ConflictException,
SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeleteGatewayResponseResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(deleteGatewayResponseRequest)
.withMarshaller(new DeleteGatewayResponseRequestMarshaller(protocolFactory)));
}
/**
*
* Represents a delete integration.
*
*
* @param deleteIntegrationRequest
* Represents a delete integration request.
* @return Result of the DeleteIntegration operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.DeleteIntegration
*/
@Override
public DeleteIntegrationResponse deleteIntegration(DeleteIntegrationRequest deleteIntegrationRequest)
throws UnauthorizedException, NotFoundException, TooManyRequestsException, ConflictException, SdkServiceException,
SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeleteIntegrationResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(deleteIntegrationRequest).withMarshaller(new DeleteIntegrationRequestMarshaller(protocolFactory)));
}
/**
*
* Represents a delete integration response.
*
*
* @param deleteIntegrationResponseRequest
* Represents a delete integration response request.
* @return Result of the DeleteIntegrationResponse operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.DeleteIntegrationResponse
*/
@Override
public DeleteIntegrationResponseResponse deleteIntegrationResponse(
DeleteIntegrationResponseRequest deleteIntegrationResponseRequest) throws UnauthorizedException, NotFoundException,
TooManyRequestsException, BadRequestException, ConflictException, SdkServiceException, SdkClientException,
APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeleteIntegrationResponseResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler
.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(deleteIntegrationResponseRequest)
.withMarshaller(new DeleteIntegrationResponseRequestMarshaller(protocolFactory)));
}
/**
*
* Deletes an existing Method resource.
*
*
* @param deleteMethodRequest
* Request to delete an existing Method resource.
* @return Result of the DeleteMethod operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.DeleteMethod
*/
@Override
public DeleteMethodResponse deleteMethod(DeleteMethodRequest deleteMethodRequest) throws UnauthorizedException,
NotFoundException, TooManyRequestsException, ConflictException, SdkServiceException, SdkClientException,
APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeleteMethodResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(deleteMethodRequest).withMarshaller(new DeleteMethodRequestMarshaller(protocolFactory)));
}
/**
*
* Deletes an existing MethodResponse resource.
*
*
* @param deleteMethodResponseRequest
* A request to delete an existing MethodResponse resource.
* @return Result of the DeleteMethodResponse operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.DeleteMethodResponse
*/
@Override
public DeleteMethodResponseResponse deleteMethodResponse(DeleteMethodResponseRequest deleteMethodResponseRequest)
throws UnauthorizedException, NotFoundException, TooManyRequestsException, BadRequestException, ConflictException,
SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeleteMethodResponseResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(deleteMethodResponseRequest)
.withMarshaller(new DeleteMethodResponseRequestMarshaller(protocolFactory)));
}
/**
*
* Deletes a model.
*
*
* @param deleteModelRequest
* Request to delete an existing model in an existing RestApi resource.
* @return Result of the DeleteModel operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.DeleteModel
*/
@Override
public DeleteModelResponse deleteModel(DeleteModelRequest deleteModelRequest) throws UnauthorizedException,
NotFoundException, TooManyRequestsException, BadRequestException, ConflictException, SdkServiceException,
SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeleteModelResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(deleteModelRequest).withMarshaller(new DeleteModelRequestMarshaller(protocolFactory)));
}
/**
*
* Deletes a RequestValidator of a given RestApi.
*
*
* @param deleteRequestValidatorRequest
* Deletes a specified RequestValidator of a given RestApi.
* @return Result of the DeleteRequestValidator operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.DeleteRequestValidator
*/
@Override
public DeleteRequestValidatorResponse deleteRequestValidator(DeleteRequestValidatorRequest deleteRequestValidatorRequest)
throws UnauthorizedException, NotFoundException, TooManyRequestsException, BadRequestException, ConflictException,
SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeleteRequestValidatorResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(deleteRequestValidatorRequest)
.withMarshaller(new DeleteRequestValidatorRequestMarshaller(protocolFactory)));
}
/**
*
* Deletes a Resource resource.
*
*
* @param deleteResourceRequest
* Request to delete a Resource.
* @return Result of the DeleteResource operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.DeleteResource
*/
@Override
public DeleteResourceResponse deleteResource(DeleteResourceRequest deleteResourceRequest) throws UnauthorizedException,
NotFoundException, BadRequestException, ConflictException, TooManyRequestsException, SdkServiceException,
SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeleteResourceResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(deleteResourceRequest).withMarshaller(new DeleteResourceRequestMarshaller(protocolFactory)));
}
/**
*
* Deletes the specified API.
*
*
* @param deleteRestApiRequest
* Request to delete the specified API from your collection.
* @return Result of the DeleteRestApi operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.DeleteRestApi
*/
@Override
public DeleteRestApiResponse deleteRestApi(DeleteRestApiRequest deleteRestApiRequest) throws UnauthorizedException,
NotFoundException, TooManyRequestsException, BadRequestException, SdkServiceException, SdkClientException,
APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeleteRestApiResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(deleteRestApiRequest).withMarshaller(new DeleteRestApiRequestMarshaller(protocolFactory)));
}
/**
*
* Deletes a Stage resource.
*
*
* @param deleteStageRequest
* Requests Amazon API Gateway to delete a Stage resource.
* @return Result of the DeleteStage operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.DeleteStage
*/
@Override
public DeleteStageResponse deleteStage(DeleteStageRequest deleteStageRequest) throws UnauthorizedException,
NotFoundException, TooManyRequestsException, BadRequestException, SdkServiceException, SdkClientException,
APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeleteStageResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(deleteStageRequest).withMarshaller(new DeleteStageRequestMarshaller(protocolFactory)));
}
/**
*
* Deletes a usage plan of a given plan Id.
*
*
* @param deleteUsagePlanRequest
* The DELETE request to delete a usage plan of a given plan Id.
* @return Result of the DeleteUsagePlan operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.DeleteUsagePlan
*/
@Override
public DeleteUsagePlanResponse deleteUsagePlan(DeleteUsagePlanRequest deleteUsagePlanRequest) throws UnauthorizedException,
TooManyRequestsException, BadRequestException, NotFoundException, SdkServiceException, SdkClientException,
APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeleteUsagePlanResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(deleteUsagePlanRequest).withMarshaller(new DeleteUsagePlanRequestMarshaller(protocolFactory)));
}
/**
*
* Deletes a usage plan key and remove the underlying API key from the associated usage plan.
*
*
* @param deleteUsagePlanKeyRequest
* The DELETE request to delete a usage plan key and remove the underlying API key from the associated usage
* plan.
* @return Result of the DeleteUsagePlanKey operation returned by the service.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.DeleteUsagePlanKey
*/
@Override
public DeleteUsagePlanKeyResponse deleteUsagePlanKey(DeleteUsagePlanKeyRequest deleteUsagePlanKeyRequest)
throws BadRequestException, ConflictException, UnauthorizedException, NotFoundException, TooManyRequestsException,
SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeleteUsagePlanKeyResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(deleteUsagePlanKeyRequest).withMarshaller(new DeleteUsagePlanKeyRequestMarshaller(protocolFactory)));
}
/**
*
* Flushes all authorizer cache entries on a stage.
*
*
* @param flushStageAuthorizersCacheRequest
* Request to flush authorizer cache entries on a specified stage.
* @return Result of the FlushStageAuthorizersCache operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.FlushStageAuthorizersCache
*/
@Override
public FlushStageAuthorizersCacheResponse flushStageAuthorizersCache(
FlushStageAuthorizersCacheRequest flushStageAuthorizersCacheRequest) throws UnauthorizedException, NotFoundException,
BadRequestException, TooManyRequestsException, SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new FlushStageAuthorizersCacheResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler
.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(flushStageAuthorizersCacheRequest)
.withMarshaller(new FlushStageAuthorizersCacheRequestMarshaller(protocolFactory)));
}
/**
*
* Flushes a stage's cache.
*
*
* @param flushStageCacheRequest
* Requests Amazon API Gateway to flush a stage's cache.
* @return Result of the FlushStageCache operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.FlushStageCache
*/
@Override
public FlushStageCacheResponse flushStageCache(FlushStageCacheRequest flushStageCacheRequest) throws UnauthorizedException,
NotFoundException, BadRequestException, TooManyRequestsException, SdkServiceException, SdkClientException,
APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new FlushStageCacheResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(flushStageCacheRequest).withMarshaller(new FlushStageCacheRequestMarshaller(protocolFactory)));
}
/**
*
* Generates a ClientCertificate resource.
*
*
* @param generateClientCertificateRequest
* A request to generate a ClientCertificate resource.
* @return Result of the GenerateClientCertificate operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws LimitExceededException
* The request exceeded the rate limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GenerateClientCertificate
*/
@Override
public GenerateClientCertificateResponse generateClientCertificate(
GenerateClientCertificateRequest generateClientCertificateRequest) throws UnauthorizedException,
TooManyRequestsException, LimitExceededException, SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GenerateClientCertificateResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler
.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(generateClientCertificateRequest)
.withMarshaller(new GenerateClientCertificateRequestMarshaller(protocolFactory)));
}
/**
*
* Gets information about the current Account resource.
*
*
* @param getAccountRequest
* Requests Amazon API Gateway to get information about the current Account resource.
* @return Result of the GetAccount operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetAccount
*/
@Override
public GetAccountResponse getAccount(GetAccountRequest getAccountRequest) throws UnauthorizedException, NotFoundException,
TooManyRequestsException, SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetAccountResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler).withInput(getAccountRequest)
.withMarshaller(new GetAccountRequestMarshaller(protocolFactory)));
}
/**
*
* Gets information about the current ApiKey resource.
*
*
* @param getApiKeyRequest
* A request to get information about the current ApiKey resource.
* @return Result of the GetApiKey operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetApiKey
*/
@Override
public GetApiKeyResponse getApiKey(GetApiKeyRequest getApiKeyRequest) throws UnauthorizedException, NotFoundException,
TooManyRequestsException, SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetApiKeyResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler).withInput(getApiKeyRequest)
.withMarshaller(new GetApiKeyRequestMarshaller(protocolFactory)));
}
/**
*
* Gets information about the current ApiKeys resource.
*
*
* @param getApiKeysRequest
* A request to get information about the current ApiKeys resource.
* @return Result of the GetApiKeys operation returned by the service.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetApiKeys
*/
@Override
public GetApiKeysResponse getApiKeys(GetApiKeysRequest getApiKeysRequest) throws BadRequestException, UnauthorizedException,
TooManyRequestsException, SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetApiKeysResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler).withInput(getApiKeysRequest)
.withMarshaller(new GetApiKeysRequestMarshaller(protocolFactory)));
}
/**
*
* Describe an existing Authorizer resource.
*
*
*
* @param getAuthorizerRequest
* Request to describe an existing Authorizer resource.
* @return Result of the GetAuthorizer operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetAuthorizer
*/
@Override
public GetAuthorizerResponse getAuthorizer(GetAuthorizerRequest getAuthorizerRequest) throws UnauthorizedException,
NotFoundException, TooManyRequestsException, SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetAuthorizerResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(getAuthorizerRequest).withMarshaller(new GetAuthorizerRequestMarshaller(protocolFactory)));
}
/**
*
* Describe an existing Authorizers resource.
*
*
*
* @param getAuthorizersRequest
* Request to describe an existing Authorizers resource.
* @return Result of the GetAuthorizers operation returned by the service.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetAuthorizers
*/
@Override
public GetAuthorizersResponse getAuthorizers(GetAuthorizersRequest getAuthorizersRequest) throws BadRequestException,
UnauthorizedException, NotFoundException, TooManyRequestsException, SdkServiceException, SdkClientException,
APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetAuthorizersResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(getAuthorizersRequest).withMarshaller(new GetAuthorizersRequestMarshaller(protocolFactory)));
}
/**
*
* Describe a BasePathMapping resource.
*
*
* @param getBasePathMappingRequest
* Request to describe a BasePathMapping resource.
* @return Result of the GetBasePathMapping operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetBasePathMapping
*/
@Override
public GetBasePathMappingResponse getBasePathMapping(GetBasePathMappingRequest getBasePathMappingRequest)
throws UnauthorizedException, NotFoundException, TooManyRequestsException, SdkServiceException, SdkClientException,
APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetBasePathMappingResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(getBasePathMappingRequest).withMarshaller(new GetBasePathMappingRequestMarshaller(protocolFactory)));
}
/**
*
* Represents a collection of BasePathMapping resources.
*
*
* @param getBasePathMappingsRequest
* A request to get information about a collection of BasePathMapping resources.
* @return Result of the GetBasePathMappings operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetBasePathMappings
*/
@Override
public GetBasePathMappingsResponse getBasePathMappings(GetBasePathMappingsRequest getBasePathMappingsRequest)
throws UnauthorizedException, NotFoundException, TooManyRequestsException, SdkServiceException, SdkClientException,
APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetBasePathMappingsResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(getBasePathMappingsRequest).withMarshaller(new GetBasePathMappingsRequestMarshaller(protocolFactory)));
}
/**
*
* Gets information about the current ClientCertificate resource.
*
*
* @param getClientCertificateRequest
* A request to get information about the current ClientCertificate resource.
* @return Result of the GetClientCertificate operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetClientCertificate
*/
@Override
public GetClientCertificateResponse getClientCertificate(GetClientCertificateRequest getClientCertificateRequest)
throws UnauthorizedException, NotFoundException, TooManyRequestsException, SdkServiceException, SdkClientException,
APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetClientCertificateResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(getClientCertificateRequest)
.withMarshaller(new GetClientCertificateRequestMarshaller(protocolFactory)));
}
/**
*
* Gets a collection of ClientCertificate resources.
*
*
* @param getClientCertificatesRequest
* A request to get information about a collection of ClientCertificate resources.
* @return Result of the GetClientCertificates operation returned by the service.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetClientCertificates
*/
@Override
public GetClientCertificatesResponse getClientCertificates(GetClientCertificatesRequest getClientCertificatesRequest)
throws BadRequestException, UnauthorizedException, TooManyRequestsException, SdkServiceException, SdkClientException,
APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetClientCertificatesResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(getClientCertificatesRequest)
.withMarshaller(new GetClientCertificatesRequestMarshaller(protocolFactory)));
}
/**
*
* Gets information about a Deployment resource.
*
*
* @param getDeploymentRequest
* Requests Amazon API Gateway to get information about a Deployment resource.
* @return Result of the GetDeployment operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws ServiceUnavailableException
* The requested service is not available. For details see the accompanying error message. Retry after the
* specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetDeployment
*/
@Override
public GetDeploymentResponse getDeployment(GetDeploymentRequest getDeploymentRequest) throws UnauthorizedException,
NotFoundException, TooManyRequestsException, ServiceUnavailableException, SdkServiceException, SdkClientException,
APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetDeploymentResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(getDeploymentRequest).withMarshaller(new GetDeploymentRequestMarshaller(protocolFactory)));
}
/**
*
* Gets information about a Deployments collection.
*
*
* @param getDeploymentsRequest
* Requests Amazon API Gateway to get information about a Deployments collection.
* @return Result of the GetDeployments operation returned by the service.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws ServiceUnavailableException
* The requested service is not available. For details see the accompanying error message. Retry after the
* specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetDeployments
*/
@Override
public GetDeploymentsResponse getDeployments(GetDeploymentsRequest getDeploymentsRequest) throws BadRequestException,
UnauthorizedException, TooManyRequestsException, ServiceUnavailableException, SdkServiceException,
SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetDeploymentsResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(getDeploymentsRequest).withMarshaller(new GetDeploymentsRequestMarshaller(protocolFactory)));
}
/**
* Invokes the GetDocumentationPart operation.
*
* @param getDocumentationPartRequest
* Gets a specified documentation part of a given API.
* @return Result of the GetDocumentationPart operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetDocumentationPart
*/
@Override
public GetDocumentationPartResponse getDocumentationPart(GetDocumentationPartRequest getDocumentationPartRequest)
throws UnauthorizedException, NotFoundException, TooManyRequestsException, SdkServiceException, SdkClientException,
APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetDocumentationPartResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(getDocumentationPartRequest)
.withMarshaller(new GetDocumentationPartRequestMarshaller(protocolFactory)));
}
/**
* Invokes the GetDocumentationParts operation.
*
* @param getDocumentationPartsRequest
* Gets the documentation parts of an API. The result may be filtered by the type, name, or path of API
* entities (targets).
* @return Result of the GetDocumentationParts operation returned by the service.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetDocumentationParts
*/
@Override
public GetDocumentationPartsResponse getDocumentationParts(GetDocumentationPartsRequest getDocumentationPartsRequest)
throws BadRequestException, UnauthorizedException, NotFoundException, TooManyRequestsException, SdkServiceException,
SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetDocumentationPartsResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(getDocumentationPartsRequest)
.withMarshaller(new GetDocumentationPartsRequestMarshaller(protocolFactory)));
}
/**
* Invokes the GetDocumentationVersion operation.
*
* @param getDocumentationVersionRequest
* Gets a documentation snapshot of an API.
* @return Result of the GetDocumentationVersion operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetDocumentationVersion
*/
@Override
public GetDocumentationVersionResponse getDocumentationVersion(GetDocumentationVersionRequest getDocumentationVersionRequest)
throws UnauthorizedException, NotFoundException, TooManyRequestsException, SdkServiceException, SdkClientException,
APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetDocumentationVersionResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(getDocumentationVersionRequest)
.withMarshaller(new GetDocumentationVersionRequestMarshaller(protocolFactory)));
}
/**
* Invokes the GetDocumentationVersions operation.
*
* @param getDocumentationVersionsRequest
* Gets the documentation versions of an API.
* @return Result of the GetDocumentationVersions operation returned by the service.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetDocumentationVersions
*/
@Override
public GetDocumentationVersionsResponse getDocumentationVersions(
GetDocumentationVersionsRequest getDocumentationVersionsRequest) throws BadRequestException, UnauthorizedException,
NotFoundException, TooManyRequestsException, SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetDocumentationVersionsResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler
.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(getDocumentationVersionsRequest)
.withMarshaller(new GetDocumentationVersionsRequestMarshaller(protocolFactory)));
}
/**
*
* Represents a domain name that is contained in a simpler, more intuitive URL that can be called.
*
*
* @param getDomainNameRequest
* Request to get the name of a DomainName resource.
* @return Result of the GetDomainName operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws ServiceUnavailableException
* The requested service is not available. For details see the accompanying error message. Retry after the
* specified time period.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetDomainName
*/
@Override
public GetDomainNameResponse getDomainName(GetDomainNameRequest getDomainNameRequest) throws UnauthorizedException,
NotFoundException, ServiceUnavailableException, TooManyRequestsException, SdkServiceException, SdkClientException,
APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetDomainNameResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(getDomainNameRequest).withMarshaller(new GetDomainNameRequestMarshaller(protocolFactory)));
}
/**
*
* Represents a collection of DomainName resources.
*
*
* @param getDomainNamesRequest
* Request to describe a collection of DomainName resources.
* @return Result of the GetDomainNames operation returned by the service.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetDomainNames
*/
@Override
public GetDomainNamesResponse getDomainNames(GetDomainNamesRequest getDomainNamesRequest) throws BadRequestException,
UnauthorizedException, TooManyRequestsException, SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetDomainNamesResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(getDomainNamesRequest).withMarshaller(new GetDomainNamesRequestMarshaller(protocolFactory)));
}
/**
*
* Exports a deployed version of a RestApi in a specified format.
*
*
* @param getExportRequest
* Request a new export of a RestApi for a particular Stage.
* @return Result of the GetExport operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetExport
*/
@Override
public GetExportResponse getExport(GetExportRequest getExportRequest) throws UnauthorizedException, NotFoundException,
BadRequestException, ConflictException, TooManyRequestsException, SdkServiceException, SdkClientException,
APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(false).withHasStreamingSuccessResponse(false),
new GetExportResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler).withInput(getExportRequest)
.withMarshaller(new GetExportRequestMarshaller(protocolFactory)));
}
/**
*
* Gets a GatewayResponse of a specified response type on the given RestApi.
*
*
* @param getGatewayResponseRequest
* Gets a GatewayResponse of a specified response type on the given RestApi.
* @return Result of the GetGatewayResponse operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetGatewayResponse
*/
@Override
public GetGatewayResponseResponse getGatewayResponse(GetGatewayResponseRequest getGatewayResponseRequest)
throws UnauthorizedException, NotFoundException, TooManyRequestsException, SdkServiceException, SdkClientException,
APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetGatewayResponseResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(getGatewayResponseRequest).withMarshaller(new GetGatewayResponseRequestMarshaller(protocolFactory)));
}
/**
*
* Gets the GatewayResponses collection on the given RestApi. If an API developer has not added any
* definitions for gateway responses, the result will be the Amazon API Gateway-generated default
* GatewayResponses collection for the supported response types.
*
*
* @param getGatewayResponsesRequest
* Gets the GatewayResponses collection on the given RestApi. If an API developer has not added
* any definitions for gateway responses, the result will be the Amazon API Gateway-generated default
* GatewayResponses collection for the supported response types.
* @return Result of the GetGatewayResponses operation returned by the service.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetGatewayResponses
*/
@Override
public GetGatewayResponsesResponse getGatewayResponses(GetGatewayResponsesRequest getGatewayResponsesRequest)
throws BadRequestException, UnauthorizedException, NotFoundException, TooManyRequestsException, SdkServiceException,
SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetGatewayResponsesResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(getGatewayResponsesRequest).withMarshaller(new GetGatewayResponsesRequestMarshaller(protocolFactory)));
}
/**
*
* Represents a get integration.
*
*
* @param getIntegrationRequest
* Represents a get integration request.
* @return Result of the GetIntegration operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetIntegration
*/
@Override
public GetIntegrationResponse getIntegration(GetIntegrationRequest getIntegrationRequest) throws UnauthorizedException,
NotFoundException, TooManyRequestsException, SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetIntegrationResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(getIntegrationRequest).withMarshaller(new GetIntegrationRequestMarshaller(protocolFactory)));
}
/**
*
* Represents a get integration response.
*
*
* @param getIntegrationResponseRequest
* Represents a get integration response request.
* @return Result of the GetIntegrationResponse operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetIntegrationResponse
*/
@Override
public GetIntegrationResponseResponse getIntegrationResponse(GetIntegrationResponseRequest getIntegrationResponseRequest)
throws UnauthorizedException, NotFoundException, TooManyRequestsException, SdkServiceException, SdkClientException,
APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetIntegrationResponseResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(getIntegrationResponseRequest)
.withMarshaller(new GetIntegrationResponseRequestMarshaller(protocolFactory)));
}
/**
*
* Describe an existing Method resource.
*
*
* @param getMethodRequest
* Request to describe an existing Method resource.
* @return Result of the GetMethod operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetMethod
*/
@Override
public GetMethodResponse getMethod(GetMethodRequest getMethodRequest) throws UnauthorizedException, NotFoundException,
TooManyRequestsException, SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetMethodResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler).withInput(getMethodRequest)
.withMarshaller(new GetMethodRequestMarshaller(protocolFactory)));
}
/**
*
* Describes a MethodResponse resource.
*
*
* @param getMethodResponseRequest
* Request to describe a MethodResponse resource.
* @return Result of the GetMethodResponse operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetMethodResponse
*/
@Override
public GetMethodResponseResponse getMethodResponse(GetMethodResponseRequest getMethodResponseRequest)
throws UnauthorizedException, NotFoundException, TooManyRequestsException, SdkServiceException, SdkClientException,
APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetMethodResponseResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(getMethodResponseRequest).withMarshaller(new GetMethodResponseRequestMarshaller(protocolFactory)));
}
/**
*
* Describes an existing model defined for a RestApi resource.
*
*
* @param getModelRequest
* Request to list information about a model in an existing RestApi resource.
* @return Result of the GetModel operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetModel
*/
@Override
public GetModelResponse getModel(GetModelRequest getModelRequest) throws UnauthorizedException, NotFoundException,
TooManyRequestsException, SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata()
.withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetModelResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler).withInput(getModelRequest)
.withMarshaller(new GetModelRequestMarshaller(protocolFactory)));
}
/**
*
* Generates a sample mapping template that can be used to transform a payload into the structure of a model.
*
*
* @param getModelTemplateRequest
* Request to generate a sample mapping template used to transform the payload.
* @return Result of the GetModelTemplate operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetModelTemplate
*/
@Override
public GetModelTemplateResponse getModelTemplate(GetModelTemplateRequest getModelTemplateRequest)
throws UnauthorizedException, NotFoundException, BadRequestException, TooManyRequestsException, SdkServiceException,
SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetModelTemplateResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(getModelTemplateRequest).withMarshaller(new GetModelTemplateRequestMarshaller(protocolFactory)));
}
/**
*
* Describes existing Models defined for a RestApi resource.
*
*
* @param getModelsRequest
* Request to list existing Models defined for a RestApi resource.
* @return Result of the GetModels operation returned by the service.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetModels
*/
@Override
public GetModelsResponse getModels(GetModelsRequest getModelsRequest) throws BadRequestException, UnauthorizedException,
NotFoundException, TooManyRequestsException, SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetModelsResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler).withInput(getModelsRequest)
.withMarshaller(new GetModelsRequestMarshaller(protocolFactory)));
}
/**
*
* Gets a RequestValidator of a given RestApi.
*
*
* @param getRequestValidatorRequest
* Gets a RequestValidator of a given RestApi.
* @return Result of the GetRequestValidator operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetRequestValidator
*/
@Override
public GetRequestValidatorResponse getRequestValidator(GetRequestValidatorRequest getRequestValidatorRequest)
throws UnauthorizedException, NotFoundException, TooManyRequestsException, SdkServiceException, SdkClientException,
APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetRequestValidatorResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(getRequestValidatorRequest).withMarshaller(new GetRequestValidatorRequestMarshaller(protocolFactory)));
}
/**
*
* Gets the RequestValidators collection of a given RestApi.
*
*
* @param getRequestValidatorsRequest
* Gets the RequestValidators collection of a given RestApi.
* @return Result of the GetRequestValidators operation returned by the service.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetRequestValidators
*/
@Override
public GetRequestValidatorsResponse getRequestValidators(GetRequestValidatorsRequest getRequestValidatorsRequest)
throws BadRequestException, UnauthorizedException, NotFoundException, TooManyRequestsException, SdkServiceException,
SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetRequestValidatorsResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(getRequestValidatorsRequest)
.withMarshaller(new GetRequestValidatorsRequestMarshaller(protocolFactory)));
}
/**
*
* Lists information about a resource.
*
*
* @param getResourceRequest
* Request to list information about a resource.
* @return Result of the GetResource operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetResource
*/
@Override
public GetResourceResponse getResource(GetResourceRequest getResourceRequest) throws UnauthorizedException,
NotFoundException, TooManyRequestsException, SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetResourceResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(getResourceRequest).withMarshaller(new GetResourceRequestMarshaller(protocolFactory)));
}
/**
*
* Lists information about a collection of Resource resources.
*
*
* @param getResourcesRequest
* Request to list information about a collection of resources.
* @return Result of the GetResources operation returned by the service.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetResources
*/
@Override
public GetResourcesResponse getResources(GetResourcesRequest getResourcesRequest) throws BadRequestException,
UnauthorizedException, NotFoundException, TooManyRequestsException, SdkServiceException, SdkClientException,
APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetResourcesResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(getResourcesRequest).withMarshaller(new GetResourcesRequestMarshaller(protocolFactory)));
}
/**
*
* Lists the RestApi resource in the collection.
*
*
* @param getRestApiRequest
* The GET request to list an existing RestApi defined for your collection.
* @return Result of the GetRestApi operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetRestApi
*/
@Override
public GetRestApiResponse getRestApi(GetRestApiRequest getRestApiRequest) throws UnauthorizedException, NotFoundException,
TooManyRequestsException, SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetRestApiResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler).withInput(getRestApiRequest)
.withMarshaller(new GetRestApiRequestMarshaller(protocolFactory)));
}
/**
*
* Lists the RestApis resources for your collection.
*
*
* @param getRestApisRequest
* The GET request to list existing RestApis defined for your collection.
* @return Result of the GetRestApis operation returned by the service.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetRestApis
*/
@Override
public GetRestApisResponse getRestApis(GetRestApisRequest getRestApisRequest) throws BadRequestException,
UnauthorizedException, TooManyRequestsException, SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetRestApisResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(getRestApisRequest).withMarshaller(new GetRestApisRequestMarshaller(protocolFactory)));
}
/**
*
* Generates a client SDK for a RestApi and Stage.
*
*
* @param getSdkRequest
* Request a new generated client SDK for a RestApi and Stage.
* @return Result of the GetSdk operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetSdk
*/
@Override
public GetSdkResponse getSdk(GetSdkRequest getSdkRequest) throws UnauthorizedException, NotFoundException,
BadRequestException, ConflictException, TooManyRequestsException, SdkServiceException, SdkClientException,
APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata()
.withPayloadJson(false).withHasStreamingSuccessResponse(false), new GetSdkResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler).withInput(getSdkRequest)
.withMarshaller(new GetSdkRequestMarshaller(protocolFactory)));
}
/**
* Invokes the GetSdkType operation.
*
* @param getSdkTypeRequest
* Get an SdkType instance.
* @return Result of the GetSdkType operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetSdkType
*/
@Override
public GetSdkTypeResponse getSdkType(GetSdkTypeRequest getSdkTypeRequest) throws UnauthorizedException, NotFoundException,
TooManyRequestsException, SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetSdkTypeResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler).withInput(getSdkTypeRequest)
.withMarshaller(new GetSdkTypeRequestMarshaller(protocolFactory)));
}
/**
* Invokes the GetSdkTypes operation.
*
* @param getSdkTypesRequest
* Get the SdkTypes collection.
* @return Result of the GetSdkTypes operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetSdkTypes
*/
@Override
public GetSdkTypesResponse getSdkTypes(GetSdkTypesRequest getSdkTypesRequest) throws UnauthorizedException,
TooManyRequestsException, SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetSdkTypesResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(getSdkTypesRequest).withMarshaller(new GetSdkTypesRequestMarshaller(protocolFactory)));
}
/**
*
* Gets information about a Stage resource.
*
*
* @param getStageRequest
* Requests Amazon API Gateway to get information about a Stage resource.
* @return Result of the GetStage operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetStage
*/
@Override
public GetStageResponse getStage(GetStageRequest getStageRequest) throws UnauthorizedException, NotFoundException,
TooManyRequestsException, SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata()
.withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetStageResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler).withInput(getStageRequest)
.withMarshaller(new GetStageRequestMarshaller(protocolFactory)));
}
/**
*
* Gets information about one or more Stage resources.
*
*
* @param getStagesRequest
* Requests Amazon API Gateway to get information about one or more Stage resources.
* @return Result of the GetStages operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetStages
*/
@Override
public GetStagesResponse getStages(GetStagesRequest getStagesRequest) throws UnauthorizedException, NotFoundException,
TooManyRequestsException, SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetStagesResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler).withInput(getStagesRequest)
.withMarshaller(new GetStagesRequestMarshaller(protocolFactory)));
}
/**
*
* Gets the usage data of a usage plan in a specified time interval.
*
*
* @param getUsageRequest
* The GET request to get the usage data of a usage plan in a specified time interval.
* @return Result of the GetUsage operation returned by the service.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetUsage
*/
@Override
public GetUsageResponse getUsage(GetUsageRequest getUsageRequest) throws BadRequestException, UnauthorizedException,
NotFoundException, TooManyRequestsException, SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata()
.withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetUsageResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler).withInput(getUsageRequest)
.withMarshaller(new GetUsageRequestMarshaller(protocolFactory)));
}
/**
*
* Gets a usage plan of a given plan identifier.
*
*
* @param getUsagePlanRequest
* The GET request to get a usage plan of a given plan identifier.
* @return Result of the GetUsagePlan operation returned by the service.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetUsagePlan
*/
@Override
public GetUsagePlanResponse getUsagePlan(GetUsagePlanRequest getUsagePlanRequest) throws BadRequestException,
UnauthorizedException, NotFoundException, TooManyRequestsException, SdkServiceException, SdkClientException,
APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetUsagePlanResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(getUsagePlanRequest).withMarshaller(new GetUsagePlanRequestMarshaller(protocolFactory)));
}
/**
*
* Gets a usage plan key of a given key identifier.
*
*
* @param getUsagePlanKeyRequest
* The GET request to get a usage plan key of a given key identifier.
* @return Result of the GetUsagePlanKey operation returned by the service.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetUsagePlanKey
*/
@Override
public GetUsagePlanKeyResponse getUsagePlanKey(GetUsagePlanKeyRequest getUsagePlanKeyRequest) throws BadRequestException,
UnauthorizedException, NotFoundException, TooManyRequestsException, SdkServiceException, SdkClientException,
APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetUsagePlanKeyResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(getUsagePlanKeyRequest).withMarshaller(new GetUsagePlanKeyRequestMarshaller(protocolFactory)));
}
/**
*
* Gets all the usage plan keys representing the API keys added to a specified usage plan.
*
*
* @param getUsagePlanKeysRequest
* The GET request to get all the usage plan keys representing the API keys added to a specified usage plan.
* @return Result of the GetUsagePlanKeys operation returned by the service.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetUsagePlanKeys
*/
@Override
public GetUsagePlanKeysResponse getUsagePlanKeys(GetUsagePlanKeysRequest getUsagePlanKeysRequest) throws BadRequestException,
UnauthorizedException, NotFoundException, TooManyRequestsException, SdkServiceException, SdkClientException,
APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetUsagePlanKeysResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(getUsagePlanKeysRequest).withMarshaller(new GetUsagePlanKeysRequestMarshaller(protocolFactory)));
}
/**
*
* Gets all the usage plans of the caller's account.
*
*
* @param getUsagePlansRequest
* The GET request to get all the usage plans of the caller's account.
* @return Result of the GetUsagePlans operation returned by the service.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.GetUsagePlans
*/
@Override
public GetUsagePlansResponse getUsagePlans(GetUsagePlansRequest getUsagePlansRequest) throws BadRequestException,
UnauthorizedException, TooManyRequestsException, ConflictException, NotFoundException, SdkServiceException,
SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetUsagePlansResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(getUsagePlansRequest).withMarshaller(new GetUsagePlansRequestMarshaller(protocolFactory)));
}
/**
*
* Import API keys from an external source, such as a CSV-formatted file.
*
*
* @param importApiKeysRequest
* The POST request to import API keys from an external source, such as a CSV-formatted file.
* @return Result of the ImportApiKeys operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws LimitExceededException
* The request exceeded the rate limit. Retry after the specified time period.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.ImportApiKeys
*/
@Override
public ImportApiKeysResponse importApiKeys(ImportApiKeysRequest importApiKeysRequest) throws UnauthorizedException,
NotFoundException, TooManyRequestsException, LimitExceededException, BadRequestException, ConflictException,
SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new ImportApiKeysResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(importApiKeysRequest).withMarshaller(new ImportApiKeysRequestMarshaller(protocolFactory)));
}
/**
* Invokes the ImportDocumentationParts operation.
*
* @param importDocumentationPartsRequest
* Import documentation parts from an external (e.g., Swagger) definition file.
* @return Result of the ImportDocumentationParts operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws LimitExceededException
* The request exceeded the rate limit. Retry after the specified time period.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.ImportDocumentationParts
*/
@Override
public ImportDocumentationPartsResponse importDocumentationParts(
ImportDocumentationPartsRequest importDocumentationPartsRequest) throws UnauthorizedException, NotFoundException,
BadRequestException, LimitExceededException, TooManyRequestsException, SdkServiceException, SdkClientException,
APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new ImportDocumentationPartsResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler
.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(importDocumentationPartsRequest)
.withMarshaller(new ImportDocumentationPartsRequestMarshaller(protocolFactory)));
}
/**
*
* A feature of the Amazon API Gateway control service for creating a new API from an external API definition file.
*
*
* @param importRestApiRequest
* A POST request to import an API to Amazon API Gateway using an input of an API definition file.
* @return Result of the ImportRestApi operation returned by the service.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws LimitExceededException
* The request exceeded the rate limit. Retry after the specified time period.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.ImportRestApi
*/
@Override
public ImportRestApiResponse importRestApi(ImportRestApiRequest importRestApiRequest) throws UnauthorizedException,
LimitExceededException, BadRequestException, TooManyRequestsException, ConflictException, SdkServiceException,
SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new ImportRestApiResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams()
.withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
.withInput(importRestApiRequest).withMarshaller(new ImportRestApiRequestMarshaller(protocolFactory)));
}
/**
*
* Creates a customization of a GatewayResponse of a specified response type and status code on the given
* RestApi.
*
*
* @param putGatewayResponseRequest
* Creates a customization of a GatewayResponse of a specified response type and status code on the
* given RestApi.
* @return Result of the PutGatewayResponse operation returned by the service.
* @throws BadRequestException
* The submitted request is not valid, for example, the input is incomplete or incorrect. See the
* accompanying error message for details.
* @throws UnauthorizedException
* The request is denied because the caller has insufficient permissions.
* @throws NotFoundException
* The requested resource is not found. Make sure that the request URI is correct.
* @throws LimitExceededException
* The request exceeded the rate limit. Retry after the specified time period.
* @throws TooManyRequestsException
* The request has reached its throttling limit. Retry after the specified time period.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws APIGatewayException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample APIGatewayClient.PutGatewayResponse
*/
@Override
public PutGatewayResponseResponse putGatewayResponse(PutGatewayResponseRequest putGatewayResponseRequest)
throws BadRequestException, UnauthorizedException, NotFoundException, LimitExceededException,
TooManyRequestsException, SdkServiceException, SdkClientException, APIGatewayException {
HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new PutGatewayResponseResponseUnmarshaller());
HttpResponseHandler errorResponseHandler = createErrorResponseHandler();
return clientHandler.execute(new ClientExecutionParams