Skip to content

delete_ephemeris

delete_ephemeris(
    ephemeris_id: Uuid, *, config_overrides: Optional[GroundStationClientConfig] = None
) -> EphemerisIdResponse

Delete an ephemeris.

Parameters:

  • ephemeris_id (Uuid) –

    The AWS Ground Station ephemeris ID.

Raises:

Source code in docs_src/capo_groundstation/_services/ground_station.py
def delete_ephemeris(
    self,
    ephemeris_id: "capo_groundstation.types.uuid.Uuid",
    *,
    config_overrides: Optional[GroundStationClientConfig] = None,
) -> "capo_groundstation.types.ephemeris_id_response.EphemerisIdResponse":
    """<p>Delete an ephemeris.</p>

    Args:
        ephemeris_id: <p>The AWS Ground Station ephemeris ID.</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_in_use_exception.ResourceInUseException: <p>The specified resource is in use by non-terminal state contacts and cannot be modified or deleted.</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.
    """

    def _handler(
        req: "OperationRequest[capo_groundstation.types.delete_ephemeris_request.DeleteEphemerisRequest]",
    ) -> OperationResponse[
        "capo_groundstation.types.ephemeris_id_response.EphemerisIdResponse"
    ]:
        import capo_groundstation._operations.ground_station.delete_ephemeris

        output, http_response = (
            capo_groundstation._operations.ground_station.delete_ephemeris.delete_ephemeris(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteEphemeris")
    )
    input_: capo_groundstation.types.delete_ephemeris_request.DeleteEphemerisRequest = {
        "ephemeris_id": ephemeris_id
    }

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