/*
* Copyright 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.
*/
/*
* Do not modify this file. This file is generated from the apigatewaymanagementapi-2018-11-29.normal.json service model.
*/
using System;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.ApiGatewayManagementApi.Model;
namespace Amazon.ApiGatewayManagementApi
{
///
/// Interface for accessing ApiGatewayManagementApi
///
/// 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.
///
public partial interface IAmazonApiGatewayManagementApi : IAmazonService, IDisposable
{
#region DeleteConnection
///
/// Delete the connection with the provided id.
///
/// Container for the necessary parameters to execute the DeleteConnection service method.
///
/// The response from the DeleteConnection service method, as returned by ApiGatewayManagementApi.
///
/// The caller is not authorized to invoke this operation.
///
///
/// The connection with the provided id no longer exists.
///
///
/// The client is sending more than the allowed number of requests per unit of time or
/// the WebSocket client side buffer is full.
///
/// REST API Reference for DeleteConnection Operation
DeleteConnectionResponse DeleteConnection(DeleteConnectionRequest request);
///
/// Initiates the asynchronous execution of the DeleteConnection operation.
///
///
/// Container for the necessary parameters to execute the DeleteConnection operation on AmazonApiGatewayManagementApiClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteConnection
/// operation.
/// REST API Reference for DeleteConnection Operation
IAsyncResult BeginDeleteConnection(DeleteConnectionRequest request, AsyncCallback callback, object state);
///
/// Finishes the asynchronous execution of the DeleteConnection operation.
///
///
/// The IAsyncResult returned by the call to BeginDeleteConnection.
///
/// Returns a DeleteConnectionResult from ApiGatewayManagementApi.
/// REST API Reference for DeleteConnection Operation
DeleteConnectionResponse EndDeleteConnection(IAsyncResult asyncResult);
#endregion
#region GetConnection
///
/// Get information about the connection with the provided id.
///
/// Container for the necessary parameters to execute the GetConnection service method.
///
/// The response from the GetConnection service method, as returned by ApiGatewayManagementApi.
///
/// The caller is not authorized to invoke this operation.
///
///
/// The connection with the provided id no longer exists.
///
///
/// The client is sending more than the allowed number of requests per unit of time or
/// the WebSocket client side buffer is full.
///
/// REST API Reference for GetConnection Operation
GetConnectionResponse GetConnection(GetConnectionRequest request);
///
/// Initiates the asynchronous execution of the GetConnection operation.
///
///
/// Container for the necessary parameters to execute the GetConnection operation on AmazonApiGatewayManagementApiClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetConnection
/// operation.
/// REST API Reference for GetConnection Operation
IAsyncResult BeginGetConnection(GetConnectionRequest request, AsyncCallback callback, object state);
///
/// Finishes the asynchronous execution of the GetConnection operation.
///
///
/// The IAsyncResult returned by the call to BeginGetConnection.
///
/// Returns a GetConnectionResult from ApiGatewayManagementApi.
/// REST API Reference for GetConnection Operation
GetConnectionResponse EndGetConnection(IAsyncResult asyncResult);
#endregion
#region PostToConnection
///
/// Sends the provided data to the specified connection.
///
/// Container for the necessary parameters to execute the PostToConnection service method.
///
/// The response from the PostToConnection service method, as returned by ApiGatewayManagementApi.
///
/// The caller is not authorized to invoke this operation.
///
///
/// The connection with the provided id no longer exists.
///
///
/// The client is sending more than the allowed number of requests per unit of time or
/// the WebSocket client side buffer is full.
///
///
/// The data has exceeded the maximum size allowed.
///
/// REST API Reference for PostToConnection Operation
PostToConnectionResponse PostToConnection(PostToConnectionRequest request);
///
/// Initiates the asynchronous execution of the PostToConnection operation.
///
///
/// Container for the necessary parameters to execute the PostToConnection operation on AmazonApiGatewayManagementApiClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPostToConnection
/// operation.
/// REST API Reference for PostToConnection Operation
IAsyncResult BeginPostToConnection(PostToConnectionRequest request, AsyncCallback callback, object state);
///
/// Finishes the asynchronous execution of the PostToConnection operation.
///
///
/// The IAsyncResult returned by the call to BeginPostToConnection.
///
/// Returns a PostToConnectionResult from ApiGatewayManagementApi.
/// REST API Reference for PostToConnection Operation
PostToConnectionResponse EndPostToConnection(IAsyncResult asyncResult);
#endregion
}
}