Skip to content

get_connectivity_info async

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

    async def _handler(
        req: "AsyncOperationRequest[capo_greengrass.types.get_connectivity_info_request.GetConnectivityInfoRequest]",
    ) -> AsyncOperationResponse[
        "capo_greengrass.types.get_connectivity_info_response.GetConnectivityInfoResponse"
    ]:
        import capo_greengrass._operations.greengrass.get_connectivity_info

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