Builder

class Builder

Properties

Link copied to clipboard

Indicates whether the client is using a clean session. Returns true for clean sessions or false for persistent sessions.

Link copied to clipboard

The unique identifier of the MQTT client. This is the same client ID that was used when the client established the connection.

Link copied to clipboard

The connection state of the client. Returns true if the client is currently connected, or false if the client is not connected.

Link copied to clipboard

Unix timestamp (in milliseconds) indicating when the client connected. Present only when connected is true.

Link copied to clipboard

Unix timestamp (in milliseconds) indicating when the client disconnected. Present only when connected is false. This information is available for 30 minutes after the client disconnects.

Link copied to clipboard

The reason for the last disconnection, if the client is currently disconnected. See the developer guide for valid disconnect reasons.

Link copied to clipboard

The keep-alive interval in seconds that the client specified when establishing the connection.

Link copied to clipboard

The session expiry interval in seconds for the MQTT client connection. This is configured by the user. This value indicates how long the session will remain active after the client disconnects.

Link copied to clipboard

The IP address of the client that initiated the connection.

Link copied to clipboard

The client's source port.

Link copied to clipboard

The IP address of the Amazon Web Services IoT Core endpoint that the client connected to. For clients connected to VPC endpoints, this is the private IP address of the network interface the client is connected to.

Link copied to clipboard

The port number of the Amazon Web Services IoT Core endpoint that the client connected to.

Link copied to clipboard

The name of the thing associated with the principal of the MQTT client, if applicable.

Link copied to clipboard

The ID of the VPC endpoint. Present for clients connected to IoT Core via a VPC endpoint.