GetConnectionResponse
¶
Source code in docs_src/capo_iot_data_plane/types/get_connection_response.py
clean_session
instance-attribute
¶
clean_session: CleanSession
Indicates whether the client is using a clean session. Returns true for clean sessions or false for persistent sessions.
client_id
instance-attribute
¶
client_id: NotRequired[ClientId]
The unique identifier of the MQTT client. This is the same client ID that was used when the client established the connection.
connected
instance-attribute
¶
connected: Connected
The connection state of the client. Returns true if the client is currently connected, or false if the client is not connected.
connected_since
instance-attribute
¶
connected_since: Timestamp
Unix timestamp (in milliseconds) indicating when the client connected. Present only when connected is true.
disconnect_reason
instance-attribute
¶
disconnect_reason: NotRequired[DisconnectReason]
The reason for the last disconnection, if the client is currently disconnected. See the developer guide for valid disconnect reasons.
disconnected_since
instance-attribute
¶
disconnected_since: Timestamp
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.
keep_alive_duration
instance-attribute
¶
keep_alive_duration: KeepAliveDuration
The keep-alive interval in seconds that the client specified when establishing the connection.
session_expiry
instance-attribute
¶
session_expiry: SessionExpiry
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.
source_ip
instance-attribute
¶
source_ip: NotRequired[SourceIp]
The IP address of the client that initiated the connection.
target_ip
instance-attribute
¶
target_ip: NotRequired[TargetIp]
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.
target_port
instance-attribute
¶
target_port: TargetPort
The port number of the Amazon Web Services IoT Core endpoint that the client connected to.
thing_name
instance-attribute
¶
thing_name: NotRequired[ThingName]
The name of the thing associated with the principal of the MQTT client, if applicable.
vpc_endpoint_id
instance-attribute
¶
vpc_endpoint_id: NotRequired[VpcEndpointId]
The ID of the VPC endpoint. Present for clients connected to IoT Core via a VPC endpoint.