@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSIoTSecureTunnelingClient extends AmazonWebServiceClient implements AWSIoTSecureTunneling
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.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AWSIoTSecureTunnelingClientBuilder |
builder() |
CloseTunnelResult |
closeTunnel(CloseTunnelRequest request)
Closes a tunnel identified by the unique tunnel id.
|
DescribeTunnelResult |
describeTunnel(DescribeTunnelRequest request)
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 request)
Lists the tags for the specified resource.
|
ListTunnelsResult |
listTunnels(ListTunnelsRequest request)
List all tunnels for an AWS account.
|
OpenTunnelResult |
openTunnel(OpenTunnelRequest 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.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held
open.
|
TagResourceResult |
tagResource(TagResourceRequest request)
A resource tag.
|
UntagResourceResult |
untagResource(UntagResourceRequest request)
Removes a tag from a resource.
|
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
public static AWSIoTSecureTunnelingClientBuilder builder()
public CloseTunnelResult 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.
closeTunnel
in interface AWSIoTSecureTunneling
closeTunnelRequest
- ResourceNotFoundException
- Thrown when an operation is attempted on a resource that does not exist.public DescribeTunnelResult describeTunnel(DescribeTunnelRequest request)
Gets information about a tunnel identified by the unique tunnel id.
describeTunnel
in interface AWSIoTSecureTunneling
describeTunnelRequest
- ResourceNotFoundException
- Thrown when an operation is attempted on a resource that does not exist.public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request)
Lists the tags for the specified resource.
listTagsForResource
in interface AWSIoTSecureTunneling
listTagsForResourceRequest
- ResourceNotFoundException
- Thrown when an operation is attempted on a resource that does not exist.public ListTunnelsResult listTunnels(ListTunnelsRequest 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.
listTunnels
in interface AWSIoTSecureTunneling
listTunnelsRequest
- public OpenTunnelResult openTunnel(OpenTunnelRequest 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.
openTunnel
in interface AWSIoTSecureTunneling
openTunnelRequest
- LimitExceededException
- Thrown when a tunnel limit is exceeded.public TagResourceResult tagResource(TagResourceRequest request)
A resource tag.
tagResource
in interface AWSIoTSecureTunneling
tagResourceRequest
- ResourceNotFoundException
- Thrown when an operation is attempted on a resource that does not exist.public UntagResourceResult untagResource(UntagResourceRequest request)
Removes a tag from a resource.
untagResource
in interface AWSIoTSecureTunneling
untagResourceRequest
- ResourceNotFoundException
- Thrown when an operation is attempted on a resource that does not exist.public 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 the request.
getCachedResponseMetadata
in interface AWSIoTSecureTunneling
request
- The originally executed requestpublic void shutdown()
AmazonWebServiceClient
shutdown
in interface AWSIoTSecureTunneling
shutdown
in class AmazonWebServiceClient