Class: AWS.IoTSecureTunneling
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.IoTSecureTunneling
- Identifier:
- iotsecuretunneling
- API Version:
- 2018-10-05
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
AWS IoT Secure Tunnling enables you to create remote connections to devices deployed in the field.
For more information about how AWS IoT Secure Tunneling works, see AWS IoT Secure Tunneling.
Sending a Request Using IoTSecureTunneling
var iotsecuretunneling = new AWS.IoTSecureTunneling();
iotsecuretunneling.closeTunnel(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the IoTSecureTunneling object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var iotsecuretunneling = new AWS.IoTSecureTunneling({apiVersion: '2018-10-05'});
You can also set the API version globally in AWS.config.apiVersions
using
the iotsecuretunneling service identifier:
AWS.config.apiVersions = {
iotsecuretunneling: '2018-10-05',
// other service API versions
};
var iotsecuretunneling = new AWS.IoTSecureTunneling();
Constructor Summary collapse
-
new AWS.IoTSecureTunneling(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
closeTunnel(params = {}, callback) ⇒ AWS.Request
Closes a tunnel identified by the unique tunnel id.
-
describeTunnel(params = {}, callback) ⇒ AWS.Request
Gets information about a tunnel identified by the unique tunnel id.
.
-
listTagsForResource(params = {}, callback) ⇒ AWS.Request
Lists the tags for the specified resource.
.
-
listTunnels(params = {}, callback) ⇒ AWS.Request
List all tunnels for an AWS account.
-
openTunnel(params = {}, callback) ⇒ AWS.Request
Creates a new tunnel, and returns two client access tokens for clients to use to connect to the AWS IoT Secure Tunneling proxy server.
.
-
tagResource(params = {}, callback) ⇒ AWS.Request
A resource tag.
.
-
untagResource(params = {}, callback) ⇒ AWS.Request
Removes a tag from a resource.
.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
new AWS.IoTSecureTunneling(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Property Details
Method Details
closeTunnel(params = {}, callback) ⇒ AWS.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.
describeTunnel(params = {}, callback) ⇒ AWS.Request
Gets information about a tunnel identified by the unique tunnel id.
listTunnels(params = {}, callback) ⇒ AWS.Request
List all tunnels for an AWS account. Tunnels are listed by creation time in descending order, newer tunnels will be listed before older tunnels.