Skip to content

get_config async

get_config(
    config_id: Uuid,
    config_type: ConfigCapabilityType,
    *,
    config_overrides: Optional[AsyncGroundStationClientConfig] = None,
) -> GetConfigResponse

Returns Config information.

Only one Config response can be returned.

Parameters:

Raises:

Source code in docs_src/capo_groundstation/_services/async_ground_station.py
async def get_config(
    self,
    config_id: "capo_groundstation.types.uuid.Uuid",
    config_type: "capo_groundstation.types.config_capability_type.ConfigCapabilityType",
    *,
    config_overrides: Optional[AsyncGroundStationClientConfig] = None,
) -> "capo_groundstation.types.get_config_response.GetConfigResponse":
    """<p>Returns <code>Config</code> information.</p> <p>Only one <code>Config</code> response can be returned.</p>

    Args:
        config_id: <p>UUID of a <code>Config</code>.</p>
        config_type: <p>Type of a <code>Config</code>.</p>

    Raises:
        capo_groundstation.errors.dependency_exception.DependencyException: <p>Dependency encountered an error.</p>
        capo_groundstation.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more parameters are not valid.</p>
        capo_groundstation.errors.resource_not_found_exception.ResourceNotFoundException: <p>Resource was not found.</p>
        capo_groundstation.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_groundstation.types.get_config_request.GetConfigRequest]",
    ) -> AsyncOperationResponse[
        "capo_groundstation.types.get_config_response.GetConfigResponse"
    ]:
        import capo_groundstation._operations.ground_station.get_config

        (
            output,
            http_response,
        ) = await capo_groundstation._operations.ground_station.get_config.async_get_config(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetConfig")
    )
    input_: capo_groundstation.types.get_config_request.GetConfigRequest = {
        "config_id": config_id,
        "config_type": config_type,
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output