Interface AmazonApiGateway
-
- All Known Subinterfaces:
AmazonApiGatewayAsync
- All Known Implementing Classes:
AbstractAmazonApiGateway,AbstractAmazonApiGatewayAsync,AmazonApiGatewayAsyncClient,AmazonApiGatewayClient
public interface AmazonApiGatewayInterface for accessing Amazon API Gateway.Amazon API Gateway Amazon API Gateway helps developers deliver robust, secure and scalable mobile and web application backends. Amazon API Gateway allows developers to securely connect mobile and web applications to APIs that run on AWS Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of AWS.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateApiKeyResultcreateApiKey(CreateApiKeyRequest createApiKeyRequest)Create an ApiKey resource.CreateAuthorizerResultcreateAuthorizer(CreateAuthorizerRequest createAuthorizerRequest)Adds a new Authorizer resource to an existing RestApi resource.CreateBasePathMappingResultcreateBasePathMapping(CreateBasePathMappingRequest createBasePathMappingRequest)Creates a new BasePathMapping resource.CreateDeploymentResultcreateDeployment(CreateDeploymentRequest createDeploymentRequest)Creates a Deployment resource, which makes a specified RestApi callable over the internet.CreateDomainNameResultcreateDomainName(CreateDomainNameRequest createDomainNameRequest)Creates a new domain name.CreateModelResultcreateModel(CreateModelRequest createModelRequest)CreateResourceResultcreateResource(CreateResourceRequest createResourceRequest)Creates a Resource resource.CreateRestApiResultcreateRestApi(CreateRestApiRequest createRestApiRequest)Creates a new RestApi resource.CreateStageResultcreateStage(CreateStageRequest createStageRequest)Creates a new Stage resource that references a pre-existing Deployment for the API.DeleteApiKeyResultdeleteApiKey(DeleteApiKeyRequest deleteApiKeyRequest)Deletes the ApiKey resource.DeleteAuthorizerResultdeleteAuthorizer(DeleteAuthorizerRequest deleteAuthorizerRequest)Deletes an existing Authorizer resource.DeleteBasePathMappingResultdeleteBasePathMapping(DeleteBasePathMappingRequest deleteBasePathMappingRequest)Deletes the BasePathMapping resource.DeleteClientCertificateResultdeleteClientCertificate(DeleteClientCertificateRequest deleteClientCertificateRequest)Deletes the ClientCertificate resource.DeleteDeploymentResultdeleteDeployment(DeleteDeploymentRequest deleteDeploymentRequest)Deletes a Deployment resource.DeleteDomainNameResultdeleteDomainName(DeleteDomainNameRequest deleteDomainNameRequest)Deletes the DomainName resource.DeleteIntegrationResultdeleteIntegration(DeleteIntegrationRequest deleteIntegrationRequest)Represents a delete integration.DeleteIntegrationResponseResultdeleteIntegrationResponse(DeleteIntegrationResponseRequest deleteIntegrationResponseRequest)Represents a delete integration response.DeleteMethodResultdeleteMethod(DeleteMethodRequest deleteMethodRequest)Deletes an existing Method resource.DeleteMethodResponseResultdeleteMethodResponse(DeleteMethodResponseRequest deleteMethodResponseRequest)Deletes an existing MethodResponse resource.DeleteModelResultdeleteModel(DeleteModelRequest deleteModelRequest)Deletes a model.DeleteResourceResultdeleteResource(DeleteResourceRequest deleteResourceRequest)Deletes a Resource resource.DeleteRestApiResultdeleteRestApi(DeleteRestApiRequest deleteRestApiRequest)Deletes the specified API.DeleteStageResultdeleteStage(DeleteStageRequest deleteStageRequest)Deletes a Stage resource.FlushStageAuthorizersCacheResultflushStageAuthorizersCache(FlushStageAuthorizersCacheRequest flushStageAuthorizersCacheRequest)Flushes all authorizer cache entries on a stage.FlushStageCacheResultflushStageCache(FlushStageCacheRequest flushStageCacheRequest)Flushes a stage's cache.GenerateClientCertificateResultgenerateClientCertificate(GenerateClientCertificateRequest generateClientCertificateRequest)Generates a ClientCertificate resource.GetAccountResultgetAccount(GetAccountRequest getAccountRequest)Gets information about the current Account resource.GetApiKeyResultgetApiKey(GetApiKeyRequest getApiKeyRequest)Gets information about the current ApiKey resource.GetApiKeysResultgetApiKeys(GetApiKeysRequest getApiKeysRequest)Gets information about the current ApiKeys resource.GetAuthorizerResultgetAuthorizer(GetAuthorizerRequest getAuthorizerRequest)Describe an existing Authorizer resource.GetAuthorizersResultgetAuthorizers(GetAuthorizersRequest getAuthorizersRequest)Describe an existing Authorizers resource.GetBasePathMappingResultgetBasePathMapping(GetBasePathMappingRequest getBasePathMappingRequest)Describe a BasePathMapping resource.GetBasePathMappingsResultgetBasePathMappings(GetBasePathMappingsRequest getBasePathMappingsRequest)Represents a collection of BasePathMapping resources.ResponseMetadatagetCachedResponseMetadata(AmazonWebServiceRequest request)Returns additional metadata for a previously executed successful request, typically used for debugging issues where a service isn't acting as expected.GetClientCertificateResultgetClientCertificate(GetClientCertificateRequest getClientCertificateRequest)Gets information about the current ClientCertificate resource.GetClientCertificatesResultgetClientCertificates(GetClientCertificatesRequest getClientCertificatesRequest)Gets a collection of ClientCertificate resources.GetDeploymentResultgetDeployment(GetDeploymentRequest getDeploymentRequest)Gets information about a Deployment resource.GetDeploymentsResultgetDeployments(GetDeploymentsRequest getDeploymentsRequest)Gets information about a Deployments collection.GetDomainNameResultgetDomainName(GetDomainNameRequest getDomainNameRequest)Represents a domain name that is contained in a simpler, more intuitive URL that can be called.GetDomainNamesResultgetDomainNames(GetDomainNamesRequest getDomainNamesRequest)Represents a collection of DomainName resources.GetExportResultgetExport(GetExportRequest getExportRequest)Exports a deployed version of a RestApi in a specified format.GetIntegrationResultgetIntegration(GetIntegrationRequest getIntegrationRequest)Represents a get integration.GetIntegrationResponseResultgetIntegrationResponse(GetIntegrationResponseRequest getIntegrationResponseRequest)Represents a get integration response.GetMethodResultgetMethod(GetMethodRequest getMethodRequest)Describe an existing Method resource.GetMethodResponseResultgetMethodResponse(GetMethodResponseRequest getMethodResponseRequest)Describes a MethodResponse resource.GetModelResultgetModel(GetModelRequest getModelRequest)Describes an existing model defined for a RestApi resource.GetModelsResultgetModels(GetModelsRequest getModelsRequest)GetModelTemplateResultgetModelTemplate(GetModelTemplateRequest getModelTemplateRequest)Generates a sample mapping template that can be used to transform a payload into the structure of a model.GetResourceResultgetResource(GetResourceRequest getResourceRequest)Lists information about a resource.GetResourcesResultgetResources(GetResourcesRequest getResourcesRequest)Lists information about a collection of Resource resources.GetRestApiResultgetRestApi(GetRestApiRequest getRestApiRequest)Lists the RestApi resource in the collection.GetRestApisResultgetRestApis(GetRestApisRequest getRestApisRequest)Lists the RestApis resources for your collection.GetSdkResultgetSdk(GetSdkRequest getSdkRequest)GetStageResultgetStage(GetStageRequest getStageRequest)Gets information about a Stage resource.GetStagesResultgetStages(GetStagesRequest getStagesRequest)Gets information about one or more Stage resources.ImportRestApiResultimportRestApi(ImportRestApiRequest importRestApiRequest)A feature of the Amazon API Gateway control service for creating a new API from an external API definition file.PutIntegrationResultputIntegration(PutIntegrationRequest putIntegrationRequest)Represents a put integration.PutIntegrationResponseResultputIntegrationResponse(PutIntegrationResponseRequest putIntegrationResponseRequest)Represents a put integration.PutMethodResultputMethod(PutMethodRequest putMethodRequest)Add a method to an existing Resource resource.PutMethodResponseResultputMethodResponse(PutMethodResponseRequest putMethodResponseRequest)Adds a MethodResponse to an existing Method resource.PutRestApiResultputRestApi(PutRestApiRequest putRestApiRequest)A feature of the Amazon API Gateway control service for updating an existing API with an input of external API definitions.voidsetEndpoint(String endpoint)Overrides the default endpoint for this client ("https://apigateway.us-east-1.amazonaws.com").voidsetRegion(Region region)An alternative tosetEndpoint(String), sets the regional endpoint for this client's service calls.voidshutdown()Shuts down this client object, releasing any resources that might be held open.TestInvokeAuthorizerResulttestInvokeAuthorizer(TestInvokeAuthorizerRequest testInvokeAuthorizerRequest)Simulate the execution of an Authorizer in your RestApi with headers, parameters, and an incoming request body.TestInvokeMethodResulttestInvokeMethod(TestInvokeMethodRequest testInvokeMethodRequest)UpdateAccountResultupdateAccount(UpdateAccountRequest updateAccountRequest)Changes information about the current Account resource.UpdateApiKeyResultupdateApiKey(UpdateApiKeyRequest updateApiKeyRequest)Changes information about an ApiKey resource.UpdateAuthorizerResultupdateAuthorizer(UpdateAuthorizerRequest updateAuthorizerRequest)Updates an existing Authorizer resource.UpdateBasePathMappingResultupdateBasePathMapping(UpdateBasePathMappingRequest updateBasePathMappingRequest)Changes information about the BasePathMapping resource.UpdateClientCertificateResultupdateClientCertificate(UpdateClientCertificateRequest updateClientCertificateRequest)Changes information about an ClientCertificate resource.UpdateDeploymentResultupdateDeployment(UpdateDeploymentRequest updateDeploymentRequest)Changes information about a Deployment resource.UpdateDomainNameResultupdateDomainName(UpdateDomainNameRequest updateDomainNameRequest)Changes information about the DomainName resource.UpdateIntegrationResultupdateIntegration(UpdateIntegrationRequest updateIntegrationRequest)Represents an update integration.UpdateIntegrationResponseResultupdateIntegrationResponse(UpdateIntegrationResponseRequest updateIntegrationResponseRequest)Represents an update integration response.UpdateMethodResultupdateMethod(UpdateMethodRequest updateMethodRequest)Updates an existing Method resource.UpdateMethodResponseResultupdateMethodResponse(UpdateMethodResponseRequest updateMethodResponseRequest)Updates an existing MethodResponse resource.UpdateModelResultupdateModel(UpdateModelRequest updateModelRequest)Changes information about a model.UpdateResourceResultupdateResource(UpdateResourceRequest updateResourceRequest)Changes information about a Resource resource.UpdateRestApiResultupdateRestApi(UpdateRestApiRequest updateRestApiRequest)Changes information about the specified API.UpdateStageResultupdateStage(UpdateStageRequest updateStageRequest)Changes information about a Stage resource.
-
-
-
Method Detail
-
setEndpoint
void setEndpoint(String endpoint)
Overrides the default endpoint for this client ("https://apigateway.us-east-1.amazonaws.com"). Callers can use this method to control which AWS region they want to work with.Callers can pass in just the endpoint (ex: "apigateway.us-east-1.amazonaws.com") or a full URL, including the protocol (ex: "https://apigateway.us-east-1.amazonaws.com"). If the protocol is not specified here, the default protocol from this client's
ClientConfigurationwill be used, which by default is HTTPS.For more information on using AWS regions with the AWS SDK for Java, and a complete list of all available endpoints for all AWS services, see: http://developer.amazonwebservices.com/connect/entry.jspa?externalID= 3912
This method is not threadsafe. An endpoint should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.
- Parameters:
endpoint- The endpoint (ex: "apigateway.us-east-1.amazonaws.com") or a full URL, including the protocol (ex: "https://apigateway.us-east-1.amazonaws.com") of the region specific AWS endpoint this client will communicate with.
-
setRegion
void setRegion(Region region)
An alternative tosetEndpoint(String), sets the regional endpoint for this client's service calls. Callers can use this method to control which AWS region they want to work with.By default, all service endpoints in all regions use the https protocol. To use http instead, specify it in the
ClientConfigurationsupplied at construction.This method is not threadsafe. A region should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.
- Parameters:
region- The region this client will communicate with. SeeRegion.getRegion(com.amazonaws.regions.Regions)for accessing a given region. Must not be null and must be a region where the service is available.- See Also:
Region.getRegion(com.amazonaws.regions.Regions),Region.createClient(Class, com.amazonaws.auth.AWSCredentialsProvider, ClientConfiguration),Region.isServiceSupported(String)
-
createApiKey
CreateApiKeyResult createApiKey(CreateApiKeyRequest createApiKeyRequest)
Create an ApiKey resource.
- Parameters:
createApiKeyRequest- Request to create an ApiKey resource.- Returns:
- Result of the CreateApiKey operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionTooManyRequestsExceptionLimitExceededExceptionBadRequestException
-
createAuthorizer
CreateAuthorizerResult createAuthorizer(CreateAuthorizerRequest createAuthorizerRequest)
Adds a new Authorizer resource to an existing RestApi resource.
- Parameters:
createAuthorizerRequest- Request to add a new Authorizer to an existing RestApi resource.- Returns:
- Result of the CreateAuthorizer operation returned by the service.
- Throws:
BadRequestExceptionUnauthorizedExceptionNotFoundExceptionLimitExceededExceptionTooManyRequestsException
-
createBasePathMapping
CreateBasePathMappingResult createBasePathMapping(CreateBasePathMappingRequest createBasePathMappingRequest)
Creates a new BasePathMapping resource.
- Parameters:
createBasePathMappingRequest- Requests Amazon API Gateway to create a new BasePathMapping resource.- Returns:
- Result of the CreateBasePathMapping operation returned by the service.
- Throws:
UnauthorizedExceptionConflictExceptionBadRequestExceptionNotFoundExceptionTooManyRequestsException
-
createDeployment
CreateDeploymentResult createDeployment(CreateDeploymentRequest createDeploymentRequest)
Creates a Deployment resource, which makes a specified RestApi callable over the internet.
- Parameters:
createDeploymentRequest- Requests Amazon API Gateway to create a Deployment resource.- Returns:
- Result of the CreateDeployment operation returned by the service.
- Throws:
UnauthorizedExceptionBadRequestExceptionNotFoundExceptionConflictExceptionLimitExceededExceptionTooManyRequestsExceptionServiceUnavailableException
-
createDomainName
CreateDomainNameResult createDomainName(CreateDomainNameRequest createDomainNameRequest)
Creates a new domain name.
- Parameters:
createDomainNameRequest- A request to create a new domain name.- Returns:
- Result of the CreateDomainName operation returned by the service.
- Throws:
UnauthorizedExceptionBadRequestExceptionConflictExceptionTooManyRequestsException
-
createModel
CreateModelResult createModel(CreateModelRequest createModelRequest)
- Parameters:
createModelRequest- Request to add a new Model to an existing RestApi resource.- Returns:
- Result of the CreateModel operation returned by the service.
- Throws:
BadRequestExceptionUnauthorizedExceptionNotFoundExceptionConflictExceptionLimitExceededExceptionTooManyRequestsException
-
createResource
CreateResourceResult createResource(CreateResourceRequest createResourceRequest)
Creates a Resource resource.
- Parameters:
createResourceRequest- Requests Amazon API Gateway to create a Resource resource.- Returns:
- Result of the CreateResource operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionConflictExceptionLimitExceededExceptionBadRequestExceptionTooManyRequestsException
-
createRestApi
CreateRestApiResult createRestApi(CreateRestApiRequest createRestApiRequest)
Creates a new RestApi resource.
- Parameters:
createRestApiRequest- The POST Request to add a new RestApi resource to your collection.- Returns:
- Result of the CreateRestApi operation returned by the service.
- Throws:
UnauthorizedExceptionLimitExceededExceptionBadRequestExceptionTooManyRequestsException
-
createStage
CreateStageResult createStage(CreateStageRequest createStageRequest)
Creates a new Stage resource that references a pre-existing Deployment for the API.
- Parameters:
createStageRequest- Requests Amazon API Gateway to create a Stage resource.- Returns:
- Result of the CreateStage operation returned by the service.
- Throws:
UnauthorizedExceptionBadRequestExceptionNotFoundExceptionConflictExceptionLimitExceededExceptionTooManyRequestsException
-
deleteApiKey
DeleteApiKeyResult deleteApiKey(DeleteApiKeyRequest deleteApiKeyRequest)
Deletes the ApiKey resource.
- Parameters:
deleteApiKeyRequest- A request to delete the ApiKey resource.- Returns:
- Result of the DeleteApiKey operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionTooManyRequestsException
-
deleteAuthorizer
DeleteAuthorizerResult deleteAuthorizer(DeleteAuthorizerRequest deleteAuthorizerRequest)
Deletes an existing Authorizer resource.
- Parameters:
deleteAuthorizerRequest- Request to delete an existing Authorizer resource.- Returns:
- Result of the DeleteAuthorizer operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionTooManyRequestsExceptionBadRequestExceptionConflictException
-
deleteBasePathMapping
DeleteBasePathMappingResult deleteBasePathMapping(DeleteBasePathMappingRequest deleteBasePathMappingRequest)
Deletes the BasePathMapping resource.
- Parameters:
deleteBasePathMappingRequest- A request to delete the BasePathMapping resource.- Returns:
- Result of the DeleteBasePathMapping operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionTooManyRequestsException
-
deleteClientCertificate
DeleteClientCertificateResult deleteClientCertificate(DeleteClientCertificateRequest deleteClientCertificateRequest)
Deletes the ClientCertificate resource.
- Parameters:
deleteClientCertificateRequest- A request to delete the ClientCertificate resource.- Returns:
- Result of the DeleteClientCertificate operation returned by the service.
- Throws:
UnauthorizedExceptionTooManyRequestsExceptionBadRequestExceptionNotFoundException
-
deleteDeployment
DeleteDeploymentResult deleteDeployment(DeleteDeploymentRequest deleteDeploymentRequest)
Deletes a Deployment resource. Deleting a deployment will only succeed if there are no Stage resources associated with it.
- Parameters:
deleteDeploymentRequest- Requests Amazon API Gateway to delete a Deployment resource.- Returns:
- Result of the DeleteDeployment operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionBadRequestExceptionTooManyRequestsException
-
deleteDomainName
DeleteDomainNameResult deleteDomainName(DeleteDomainNameRequest deleteDomainNameRequest)
Deletes the DomainName resource.
- Parameters:
deleteDomainNameRequest- A request to delete the DomainName resource.- Returns:
- Result of the DeleteDomainName operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionTooManyRequestsException
-
deleteIntegration
DeleteIntegrationResult deleteIntegration(DeleteIntegrationRequest deleteIntegrationRequest)
Represents a delete integration.
- Parameters:
deleteIntegrationRequest- Represents a delete integration request.- Returns:
- Result of the DeleteIntegration operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionTooManyRequestsException
-
deleteIntegrationResponse
DeleteIntegrationResponseResult deleteIntegrationResponse(DeleteIntegrationResponseRequest deleteIntegrationResponseRequest)
Represents a delete integration response.
- Parameters:
deleteIntegrationResponseRequest- Represents a delete integration response request.- Returns:
- Result of the DeleteIntegrationResponse operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionTooManyRequestsException
-
deleteMethod
DeleteMethodResult deleteMethod(DeleteMethodRequest deleteMethodRequest)
Deletes an existing Method resource.
- Parameters:
deleteMethodRequest- Request to delete an existing Method resource.- Returns:
- Result of the DeleteMethod operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionTooManyRequestsException
-
deleteMethodResponse
DeleteMethodResponseResult deleteMethodResponse(DeleteMethodResponseRequest deleteMethodResponseRequest)
Deletes an existing MethodResponse resource.
- Parameters:
deleteMethodResponseRequest- A request to delete an existing MethodResponse resource.- Returns:
- Result of the DeleteMethodResponse operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionTooManyRequestsException
-
deleteModel
DeleteModelResult deleteModel(DeleteModelRequest deleteModelRequest)
Deletes a model.
- Parameters:
deleteModelRequest- Request to delete an existing model in an existing RestApi resource.- Returns:
- Result of the DeleteModel operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionTooManyRequestsExceptionBadRequestExceptionConflictException
-
deleteResource
DeleteResourceResult deleteResource(DeleteResourceRequest deleteResourceRequest)
Deletes a Resource resource.
- Parameters:
deleteResourceRequest- Request to delete a Resource.- Returns:
- Result of the DeleteResource operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionBadRequestExceptionConflictExceptionTooManyRequestsException
-
deleteRestApi
DeleteRestApiResult deleteRestApi(DeleteRestApiRequest deleteRestApiRequest)
Deletes the specified API.
- Parameters:
deleteRestApiRequest- Request to delete the specified API from your collection.- Returns:
- Result of the DeleteRestApi operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionTooManyRequestsExceptionBadRequestException
-
deleteStage
DeleteStageResult deleteStage(DeleteStageRequest deleteStageRequest)
Deletes a Stage resource.
- Parameters:
deleteStageRequest- Requests Amazon API Gateway to delete a Stage resource.- Returns:
- Result of the DeleteStage operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionTooManyRequestsExceptionBadRequestException
-
flushStageAuthorizersCache
FlushStageAuthorizersCacheResult flushStageAuthorizersCache(FlushStageAuthorizersCacheRequest flushStageAuthorizersCacheRequest)
Flushes all authorizer cache entries on a stage.
- Parameters:
flushStageAuthorizersCacheRequest- Request to flush authorizer cache entries on a specified stage.- Returns:
- Result of the FlushStageAuthorizersCache operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionBadRequestExceptionTooManyRequestsException
-
flushStageCache
FlushStageCacheResult flushStageCache(FlushStageCacheRequest flushStageCacheRequest)
Flushes a stage's cache.
- Parameters:
flushStageCacheRequest- Requests Amazon API Gateway to flush a stage's cache.- Returns:
- Result of the FlushStageCache operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionBadRequestExceptionTooManyRequestsException
-
generateClientCertificate
GenerateClientCertificateResult generateClientCertificate(GenerateClientCertificateRequest generateClientCertificateRequest)
Generates a ClientCertificate resource.
- Parameters:
generateClientCertificateRequest- A request to generate a ClientCertificate resource.- Returns:
- Result of the GenerateClientCertificate operation returned by the service.
- Throws:
UnauthorizedExceptionTooManyRequestsExceptionLimitExceededException
-
getAccount
GetAccountResult getAccount(GetAccountRequest getAccountRequest)
Gets information about the current Account resource.
- Parameters:
getAccountRequest- Requests Amazon API Gateway to get information about the current Account resource.- Returns:
- Result of the GetAccount operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionTooManyRequestsException
-
getApiKey
GetApiKeyResult getApiKey(GetApiKeyRequest getApiKeyRequest)
Gets information about the current ApiKey resource.
- Parameters:
getApiKeyRequest- A request to get information about the current ApiKey resource.- Returns:
- Result of the GetApiKey operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionTooManyRequestsException
-
getApiKeys
GetApiKeysResult getApiKeys(GetApiKeysRequest getApiKeysRequest)
Gets information about the current ApiKeys resource.
- Parameters:
getApiKeysRequest- A request to get information about the current ApiKeys resource.- Returns:
- Result of the GetApiKeys operation returned by the service.
- Throws:
BadRequestExceptionUnauthorizedExceptionTooManyRequestsException
-
getAuthorizer
GetAuthorizerResult getAuthorizer(GetAuthorizerRequest getAuthorizerRequest)
Describe an existing Authorizer resource.
- Parameters:
getAuthorizerRequest- Request to describe an existing Authorizer resource.- Returns:
- Result of the GetAuthorizer operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionTooManyRequestsException
-
getAuthorizers
GetAuthorizersResult getAuthorizers(GetAuthorizersRequest getAuthorizersRequest)
Describe an existing Authorizers resource.
- Parameters:
getAuthorizersRequest- Request to describe an existing Authorizers resource.- Returns:
- Result of the GetAuthorizers operation returned by the service.
- Throws:
BadRequestExceptionUnauthorizedExceptionNotFoundExceptionTooManyRequestsException
-
getBasePathMapping
GetBasePathMappingResult getBasePathMapping(GetBasePathMappingRequest getBasePathMappingRequest)
Describe a BasePathMapping resource.
- Parameters:
getBasePathMappingRequest- Request to describe a BasePathMapping resource.- Returns:
- Result of the GetBasePathMapping operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionTooManyRequestsException
-
getBasePathMappings
GetBasePathMappingsResult getBasePathMappings(GetBasePathMappingsRequest getBasePathMappingsRequest)
Represents a collection of BasePathMapping resources.
- Parameters:
getBasePathMappingsRequest- A request to get information about a collection of BasePathMapping resources.- Returns:
- Result of the GetBasePathMappings operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionTooManyRequestsException
-
getClientCertificate
GetClientCertificateResult getClientCertificate(GetClientCertificateRequest getClientCertificateRequest)
Gets information about the current ClientCertificate resource.
- Parameters:
getClientCertificateRequest- A request to get information about the current ClientCertificate resource.- Returns:
- Result of the GetClientCertificate operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionTooManyRequestsException
-
getClientCertificates
GetClientCertificatesResult getClientCertificates(GetClientCertificatesRequest getClientCertificatesRequest)
Gets a collection of ClientCertificate resources.
- Parameters:
getClientCertificatesRequest- A request to get information about a collection of ClientCertificate resources.- Returns:
- Result of the GetClientCertificates operation returned by the service.
- Throws:
BadRequestExceptionUnauthorizedExceptionTooManyRequestsException
-
getDeployment
GetDeploymentResult getDeployment(GetDeploymentRequest getDeploymentRequest)
Gets information about a Deployment resource.
- Parameters:
getDeploymentRequest- Requests Amazon API Gateway to get information about a Deployment resource.- Returns:
- Result of the GetDeployment operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionTooManyRequestsExceptionServiceUnavailableException
-
getDeployments
GetDeploymentsResult getDeployments(GetDeploymentsRequest getDeploymentsRequest)
Gets information about a Deployments collection.
- Parameters:
getDeploymentsRequest- Requests Amazon API Gateway to get information about a Deployments collection.- Returns:
- Result of the GetDeployments operation returned by the service.
- Throws:
BadRequestExceptionUnauthorizedExceptionTooManyRequestsExceptionServiceUnavailableException
-
getDomainName
GetDomainNameResult getDomainName(GetDomainNameRequest getDomainNameRequest)
Represents a domain name that is contained in a simpler, more intuitive URL that can be called.
- Parameters:
getDomainNameRequest- Request to get the name of a DomainName resource.- Returns:
- Result of the GetDomainName operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionServiceUnavailableExceptionTooManyRequestsException
-
getDomainNames
GetDomainNamesResult getDomainNames(GetDomainNamesRequest getDomainNamesRequest)
Represents a collection of DomainName resources.
- Parameters:
getDomainNamesRequest- Request to describe a collection of DomainName resources.- Returns:
- Result of the GetDomainNames operation returned by the service.
- Throws:
BadRequestExceptionUnauthorizedExceptionTooManyRequestsException
-
getExport
GetExportResult getExport(GetExportRequest getExportRequest)
Exports a deployed version of a RestApi in a specified format.
- Parameters:
getExportRequest- Request a new export of a RestApi for a particular Stage.- Returns:
- Result of the GetExport operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionBadRequestExceptionTooManyRequestsException
-
getIntegration
GetIntegrationResult getIntegration(GetIntegrationRequest getIntegrationRequest)
Represents a get integration.
- Parameters:
getIntegrationRequest- Represents a get integration request.- Returns:
- Result of the GetIntegration operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionTooManyRequestsException
-
getIntegrationResponse
GetIntegrationResponseResult getIntegrationResponse(GetIntegrationResponseRequest getIntegrationResponseRequest)
Represents a get integration response.
- Parameters:
getIntegrationResponseRequest- Represents a get integration response request.- Returns:
- Result of the GetIntegrationResponse operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionTooManyRequestsException
-
getMethod
GetMethodResult getMethod(GetMethodRequest getMethodRequest)
Describe an existing Method resource.
- Parameters:
getMethodRequest- Request to describe an existing Method resource.- Returns:
- Result of the GetMethod operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionTooManyRequestsException
-
getMethodResponse
GetMethodResponseResult getMethodResponse(GetMethodResponseRequest getMethodResponseRequest)
Describes a MethodResponse resource.
- Parameters:
getMethodResponseRequest- Request to describe a MethodResponse resource.- Returns:
- Result of the GetMethodResponse operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionTooManyRequestsException
-
getModel
GetModelResult getModel(GetModelRequest getModelRequest)
Describes an existing model defined for a RestApi resource.
- Parameters:
getModelRequest- Request to list information about a model in an existing RestApi resource.- Returns:
- Result of the GetModel operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionTooManyRequestsException
-
getModelTemplate
GetModelTemplateResult getModelTemplate(GetModelTemplateRequest getModelTemplateRequest)
Generates a sample mapping template that can be used to transform a payload into the structure of a model.
- Parameters:
getModelTemplateRequest- Request to generate a sample mapping template used to transform the payload.- Returns:
- Result of the GetModelTemplate operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionBadRequestExceptionTooManyRequestsException
-
getModels
GetModelsResult getModels(GetModelsRequest getModelsRequest)
- Parameters:
getModelsRequest- Request to list existing Models defined for a RestApi resource.- Returns:
- Result of the GetModels operation returned by the service.
- Throws:
BadRequestExceptionUnauthorizedExceptionNotFoundExceptionTooManyRequestsException
-
getResource
GetResourceResult getResource(GetResourceRequest getResourceRequest)
Lists information about a resource.
- Parameters:
getResourceRequest- Request to list information about a resource.- Returns:
- Result of the GetResource operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionTooManyRequestsException
-
getResources
GetResourcesResult getResources(GetResourcesRequest getResourcesRequest)
Lists information about a collection of Resource resources.
- Parameters:
getResourcesRequest- Request to list information about a collection of resources.- Returns:
- Result of the GetResources operation returned by the service.
- Throws:
BadRequestExceptionUnauthorizedExceptionNotFoundExceptionTooManyRequestsException
-
getRestApi
GetRestApiResult getRestApi(GetRestApiRequest getRestApiRequest)
Lists the RestApi resource in the collection.
- Parameters:
getRestApiRequest- The GET request to list an existing RestApi defined for your collection.- Returns:
- Result of the GetRestApi operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionTooManyRequestsException
-
getRestApis
GetRestApisResult getRestApis(GetRestApisRequest getRestApisRequest)
Lists the RestApis resources for your collection.
- Parameters:
getRestApisRequest- The GET request to list existing RestApis defined for your collection.- Returns:
- Result of the GetRestApis operation returned by the service.
- Throws:
BadRequestExceptionUnauthorizedExceptionTooManyRequestsException
-
getSdk
GetSdkResult getSdk(GetSdkRequest getSdkRequest)
- Parameters:
getSdkRequest- Request a new generated client SDK for a RestApi and Stage.- Returns:
- Result of the GetSdk operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionBadRequestExceptionTooManyRequestsException
-
getStage
GetStageResult getStage(GetStageRequest getStageRequest)
Gets information about a Stage resource.
- Parameters:
getStageRequest- Requests Amazon API Gateway to get information about a Stage resource.- Returns:
- Result of the GetStage operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionTooManyRequestsException
-
getStages
GetStagesResult getStages(GetStagesRequest getStagesRequest)
Gets information about one or more Stage resources.
- Parameters:
getStagesRequest- Requests Amazon API Gateway to get information about one or more Stage resources.- Returns:
- Result of the GetStages operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionTooManyRequestsException
-
importRestApi
ImportRestApiResult importRestApi(ImportRestApiRequest importRestApiRequest)
A feature of the Amazon API Gateway control service for creating a new API from an external API definition file.
- Parameters:
importRestApiRequest- A POST request to import an API to Amazon API Gateway using an input of an API definition file.- Returns:
- Result of the ImportRestApi operation returned by the service.
- Throws:
UnauthorizedExceptionLimitExceededExceptionBadRequestExceptionTooManyRequestsException
-
putIntegration
PutIntegrationResult putIntegration(PutIntegrationRequest putIntegrationRequest)
Represents a put integration.
- Parameters:
putIntegrationRequest- Represents a put integration request.- Returns:
- Result of the PutIntegration operation returned by the service.
- Throws:
UnauthorizedExceptionBadRequestExceptionConflictExceptionNotFoundExceptionTooManyRequestsException
-
putIntegrationResponse
PutIntegrationResponseResult putIntegrationResponse(PutIntegrationResponseRequest putIntegrationResponseRequest)
Represents a put integration.
- Parameters:
putIntegrationResponseRequest- Represents a put integration response request.- Returns:
- Result of the PutIntegrationResponse operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionLimitExceededExceptionBadRequestExceptionTooManyRequestsExceptionConflictException
-
putMethod
PutMethodResult putMethod(PutMethodRequest putMethodRequest)
Add a method to an existing Resource resource.
- Parameters:
putMethodRequest- Request to add a method to an existing Resource resource.- Returns:
- Result of the PutMethod operation returned by the service.
- Throws:
BadRequestExceptionUnauthorizedExceptionNotFoundExceptionConflictExceptionLimitExceededExceptionTooManyRequestsException
-
putMethodResponse
PutMethodResponseResult putMethodResponse(PutMethodResponseRequest putMethodResponseRequest)
Adds a MethodResponse to an existing Method resource.
- Parameters:
putMethodResponseRequest- Request to add a MethodResponse to an existing Method resource.- Returns:
- Result of the PutMethodResponse operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionConflictExceptionLimitExceededExceptionBadRequestExceptionTooManyRequestsException
-
putRestApi
PutRestApiResult putRestApi(PutRestApiRequest putRestApiRequest)
A feature of the Amazon API Gateway control service for updating an existing API with an input of external API definitions. The update can take the form of merging the supplied definition into the existing API or overwriting the existing API.
- Parameters:
putRestApiRequest- A PUT request to update an existing API, with external API definitions specified as the request body.- Returns:
- Result of the PutRestApi operation returned by the service.
- Throws:
UnauthorizedExceptionLimitExceededExceptionNotFoundExceptionBadRequestExceptionTooManyRequestsException
-
testInvokeAuthorizer
TestInvokeAuthorizerResult testInvokeAuthorizer(TestInvokeAuthorizerRequest testInvokeAuthorizerRequest)
Simulate the execution of an Authorizer in your RestApi with headers, parameters, and an incoming request body.
- Parameters:
testInvokeAuthorizerRequest- Make a request to simulate the execution of an Authorizer.- Returns:
- Result of the TestInvokeAuthorizer operation returned by the service.
- Throws:
BadRequestExceptionUnauthorizedExceptionNotFoundExceptionTooManyRequestsException
-
testInvokeMethod
TestInvokeMethodResult testInvokeMethod(TestInvokeMethodRequest testInvokeMethodRequest)
Simulate the execution of a Method in your RestApi with headers, parameters, and an incoming request body.
- Parameters:
testInvokeMethodRequest- Make a request to simulate the execution of a Method.- Returns:
- Result of the TestInvokeMethod operation returned by the service.
- Throws:
BadRequestExceptionUnauthorizedExceptionNotFoundExceptionTooManyRequestsException
-
updateAccount
UpdateAccountResult updateAccount(UpdateAccountRequest updateAccountRequest)
Changes information about the current Account resource.
- Parameters:
updateAccountRequest- Requests Amazon API Gateway to change information about the current Account resource.- Returns:
- Result of the UpdateAccount operation returned by the service.
- Throws:
UnauthorizedExceptionBadRequestExceptionNotFoundExceptionTooManyRequestsException
-
updateApiKey
UpdateApiKeyResult updateApiKey(UpdateApiKeyRequest updateApiKeyRequest)
Changes information about an ApiKey resource.
- Parameters:
updateApiKeyRequest- A request to change information about an ApiKey resource.- Returns:
- Result of the UpdateApiKey operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionBadRequestExceptionTooManyRequestsException
-
updateAuthorizer
UpdateAuthorizerResult updateAuthorizer(UpdateAuthorizerRequest updateAuthorizerRequest)
Updates an existing Authorizer resource.
- Parameters:
updateAuthorizerRequest- Request to update an existing Authorizer resource.- Returns:
- Result of the UpdateAuthorizer operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionBadRequestExceptionTooManyRequestsException
-
updateBasePathMapping
UpdateBasePathMappingResult updateBasePathMapping(UpdateBasePathMappingRequest updateBasePathMappingRequest)
Changes information about the BasePathMapping resource.
- Parameters:
updateBasePathMappingRequest- A request to change information about the BasePathMapping resource.- Returns:
- Result of the UpdateBasePathMapping operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionConflictExceptionBadRequestExceptionTooManyRequestsException
-
updateClientCertificate
UpdateClientCertificateResult updateClientCertificate(UpdateClientCertificateRequest updateClientCertificateRequest)
Changes information about an ClientCertificate resource.
- Parameters:
updateClientCertificateRequest- A request to change information about an ClientCertificate resource.- Returns:
- Result of the UpdateClientCertificate operation returned by the service.
- Throws:
UnauthorizedExceptionTooManyRequestsExceptionBadRequestExceptionNotFoundException
-
updateDeployment
UpdateDeploymentResult updateDeployment(UpdateDeploymentRequest updateDeploymentRequest)
Changes information about a Deployment resource.
- Parameters:
updateDeploymentRequest- Requests Amazon API Gateway to change information about a Deployment resource.- Returns:
- Result of the UpdateDeployment operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionBadRequestExceptionTooManyRequestsExceptionServiceUnavailableException
-
updateDomainName
UpdateDomainNameResult updateDomainName(UpdateDomainNameRequest updateDomainNameRequest)
Changes information about the DomainName resource.
- Parameters:
updateDomainNameRequest- A request to change information about the DomainName resource.- Returns:
- Result of the UpdateDomainName operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionBadRequestExceptionConflictExceptionTooManyRequestsException
-
updateIntegration
UpdateIntegrationResult updateIntegration(UpdateIntegrationRequest updateIntegrationRequest)
Represents an update integration.
- Parameters:
updateIntegrationRequest- Represents an update integration request.- Returns:
- Result of the UpdateIntegration operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionBadRequestExceptionTooManyRequestsExceptionConflictException
-
updateIntegrationResponse
UpdateIntegrationResponseResult updateIntegrationResponse(UpdateIntegrationResponseRequest updateIntegrationResponseRequest)
Represents an update integration response.
- Parameters:
updateIntegrationResponseRequest- Represents an update integration response request.- Returns:
- Result of the UpdateIntegrationResponse operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionConflictExceptionBadRequestExceptionTooManyRequestsException
-
updateMethod
UpdateMethodResult updateMethod(UpdateMethodRequest updateMethodRequest)
Updates an existing Method resource.
- Parameters:
updateMethodRequest- Request to update an existing Method resource.- Returns:
- Result of the UpdateMethod operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionBadRequestExceptionConflictExceptionTooManyRequestsException
-
updateMethodResponse
UpdateMethodResponseResult updateMethodResponse(UpdateMethodResponseRequest updateMethodResponseRequest)
Updates an existing MethodResponse resource.
- Parameters:
updateMethodResponseRequest- A request to update an existing MethodResponse resource.- Returns:
- Result of the UpdateMethodResponse operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionConflictExceptionLimitExceededExceptionBadRequestExceptionTooManyRequestsException
-
updateModel
UpdateModelResult updateModel(UpdateModelRequest updateModelRequest)
Changes information about a model.
- Parameters:
updateModelRequest- Request to update an existing model in an existing RestApi resource.- Returns:
- Result of the UpdateModel operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionBadRequestExceptionConflictExceptionTooManyRequestsException
-
updateResource
UpdateResourceResult updateResource(UpdateResourceRequest updateResourceRequest)
Changes information about a Resource resource.
- Parameters:
updateResourceRequest- Request to change information about a Resource resource.- Returns:
- Result of the UpdateResource operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionConflictExceptionBadRequestExceptionTooManyRequestsException
-
updateRestApi
UpdateRestApiResult updateRestApi(UpdateRestApiRequest updateRestApiRequest)
Changes information about the specified API.
- Parameters:
updateRestApiRequest- Request to update an existing RestApi resource in your collection.- Returns:
- Result of the UpdateRestApi operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionConflictExceptionBadRequestExceptionTooManyRequestsException
-
updateStage
UpdateStageResult updateStage(UpdateStageRequest updateStageRequest)
Changes information about a Stage resource.
- Parameters:
updateStageRequest- Requests Amazon API Gateway to change information about a Stage resource.- Returns:
- Result of the UpdateStage operation returned by the service.
- Throws:
UnauthorizedExceptionNotFoundExceptionConflictExceptionBadRequestExceptionTooManyRequestsException
-
shutdown
void shutdown()
Shuts down this client object, releasing any resources that might be held open. This is an optional method, and callers are not expected to call it, but can if they want to explicitly release any open resources. Once a client has been shutdown, it should not be used to make any more requests.
-
getCachedResponseMetadata
ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful request, typically used for debugging issues where a service isn't acting as expected. This data isn't considered part of the result data returned by an operation, so it's available through this separate, diagnostic interface.Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
- Parameters:
request- The originally executed request.- Returns:
- The response metadata for the specified request, or null if none is available.
-
-