Skip to content

get_connectivity_info

get_connectivity_info(
    thing_name: __string, *, config_overrides: Optional[GreengrassClientConfig] = None
) -> GetConnectivityInfoResponse

Retrieves the connectivity information for a core.

Parameters:

  • thing_name (__string) –

    The thing name.

Raises:

Source code in docs_src/capo_greengrass/_services/greengrass.py
def get_connectivity_info(
    self,
    thing_name: "capo_greengrass.types.__string.__string",
    *,
    config_overrides: Optional[GreengrassClientConfig] = None,
) -> "capo_greengrass.types.get_connectivity_info_response.GetConnectivityInfoResponse":
    """Retrieves the connectivity information for a core.

    Args:
        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.get_connectivity_info_request.GetConnectivityInfoRequest]",
    ) -> OperationResponse[
        "capo_greengrass.types.get_connectivity_info_response.GetConnectivityInfoResponse"
    ]:
        import capo_greengrass._operations.greengrass.get_connectivity_info

        output, http_response = (
            capo_greengrass._operations.greengrass.get_connectivity_info.get_connectivity_info(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetConnectivityInfo")
    )
    input_: capo_greengrass.types.get_connectivity_info_request.GetConnectivityInfoRequest = {
        "thing_name": thing_name
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output