@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonApiGatewayManagementApiClient extends AmazonWebServiceClient implements AmazonApiGatewayManagementApi
The Amazon API Gateway Management API allows you to directly manage runtime aspects of your deployed APIs. To use it, you must explicitly set the SDK's endpoint to point to the endpoint of your deployed API. The endpoint will be of the form https://{api-id}.execute-api.{region}.amazonaws.com/{stage}, or will be the endpoint corresponding to your API's custom domain and base path, if applicable.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AmazonApiGatewayManagementApiClientBuilder |
builder() |
DeleteConnectionResult |
deleteConnection(DeleteConnectionRequest request)
Delete the connection with the provided id.
|
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.
|
GetConnectionResult |
getConnection(GetConnectionRequest request)
Get information about the connection with the provided id.
|
PostToConnectionResult |
postToConnection(PostToConnectionRequest request)
Sends the provided data to the specified connection.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held
open.
|
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
public static AmazonApiGatewayManagementApiClientBuilder builder()
public DeleteConnectionResult deleteConnection(DeleteConnectionRequest request)
Delete the connection with the provided id.
deleteConnection
in interface AmazonApiGatewayManagementApi
deleteConnectionRequest
- GoneException
- The connection with the provided id no longer exists.LimitExceededException
- The client is sending more than the allowed number of requests per unit of time or the WebSocket client
side buffer is full.ForbiddenException
- The caller is not authorized to invoke this operation.public GetConnectionResult getConnection(GetConnectionRequest request)
Get information about the connection with the provided id.
getConnection
in interface AmazonApiGatewayManagementApi
getConnectionRequest
- GoneException
- The connection with the provided id no longer exists.LimitExceededException
- The client is sending more than the allowed number of requests per unit of time or the WebSocket client
side buffer is full.ForbiddenException
- The caller is not authorized to invoke this operation.public PostToConnectionResult postToConnection(PostToConnectionRequest request)
Sends the provided data to the specified connection.
postToConnection
in interface AmazonApiGatewayManagementApi
postToConnectionRequest
- GoneException
- The connection with the provided id no longer exists.LimitExceededException
- The client is sending more than the allowed number of requests per unit of time or the WebSocket client
side buffer is full.PayloadTooLargeException
- The data has exceeded the maximum size allowed.ForbiddenException
- The caller is not authorized to invoke this operation.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata
in interface AmazonApiGatewayManagementApi
request
- The originally executed requestpublic void shutdown()
AmazonWebServiceClient
shutdown
in interface AmazonApiGatewayManagementApi
shutdown
in class AmazonWebServiceClient