/*
 * 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.Threading;
using System.Threading.Tasks;
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);
        /// 
        /// Delete the connection with the provided id.
        /// 
        /// Container for the necessary parameters to execute the DeleteConnection service method.
        /// 
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// 
        /// 
        /// 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
        Task DeleteConnectionAsync(DeleteConnectionRequest request, CancellationToken cancellationToken = default(CancellationToken));
        #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);
        /// 
        /// Get information about the connection with the provided id.
        /// 
        /// Container for the necessary parameters to execute the GetConnection service method.
        /// 
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// 
        /// 
        /// 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
        Task GetConnectionAsync(GetConnectionRequest request, CancellationToken cancellationToken = default(CancellationToken));
        #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);
        /// 
        /// Sends the provided data to the specified connection.
        /// 
        /// Container for the necessary parameters to execute the PostToConnection service method.
        /// 
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// 
        /// 
        /// 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
        Task PostToConnectionAsync(PostToConnectionRequest request, CancellationToken cancellationToken = default(CancellationToken));
        #endregion
        
    }
}