@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AWSIoTSecureTunneling
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAWSIoTSecureTunneling
instead.
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.
Modifier and Type | Field and Description |
---|---|
static String |
ENDPOINT_PREFIX
The region metadata service name for computing region endpoints.
|
Modifier and Type | Method and Description |
---|---|
CloseTunnelResult |
closeTunnel(CloseTunnelRequest closeTunnelRequest)
Closes a tunnel identified by the unique tunnel id.
|
DescribeTunnelResult |
describeTunnel(DescribeTunnelRequest describeTunnelRequest)
Gets information about a tunnel identified by the unique tunnel 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.
|
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Lists the tags for the specified resource.
|
ListTunnelsResult |
listTunnels(ListTunnelsRequest listTunnelsRequest)
List all tunnels for an Amazon Web Services account.
|
OpenTunnelResult |
openTunnel(OpenTunnelRequest openTunnelRequest)
Creates a new tunnel, and returns two client access tokens for clients to use to connect to the IoT Secure
Tunneling proxy server.
|
RotateTunnelAccessTokenResult |
rotateTunnelAccessToken(RotateTunnelAccessTokenRequest rotateTunnelAccessTokenRequest)
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.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
TagResourceResult |
tagResource(TagResourceRequest tagResourceRequest)
A resource tag.
|
UntagResourceResult |
untagResource(UntagResourceRequest untagResourceRequest)
Removes a tag from a resource.
|
static final String ENDPOINT_PREFIX
CloseTunnelResult closeTunnel(CloseTunnelRequest closeTunnelRequest)
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.
closeTunnelRequest
- ResourceNotFoundException
- Thrown when an operation is attempted on a resource that does not exist.DescribeTunnelResult describeTunnel(DescribeTunnelRequest describeTunnelRequest)
Gets information about a tunnel identified by the unique tunnel id.
Requires permission to access the DescribeTunnel action.
describeTunnelRequest
- ResourceNotFoundException
- Thrown when an operation is attempted on a resource that does not exist.ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Lists the tags for the specified resource.
listTagsForResourceRequest
- ResourceNotFoundException
- Thrown when an operation is attempted on a resource that does not exist.ListTunnelsResult listTunnels(ListTunnelsRequest listTunnelsRequest)
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.
listTunnelsRequest
- OpenTunnelResult openTunnel(OpenTunnelRequest openTunnelRequest)
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.
openTunnelRequest
- LimitExceededException
- Thrown when a tunnel limit is exceeded.RotateTunnelAccessTokenResult rotateTunnelAccessToken(RotateTunnelAccessTokenRequest rotateTunnelAccessTokenRequest)
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.
rotateTunnelAccessTokenRequest
- ResourceNotFoundException
- Thrown when an operation is attempted on a resource that does not exist.TagResourceResult tagResource(TagResourceRequest tagResourceRequest)
A resource tag.
tagResourceRequest
- ResourceNotFoundException
- Thrown when an operation is attempted on a resource that does not exist.UntagResourceResult untagResource(UntagResourceRequest untagResourceRequest)
Removes a tag from a resource.
untagResourceRequest
- ResourceNotFoundException
- Thrown when an operation is attempted on a resource that does not exist.void shutdown()
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 a request.
request
- The originally executed request.