/*
* 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 iotsecuretunneling-2018-10-05.normal.json service model.
*/
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.IoTSecureTunneling.Model;
namespace Amazon.IoTSecureTunneling
{
///
/// Interface for accessing IoTSecureTunneling
///
/// IoT Secure Tunneling
///
/// IoT Secure Tunneling creates remote connections to devices deployed in the field.
///
///
///
/// For more information about how IoT Secure Tunneling works, see IoT
/// Secure Tunneling.
///
///
public partial interface IAmazonIoTSecureTunneling : IAmazonService, IDisposable
{
///
/// Paginators for the service
///
IIoTSecureTunnelingPaginatorFactory Paginators { get; }
#region CloseTunnel
///
/// Closes a tunnel identified by the unique tunnel id. When a CloseTunnel
/// request is received, we close the WebSocket connections between the client and proxy
/// server so no data can be transmitted.
///
///
///
/// Requires permission to access the CloseTunnel
/// action.
///
///
/// Container for the necessary parameters to execute the CloseTunnel service method.
///
/// The response from the CloseTunnel service method, as returned by IoTSecureTunneling.
///
/// Thrown when an operation is attempted on a resource that does not exist.
///
/// REST API Reference for CloseTunnel Operation
CloseTunnelResponse CloseTunnel(CloseTunnelRequest request);
///
/// Closes a tunnel identified by the unique tunnel id. When a CloseTunnel
/// request is received, we close the WebSocket connections between the client and proxy
/// server so no data can be transmitted.
///
///
///
/// Requires permission to access the CloseTunnel
/// action.
///
///
/// Container for the necessary parameters to execute the CloseTunnel service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CloseTunnel service method, as returned by IoTSecureTunneling.
///
/// Thrown when an operation is attempted on a resource that does not exist.
///
/// REST API Reference for CloseTunnel Operation
Task CloseTunnelAsync(CloseTunnelRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeTunnel
///
/// Gets information about a tunnel identified by the unique tunnel id.
///
///
///
/// Requires permission to access the DescribeTunnel
/// action.
///
///
/// Container for the necessary parameters to execute the DescribeTunnel service method.
///
/// The response from the DescribeTunnel service method, as returned by IoTSecureTunneling.
///
/// Thrown when an operation is attempted on a resource that does not exist.
///
/// REST API Reference for DescribeTunnel Operation
DescribeTunnelResponse DescribeTunnel(DescribeTunnelRequest request);
///
/// Gets information about a tunnel identified by the unique tunnel id.
///
///
///
/// Requires permission to access the DescribeTunnel
/// action.
///
///
/// Container for the necessary parameters to execute the DescribeTunnel service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeTunnel service method, as returned by IoTSecureTunneling.
///
/// Thrown when an operation is attempted on a resource that does not exist.
///
/// REST API Reference for DescribeTunnel Operation
Task DescribeTunnelAsync(DescribeTunnelRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListTagsForResource
///
/// Lists the tags for the specified resource.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// The response from the ListTagsForResource service method, as returned by IoTSecureTunneling.
///
/// Thrown when an operation is attempted on a resource that does not exist.
///
/// REST API Reference for ListTagsForResource Operation
ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request);
///
/// Lists the tags for the specified resource.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListTagsForResource service method, as returned by IoTSecureTunneling.
///
/// Thrown when an operation is attempted on a resource that does not exist.
///
/// REST API Reference for ListTagsForResource Operation
Task ListTagsForResourceAsync(ListTagsForResourceRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListTunnels
///
/// List all tunnels for an Amazon Web Services account. Tunnels are listed by creation
/// time in descending order, newer tunnels will be listed before older tunnels.
///
///
///
/// Requires permission to access the ListTunnels
/// action.
///
///
/// Container for the necessary parameters to execute the ListTunnels service method.
///
/// The response from the ListTunnels service method, as returned by IoTSecureTunneling.
/// REST API Reference for ListTunnels Operation
ListTunnelsResponse ListTunnels(ListTunnelsRequest request);
///
/// List all tunnels for an Amazon Web Services account. Tunnels are listed by creation
/// time in descending order, newer tunnels will be listed before older tunnels.
///
///
///
/// Requires permission to access the ListTunnels
/// action.
///
///
/// Container for the necessary parameters to execute the ListTunnels service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListTunnels service method, as returned by IoTSecureTunneling.
/// REST API Reference for ListTunnels Operation
Task ListTunnelsAsync(ListTunnelsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region OpenTunnel
///
/// Creates a new tunnel, and returns two client access tokens for clients to use to connect
/// to the IoT Secure Tunneling proxy server.
///
///
///
/// Requires permission to access the OpenTunnel
/// action.
///
///
/// Container for the necessary parameters to execute the OpenTunnel service method.
///
/// The response from the OpenTunnel service method, as returned by IoTSecureTunneling.
///
/// Thrown when a tunnel limit is exceeded.
///
/// REST API Reference for OpenTunnel Operation
OpenTunnelResponse OpenTunnel(OpenTunnelRequest request);
///
/// Creates a new tunnel, and returns two client access tokens for clients to use to connect
/// to the IoT Secure Tunneling proxy server.
///
///
///
/// Requires permission to access the OpenTunnel
/// action.
///
///
/// Container for the necessary parameters to execute the OpenTunnel service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the OpenTunnel service method, as returned by IoTSecureTunneling.
///
/// Thrown when a tunnel limit is exceeded.
///
/// REST API Reference for OpenTunnel Operation
Task OpenTunnelAsync(OpenTunnelRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region RotateTunnelAccessToken
///
/// Revokes the current client access token (CAT) and returns new CAT for clients to use
/// when reconnecting to secure tunneling to access the same tunnel.
///
///
///
/// Requires permission to access the RotateTunnelAccessToken
/// action.
///
///
///
/// Rotating the CAT doesn't extend the tunnel duration. For example, say the tunnel duration
/// is 12 hours and the tunnel has already been open for 4 hours. When you rotate the
/// access tokens, the new tokens that are generated can only be used for the remaining
/// 8 hours.
///
///
///
/// Container for the necessary parameters to execute the RotateTunnelAccessToken service method.
///
/// The response from the RotateTunnelAccessToken service method, as returned by IoTSecureTunneling.
///
/// Thrown when an operation is attempted on a resource that does not exist.
///
/// REST API Reference for RotateTunnelAccessToken Operation
RotateTunnelAccessTokenResponse RotateTunnelAccessToken(RotateTunnelAccessTokenRequest request);
///
/// Revokes the current client access token (CAT) and returns new CAT for clients to use
/// when reconnecting to secure tunneling to access the same tunnel.
///
///
///
/// Requires permission to access the RotateTunnelAccessToken
/// action.
///
///
///
/// Rotating the CAT doesn't extend the tunnel duration. For example, say the tunnel duration
/// is 12 hours and the tunnel has already been open for 4 hours. When you rotate the
/// access tokens, the new tokens that are generated can only be used for the remaining
/// 8 hours.
///
///
///
/// Container for the necessary parameters to execute the RotateTunnelAccessToken service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the RotateTunnelAccessToken service method, as returned by IoTSecureTunneling.
///
/// Thrown when an operation is attempted on a resource that does not exist.
///
/// REST API Reference for RotateTunnelAccessToken Operation
Task RotateTunnelAccessTokenAsync(RotateTunnelAccessTokenRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region TagResource
///
/// A resource tag.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// The response from the TagResource service method, as returned by IoTSecureTunneling.
///
/// Thrown when an operation is attempted on a resource that does not exist.
///
/// REST API Reference for TagResource Operation
TagResourceResponse TagResource(TagResourceRequest request);
///
/// A resource tag.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the TagResource service method, as returned by IoTSecureTunneling.
///
/// Thrown when an operation is attempted on a resource that does not exist.
///
/// REST API Reference for TagResource Operation
Task TagResourceAsync(TagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UntagResource
///
/// Removes a tag from a resource.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// The response from the UntagResource service method, as returned by IoTSecureTunneling.
///
/// Thrown when an operation is attempted on a resource that does not exist.
///
/// REST API Reference for UntagResource Operation
UntagResourceResponse UntagResource(UntagResourceRequest request);
///
/// Removes a tag from a resource.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UntagResource service method, as returned by IoTSecureTunneling.
///
/// Thrown when an operation is attempted on a resource that does not exist.
///
/// REST API Reference for UntagResource Operation
Task UntagResourceAsync(UntagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
}