Skip to content

update_connectivity_info async

update_connectivity_info(
    thing_name: __string,
    *,
    config_overrides: Optional[AsyncGreengrassClientConfig] = None,
    connectivity_info: Optional[__listOfConnectivityInfo] = None,
) -> 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.

Parameters:

Raises:

Source code in docs_src/capo_greengrass/_services/async_greengrass.py
async def update_connectivity_info(
    self,
    thing_name: "capo_greengrass.types.__string.__string",
    *,
    config_overrides: Optional[AsyncGreengrassClientConfig] = 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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_greengrass.types.update_connectivity_info_request.UpdateConnectivityInfoRequest]",
    ) -> AsyncOperationResponse[
        "capo_greengrass.types.update_connectivity_info_response.UpdateConnectivityInfoResponse"
    ]:
        import capo_greengrass._operations.greengrass.update_connectivity_info

        (
            output,
            http_response,
        ) = await capo_greengrass._operations.greengrass.update_connectivity_info.async_update_connectivity_info(
            req.options, req.input
        )
        return AsyncOperationResponse(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 = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output