Skip to main content

connectivity_infos

Creates, updates, deletes, gets or lists a connectivity_infos resource.

Overview

Nameconnectivity_infos
TypeResource
Idaws.greengrassv2.connectivity_infos

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
connectivity_infoarrayThe connectivity information for the core device.
messagestringA message about the connectivity information request.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_connectivity_infoselectthing_name, regionRetrieves connectivity information for a Greengrass core device. Connectivity information includes endpoints and ports where client devices can connect to an MQTT broker on the core device. When a client device calls the IoT Greengrass discovery API, IoT Greengrass returns connectivity information for all of the core devices where the client device can connect. For more information, see Connect client devices to core devices in the IoT Greengrass Version 2 Developer Guide.
update_connectivity_infoupdatething_name, region, connectivityInfoUpdates connectivity information for a Greengrass core device. Connectivity information includes endpoints and ports where client devices can connect to an MQTT broker on the core device. When a client device calls the IoT Greengrass discovery API, IoT Greengrass returns connectivity information for all of the core devices where the client device can connect. For more information, see Connect client devices to core devices in the IoT Greengrass Version 2 Developer Guide.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
thing_namestringThe name of the core device. This is also the name of the IoT thing.

SELECT examples

Retrieves connectivity information for a Greengrass core device. Connectivity information includes endpoints and ports where client devices can connect to an MQTT broker on the core device. When a client device calls the IoT Greengrass discovery API, IoT Greengrass returns connectivity information for all of the core devices where the client device can connect. For more information, see Connect client devices to core devices in the IoT Greengrass Version 2 Developer Guide.

SELECT
connectivity_info,
message
FROM aws.greengrassv2.connectivity_infos
WHERE thing_name = '{{ thing_name }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Updates connectivity information for a Greengrass core device. Connectivity information includes endpoints and ports where client devices can connect to an MQTT broker on the core device. When a client device calls the IoT Greengrass discovery API, IoT Greengrass returns connectivity information for all of the core devices where the client device can connect. For more information, see Connect client devices to core devices in the IoT Greengrass Version 2 Developer Guide.

UPDATE aws.greengrassv2.connectivity_infos
SET
connectivityInfo = '{{ connectivityInfo }}'
WHERE
thing_name = '{{ thing_name }}' --required
AND region = '{{ region }}' --required
AND connectivityInfo = '{{ connectivityInfo }}' --required
RETURNING
message,
version;