Updates the connectivity information for the core. Any devices that belong to the group which has this core will receive this information in order to find the location of the core and connect to it.
Parameters:
Raises:
Source code in docs_src/capo_greengrass/_services/greengrass.py
| def update_connectivity_info(
self,
thing_name: "capo_greengrass.types.__string.__string",
*,
config_overrides: Optional[GreengrassClientConfig] = None,
connectivity_info: Optional[
"capo_greengrass.types.__list_of_connectivity_info.__listOfConnectivityInfo"
] = None,
) -> "capo_greengrass.types.update_connectivity_info_response.UpdateConnectivityInfoResponse":
"""Updates the connectivity information for the core. Any devices that belong to the group which has this core will receive this information in order to find the location of the core and connect to it.
Args:
connectivity_info: A list of connectivity info.
thing_name: The thing name.
Raises:
capo_greengrass.errors.bad_request_exception.BadRequestException: General error information.
capo_greengrass.errors.internal_server_error_exception.InternalServerErrorException: General error information.
capo_greengrass.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_greengrass.types.update_connectivity_info_request.UpdateConnectivityInfoRequest]",
) -> OperationResponse[
"capo_greengrass.types.update_connectivity_info_response.UpdateConnectivityInfoResponse"
]:
import capo_greengrass._operations.greengrass.update_connectivity_info
output, http_response = (
capo_greengrass._operations.greengrass.update_connectivity_info.update_connectivity_info(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UpdateConnectivityInfo")
)
input_: capo_greengrass.types.update_connectivity_info_request.UpdateConnectivityInfoRequest = {
"thing_name": thing_name
}
if connectivity_info is not None:
input_["connectivity_info"] = connectivity_info
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|